Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - PureMart (SKU# FLEX-00010)

TOPIC: Menu collapses when choosing a product variant

Menu collapses when choosing a product variant 11 years 4 months ago #1481

We have VM 2.0.14 and PureMart template.

And in our menu we have two levels before clicking on "product details". And there, in some of out products, we have variants of the product (S, M,L,XL / red,green,blue, etc.).

When choosing a variant, the menu collapses, and no longer showing the sub level of the menu.

Any suggestions to how we could get the menu to stay "open" after having chosen a variant, added to cart, and then would likr to continue browsing products in the same category?

:)
The topic has been locked.

Menu collapses when choosing a product variant 11 years 4 months ago #1503

Hi,

Did you investigate your website for JAVA conflict issue with using firebug plugin?
Virtuemart loads additional JAVA codes when the product has attributes, but this shouldn't cause any conflict though.

Please also make sure that you have the latest version (2.0.14) for Virtuemart AIO, (it is a separate component, make sure it is also in the latest version)
The topic has been locked.

Menu collapses when choosing a product variant 11 years 4 months ago #1504

Please also let me know your website URL so i can look at your website and figure out what kind JAVA conflict issue your website is experiencing.

Forum Support.
The topic has been locked.

Menu collapses when choosing a product variant 11 years 4 months ago #1520

We changed template to FashionMart, but the problem is the same:

I did some testing, and I don't believe this has anything to do with JAVA.


Here is the url:
index.php?option=com_virtuemart&view=category&virtuemart_category_id=1&Itemid=119
(Itemid=119 is the first category)


So I continue to the next category:
index.php?option=com_virtuemart&view=category&virtuemart_category_id=2&Itemid=122
(Itemid=122 is the next/sub category)


Then to the product:
index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=8205&virtuemart_category_id=2&Itemid=122
(this is the product detail view for the parent product and the menu is still "open")


Then i chose variant (child), and the url changes somewhat:
index.php?option=com_virtuemart & a m p ; view=productdetails & a m p ; virtuemart_category_id=2 & a m p ; virtuemart_product_id=8244 & a m p ; Itemid=122

(Notice that in the last url, the & sign has changed til code: & a m p ; , and here I had to write it with spaces between the letters )

So if I change the
index.php?option=com_virtuemart & a m p ; view=productdetails & a m p ; virtuemart_category_id=2 & a m p ; virtuemart_product_id=8244 & a m p ; Itemid=122
to
index.php?option=com_virtuemart&view=productdetails&virtuemart_category_id=2&virtuemart_product_id=8244&Itemid=122

(removing the amp; not the & )

Then the url looks like the previous ones, AND the menu does not collapse.

The problem is, I don't know where to change this in the files....?

Please help...
Last Edit: 11 years 4 months ago by Christin Larsen.
The topic has been locked.

Menu collapses when choosing a product variant 11 years 4 months ago #1522

I think the problem is in the dropdown menu for the child products:
<select id="field0custom_value" name="field[0][custom_value]" on-change="window.top.location.href=this.options[this.selectedIndex].value" size="1" class="inputbox">
    <option value="/index.php?option=com_virtuemart&amp;amp;view=productdetails&amp;amp;virtuemart_category_id=2&amp;amp;virtuemart_product_id=8205&amp;amp;Itemid=122" selected="selected">OMP Ghibli</option>
    <option value="/index.php?option=com_virtuemart&amp;amp;view=productdetails&amp;amp;virtuemart_category_id=2&amp;amp;virtuemart_product_id=8244&amp;amp;Itemid=122">OMP Ghibli - Blå (Large)</option>
    <option value="/index.php?option=com_virtuemart&amp;amp;view=productdetails&amp;amp;virtuemart_category_id=2&amp;amp;virtuemart_product_id=8243&amp;amp;Itemid=122">OMP Ghibli - Elfenben (Large)</option>
   </select>

Somehow the code seems to be for instance: .... virtuemart_product_id=8205&amp;Itemid=122.....

I use productdetails/flexv2.php to edit the layout, but can't seem to find the dropdown selection... :(
The topic has been locked.

Menu collapses when choosing a product variant 11 years 4 months ago #1539

Hi,

You can't find the sources in our VM Template, because our VM Template includes this PHP line:
<?php foreach ($this->product->customfieldsCart as $field) { ?>
		    <div class="product-field product-field-type-<?php echo $field->field_type ?>">
			<span class="product-fields-title" ><strong><?php echo JText::_($field->custom_title) ?></strong></span>
			<?php if ($field->custom_tip)
			    echo JHTML::tooltip($field->custom_tip, JText::_($field->custom_title), 'tooltip.png'); ?>
			<span class="product-field-display"><?php echo $field->display ?></span>
 
			<span class="product-field-desc"><?php echo $field->custom_field_desc ?></span>
		    </div><br />
		    <?php
		}
		?>

For all custom fields; And Virtuemart takes care the rest. Depends on the "custom field" type, it generates the HTML lines and add the extra JAVA lines if necessary. So if you want to change the & to &, as far as i know, you would need to look at the files where these HTML's are generated. Most likely you should check the files in these folders;

/administratos/components/com_virtuemart/
or
/plugins/vmcustom/

But i don't know which file is responsible to generate those HTML tags with & instead of &,

But weirdly; the "& a m p ;" (without space between letters) and the & alone, they are exactly the same thing. I have no idea why it reacts differently in your server.

Are you working in alive server? Can you provide me a URL where the "custom field" broke the layout? so i can investigate your website for JAVA conflict, because STILL my guess is; there is a JAVA conflict.

Forum support.
The topic has been locked.

Menu collapses when choosing a product variant 11 years 4 months ago #1573

If you look at the source of this page, you see the select option has a link containing double &.

wwx.kollevold.no/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=8205&virtuemart_category_id=2&Itemid=122
&amp;amp;

It sort of looks like the &-sign has been "translated" and then the start of the translated code also was "translated" into code...
Did that make sense?? :)
Last Edit: 11 years 4 months ago by Christin Larsen.
The topic has been locked.

Menu collapses when choosing a product variant 11 years 4 months ago #1598

Did you try to enable the SEF URL option?
You know.. when the SEF URL is enabled the URL of: wwx.kollevold.no/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=8205&virtuemart_category_id=2&Itemid=122

will be converted to:
wwx.kollevold.no/omp-ghibli

(or something like that),

so all the & characters will be gone....

Since SEF is a requirement for SEO, you have to do it if you care about the traffic that comes from Google. You can either use the SEF of joomla (don't forget to rename htaccess.txt to .htaccess file in your joomla ROOT if you enable the URL rewriting option) or try to use premium SEF URL generation components such as sh404sef or ArtioSEF which are much better.

Regards.
The topic has been locked.
Time to create page: 0.160 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo