Search the Community
Showing results for tags 'restrictions'.
-
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 just gives me a simple informations about voucher. How about this list of selected ie: manufacturers? Maybe some SQL query?
- 3 replies
-
- cartrule
- restrictions
-
(and 1 more)
Tagged with:
-
Hi, I sell custom paints that cannot be returned and have to be paid for in advance. However, I also want to allow for cash on delivery payments. How do I restrict payment methods, Cash on delivery, (preferably a free module/code) when these products (they're from one brand/category if that makes it easier) are in the cart?
- 1 reply
-
- free modules
- payment
-
(and 2 more)
Tagged with:
-
Hello, Under Prestashop 1.5.4, I have three carriers and FREE SHIPPING over $99. I need to disable two carriers and just enable one carrier, as I can't ship for free in express. So, I just edited the Cart.php with the following code (note that this only reflects one carrier): // Free fees $disable_freeshipping = array('7'); $free_fees_price = 0; if (isset($configuration['PS_SHIPPING_FREE_PRICE'])) $free_fees_price = Tools::convertPrice((float)$configuration['PS_SHIPPING_FREE_PRICE'], Currency::getCurrencyInstance((int)$this->id_currency)); $orderTotalwithDiscounts = $this->getOrderTotal(true, Cart::BOTH_WITHOUT_SHIPPING, null, null, false); if ($orderTotalwithDiscounts >= (float)($free_fees_price) && (float)($free_fees_price) > 0 && !in_array($id_carrier, $disable_freeshipping)) { Cache::store($cache_id, $shipping_cost); return $shipping_cost; } if (isset($configuration['PS_SHIPPING_FREE_WEIGHT']) && $this->getTotalWeight() >= (float)$configuration['PS_SHIPPING_FREE_WEIGHT'] && (float)$configuration['PS_SHIPPING_FREE_WEIGHT'] > 0 && !in_array($id_carrier, $disable_freeshipping)) { Cache::store($cache_id, $shipping_cost); return $shipping_cost; } However, it is messing everything up and now I got either a blank page or can't add any product to cart. Could you help me figure out the right code under Prestashop 1.5.4 so that I can disable two carriers for free shipping? Thank you in advance!
-
webservice Transfer special prices conditions via webservice
aidiez posted a topic in Core developers
Hi, I'm trying to find a solution to tranfer special prices and promotions via webservice. But in the API, the fields where you specify restrictions for a special price rule or a cart rule such as country, category, produtc, etc. do not exist. Does anyone know how I can transfer those restictions in the rules method? Or something that could help? Thanks in advance!!- 1 reply
-
- 1
-
- restrictions
- conditions
- (and 8 more)
-
Hello, I trying to resolve problem with not showing payment method for sofort in checkout. When I have overriding on in performance The checkout page shows without sofort When overriding off In checkout page - sofort appears I have active sofort in payment restriction for all countries. I tryied to clear all caches by ftp and delete class_index.php but not works. Please for help if you know what can cause the problem. thank you
- 2 replies
-
- sofort
- performance
-
(and 8 more)
Tagged with:
-
Hello, can anyone shed light on how i add gift wrapping to 'cart rules - restrictions' so that when pressed, I can then offer a % discount on the whole shopping cart? I would like the back end to have Gift Wrapping alongside other restrictions. I would really really appreciate some help. Thanks to anyone that does! Kindest regards Claire
-
- gift wrap
- cart rules
-
(and 1 more)
Tagged with:
-
HI I would like to know is there away to restrict certain product being sold outside the UK. i.e. We are selling Sprays on our website but because they are aerosol they can not be shipped by air. So we cant use our international delivery company to send the item. hence why we need it to restricted when going through the shopping cart that it appears that it can not be sent to them if there address is an international one. ..... I have already tried changing the shipping options on the item already by selecting only uk carriers but when we choose stuff which can be sent outside the uk it doesn't allow any item it just says "carriers cannot be found" Any help will be greatly appreciated
-
Hi, I would like to allow some features in backoffice just for superadmin. More precise in modules tab. I set everything in permissions tab, but there is not such options like disable search and module categories. I want user to see just few allowed modules, but I want be able to add, change etc modules in superadmn mode. Now I have solution just to disable theese in both salesman and superadmin modes. Here is picture for better visualisation:
- 5 replies
-
- superadmin
- backoffice
-
(and 1 more)
Tagged with:
-
Hello, I just installed PrestaShop for the first time and I'm trying to configure the payment options. We installed the modules for PayPal and for Authorize.netAIM. In the "Countries restrictions" list in the Payment section of the admin panel, there are check-boxes for all the countries in the PayPal column, but in the Authorize.net column there are no check-boxes for any countries except the United States. Instead of a check-box, there is just a dash next to each country in that column. How to we make all the check-boxes available in the Authorize.net column so we can put a check in the boxes for every country? We have customers around the world and we need the Authorize.net payment option to be available for all of the customers, not just the customers in the U.S. Thanks in advance for any help!
- 1 reply
-
- Authorize.net
- countries
-
(and 1 more)
Tagged with:
-
Bonjour à tous, Je viens vers la communauté pour ce problème de page de paiment qui ne veut pas se mettre à jour. Quand je modifie n'importe quelle restritions sur cette page, je clique sur enregistrer, la page se recharge et reviens à l'état initial. Si quelqu'un à la moindre piste concernant ce problème je suis preneur. 'Voila' avait eu le meme probleme avec la restrictions pays, mais toujours pas de soucis http://www.prestashop.com/forums/topic/164464-impossible-de-modifier-les-modes-de-paiements-acceptes-par-pays/
-
- backoffice
- paiement
-
(and 4 more)
Tagged with:
-
I am setting up a store for a winery / orchard. They sell wine and jams & jellies. They are only allowed to ship wine within Virginia, but they can ship the jams & jellies anywhere. Is there any way to configure shipping for the wine to only ship to Virginia and allow all the other products to ship anywhere in the US? I appreciate any help or guidance with this one.