We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can I add a discount separately, for each product added to the cart?
For example like this:$cart->setDiscount($cartItem->itemHash, $product->Discount)
$cart->setDiscount($cartItem->itemHash, $product->Discount)
For example, I have a product that now has a 10% discount.
In the general field there is a discount.
Also, display a discount for each item in the basket (both a discount for the product itself and a discount with the applied coupon).
Thanks to.
The text was updated successfully, but these errors were encountered:
You can add a coupon for each item , and for the entire cart.
Whole Cart
$fixedCoupon = new LukePOLO\LaraCart\Coupons\Fixed('500 OFF', 500); LaraCart::addCoupon($fixedCoupon);
Per Item
$fixedCoupon = new LukePOLO\LaraCart\Coupons\Fixed('10OFF', 10); $fixedCoupon->setDiscountOnItem($item);
Sorry, something went wrong.
No branches or pull requests
Can I add a discount separately, for each product added to the cart?
For example like this:
$cart->setDiscount($cartItem->itemHash, $product->Discount)
For example, I have a product that now has a 10% discount.
In the general field there is a discount.
Also, display a discount for each item in the basket (both a discount for the product itself and a discount with the applied coupon).
Thanks to.
The text was updated successfully, but these errors were encountered: