Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help in Adding Attributes to Order


jamartin

Recommended Posts

Posted

Hi always-helpfull OsCommerce Community

 

Please, I need your help.

 

I want to add attributes (fields) to orders. These attributes are related to enabling the customer to choose their desired date and time of products arrival. I managed to include a so-simple interface for that in checkout_shipping.php

 

Now, i need to store them in database. Looking around the code, I could understand that the values of the form (i.e. comments, shipping address, etc.) are not stored inmediately. I also know that I need to modify in some convenient way the class order.

 

Well, I need help in finding out what pieces of code I need to change in order to make my new attributes get stored.

 

Can you give me some references??...

 

Thanks a lot.

Hey!!... I still need help with this http://www.oscommerce.com/forums/index.php?showtopic=309208. Please, take a look on it.

Posted

Ok.

 

At this moment I have modified de db structure to allow the storage of date_delivery and time_delivery.

 

I have also modified the Order.php class, so now there is a $date_delivery var and a time_delivery var.

I have modified de cart() and query() functions to allow the usages of this two new attributes.

 

But, I am still in trouble in making the two values (from two differents pulldown menus which are placed in checkout_shipping.php) pass to the point they has to be inserted in the DB.

 

Any ideas? Could you please tell me how it has to be done???

 

Please, excuse if you don't understand, but i'm not a fluent english speaker/writer

Hey!!... I still need help with this http://www.oscommerce.com/forums/index.php?showtopic=309208. Please, take a look on it.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...