Jump to content

Search the Community

Showing results for tags 'cartRule'.

  • Search By Tags

    • cartrule ×
    Type tags separated by commas.
  • Search By Author

Content Type



Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Found 15 results

  1. How do I limit a cart rule to the number of customer's orders? In other words, how do I create a voucher code for customers who have no orders yet? I am thinking like this: 1. create a module which adds a check mark to cart rule form with the title of "usable for first orders only" 2. fi...
  2. 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. 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...
  4. 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...
  5. 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...
  6. 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,...
  7. 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...
  8. 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...
  9. 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...
  10. Bonjour, je constate pas mal d'incohérence pour la gestion des règles de panier. La première : je créé des bons de réduction non cumulable entre eux et sans code (donc ajout automatique) . Chacun offre un produit selon le montant total du panier TTC, hors frais de port. à partir de...
  11. 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...
  12. Bonjour à tous, Avant tout, ma version de presta est la 1.5. J'ai un problème avec le règles paniers : j'aimerai qu'elles soient non cumulable entre elle mais par défaut, je sais qu'on peut le changer à la main chaque règles pour qu'elle soit non cumulable. Cependant je ne trouve pas ç...
  13. 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...
  14. 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...
  15. 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.......
×
×
  • Create New...