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

Show products without price or ordering

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-12-2005, 01:38 PM
 
gman gman is offline
 

eXpert
  
Join Date: Sep 2002
Posts: 211
 

Default Show products without price or ordering

I have a client that wants to display just a category of products where the prices don't show and the ordering of the items is turned off. Basically the info without the price and the ordering. This is only on one category out of all the ones he has.
__________________
Gman



X-Cart Gold 4.6.0
Reply With Quote
  #2  
Old 10-12-2005, 02:19 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Just use an {if} statement to hide/show the prices and add to cart or buy now button:

{if $cat eq "x"}show this{else} show this{/if}

X would be the number of the category.

Also, you have posted in the Pro Services forum...are you wanting to hire someone to solve this for you? If not I'll move this into the regular forums.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 10-12-2005, 06:59 PM
 
gman gman is offline
 

eXpert
  
Join Date: Sep 2002
Posts: 211
 

Default

Balinor,
Sorry I still can't get which forum right. This should be moved.

While I have your attention which templates show the product with the price. I know there are at least two one for the products in the category list and one for the detail view.

Thanks!!
__________________
Gman



X-Cart Gold 4.6.0
Reply With Quote
  #4  
Old 10-13-2005, 02:08 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

products.tpl
products_t.tpl
product.tpl

__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #5  
Old 10-13-2005, 07:51 AM
 
gman gman is offline
 

eXpert
  
Join Date: Sep 2002
Posts: 211
 

Default

Okay I am lost (again). If there is not going to be a price shown for a certain category then isn't there a code that says basically if it is not category 3 then print the price?

Balonor gave me this and since I did not want category 3 showing the price I put it in as this and it did not work:

{if $cat eq "3"}
{else}
the pricing code
{/if}
__________________
Gman



X-Cart Gold 4.6.0
Reply With Quote
  #6  
Old 10-13-2005, 07:54 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

That is what that code will do if put in correctly. It will work for products_t.tpl and products.tpl. For the product detail page, you would need a different code.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 10-13-2005, 08:48 AM
 
gman gman is offline
 

eXpert
  
Join Date: Sep 2002
Posts: 211
 

Default

Heck with it. How much just to do it for me? PM me.
__________________
Gman



X-Cart Gold 4.6.0
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 02:09 AM.

   

 
X-Cart forums © 2001-2020