X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   FREE items (https://forum.x-cart.com/showthread.php?t=24617)

leon 09-04-2006 07:40 AM

FREE items
 
There should be an option when creating a product in order to mark it as FREE, that is easier and more understandable to deal with for both admin and users, then the current give your price when an item has a price iqual to 0.

When ordering FREE items only, there is no need for the customer to detail payment method, that process should be ignored and only requiere admins approval (order processed or completed) in order to send the items.

leon 09-07-2006 03:15 PM

Re: FREE items
 
Ok, got a fix for this, for those who need it.

1. In /skin1/customer/main/product.tpl in lines 64-66 where it says:
{else}
<input type="text" size="7" name="price" />
{/if}

2. Change to:
{else}
<b>{$lng.lbl_enter_your_price}</b>
{/if}

3. Then change your language variables for lbl_enter_your_price to:
FREE ITEM !

That gets rid of the price box when no price is established.


All times are GMT -8. The time now is 04:22 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.