$Order_Info Vs $Orders_Info In Order Completion Page?

Hello,

I can see two arrays with almost the same values on order confirmation page $order_info vs $orders_info. What is the differnece. What is a parent order? Where can I get information about CS-Cart orders structure?

Thank you!

Hello

Where did you see table $orders_info ?

This table exist only in addon google_analytics.

Best regards

Robert

Hello

Where did you see table $orders_info ?

This table exist only in addon google_analytics.

Best regards

Robert

No, I think it is a CS-Cart core table. Google analytics addon uses this array. It is on checkout completion page.

Hello

This table is available only in this place

./responsive/templates/addons/google_analytics/hooks/checkout/order_confirmation.post.tpl:

{foreach from=$orders_info item="ga_order_info"}

Best regards

Robert.

I think I understand now. The behavior seems to be as the following:

In MV;

Whan a customer places an order from multiple vendors, CS-Cart does the following:

1- Creates a new order in the table order_info which stores all products from all vendors and assigns a new order ID. This order is a parent order.

2- Creates an order for each vendor and stores it in orders_info. These orders are not parent orders.

When a customer places an order from a single vendor, CS-Cart does the following:

1- Creates a new order in the table order_info which stores all products from that vendor and assigns a new order ID. This order is not a parent order.

2- Creates a new order for that specific vendor in the orders_info. This order is not a parent order.

I hope one of the experts can confirm or correct.

Regards,

Alaa

I think I understand now. The behavior seems to be as the following:

In MV;

Whan a customer places an order from multiple vendors, CS-Cart does the following:

1- Creates a new order in the table order_info which stores all products from all vendors and assigns a new order ID. This order is a parent order.

2- Creates an order for each vendor and stores it in orders_info. These orders are not parent orders.

When a customer places an order from a single vendor, CS-Cart does the following:

1- Creates a new order in the table order_info which stores all products from that vendor and assigns a new order ID. This order is not a parent order.

2- Creates a new order for that specific vendor in the orders_info. This order is not a parent order.

I hope one of the experts can confirm or correct.

Regards,

Alaa

You are correct. There is an array related to orders called 'product_groups' that are used to calculate shipping, taxes, etc. for various locations related to vendors AND suppliers. Once this is done, the parent order is split into the top-level product groups (not suppliers will NOT be a top level product_group) So you can have a vendor with separate product_groups if the order contains products that a vendor has identified as coming from a supplier (I.e. to be drop-shipped).

You are correct. There is an array related to orders called 'product_groups' that are used to calculate shipping, taxes, etc. for various locations related to vendors AND suppliers. Once this is done, the parent order is split into the top-level product groups (not suppliers will NOT be a top level product_group) So you can have a vendor with separate product_groups if the order contains products that a vendor has identified as coming from a supplier (I.e. to be drop-shipped).

Thank for your confirmation and for the good information.