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)
-   -   Item Price Field Requirements (https://forum.x-cart.com/showthread.php?t=63610)

Duramax 6.6L 05-13-2012 01:08 PM

Item Price Field Requirements
 
I am trying to find out what file controls what can be entered into the fields that control the price. I wod like to be able to place letters in the item price fields.

I beleive this line controls it, but I can not find the file to edit.

<td class="ProductDetails"><input type="text" name="list_price" size="18" value="{$product.list_price|formatprice|default:$z ero}" /></td>

Where would you find the formatprice controller

Frank

cflsystems 05-13-2012 07:07 PM

Re: Item Price Field Requirements
 
Price field is numeric field only. You can't have any other characters in there. This field value is used on 100's of places in the code, if not more, and in the db is set as decimal type.
Why would you want price to have alphanumeric value?

formatprice is a modifier and it's in include/templater/plugins

Duramax 6.6L 05-14-2012 03:02 AM

Re: Item Price Field Requirements
 
I was hoping to be able to put "call for price" or "add to cart for price" as I have seen quite a few other stores that are doing this now. I am using the MAP price mod, but have had a quite a few customers call because they do not understand what is going on.

cflsystems 05-14-2012 08:03 AM

Re: Item Price Field Requirements
 
http://forum.x-cart.com/showthread.php?p=254207#post254207


All times are GMT -8. The time now is 07:25 AM.

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