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 Wish List (https://forum.x-cart.com/showthread.php?t=12594)

kirsten 03-04-2005 06:07 PM

Add to Wish List
 
Is there a way to make the add to Wish List button option only appear on the product details pages??

balinor 03-04-2005 07:02 PM

Yep, comment it out wherever you don't want it :)

kirsten 03-04-2005 07:09 PM

What is the difference between the products.tpl and the products_t.tpl?

balinor 03-05-2005 05:04 AM

Products.tpl is for a single column product layout (one product per row), products_t.tpl is for multiple columns :)

kirsten 03-10-2005 03:55 PM

Okay I have just been looking at this topic again, I have looked at my products_t.tpl and products.tpl and I can see no reference to the wishlist being called only buy now

On the product.tpl I can see the wishlist being called but I don't want to cut it out of the product details page I only want to have it cut out and not shown on the products.tpl and the products_t.tpl,

Is there a way around this? Or am I looking for it in the wrong place?

Thanx
Kirsten

balinor 03-10-2005 04:48 PM

That is because add to wishlist is IN buy_now.tpl :) Comment out this bunch of code:

Code:

{include file="buttons/add_to_wishlist.tpl" style="button" href="javascript:document.orderform_`$product.productid`_`$product.add_date`.mode.value='add2wl'; document.orderform_`$product.productid`_`$product.add_date`.submit()"}

kirsten 03-10-2005 10:10 PM

Thanx Balinor,
I did as you suggested and commented out that bunch of code however the add to wishlist button and option is still appearing on my web site when I am logged in as a customer on the products pages and featured products pages which I DO NOT WANT
I will paste here my buy_ now.tpl so you can see if I have done anything wrong or if I should in fact comment out something else as well

Having said all of that I was about to paste a copy of my buy_now .tpl here to you and I noticed that further down in the tpl there was indeed another section that was coded exactly the same so I commented out that as well and HEY PRESTO IT WORKED!!! :D

So yet another small thing I have sorted out on my site in order to get things working how I think they should,

No doubt I will be posting yet another small obvious issue here in this forum but for me sometimes these are not so obvious and I have my reasons why I want things to be changed

Thanx for your reply and advice =D>

Kirsten


All times are GMT -8. The time now is 10:49 PM.

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