Author Topic: SOLVED Add to cart not working  (Read 366 times)

orangia

  • Beginner
  • *
  • Posts: 15
    • Orangia AB
  • Skype Name: orangiajojo
  • VirtueMart Version: 3+
SOLVED Add to cart not working
« on: June 24, 2020, 11:24:27 am »
I have a customer where I have not made the site myself. The add to cart button is not functioning. The spinning wheel keeps loading and nothing happens with the cart. I have no idea if they have used some code that makes this happen, I simply helped them to update VirtueMart, Joomla, VirtueMart and One Page Checkout to the latest versions. It was a problem before this though, cause the reason they asked me to update was because of this issue.

This is the setup:
URL: https://olandsortagard.se/shop
Joomla: 3.9.19
Virtuemart: 3.8.4 10335
PHP version: 7.3.19
Template is made by Casework - http://www.casework.se
Plugins used: Vm Payment plugin Paysondirect, Vm Payment plugin paysoninvoice, VirtueMart One Page Checkout from JoomlaPro

If anyone could see the problem easy I am very grateful! :)

/Johanna, https://orangia.se
/ Johanna
Orangia AB
www.orangia.se

pinochico

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 498
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Add to cart not working
« Reply #1 on: June 24, 2020, 11:54:22 am »
I think, this is template error - conflict with VM JS:
https://olandsortagard.se/components/com_virtuemart/assets/js/vmprices.js

Maybe better contact template developers.
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

orangia

  • Beginner
  • *
  • Posts: 15
    • Orangia AB
  • Skype Name: orangiajojo
  • VirtueMart Version: 3+
Re: Add to cart not working
« Reply #2 on: June 24, 2020, 12:32:35 pm »
Thanks pinochico!

I will send this info and image to the template developer, hope to see it solved by this. I'll let you know!

/Johanna, https://orangia.se
/ Johanna
Orangia AB
www.orangia.se

AnnieG13

  • Beginner
  • *
  • Posts: 29
  • A beginner
Re: Add to cart not working
« Reply #3 on: June 25, 2020, 08:29:12 am »
I now am having the same problem, I did have the problem of the products not showing in cart, now cart won't load at all. (see screenshot)

At the top of the website page I'm getting these error messages.

Warning: Declaration of plgVmShipmentAuspostpac1::getVmPluginMethod($virtuemart_shipmentmethod_id) should be compatible with vmPlugin::getVmPluginMethod($int, $cache = false) in /home/puppylan/public_html/plugins/vmshipment/auspostpac1/auspostpac1.php on line 126

Notice: Trying to access array offset on value of type bool in /home/puppylan/public_html/administrator/components/com_virtuemart/helpers/vmcrypt.php on line 177

Notice: Trying to access array offset on value of type bool in /home/puppylan/public_html/administrator/components/com_virtuemart/helpers/vmcrypt.php on line 59

Using Joomla 3.9
virtuemart3.8
Template mx_joomla157

I have messaged the developer of the template and they said it works with virtuemart as seen here.    http://demo7.mixwebtemplates.com/?template=mx_joomla157


So not sure how to fix it now.

Thanks for any help Annie

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9729
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Add to cart not working
« Reply #4 on: June 25, 2020, 09:27:42 am »
the warnings and notices are probably breaking the cart ajax return .. therefore the page is stuck on the throbber

the auspost warning would be fixed by using a well maintained up to date plugin like  https://extensions.joomla.org/extension/vm-aus-post-shipping-for-virtuemart/  ;)

the notices .. hmmm .. have you set up your safepath etc correctly... ? Which vm3.8 version?
you can try setting your error reporting to none

BTW .. please do not cross post into others postings .. your problem has nothing to do with the original... make anew post for a new problem

GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

orangia

  • Beginner
  • *
  • Posts: 15
    • Orangia AB
  • Skype Name: orangiajojo
  • VirtueMart Version: 3+
Re: Add to cart not working
« Reply #5 on: June 25, 2020, 10:02:58 am »
We have now solved our issue! It seemed like the shop had been set offline! Not sure how I missed that!  ;D

/Johanna, https://orangia.se
/ Johanna
Orangia AB
www.orangia.se

pinochico

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 498
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: SOLVED Add to cart not working
« Reply #6 on: June 25, 2020, 14:07:28 pm »
to AnnieG13:

Quote
I now am having the same problem

is not the same problem. Is problem with shipment plugin, you must fixed - send info to developers this plugin


to orangia:

Great :)
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

AnnieG13

  • Beginner
  • *
  • Posts: 29
  • A beginner
Re: SOLVED Add to cart not working
« Reply #7 on: June 26, 2020, 15:34:05 pm »
thanks for the advise.