Quote Originally Posted by BBG View Post
GldRush98: Glad to hear you have GCO 1.0.5 working properly! I'm sorry for not responding, I assumed I'd have Internet access over the holidays while I was away, unfortunately that was not the case

dhan99: How I have it set up is most likely different that what you want, I currently have it set up to offer only Priority Mail shipping unless the shopping cart contains all books- then I offer Media Mail and Priority Mail as shipping options. Since I only offer a second shipping method in certain cases, I had to hack and slash my way through a few php files- and left an ugly mess.

I'm going to check out ropu's latest fix and GldRush98's responsehandler on a fresh 1.0.5 yet this extended weekend to get multiple USPS options working w/o my hacks for Media Mail. I'll report back my progress and try my best to take notes. :)

Shawn
Happy New Year, Shawn. I just took a closer look at the responsehandler.php file from GldRush98 and I don't think it would work correctly. It seems to me $total_weight in process_merchant_calculation_callback() would need to be declared global in order for it to be picked up in the shipping function. Also, the $total_weight calculation assumes product_id's can be found in root/shopping-cart/items/item/merchant-item-id entry in the XML from Google, but in all the XML I've seen so far, the merchant-item-id entry simply doesn't exist and the product_id's can be found only in root/shopping-cart/merchant-private-data/product-data. Is it that Google API has changed at some point? Does anybody know? Logically one would think there should be a "merchant-item-id" inside <item>, which corresponds to product_id in ZenCart, but in reality it is simply not there. So I guess we will need to parse the ID's from product-data.
[FONT=monospace][/FONT]