Search the Community
Showing results for tags 'cartRule'.
-
Hey devs, Is there is any way to get CartRule (voucher) restrictions listed in PHP? I wan't to see for example for which manufacturers code is available or maybe for which categories it is active only. How to get this informations in PHP? I tried with CartRule::getCartsRuleByCode('CODE') but it j...
- 3 replies
-
- cartrule
- restrictions
-
(and 1 more)
Tagged with:
-
The following script will create a new cart rule that can for instance be used for coupon code (voucher). This is drawn from cart rule object model definition (classes/CartRule.php L78). $coupon = new Discount(); //put here the coupon name + translations //ex: if your website is in french (id...
-
Hi guys, * The problem is the very slow ajax 9 times out of 10 when trying to add a cart rule by selected products in the back office -> Price rules -> Cart rules -> Conditions (tab). * When i i go to the 'Conditions tab' and next to 'Restrictions' i mark 'Product selection' i am able to s...
-
- cartrule
- price rule
-
(and 7 more)
Tagged with:
-
In parentOrderController (Front controller) around line 100 in my file, I have some error message $this->errors[] = Tools::displayError('You must enter a voucher code.'); $this->errors[] = Tools::displayError('The voucher code is invalid.'); My website is in English and French but I cannot fi...
-
Hello! Does someone know how to add group user restriction to vouchers? I guess i should use 'group_restriction' but it is boolean and i want to restric customer group with id = 4 for example. 'group_restriction' => array('type' => self::TYPE_BOOL,...
-
Hey I have some products that I would like not to be considered in the cart rule. More specific I would like that if they buy one of the excluded products it don’t count in the order total used to calculate discounts, free shipping ect. I have tried to ad following code to the cartrule.php and...
-
Hi , I have been trying to create an order with some cart_rules discount with webservices. I am unable to as I dont see cart_rule getting appiled either in cart or order. I have my site running on prestashop webserices. I explored I saw order_discount I wanted to know how should I apply th...
-
I´m testing my new store, and I get the followins errors when I try using the payment method cash on delivery. Can someone help me? I´m used to PHP. [PrestaShopException]Property OrderCartRule->name is empty at line 872 in file classes/ObjectModel.php 867. 868. $message = $this->validateFiel...
-
Hello, Im having a small issue when I'm trying to add a manual order to a customer from the back end. When I press the button to place the order to the user I'm getting this error message Fatal error: Call to a member function getProducts() on a non-object in /public_html/classes/CartRule.php o...
- 5 replies
-
- getProducts()
- CartRule
-
(and 1 more)
Tagged with:
-
I have a few discounts (6% after 6000, 8% after 8000 etc) And I have set of gifts: 1 gift after 1000, 2 gifts after 2000, ..., 8 gifts after 8000 etc I set priority of cart rules for discount, so it should be applied first, before gifts But it's not work I have order cost 7430 and discount...
-
Muy buenas, A ver si algún experto de prestashop me pudiera echar una mano. Estoy modificando el módulo Referralsystem ( apadrinamiento de clientes ) y Loyalty ( fidelización de los clientes ), para que los códigos de cupón generados, no sean compatibles con otros 3 códigos de cupón que teng...
- 1 reply
-
- referral system
- apadrinamiento
-
(and 1 more)
Tagged with:
-
Hello, I am trying to modify referralprogram to make the "cartRules" created by this module, only compatible with some cartRules... These cartRules are created by PHP, but I don't find the way / method, to tell to the created cartRule, that it is only compatible with certain cartRules.......
- 1 reply
-
- cartrule
- referralprogram
-
(and 1 more)
Tagged with: