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)
-   -   Removing the "Add to Wish List" Button (https://forum.x-cart.com/showthread.php?t=52081)

gslcd 02-01-2010 12:48 PM

Removing the the "Product Price" and the "Check Quantity Selection" button
 
Hi,

Can someone tell me how to remove(disable) the "Product Price"(Add to Cart button) and the "Check Quantity Selection" button on the Featured Products page at home(main) page?

Thanks.

Here is the store URL: http://www.lcdpartsworld.com/store/


----------
x-cart Gold 4.3.0

pauldodman 02-01-2010 11:07 PM

Re: Removing the "Add to Wish List" Button
 
Having looked at your shop, I see that you have your regular products, as well as your Featured products in the same Column format. That means they are both using the same template, therefore as it stands, any changes you make to the Featured Products to remove these items, would be replicated on all the products listed.
Presuming that's not what you want, so you can't just disable the buy now button in admin.

So start by duplicating the template - make a copy of skin1/customer/main/products_t.tpl and call it say products_t_fp.tpl

You now have a separate template just for the feat prods.

Edit this new file and comment out:
{include file="customer/main/buy_now.tpl"}

ie change it to

{* include file="customer/main/buy_now.tpl" *}

Now you need to alter the template that calls this one - so open up:
skin1/customer/main/featured.tpl

and change:
{include file="customer/main/products.tpl" products=$f_products featured="Y"}
to
{include file="customer/main/products_t_fp.tpl" products=$f_products featured="Y"}

gslcd 02-02-2010 10:32 AM

Re: Removing the "Add to Wish List" Button
 
Hi pauldodman, it works fine now after the changes. Thank you for your help.

gslcd 02-25-2010 08:20 PM

Re: Removing the "Add to Wish List" Button
 
Hello Paul Dodman,

Yeah, it works, but it has a Javascript error when shows on MS I.E.(works with Firefox). Could you tell me how to fix it? Thanks. Here is the error message:
Quote:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)
Timestamp: Fri, 26 Feb 2010 05:01:59 UTC

Message: 'products_data' is undefined
Line: 133
Char: 1
Code: 0
URI: http://www.lcdpartsworld.com/store2010/home.php

Message: 'products_data' is undefined
Line: 143
Char: 1
Code: 0
URI: http://www.lcdpartsworld.com/store2010/home.php


Message: 'products_data' is undefined
Line: 298
Char: 1
Code: 0
URI: http://www.lcdpartsworld.com/store2010/home.php

Message: 'products_data' is undefined
Line: 308
Char: 1
Code: 0
URI: http://www.lcdpartsworld.com/store2010/home.php

Message: 'products_data' is undefined
Line: 456
Char: 1
Code: 0
URI: http://www.lcdpartsworld.com/store2010/home.php

The store's URL is: http://www.lcdpartsworld.com/store2010/


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

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