Jump to content

PS - Issue with favorite products (JS error)


Recommended Posts



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:



  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() {


Does someone know when this variable is supposed to be defined( because here it's not at all :blink: )?



Link to comment
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
  • Create New...