News:

Looking for documentation? Take a look on our wiki

Main Menu

How to use ajax-based reload of childs?

Started by nub, May 11, 2015, 13:57:19 PM

Previous topic - Next topic

nub

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
J 3.4.1 | VM 3.0.8 | PHP 5.5

Studio 42

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

nub

#2
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  :(
J 3.4.1 | VM 3.0.8 | PHP 5.5

jenkinhill

What about this setting?:  Use ajax for product content 
In config/templates/Activate Css Styles & Javascripts
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Studio 42

Hi,
Is it so hard to search for the word "ajax" in the config ? :)

artemiy

#5
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.



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.



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

Studio 42

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.

artemiy

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

GJC Web Design

You need to check against the default supplied templates - they obviously work...
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