I have a website that only sells one product. It has a $0.00 Price.
I have this custom form when sent, it will give the product id (e.g.) to the uc_cart_add_item
uc_cart_add_item($nid, $qty = 1, $data = NULL, $cid = NULL, $msg = TRUE, $check_redirect = TRUE, $rebuild = TRUE);
Well, technically it goes to the cart with a price of $0.00.
So the question here is, how can I alter the product price before sending it to the cart?
I saw this function from other website that this one alters the product price
Unfortunately, it doesn't seem to work or something.
I've searched for some questions
Even this one, but it's on Drupal Commerce not on Ubercart
Any help would be appreciated.