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

DON'T want Featured Products

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-27-2007, 06:12 PM
 
LittleLizard LittleLizard is offline
 

Member
  
Join Date: Jun 2007
Location: Atlanta
Posts: 27
 

Default DON'T want Featured Products

At the moment, Featured Products do not fit my client's current business model. It will eventually, but for right now I need to get that table off my front page. I'm still in the process of setting everything up and working the graphics and CSS, so there are still most of the sample product data still in.

I couldn't find any reference of how to remove that block from the front page (I've got the default Skin1).

Thanks!
__________________
www.littlelizard.com
X-Cart version 4.1.8
Reply With Quote
  #2  
Old 06-27-2007, 07:18 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: DON'T want Featured Products

to make featured products go away forever,

you can simply not assign any.

to idiotproof it from your store, you can comment out the entire template, /skin1/customer/main/featured.tpl

Code:
{* {capture name=dialog} {if $f_products ne ""} {if $total_pages gt 2} <br /> { include file="customer/main/navigation.tpl" } {/if} {include file="customer/main/products.tpl" products=$f_products featured="Y"} {if $total_pages gt 2} <br /> { include file="customer/main/navigation.tpl" } {/if} {else} {$lng.txt_no_featured} {/if} {/capture} {include file="dialog.tpl" title=$lng.lbl_featured_products content=$smarty.capture.dialog extra='width="100%"'} *}

but -- if you don't assign a featured product, they simply won't display.

Get to know webmaster mode, so you can see what templates are working for you.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #3  
Old 06-28-2007, 06:59 AM
 
LittleLizard LittleLizard is offline
 

Member
  
Join Date: Jun 2007
Location: Atlanta
Posts: 27
 

Default Re: DON'T want Featured Products

I don't have any featured products, but the box is still showing up saying there are no featured products.

Commenting worked just fine. Thanks.
__________________
www.littlelizard.com
X-Cart version 4.1.8
Reply With Quote
  #4  
Old 06-28-2007, 07:10 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: DON'T want Featured Products

OK, this is understandable...

in the featured.tpl, do you see the code lines:
Code:
{if $f_products ne ""} {if $total_pages gt 2} <br /> { include file="customer/main/navigation.tpl" } {/if} {include file="customer/main/products.tpl" products=$f_products featured="Y"} {if $total_pages gt 2} <br /> { include file="customer/main/navigation.tpl" } {/if} {else} {$lng.txt_no_featured}

IF featured products are empty, then it will display the language var, $lng.txt_no_featured -- and wrap it in a dialog...

You could (as i have) simply comment out the include call to featured.tpl in welcome.tpl, as well as wherever else it is called...

Code:
{* {include file="customer/main/featured.tpl" f_products=$f_products} *}

There is more than one way to accomplish this.

Webmaster mode will help you... look for any calls to customer/main/featured.tpl and comment them out.

BUT -- I think if you lose it from welcome.tpl, the if/elses should solve the rest.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 01:03 PM.

   

 
X-Cart forums © 2001-2020