Jump to content

[SOLVED]ajax question


ezakimak
 Share

Recommended Posts

Hi,

Could someone point me where is implemented the transfer effect when you add a product to the cart from the product page ?
Also I cannot find in the sources of /themes/../product.tpl nor /product.php where the script that implements it is called.

thanks for any help

Regards

Hugh

Share this post


Link to post
Share on other sites

Hi,

looking better at the ajax-cart.js, it looks like this part of the code isnt wotking

//JS Object : update the cart by ajax actions
var ajaxCart = {

   //override every button in the page in relation to the cart
   overrideButtonsInThePage : function(){
       //for every 'add' buttons...
       $('.ajax_add_to_cart_button').unbind('click').click(function(){
           var idProduct =  $(this).attr('rel').replace('ajax_id_product_', '');
           ajaxCart.add(idProduct, null, false, this);
           return false;
       });
       //for product page 'add' button...
here====>    $('body#product p#add_to_cart input').unbind('click').click(function(){
           ajaxCart.add( $('#product_page_product_id').val(), $('#idCombination').val(), true, null, $('#quantity_wanted').val(), null);
           return false;
       });
  ......rest of the code .......


in my product.tpl there is in deed this , how do you call this ? nodes ? I mean the tags <body id="product"> ....


but some how that code in ajax-cart isnt working

does anybody knows how to debug or somethinh this ajaxcode, I am using eclipse for php if that helps


thanks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More