You can't add amounts to the shopping cart without adding them as line items, otherwise they won't get calculated properly when the line-items are summed.
Or, use an Order Total module to add the amount to the order during checkout.
You can't add amounts to the shopping cart without adding them as line items, otherwise they won't get calculated properly when the line-items are summed.
Or, use an Order Total module to add the amount to the order during checkout.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
thanks, what is a 'line item'?
and for Order Total module, you mean one that already exists?,
Well, in the strictest sense, it's a product.
So, unless you're adding another "product" to the cart, that's not what you want to bother doing.
No. I envision that your whole thing needs to ultimately manifest as an order-total entry, which means building an order-total module to read all the other data you've generated elsewhere, and then output it during checkout.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
ok, thanks
I really don't know how to do an order total module YET, but for the time being.
i'd like to just do a hack, i'm way behind on this as is!
i'm doing well with these Hazmat session vars and would like to do this, (pseudo code
if(isset($_SESSION['hazMatFee'])) {
$shoppingCartTotal += $_SESSION['hazMatFee']; }
can you tell which file i could add that to? i've been poking around but haven't found it so far
Try this:
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
ok, definitely i will.
thanks!