Author Topic: Issue with product reloaded  (Read 123 times)

jarlu

  • Beginner
  • *
  • Posts: 30
  • A beginner
Issue with product reloaded
« on: May 22, 2020, 15:48:22 pm »
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:
Code: [Select]
<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

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 379
    • MiniJoomla
  • VirtueMart Version: 3
Re: Issue with product reloaded
« Reply #1 on: May 22, 2020, 16:31:30 pm »
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 from products, orders and database table
Virtuemart Email Manager - customs email templates

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4329
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Issue with product reloaded
« Reply #2 on: May 22, 2020, 22:31:46 pm »
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