redirect after add to wishlist

  • Posts: 1
  • Thank you received: 0
8 months 3 weeks ago #299591

-- HikaShop version -- : 3.4
-- Joomla version -- : 3.8.11
-- PHP version -- : 5.6
-- Browser(s) name and version -- : chrom 70
-- Error-message(debug-mod must be tuned on) -- : redirect after add to wishlist

Hi
when click "add to wishlist" redirect to "component/hikashop/product/listing"
is possible to redirect another page (example my custom page)?
thanks

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

  • Posts: 66339
  • Thank you received: 9733
  • MODERATOR
8 months 3 weeks ago #299592

Hi,

There is no option for that.
It will require adding a bit of javascript in the view file where you have the add to wishlist buttons, like that:

<script type="text/javascript">
window.localPage.wishlistRedirect = function(cid,pid,resp){window.location="URL";};
</script>
where you would replace URL by the actual URL you want to be redirected to.

So for example, if the add to wishlist buttons are on the product, you can add that in the show_default view file via the menu display>views.

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

Time to create page: 0.054 seconds
Powered by Kunena Forum