Jump to content

Prestashop 1.6 - Get Refund Value based on Selection in Order Page


PrestashopEnthu

Recommended Posts

I am looking for a solution to retrieve/grab refund values in order page. I am creating an automatic refund with this value.

Currently, I am not able to grab the price as it is returning 0.

enter image description here

enter image description here

$order_detail = new OrderDetail((int) $params['id_order_detail']);
$products = $this->context->cart->getProducts(true);
$cancel_quantity = Tools::getValue('cancelQuantity');

$amount = (float) ($products[(int) $order_detail->id]['product_price_wt'] * (int) $cancel_quantity[(int) $order_detail->id]);

After clicking on the checkbox, I will pass the value to refund in another process.

Can anybody advise how can I pass the values based on checkboxes selected?

Any help is greatly appreciated. Thank you.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...