NOTE: This deals with the ShippingZCsCart.php file exclusively and is technically heavy.
Shopping Cart: CS Cart
Problem:
In order to accurately display the shipping price to the customer, my CS Cart has been modified to determine the number of Boxes each Order will require. The total shipping cost of all boxes for an order are prompted to the customer. Each Box is then stored in the database with all necessary information for it to essentially mimic the appearance of an Order.
The idea is to have each Box pipe into the Shiprush application so I may be able to print a postage stamp for each. Though the Shiprush application has the ability to break an order into multiple boxes, I am breaking the order into multiple boxes before it even makes it into the application to (i) display an accurate shipping cost to customer (ii) make it easier for my vendors to print postage for each box they ship individually.
What I've Done:
I have modified the ShippingZCsCart.php, specifically the "Fetch_DB_Orders" function to retrieve an array of Boxes instead of Orders so ideally when I log into My.Shiprush.Com or open the Shiprush Application, I will see a list of Boxes instead of a list of Orders. I have seen Fetch_DB_Orders currently properly returning an array of boxes while debugging the PHP.
Questions:
Though the "Fetch_DB_Orders" function is now returning an array of Boxes instead of Orders, My.Shiprush.Com and the Application still show a list of Orders, and not Boxes.
1) Where in the code is the list of Orders that is displayed on my.shiprush.com compiled?
2) Where is the ExecuteCommand() in ShippingZClasses.php function called?
Shopping Cart: CS Cart
Problem:
In order to accurately display the shipping price to the customer, my CS Cart has been modified to determine the number of Boxes each Order will require. The total shipping cost of all boxes for an order are prompted to the customer. Each Box is then stored in the database with all necessary information for it to essentially mimic the appearance of an Order.
The idea is to have each Box pipe into the Shiprush application so I may be able to print a postage stamp for each. Though the Shiprush application has the ability to break an order into multiple boxes, I am breaking the order into multiple boxes before it even makes it into the application to (i) display an accurate shipping cost to customer (ii) make it easier for my vendors to print postage for each box they ship individually.
What I've Done:
I have modified the ShippingZCsCart.php, specifically the "Fetch_DB_Orders" function to retrieve an array of Boxes instead of Orders so ideally when I log into My.Shiprush.Com or open the Shiprush Application, I will see a list of Boxes instead of a list of Orders. I have seen Fetch_DB_Orders currently properly returning an array of boxes while debugging the PHP.
Questions:
Though the "Fetch_DB_Orders" function is now returning an array of Boxes instead of Orders, My.Shiprush.Com and the Application still show a list of Orders, and not Boxes.
1) Where in the code is the list of Orders that is displayed on my.shiprush.com compiled?
2) Where is the ExecuteCommand() in ShippingZClasses.php function called?