I will be your wing man on this lol. I too am a developer (although I mainly work in .NET and J2EE) I am familiar with PHP and all things web dev.
I made a slight change to the previous code (have not pulled the latest yet, but will). The change I made to get around the "Invalid Total" issue was to modify the $item['price'] call so that it pulls the $item['final_price'] instead. The problem I was having was specific to a product getting a price adjustment due to an attribute adding to the product. For example, a product that is listed at say $10 may have two attributes the user can select. Let's say the product is a t-shirt and the attributes are COLOR: values of red, blue, white, purple and the second attribute is SIZE: small, med, lrg, XXL (+$2.50).
So if a user selects the XXL choice, the price for the product is now 12.50, not 10. $item['price'] is pulling the 10 - $item['final_price'] pulls the price with all attributes added (if any).
In my test, this one change got past the Invalid Total issue. To be sure, I then tried adding more than one of any given item to the cart to see how this change would affect the qty vs pricing. No issues were found. However, I have not taken it through to Dwolla yet to see what it presents to me on that side as a consumer. I am waiting on my second account to be completely setup. One for the merchant side, one for the consumer side.
At any rate, these small issues seem to be coming together, and I see a new issue on the order management side of things. In other words, making sure that during the callback from dwolla, the orders table in zen cart is updated so there is an order in the store database to be processed by the store owner/staff. I am digging into this today... but not before I get the new update first! Heck, it may already be in there.
Bookmarks