Active
Project:
Ubercart
Version:
8.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
30 Sep 2009 at 09:01 UTC
Updated:
30 May 2015 at 23:24 UTC
Jump to comment: Most recent
Hi,
Just been picking through trying to work out if there's a uc_cart_get_total($cid) function to get the current cart contents subtotal. Seems there isn't, but it would be useful. At the moment the math is done in theme functions, which feels wrong. IMHO it should be a function that calculates the total of all the items presently in the cart. Any thoughts?
Comments
Comment #1
greg.harveyTitle makes it sound like a duplicate of the already-committed total ITEMS patch. To be clear, this is about subtotal. Title altered.
Comment #2
rszrama commentedThis is related to #508888: Add API func for the total cart qty... dunno why I didn't knock it out at the same time. :-/
Comment #3
tr commentedNew features should go into 7.x-3.x first at this point. I'd like to see the whole cart API reviewed for missing and redundant functions, and get some more tests for these.
Comment #4
tr commented