Guest Posted December 10, 2003 Share Posted December 10, 2003 This is more of a general PHP question, but hopefully someone here can help me out. I need to add the entire contents of an array to another array. Something similar to: $variable = $variable+1 but with an entire array. hmm...that seems confusing. More specifically, I'm editing shipping.php in the classes folder. I'm dealing with the function quote to deal with the requirements of a drop-shipping setup. When the function is called, I want it to go through the function more than once in order to get a quote for each manufacturer. I've already set up while and if statements to accomplish this much. When I get to the end, however, I want to add the determined shipping quotes to a total shipping quote. That's still confusing, to me at least....maybe I can make it a little simpler. I order products X, Y and Z. Products X and Y are made by one manufacturer, product Z by a second. The packages are shipped directly from the manufacturer, thus incurring two shipping charges. Only the total shipping charge should be displayed to the customer. I have the code in place to group the products by manufacturer and determine the total shipping weight by manufacturer. Now I need to modify the quote function to find the shipping charge for manufacturer A, then the shipping charge for manufacturer B, then add them together and display on the total to the customer. So, once the quote function has created the array for shipping charges for manufacturer A, it should add in the array for shipping charges for manufacturer B. Sorry to be so long-winded...I hope someone out there understands. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.