News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Issue with product reloaded

Started by jarlu, May 22, 2020, 15:48:22 PM

Previous topic - Next topic

jarlu

Hello, I updated VM for the newest version (3.8.2) and after update in categories if I chose some variant of product, product don't reloaded and still show only parent product (not update product price, image, and availability). This issue is only in categories, on frontpage and product views is OK. For product variants I use "Custom Fields For All" and in official support told me, that problem is with this script:
<script   id="ajax_category-js" type="text/javascript" >//<![CDAT[
Virtuemart.container = jQuery('.category-view');
Virtuemart.containerSelector = '.category-view'; //]]>
</script>

When I uncheck in VM administration "Use ajax for category content" everything is OK. The Support of Custom Fields For All suggested me that I have to write about this issue here.

pinochico

we use ajax too in payment Gopay plugin and we must add some code for loading VMConfig, because ajax is calling outside virtuemart.

maybe is the same problem, if you call ajax and use 3party extensions (outside VirtueMart)?
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

Studio 42

The problem is your container
Virtuemart.container = jQuery('.category-view');
Need to find the element with class="category-view"
If you dont have no elemnt with this class, then Vm cannot inject the reloaded products in the HTML dom

jarlu

Hello, but I have category-view container in my template. Problem is on my template and all other templates (include Beez3 - Default or protostar - Default)

GJC Web Design

try switching off "Use ajax for category content" in the VM config->template & layouts tab
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

Milbo

GJC he started with that. The interesting point is, why it does not work for him. From begin? or only when the ajax was executed?
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

jarlu

Yes it works fine only when I is switch off "Use ajax for category content"