Author Topic: SJ Super Category for VM add two products per click  (Read 461 times)

fasma89

  • Beginner
  • *
  • Posts: 8
  • A beginner
  • Skype Name: vacilic21
SJ Super Category for VM add two products per click
« on: August 09, 2019, 15:38:11 pm »
Hello there. Im facing a really annoying problem ,which i cant find any solution. When i add a product to my cart i get it adds it two times. I've seen my XHR requests from devTools and there are always two requests instead of one everytime i click add to cart button.
XHR request:
index.php?option=com_virtuemart&nosef=1&view=cart&task=addJS&format=json&lang=gr&Itemid=101
index.php?option=com_virtuemart&nosef=1&view=cart&task=addJS&format=json&lang=gr&Itemid=101
Im using VirtueMart 3.4.2
Joomla 3.9.5
PHP 7.2.21
SJ Super Category for VM v1.0.0

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4076
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: SJ Super Category for VM add two products per click
« Reply #1 on: August 09, 2019, 15:40:10 pm »
If you disable SJ Super Category, does it work right ?

fasma89

  • Beginner
  • *
  • Posts: 8
  • A beginner
  • Skype Name: vacilic21
Re: SJ Super Category for VM add two products per click
« Reply #2 on: August 09, 2019, 16:47:25 pm »
If you disable SJ Super Category, does it work right ?
I will give you an another prospective of the problem. If i have enabled the Vitruemart's Product module it works as a mention above. If i disable/unpublish Vitruemart's Products Module , when i click SJ Super Category module to add a product to cart , it does NOT add the product to the cart , instead ,it redirects me to "index.php/component/virtuemart/". Any new thoughts?

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4076
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: SJ Super Category for VM add two products per click
« Reply #3 on: August 09, 2019, 18:37:07 pm »
Contact the dev of SJ Super Category, i think it's a bug in the module

fasma89

  • Beginner
  • *
  • Posts: 8
  • A beginner
  • Skype Name: vacilic21
Re: SJ Super Category for VM add two products per click
« Reply #4 on: August 10, 2019, 11:52:29 am »
Contact the dev of SJ Super Category, i think it's a bug in the module
Something that i find out right now is that when i run the site on localhost , although it sends again 2 HXR requests , it adds only one product per click! Do you have any ideas why this happens when its online ?

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3025
  • VirtueMart Version: 3.6.3
Re: SJ Super Category for VM add two products per click
« Reply #5 on: August 10, 2019, 13:42:16 pm »
Contact the developers of SJ Super Category module

I have no idea what the difference between online and localhost is for your site.
regards
A

Joomla 3.9.12
php 7.2