If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Question about orders_products table

Question about orders_products table

Started by tcarden on 17 May 2013, 9:08 PM · Views: 557

Results 1 to 3 of 3
17 May 2013, 9:08 PM
#1
tcarden avatar

tcarden

Zen Follower

Join Date:
Oct 2012
Posts:
282
Plugin Contributions:
0

Post #1 by tcarden

I'm trying to locate at what point, or in which file, probably a class file, that products get put into orders_products.

the constant for the table is TABLE_ORDERS_PRODUCTS.

any help on this would be extremely appreciated!,

17 May 2013, 10:11 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,152
Plugin Contributions:
56

Post #2 by lat9

During the checkout_process page, via call to the order class's function create_add_products(). Use your admin's Tools->Developers Tool Kit and search for $order->create_add_products.

17 May 2013, 11:07 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #3 by drbyte

And, just like I told the other person who asked the same question earlier this week, it's rare for you to need to actually change the code in that file. Instead, you should strongly consider using notifier/observer code to add your additional functionality.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.