Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

New field in admin product page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-25-2008, 01:01 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default 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
__________________
xcart 5.1.2
Reply With Quote
  #2  
Old 06-25-2008, 01:05 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: New field in admin product page

Why not use Extra Fields?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 06-25-2008, 01:09 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default 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.
__________________
xcart 5.1.2
Reply With Quote
  #4  
Old 06-25-2008, 01:14 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 06-25-2008, 01:44 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default 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.
__________________
xcart 5.1.2
Reply With Quote
  #6  
Old 06-25-2008, 02:49 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: New field in admin product page

Ok how do I call the extra field variables? by service name? {$field.service_name}
__________________
xcart 5.1.2
Reply With Quote
  #7  
Old 06-25-2008, 04:21 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: New field in admin product page

{$extra_fields[1].field_value}

Replace 1 with the field number you want to call.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #8  
Old 06-25-2008, 10:17 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: New field in admin product page

got it. but would still like to know how to create language variables
__________________
xcart 5.1.2
Reply With Quote
  #9  
Old 06-26-2008, 04:04 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: New field in admin product page

You create languages variables via the 'Languages' link in your admin.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:56 PM.

   

 
X-Cart forums © 2001-2020