be_tnt Posted January 21, 2013 Share Posted January 21, 2013 Hello! I was testing the favorite products module. When I click on the icon to add a product in my list, I got the following javascript error: ReferenceError: favorite_products_url_add is not defined Checking the JS code, this variable is used in favoriteproducts.js: $('#favoriteproducts_block_extra_add').click(function(){ $.ajax({ url: favorite_products_url_add, type: "POST", data: { "id_product": favorite_products_id_product }, success: function(result){ if (result == '0') { $('#favoriteproducts_block_extra_add').slideUp(function() { $('#favoriteproducts_block_extra_added').slideDown("slow"); }); } } }); }); Does someone know when this variable is supposed to be defined( because here it's not at all )? Thx! 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