ezakimak Posted January 14, 2011 Share Posted January 14, 2011 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 helpRegardsHugh Link to comment Share on other sites More sharing options...
otzy Posted January 14, 2011 Share Posted January 14, 2011 /modules/blockcart/ajax-cart.php - success function in $.ajax call Link to comment Share on other sites More sharing options...
ezakimak Posted January 14, 2011 Author Share Posted January 14, 2011 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 workingdoes anybody knows how to debug or somethinh this ajaxcode, I am using eclipse for php if that helpsthanks Link to comment Share on other sites More sharing options...
ezakimak Posted January 14, 2011 Author Share Posted January 14, 2011 here is my ajax-cart.js and tpl in case you want to take a lookregardsHugh files.zip Link to comment Share on other sites More sharing options...
otzy Posted January 14, 2011 Share Posted January 14, 2011 your theme is correct at first sight. Could you give a link to your product page? Link to comment Share on other sites More sharing options...
ezakimak Posted January 14, 2011 Author Share Posted January 14, 2011 Hi,This is the URL for my upgraded shop http://desarrollo.proteinexpress.net/proteinexpress1.3.6sv1.0.0/This is the original shop which is a ps1.3.1 shophttp://www.proteinexpress.netRegardsHugh Link to comment Share on other sites More sharing options...
otzy Posted January 14, 2011 Share Posted January 14, 2011 ajax-cart.js requires function checkCustomizations() from /js/tools.jsBut there is no such function in your tools.jsand check this file, may be it has some more fails Link to comment Share on other sites More sharing options...
ezakimak Posted January 15, 2011 Author Share Posted January 15, 2011 hi!!thanks for the help !!That was the error !, I didnt realise I forgot to copy my customized tools.js to the new prestashop installationregardsHugh Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now