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

Removing the price field when product price is set to $0

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-15-2005, 07:19 AM
 
lsmcswain lsmcswain is offline
 

Newbie
  
Join Date: Jul 2003
Posts: 4
 

Default Removing the price field when product price is set to $0

I need to remove the "Enter Your Price!" as well as the text field on the next page that allows users to enter a price. I have tried commenting out parts of the product.tpl, products.tpl, etc... but nothing works.

I am using version 4.0.13. I was able to accomplish this in an earlier version, but cannot get it to work with the new version.

Thanks
__________________
lsmcswain
Reply With Quote
  #2  
Old 04-15-2005, 03:13 PM
 
balinor balinor is offline
 

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

Default

Are you using a single column product layout or multiple columns?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 04-18-2005, 05:19 AM
 
lsmcswain lsmcswain is offline
 

Newbie
  
Join Date: Jul 2003
Posts: 4
 

Default

Single Column for the products
__________________
lsmcswain
Reply With Quote
  #4  
Old 04-18-2005, 06:15 AM
 
lsmcswain lsmcswain is offline
 

Newbie
  
Join Date: Jul 2003
Posts: 4
 

Default Here are the template modifications for version 4.0.13

How to remove the "Enter Your Price" and the subsequent price text field.

This is from the xcart techs...

Please perform the following operations:

1. open skin1/customer/main/product.tpl and replace

<INPUT type="text" size="7" name="price">

with

{*<INPUT type="text" size="7" name="price">*}
<FONT class="ProductDetailsTitle"><SPAN id="product_price">{include file="currency.tpl" value=$product.taxed_price}</SPAN></FONT>
<INPUT type="hidden" name="price" value="0.00">


2. open skin1/customer/main/products.tpl

replace

<FONT class="ProductPrice">{$lng.lbl_enter_your_price}</FONT>

with

{*<FONT class="ProductPrice">{$lng.lbl_enter_your_price}</FONT>*}
<FONT class="ProductPrice">{$lng.lbl_our_price}: {include file="currency.tpl" value=$products[product].taxed_price}</FONT>

3. open skin1/customer/main/products_t.tpl and replace


<FONT class="ProductPrice">{$lng.lbl_enter_your_price}</FONT>

with

{*<FONT class="ProductPrice">{$lng.lbl_enter_your_price}</FONT>*}
<FONT class="ProductPrice">{$lng.lbl_our_price}: {include file="currency.tpl" value=$products[product].taxed_price}</FONT>



4. You might need to open general settings page and set allowed minimum order total to 0.
__________________
lsmcswain
Reply With Quote
  #5  
Old 08-11-2009, 07:17 AM
 
jmuise jmuise is offline
 

Newbie
  
Join Date: Jul 2009
Posts: 5
 

Default Re: Removing the price field when product price is set to $0

Thanks!
This mod works great!
__________________
--
v4.1.12
AlteredCart - OnSale
2TC - AutoShip
BCS - Poll Mod
BCS - Refer a Friend/Points
Reply With Quote
  #6  
Old 08-13-2009, 11:06 AM
 
Plucky Pear Plucky Pear is offline
 

Member
  
Join Date: Aug 2009
Posts: 15
 

Default Re: Removing the price field when product price is set to $0

Anyone have a fix for this in 4.2? I tried the first part of it and couldn't find <INPUT type="text" size="7" name="price">
__________________
Version 4.2.2

Mods
Special Offers
Download Expander
What's New

Plucky Pear Designs
Reply With Quote
  #7  
Old 08-13-2009, 11:16 AM
 
Plucky Pear Plucky Pear is offline
 

Member
  
Join Date: Aug 2009
Posts: 15
 

Default Re: Removing the price field when product price is set to $0

Ok I found it but now the rest wont work.

products.tpl (this is the whole thing)
Code:
{* $Id: products.tpl,v 1.80.2.1 2009/05/22 09:42:12 avg Exp $ vim: set ts=2 sw=2 sts=2 et: *} {if $products} <script type="text/javascript" src="{$SkinDir}/customer/check_quantity.js"></script> {if $active_modules.Feature_Comparison && !$printable && $products_has_fclasses} {include file="modules/Feature_Comparison/compare_selected_button.tpl"} <script type="text/javascript" src="{$SkinDir}/modules/Feature_Comparison/products_check.js"></script> {/if} {if $config.Appearance.products_per_row && ($featured eq "Y" || $config.Appearance.featured_only_multicolumn eq "N")} {include file="customer/main/products_t.tpl"} {else} {include file="customer/main/products_list.tpl"} {/if} {if $active_modules.Feature_Comparison && !$printable && $products_has_fclasses} {include file="modules/Feature_Comparison/compare_selected_button.tpl"} {/if} {/if}

My products_t.tpl says this
Code:
<span class="price">{$lng.lbl_enter_your_price}</span><br /> {$lng.lbl_enter_your_price_note} {else} {if $product.appearance.has_price}
__________________
Version 4.2.2

Mods
Special Offers
Download Expander
What's New

Plucky Pear Designs
Reply With Quote
  #8  
Old 02-08-2010, 08:21 AM
 
slane slane is offline
 

Newbie
  
Join Date: Dec 2008
Posts: 8
 

Default Re: Removing the price field when product price is set to $0

Will this work in 4.1.11?
In /customer/main/product.tpl I have replaced <INPUT type="text" size="7" name="price"> with <input type="text" size="7" name="price" value="Member Discounts" readonly="readonly" />

But it has not changed the display.

Found easiest way:
Search in languages and change text there.
__________________
4.1.11
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 11:53 PM.

   

 
X-Cart forums © 2001-2020