X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Adding field to product table and updating from admin (https://forum.x-cart.com/showthread.php?t=8048)

balinor 09-16-2005 03:18 PM

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 :)

Lucent88 09-16-2005 08:07 PM

Just thought someone might know how to do it somehow!! :D

snorocket 09-18-2005 04:10 PM

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 !!!

Lucent88 09-22-2005 06:41 PM

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.


All times are GMT -8. The time now is 05:43 AM.

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