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)
-   -   New field in admin product page (https://forum.x-cart.com/showthread.php?t=40733)

ARW VISIONS 06-25-2008 01:01 PM

New field in admin product page
 
On each product page in the admin area I would like to add a field (similar to the price field) that would allow me to place a comparative price just above the price of the product in the store.

for instance

*An attorney would charge
$875 to draft this form*

Price: $29.95

I would like the 875 to be called dynamically from the database for each product.

I would also like to add a language variable, called compare_price for the admin page. Where are the $lan variables stored?

thx, Ash

balinor 06-25-2008 01:05 PM

Re: New field in admin product page
 
Why not use Extra Fields?

ARW VISIONS 06-25-2008 01:09 PM

Re: New field in admin product page
 
I am already using extrafields below the price.

Plus I would like to learn how to do this.

balinor 06-25-2008 01:14 PM

Re: New field in admin product page
 
But you can use more than one :) Create a new field and call it independently from the others.

ARW VISIONS 06-25-2008 01:44 PM

Re: New field in admin product page
 
I can have them in differnet places? I thought they were all called in the extrafields.tpl or whatever.

ARW VISIONS 06-25-2008 02:49 PM

Re: New field in admin product page
 
Ok how do I call the extra field variables? by service name? {$field.service_name}

balinor 06-25-2008 04:21 PM

Re: New field in admin product page
 
{$extra_fields[1].field_value}

Replace 1 with the field number you want to call.

ARW VISIONS 06-25-2008 10:17 PM

Re: New field in admin product page
 
got it. but would still like to know how to create language variables

balinor 06-26-2008 04:04 AM

Re: New field in admin product page
 
You create languages variables via the 'Languages' link in your admin.


All times are GMT -8. The time now is 06:49 AM.

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