News:

Looking for documentation? Take a look on our wiki

Main Menu

Multivariant - selectboxes on category view not working except first

Started by JestaBlunt, May 25, 2016, 21:03:21 PM

Previous topic - Next topic

JestaBlunt

hi,

i had set up an own template which was working fine, the customer could create multivariants and on the front page you could click the select boxes with the variants and it was going to the product.

then the customer was on holiday and since he's back, only the first product on category overview has usable select boxes. the others are only changing the url, like following:

http://bp-gerdenits.at/ --> http://bp-gerdenits.at/brown ... instead of going to the product detail page.

the first product on the category overview works like ever.

the customer said he didnt do any update and we havent change anything in the template. what could be the reason?

vm 3.0.16
joomla 3.5.1.

peace, jesta

Dragoner

Hello I have same problem, same version of Joomla and VM! Yesterdad was funcion, today on first product.

Here is my ESHOP .. link to category http://lepidla.esovicka.cz/index.php/e-shop/tmely-pro-opravy-kovu-1
On first product multivariant WORK, on next products not work. :(

Please HELP!

Thank you David

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Dragoner

Thanks for your reply.

I try remove
vmJsApi::addJScript('ajaxContent',$j);
not working

Then i try upgrade to VM 3.0.17.4 and if i click on product variant, eshop freeze and java script make error.

http://lepidla.esovicka.cz/index.php/e-shop/tmely-pro-opravy-kovu-1

David

Dragoner

I found it!

I my template in category view. I paste this code to end of document


<?php 
$j 
'jQuery(document).ready(function($) {
Virtuemart.product(jQuery("form.product"));

$("form.js-recalculate").each(function(){
if ($(this).find(".product-fields").length && !$(this).find(".no-vm-bind").length) {
var id= $(this).find(\'input[name="virtuemart_product_id[]"]\').val();
Virtuemart.setproducttype($(this),id);

}
});
});'
;

$j "Virtuemart.container = jQuery('.produkt');
Virtuemart.containerSelector = '.produkt';"
;

vmJsApi::addJScript('ajaxContent',$j);

echo 
vmJsApi::writeJS();
?>



And now, it working.