Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

$Order_Info Vs $Orders_Info In Order Completion Page? Rate Topic   - - - - -

 
  • alaa
  • Advanced Member
  • Members
  • Join Date: 18-Mar 18
  • 132 posts

Posted 28 April 2019 - 12:02 PM #1

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! 



 
  • soft-solid
  • Junior Member
  • Members
  • Join Date: 19-Apr 10
  • 662 posts

Posted 28 April 2019 - 12:06 PM #2

Hello

 

Where did you see table $orders_info ?

This table exist only in addon google_analytics.

 

Best regards

Robert


Team of SoftSolid
cs-cart.pl

 
  • alaa
  • Advanced Member
  • Members
  • Join Date: 18-Mar 18
  • 132 posts

Posted 28 April 2019 - 12:09 PM #3

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. 



 
  • soft-solid
  • Junior Member
  • Members
  • Join Date: 19-Apr 10
  • 662 posts

Posted 28 April 2019 - 12:18 PM #4

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.


Team of SoftSolid
cs-cart.pl

 
  • alaa
  • Advanced Member
  • Members
  • Join Date: 18-Mar 18
  • 132 posts

Posted 28 April 2019 - 12:34 PM #5

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



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11266 posts

Posted 28 April 2019 - 07:28 PM #6

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


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • alaa
  • Advanced Member
  • Members
  • Join Date: 18-Mar 18
  • 132 posts

Posted 29 April 2019 - 06:47 AM #7

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.