X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Removing the price field when product price is set to $0 (https://forum.x-cart.com/showthread.php?t=13440)

lsmcswain 04-15-2005 07:19 AM

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

balinor 04-15-2005 03:13 PM

Are you using a single column product layout or multiple columns?

lsmcswain 04-18-2005 05:19 AM

Single Column for the products

lsmcswain 04-18-2005 06:15 AM

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.

jmuise 08-11-2009 07:17 AM

Re: Removing the price field when product price is set to $0
 
Thanks!
This mod works great!

Plucky Pear 08-13-2009 11:06 AM

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">

Plucky Pear 08-13-2009 11:16 AM

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}

                   


slane 02-08-2010 08:21 AM

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.