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

Adding field to product table and updating from admin

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 09-16-2005, 03:18 PM
 
balinor balinor is offline
 

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

Default

The guy who wrote this post is not able to respond, as he is no longer part of the forum. You may be in for a long wait for a reply
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #12  
Old 09-16-2005, 08:07 PM
 
Lucent88 Lucent88 is offline
 

Senior Member
  
Join Date: Aug 2005
Posts: 147
 

Default

Just thought someone might know how to do it somehow!!
__________________
X-Cart Gold 4.0.17
Reply With Quote
  #13  
Old 09-18-2005, 04:10 PM
 
snorocket snorocket is offline
 

X-Adept
  
Join Date: Dec 2002
Posts: 403
 

Default going down the tiolet...

Quote:
Originally Posted by balinor
The guy who wrote this post is not able to respond, as he is no longer part of the forum. You may be in for a long wait for a reply

No wonder the forums have been going downhill this last year, knock too many people off the boat x-cart and their won't be anybody left to row !!!
Reply With Quote
  #14  
Old 09-22-2005, 06:41 PM
 
Lucent88 Lucent88 is offline
 

Senior Member
  
Join Date: Aug 2005
Posts: 147
 

Default

I got it to work. It was my stupid mistake. I don't really have a code to post but here is the basic ideas.

There are 2 files that you have to modify.

This should work for all v4.0.x

Before you start on it BACK UP first.

1. You have to add fields to the product table.
(You can write a queries or just add straight to the table from phpMyAdmin whichever way works for you.)

2. modify include/product_modify.php
(find the code #update product data, add your new field names to the end of the database query before where productid='$productid', basically something like xxxx='$xxxx')

3. skin1/main/product_details.tpl
(add fields to this page, just use other one as example and change out the field name to your new field name)

That's it. That should do it. It works for me. I'm totally new to php, so if there is any mistake you see, please point it out for everyone, thank you.
__________________
X-Cart Gold 4.0.17
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 05:15 AM.

   

 
X-Cart forums © 2001-2020