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

Adding extra fields.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-09-2010, 05:13 PM
 
general38 general38 is offline
 

Newbie
  
Join Date: May 2010
Posts: 3
 

Default Adding new fields in the product tables and associated templates.

Hi everyone, my first post so please forgive me if this is covered elsewhere.

I am customizing XCART to sell courses. However I need to add extra fields to the products table and these fields need to show up in the add product/modify and product details pages. Also i need to be able to search on these fields.

So far i have added a single field in the table back end using mysqlphp admin. I also have had success in adding the field label in the languages table. Also by manually entering the data through the mysqlphp admin i was able to display the information in the modified template.

I also was able to include the field in the product add page and manged to modify the related php script to allow for data addition into the mysql database.

I cannot however find the script that loads the data initially into the provider product details form. The extra field displays, it allows entry, it updates the database and displays on the modified customer product details page.

Could anyone please point me to the script that fills the fields upon initial page loading for the provider product details page? Also I am only using a basic editor so what debugging and editing tools do you recommend as I am only beginning to get my head around xcart.

Lastly I need to include this field as search criteria. Any pointers to help with the above would be greatly appreciated.
__________________
4.3.1
Reply With Quote
  #2  
Old 06-09-2010, 07:49 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Adding extra fields.

Why not just use the extra fields that come by default with xcart?
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 06-09-2010, 08:32 PM
 
general38 general38 is offline
 

Newbie
  
Join Date: May 2010
Posts: 3
 

Default Re: Adding extra fields.

I cant use the default extra fields because they only are applicable to each individual provider ( i have the pro version). I require the field changes to be permanent and global for all providers. If there was a way to make some of the default extra fields global to all providers I would be a very happy chappy.
__________________
4.3.1
Reply With Quote
  #4  
Old 06-09-2010, 10:02 PM
 
general38 general38 is offline
 

Newbie
  
Join Date: May 2010
Posts: 3
 

Default Re: Adding extra fields.

Okay, i found that extra fields are common to all root providers so all I have to do is make providers members of root and they all have access to extra fields. I apologize for my stupidity. I did not realize this was possible. However some of these fields i wish to contain date information and i would like to attach a date picker to the extra fields. I will raise this in a different thread however. Thanks anyway.
__________________
4.3.1
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 02:38 AM.

   

 
X-Cart forums © 2001-2020