2 replies [Last post]
McAden's picture
Offline
Joined: 04/20/2010
Juice: 34
Was this information Helpful?

Is there a hook to

A) Change the display of a price?
B) Add a dummy item to a cart (ex: add an 'item' indicating a free bonus has been added)?

agrah's picture
Offline
Joined: 12/10/2011
Juice: 22
Re: Price Hook

I'm also looking for a solution for A) Change the display of a price. I'm using Ubercart 3.

albany's picture
Offline
Joined: 12/08/2011
Juice: 25
Re: Price Hook

How do you want to change the price?

Have you looked at:-

// setup the themeing to return the correct formatted ubercart price e.g. £70.00 or $70.00
$context = array(
        'revision' => 'formatted',
        'type' => 'amount',
        );

// get the formatted ubercart minimum order value
$acs_min_order_value = uc_price(UC_ACSPAY4LATER_MINIMUM_ORDER_VALUE, $context);

So, in essence have a look at uc_price - assuming i understand how uc_price works Eye-wink

Hope this helps