Jump to content

PS 1.5.3.1 - Issue with favorite products (JS error)


be_tnt

Recommended Posts

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 :blink: )?

 

Thx!

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...