I’m finishing an ecommerce site on EE1.7.2 with SCM, Paypal and Mark Bowen’s Shopping Cart plugin.
I add more than one item in the shopping cart as an EE logged in member. I hit checkout and am presented with the cart’s contents on Paypal. Everything tallys up: x number of items and one shipping fee for the order. I proceed by logging in with my Paypal Sandbox user account and complete the transaction. Paypal then returns me to the ‘success’ page I set up in EE. The IPN call is intitiated. The purchase is recorded in the SCM’s store and emails are delivered: too many.
I receive as many emails as there were items in the cart. For example if I complete a transaction for 3 items, both the buyer and seller each receive 3 emails, detailing the cost of each individual item.
This wouldn’t be such a big deal were it not that I want to list the shipping cost
{mc_shipping}{payment_gross}that the user has just bought. However doing so results in 3 confusing emails that seem to imply that shipping was paid three times over for the same order. And the item’s cost plus shipping never tally up to the payment total:
{quantity} x "{item_name}"
Item price: ${mc_gross} {mc_currency}
Shipping: ${mc_shipping} {mc_currency}
––––––––––––––––––––––––––––––––––––––––––
Payment total: ${payment_gross} {mc_currency}
––––––––––––––––––––––––––––––––––––––––––I doubt that Mark’s plugin is causing the problem. His plugin only implements an EE hosted cart functionality. The issue instead seems to be the result of Paypal’s IPN transmission and how SCM passes that information to the store’s email templates. Or am I wrong?
Thanks.