X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   add to wishlist in static page (https://forum.x-cart.com/showthread.php?t=64786)

pauline 09-05-2012 12:02 PM

add to wishlist in static page
 
Hi, does anyone know how to create add to wishlist link in static pages.
I've generated html links for a product and added the product to a static page, instead of the simple add to cart button I would like it to be add to wishlist.

Any help would be very much appreciated,

Pauline.

totaltec 09-05-2012 07:37 PM

Re: add to wishlist in static page
 
It can be more complicated with variants and product options, but for a simple product with a quantity of 1:
<a href="cart.php?mode=add2wl&productid=78&amount=1"> Add-2-WL</a>

Change the productid=78 to whatever the product id is supposed to be for your product.

pauline 09-05-2012 11:33 PM

Re: add to wishlist in static page
 
Hi Mike,
Thank you, Thank you, Thank you. I spent all day yesterday trying to do this and was almost there, the code was slightly out, I was adding the full path and mode=wishlist!

Kind Regards,
Pauline.


All times are GMT -8. The time now is 02:25 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.