![]() |
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 |
Are you using a single column product layout or multiple columns?
|
Single Column for the products
|
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. |
Re: Removing the price field when product price is set to $0
Thanks!
This mod works great! |
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">
|
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:
{* My products_t.tpl says this Code:
<span class="price">{$lng.lbl_enter_your_price}</span><br /> |
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. |
All times are GMT -8. The time now is 08:48 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.