SOVLED:khohangmy wrote:Am using OC V1.4.9.4
when i click "add to cart" with 1 quality, but in my shopping cart, its show 2 quality. Could you tell me, how to fix it?
You need to do the following in order to fix this bug:
- Upgrade jQuery to a version above 1.6 - (Go to http://docs.jquery.com/Downloading_jQuery and download the "minified" version of the "Current Release"). Do not rename the file. Put this file in "catalog/view/javascript/jquery/". There should already be a similar file there e.g. "jquery-1.3.2.min.js".
- Upgrade ajax_add.js - Open catalog/view/javascript/jquery/ajax_add.js in a text editor and change "$('#add_to_cart').removeAttr('onclick');" (line 2?) to "$('#add_to_cart').prop('onclick', null);". Save the changes!
- Edit header.tpl - Open catalog/view/theme/[YOUR THEME]/common/header.tpl in a text editor. Do a search for "javascript/jquery/jquery" and you should find a line that looks like:
Code: Select all
<script type="text/javascript" src="catalog/view/javascript/jquery/jquery-1.3.2.min.js"></script>
Code: Select all
<script type="text/javascript" src="catalog/view/javascript/jquery/[VERSION HERE]"></script>
- Upload the files we just added / changed to your website (3 files total). It is advisable to backup the original files first (just download them to somewhere else so you have a copy). Make sure the files get uploaded to the right places e.g. "ajax_add.js" and the new version of jQuery go in the folder "catalog/view/javascript/jquery/" and header.tpl goes in "catalog/view/theme/[YOUR THEME]/common/".
That should fix the problem

I am the lead web developer for Cotswold Web Services, so if you need any other help feel free to give us a call

You can think of IE9 as a young toddler trying to cross a road... you have to tell it the same thing in a number of ways before the message sinks in! Unfortunately, IE9 is regularly the cause of road accidents in this analogy!