Author Topic: ADD TO CART BUTTON DOES NOT WORK NOR LINK  (Read 1164 times)

wavevector

  • Beginner
  • *
  • Posts: 1
ADD TO CART BUTTON DOES NOT WORK NOR LINK
« on: February 23, 2013, 05:12:37 am »
Hello,

I am having a similar issue with a lacking twist of linking to nothing for the VirtueMart Joomla 1.5 plugin Add To Cart button at: http://www.thegentlemenswar.com/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=17&Itemid=53

Can you guys please take a look into why my "Add To Cart" button is not working.  It does not link to anything.  It simply pushes down, and does nothing.  Please let me know why this button does not link.

Thanks,

Walter Hnot

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27431
  • Always on vacation
    • Jenkin Hill Internet
Re: ADD TO CART BUTTON DOES NOT WORK NOR LINK
« Reply #1 on: February 23, 2013, 14:20:21 pm »
You have JavaScript conflicts, the first one causing problems is SqueezeBox so remove that old script and try again.

SCRIPT5009: 'Class' is undefined
modal.js, line 17 character 1
SCRIPT438: Object doesn't support property or method 'addEvent'
index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=17&Itemid=53, line 38 character 3
SCRIPT5007: Unable to get value of the property 'settings': object is null or undefined
vmprices.js, line 66 character 14

Also Joomla 1.5 is no longer supported for VirtueMart -   http://virtuemart.net/news/list-all-news/426-end-of-life-for-virtuemart-11-heidelpay-now-in-virtuemart-2012

"We decided to declare now the end of life for VirtueMart 1.1, and that the version 2 of VirtueMart is not any longer maintaining joomla 1.5 compatibility." 4 October 2012
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VM 3.4.3.10057 on Joomla 3.9.8 PHP 7.0.33
Testing VM .3.6.0.10075 on Joomla 3.9.8

seaniemorris

  • Beginner
  • *
  • Posts: 8
Re: ADD TO CART BUTTON DOES NOT WORK NOR LINK
« Reply #2 on: March 08, 2013, 15:22:12 pm »
I also have this problem: https://www.irishshootingsports.ie

I did have a jQuery conflict during testing a few weeks ago and so I got rid of the one that was a sacrificial lamb, to do with a rolling images effect on the homepage only. The 'Add to Cart button worked then.

I since applied a javascript-only rolling images effect on the homepage only. But, even if I delete all of its javascripts (both in the <head> section AND the <body> of the Homepage for good measure), I still have an unworking/unlinking 'Add to Cart' button.

I must add that if I take the 's' out of the 'https://' address and refresh the page of any product, it works fine.

Seanie.

seaniemorris

  • Beginner
  • *
  • Posts: 8
Re: ADD TO CART BUTTON DOES NOT WORK NOR LINK
« Reply #3 on: March 08, 2013, 15:31:33 pm »
Solved:

In the configuration.php file the live site declaration was missing any content, so I changed it to:

public $live_site = 'https://www.irishshootingsports.ie';

Once done, for anyone else that notices this, you may not be able to overwrite the existing configuration.php file on the server - rename it, and upload the modified one instead.

Seanie.