We're using Magento enterprise and I am fairly new to Magento in general. But my current goal is to set custom values (i.e. custom tax amount, promotion amount...etc.) in the cart and have them checkout with these custom values. I am setting these values by using checkout/session object.
For example:
$cart = Mage::getSingleton('checkout/session')->getQuote(); $cart->setPromotionAmount($amount);
When I look at the checkout/session object
print_r($cart->getData());
Everything looks to be set properly. But when I proceed to checkout. It loses these values and defaults to the default calculations that Magento performs. My assumption was that if I set my custom values in this checkout/session. It would flow through the normal checkout process. Checking out with these new values. (i.e. promotional amount, custom tax amount) This isn't the case. Can anyone give me advice as to how to accomplish this or suggestions? I am beginning to realize that I don't understand the full checkout process and would love any helpful links or debugging tips. Greatly appreciate any help or suggestions.
$cart->collectTotals()
function to make sure everything is properly calculated. – Franklin P Strube