product not found when adding to cart from filter

  • Posts: 115
  • Thank you received: 0
12 years 1 month ago #68790

on my site i have filter button. This works great. I enter the search item eg beans then it displays all products with beans.

However when I add product to cart I get Product not found.

Problem can be shown here :

go to www.britishfoodabroad.co.uk
enter beans in search for example
click add to cart

you will then get the error Product Not Found

Any ideas why?

Please Log in or Create an account to join the conversation.

  • Posts: 115
  • Thank you received: 0
12 years 1 month ago #68855

can anyone help on this issue?

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
12 years 1 month ago #68910

It sounds like a problem of redirection URL.

Normally you should have this line:
<input type="hidden" name="return_url" value="<?php echo urlencode(base64_encode(urldecode($this->redirect_url)));?>"/>
near the end of the file "add_to_cart_listing" of the view "product" via the menu Display->Views.

If that's the case, change it to:
<input type="hidden" name="return_url" value=" www.britishfoodabroad.co.uk/index.php/pr...ts/product/listing"/ >

and that should solve the problem.

If you don't have it, please give the content of that file. And check that it's the latest version of the file (you can look at the header of the file at the top for the version number). If not, please delete the customization on the listing of views and try again.

Please Log in or Create an account to join the conversation.

  • Posts: 115
  • Thank you received: 0
12 years 1 month ago #69007

i changed the line as above but still get product not found

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
12 years 1 month ago #69032

Please make sure that you're editing the file for your front end template and not another template or you won't see the change.

Please Log in or Create an account to join the conversation.

  • Posts: 115
  • Thank you received: 0
12 years 1 month ago #69060

i checked the template and inserted the code but am still getting product not found. it works only if you first click on the products link then search for example for beans, add a search result to cart and it is okay. Problem is when you click on Shop by category then enter a search. When the results are shown and you click add to cart on a search result then it displays Product Not Found.

Please Log in or Create an account to join the conversation.

Time to create page: 0.064 seconds
Powered by Kunena Forum