On this weblog, we’ll learn to modify the Cart Presenter values.
So let’s see collectively how to do this with PrestaShop.
Generally, we have to modify the cart presenter based on our wants.
Due to the obtainable hooks, Prestashop provides a hook actionPresentCart
We’ll register this hook within the module.
$this->registerHook( [ 'actionPresentCart', ] );
Now see under, The shopper can add a promo code to get a reduction
We will take away this apply promo code part utilizing the PresentCart hook, see the under code
public operate hookActionPresentCart($params) { $params['presentedCart']['vouchers']['allowed'] = 0; }
We now have overridden the voucher-allowed worth and the client cannot apply the vouchers, see under
We will additionally override the Minimal buy complete required to validate the order.
Suppose the minimal buy situation is 50 INR then the Buyer cannot place an order till the cart complete has reached 50 INR and the client will get the under display
Now, we’ll add the under line code to override it within the PresentCart hook
$params['presentedCart']['minimalPurchase'] = 0.0; $params['presentedCart']['minimalPurchaseRequired'] = '';
You will note, that the minimal buy situation is eliminated.
Like this, we will modify the all under values of Cart Presenter based on our wants.
That’s all about this weblog. Hope it’ll provide help to.
If you’re going through any points or doubts within the above course of, please be at liberty to contact us within the remark part.
We’d be pleased to assist.
Additionally, you may discover our PrestaShop Improvement Providers & a wide variety of high quality PrestaShop Modules.
For any doubt contact us at [email protected].
On this weblog, we’ll learn to modify the Cart Presenter values.
So let’s see collectively how to do this with PrestaShop.
Generally, we have to modify the cart presenter based on our wants.
Due to the obtainable hooks, Prestashop provides a hook actionPresentCart
We’ll register this hook within the module.
$this->registerHook( [ 'actionPresentCart', ] );
Now see under, The shopper can add a promo code to get a reduction
We will take away this apply promo code part utilizing the PresentCart hook, see the under code
public operate hookActionPresentCart($params) { $params['presentedCart']['vouchers']['allowed'] = 0; }
We now have overridden the voucher-allowed worth and the client cannot apply the vouchers, see under
We will additionally override the Minimal buy complete required to validate the order.
Suppose the minimal buy situation is 50 INR then the Buyer cannot place an order till the cart complete has reached 50 INR and the client will get the under display
Now, we’ll add the under line code to override it within the PresentCart hook
$params['presentedCart']['minimalPurchase'] = 0.0; $params['presentedCart']['minimalPurchaseRequired'] = '';
You will note, that the minimal buy situation is eliminated.
Like this, we will modify the all under values of Cart Presenter based on our wants.
That’s all about this weblog. Hope it’ll provide help to.
If you’re going through any points or doubts within the above course of, please be at liberty to contact us within the remark part.
We’d be pleased to assist.
Additionally, you may discover our PrestaShop Improvement Providers & a wide variety of high quality PrestaShop Modules.
For any doubt contact us at [email protected].