Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Removing the "Add to Wish List" Button

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-01-2010, 12:48 PM
 
gslcd gslcd is offline
 

Member
  
Join Date: Dec 2009
Posts: 15
 

Question 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
__________________
X-cart Gold 4.3.1 & 4.3.0

USWebCity.com
Online Shopping Store Hosting & more...
Reply With Quote
  #2  
Old 02-01-2010, 11:07 PM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default 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"}
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote

The following 2 users thank pauldodman for this useful post:
candc (02-26-2010), gslcd (02-25-2010)
  #3  
Old 02-02-2010, 10:32 AM
 
gslcd gslcd is offline
 

Member
  
Join Date: Dec 2009
Posts: 15
 

Default Re: Removing the "Add to Wish List" Button

Hi pauldodman, it works fine now after the changes. Thank you for your help.
__________________
X-cart Gold 4.3.1 & 4.3.0

USWebCity.com
Online Shopping Store Hosting & more...
Reply With Quote
  #4  
Old 02-25-2010, 08:20 PM
 
gslcd gslcd is offline
 

Member
  
Join Date: Dec 2009
Posts: 15
 

Question 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.3061
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/
__________________
X-cart Gold 4.3.1 & 4.3.0

USWebCity.com
Online Shopping Store Hosting & more...
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:26 AM.

   

 
X-Cart forums © 2001-2020