VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: nub on May 11, 2015, 13:57:19 PM

Title: How to use ajax-based reload of childs?
Post by: nub on May 11, 2015, 13:57:19 PM
My parent products have generic child variants. If I select one from the dropdown, the entire page gets reloadet, It takes about 2 seconds.

How to make it as fast as here (https://demo.virtuemart.net/product-variants/generic-child-variant-a-detail)? 
Title: Re: How to use ajax-based reload of childs?
Post by: Studio 42 on May 11, 2015, 22:23:30 PM
YOu have to enable ajax feature in vituemart config.
Note ! in some case eg. some 3party plugins, templates ... you can have problems with the ajax features
Title: Re: How to use ajax-based reload of childs?
Post by: nub on May 11, 2015, 23:20:26 PM
Quote from: Studio 42 on May 11, 2015, 22:23:30 PM
YOu have to enable ajax feature in vituemart config.

Thanks, but where in the config? I found only this point:
config -> templates -> Activate Css Styles & Javascripts -> Using the Script ajax Countries / Regions

I dont think this is the right one and it doesn't help...


Quote from: Studio 42 on May 11, 2015, 22:23:30 PMNote ! in some case eg. some 3party plugins, templates ... you can have problems with the ajax features

I have tried it without plugins and with the beez5 template - doesn't work  :(
Title: Re: How to use ajax-based reload of childs?
Post by: jenkinhill on May 12, 2015, 10:53:53 AM
What about this setting?:  Use ajax for product content 
In config/templates/Activate Css Styles & Javascripts
Title: Re: How to use ajax-based reload of childs?
Post by: Studio 42 on May 12, 2015, 11:47:35 AM
Hi,
Is it so hard to search for the word "ajax" in the config ? :)
Title: Re: How to use ajax-based reload of childs?
Post by: artemiy on August 12, 2015, 18:48:42 PM
Hello guys,

I have something similar: activate "Using the product Scripts" or any other option doesn't really help. It takes some time to reload the page.
BUT in addition I have a below problem:

I use Multi Variant for children. When I choose any option in Productdetails page some product information shows up from the parent, but not all.

(http://s020.radikal.ru/i714/1508/11/b3347fd12660.png)

I have marked info blocks that are not shown after first page reload. If I press F5 all remaining info shows up.
In addition: all info is there when you check page code but not visible.

(http://s019.radikal.ru/i635/1508/ef/04a29168f790.png)

Link to the page: http://388652.stagemsq.web.hosting-test.net/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=16&virtuemart_category_id=3&Itemid=118

Can someone explain what is going on here?

VirtueMart 3.0.9
Joomla! 3.4.3
PHP 5.4.43
Title: Re: How to use ajax-based reload of childs?
Post by: Studio 42 on August 13, 2015, 16:47:28 PM
I think your template overides do not use same html markups, or some html tags are missing.
Any DOM error/missing can break the inserted HTML by ajax.
Title: Re: How to use ajax-based reload of childs?
Post by: artemiy on August 14, 2015, 16:10:30 PM
You're absolutely right.
But what tags (selectors) are necessary to make my template workable?
I've been trying add my own classes instead of creating template from the beginning.
Is there a list/link of css selectors or strict html-tree I should follow?

In addition: I use uikit from yootheme.

Thanks
Title: Re: How to use ajax-based reload of childs?
Post by: GJC Web Design on August 14, 2015, 16:21:07 PM
You need to check against the default supplied templates - they obviously work...