VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: bigrich66 on January 24, 2017, 14:22:12 PM

Title: Ajax functionality not working for multi variant dropdowns
Post by: bigrich66 on January 24, 2017, 14:22:12 PM
Hi

I have created a Multi Variant Custom Field and applied it to a Product. I have then created 2 Product custom labels (Colour & Size) then added the associated children. The 2 labels(dropdowns) are displaying successfully in the front end next to the product.

However, both label dropdowns are not refreshing upon selection ie the Ajax function is not automatically selecting the 2nd dropdown box variable based on the selection of the first.

Looking at the VM demo (http://demo.virtuemart.net/multi-variant-detail) backend I see there is an option in the Custom Field setup to select 'Use ajax in browse view' as Yes. However in my setup there is no such option.

Might this be the problem or could it be something else?

Cheers all
Title: Re: Ajax not working for my multi variant dropdowns
Post by: Jörgen on January 24, 2017, 14:26:47 PM
Hello

Try this first Before You can expect any help.

http://forum.virtuemart.net/index.php?topic=79799.0 (http://forum.virtuemart.net/index.php?topic=79799.0)

regards

Jörgen @ Kreativ Fotografi
Title: Re: Ajax not working for my multi variant dropdowns
Post by: bigrich66 on January 24, 2017, 15:38:24 PM
Apologies its been a while

VirtueMart 3.0.14

PHP Built On   Linux c9947.sgvps.net 3.12.18-clouder0 #3 SMP Thu Oct 20 14:54:11 EEST 2016 x86_64
Database Version   5.5.31-30.3-log
Database Collation   utf8_general_ci
Database Connection Collation   utf8mb4_general_ci
PHP Version   5.6.29
Web Server   Apache/2.2.24 (Unix) mod_hive/5.5 mod_ssl/2.2.24 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4 mod_fastcgi/2.4.6 mod_fcgid/2.3.6
WebServer to PHP Interface   cgi-fcgi
Joomla! Version   Joomla! 3.6.5 Stable [ Noether ] 1-December-2016 22:46 GMT
Joomla! Platform Version   Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
User Agent   Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
Title: Re: Ajax not working for my multi variant dropdowns
Post by: bigrich66 on January 24, 2017, 15:40:43 PM
A live link is available below but because of dev restrictions I will need an IP address to add it to the allowed IPs


http://fairytaleendings.co.uk/shop/vm-category-layout/pia-michi-1667-detail

Cheers
Title: Re: Ajax not working for my multi variant dropdowns
Post by: bigrich66 on January 24, 2017, 18:56:24 PM
Hi

I now have the 'Use ajax in browse view' option having updated VM to 3.0.18

However, having selected it as 'Yes' the functionality is still not working

Cheers
Title: Re: Ajax functionality not working for multi variant dropdowns
Post by: bortolani on January 24, 2017, 19:47:45 PM
Have you set the flag 'Allow legacy layout' under Virtuemart->Configuration->Templates ?

Title: Re: Ajax functionality not working for multi variant dropdowns
Post by: bigrich66 on January 24, 2017, 20:23:30 PM
Hi

I cannot see such an option
Title: Re: Ajax functionality not working for multi variant dropdowns
Post by: bigrich66 on January 24, 2017, 21:07:51 PM
After much investigation I have finally pinned this down to the template I am using which is Themler based

I will update this post when I know more

Title: Re: Ajax functionality not working for multi variant dropdowns
Post by: jenkinhill on January 24, 2017, 23:45:59 PM
Quote from: bigrich66 on January 24, 2017, 21:07:51 PM
I have finally pinned this down to the template I am using which is Themler based

Oh bloody hell, more Crapisteer type issues.

See http://forum.virtuemart.net/index.php?topic=136450.msg477106#msg477106