Jump to content

Add to cart button not working CC4


benchmarkit

Recommended Posts

Hi,

 

We have been using cubecart V4 for some years now, running the Catalyst skin from shopdev.

 

In the last few weeks, the "Add To Basket" button has stopped working on the site.

 

I have tested the same button on the standard skins and also other skins provided by ShopDev and this button works fine on all but the Catalyst skin.

 

Here is an example of the site with the issue: http://www.sydneymustangparts.com.au/index.php?_a=viewProd&productId=9089 

 

I've done some reading and some people mention disabling AJAX however when setting the noAJAX option in javascript/shopdev_effects.js it makes no difference and i can see the page still uses AJAX.

 

I have tried to contact shopdev for support but haven't received a response in over a week so i thought id try my luck on this forum.

 

If anyone has had this issue or is able to point me in the right direction, it will be greatly appreciated.

 

Thanks in advance.

Link to comment
Share on other sites

Hi Bsmither

 

Thanks for your response mate.

 

I managed to solve the issue about 30mins after posting the issue on this forum.

 

Here is the fix incase anyone else runs into the same problem:

 

Some host providers don't detect the jquery.cookie.js file located in the skins/javascript directory.

 

Rename: /javascript/jquery.cookie.js to cookie.js
 
Open: styleTemplates/global/index.tpl
 
Find:
<script type="text/javascript" language="javascript" src="skins/{VAL_SKIN}/php/compress.php?get=../javascript/jslibrary.js||../javascript/jquery.js||../javascript/jquery.cookie.js||../javascript/form.js||../javascript/jquery.cycle.js||../javascript/shopdev_effects.js"></script>
 
Replace With:
<script type="text/javascript" language="javascript" src="skins/{VAL_SKIN}/php/compress.php?get=../javascript/jslibrary.js||../javascript/jquery.js||../javascript/cookie.js||../javascript/form.js||../javascript/jquery.cycle.js||../javascript/shopdev_effects.js"></script>
 
Open: styleTemplates/global/cart.tpl
 
Find:
<script type="text/javascript" language="javascript" src="skins/{VAL_SKIN}/php/compress.php?get=../javascript/jslibrary.js||../javascript/jquery.js||../javascript/jquery.cookie.js||../javascript/form.js||../javascript/jquery.cycle.js||../javascript/shopdev_effects.js"></script>
 
Replace With:
<script type="text/javascript" language="javascript" src="skins/{VAL_SKIN}/php/compress.php?get=../javascript/jslibrary.js||../javascript/jquery.js||../javascript/cookie.js||../javascript/form.js||../javascript/jquery.cycle.js||../javascript/shopdev_effects.js"></script>
 
After making the above changes, the add to cart button started to work again.
 
Hope this helps someone else having the same issue.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...