I'm using Prestashop 1.6.1.18. I want to set up a cart rule to offer a carrier for purchases over 14 products with the same kind of attribute (grams of pigment: 2 grams). I want to display or hide this carrier on the cart page based on this cart rule.
I have created a cart rule, but I cannot do someting like this on the Actions tab.
How do I resolve this? Is there a module for this? or else, how should I modify the code, just to hide/display the carrier based on the cart rule?
Why hide a carrier, even if you offer it based on a cart rule, your customer must chose a carrier to be delivred.
Related
when i started on magento i use to list items including VAT as i am not VAT register. but now i have automated my price and data from a data supply company. and they send prices exclude VAT so i needed a rule to add 20% VAT on top of them.
i have created a rule as told here: http://www.magentocommerce.com/knowledge-base/entry/setting-up-value-added-tax-vat
and gave it Name "Standard VAT" but the problem is my magento is using attribute for tax "Taxable" and not using "VAT Standard"
can you tell me how to make magento use this rule by default? and show the prices include VAT on front end, every where.
there is a solution to select all the item in catalog and edit attribute and select "Standard VAT" but that is not fault proof. we edit new items every day and wont find a out which product is showing VAT and which isnt.
another thing i have done is: changed the setting in "taxable" attribute. but it is still not showing VAT on front end. i have tried to give priority to "standard VAT2 but no use.
you help will be much appreciated. please tell every thing in little details.
Once you have setup your Product Tax Rules which will have all the countries and rates you want to apply assigned to your Standard VAT Product VAT class, you will then to change each product to use this tax class. Go into the product, select prices, and change the VAT class to Standard VAT. Providing your rules are all setup correctly and you have set in the system configuration that your product prices are now setup as excluding tax, then it will automatically apply your tax rules to the products on the frontend.
I am unaware of a Default System Configuration Option for product tax_class_id. Ultimately it is simply an EAV attribute like any other custom product attribute. My deployment always defaults to the first product tax class after None when setting up a new product. What you could do is go into the database manually and set the default value of the tax_class_id attribute to be the ID of the product tax class you want to default to. Something like the following would probably do it;
UPDATE `eav_attribute` SET `default_value` = '2' WHERE `eav_attribute`.`attribute_code`='tax_class_id';
I am looking to remove tax based on a product's selected custom option.
I want to have regular tax rules in place for my products. If, however, a visitor chooses option x from one of the custom options, then tax should not be applied.
I have considered using configurable products for this where the simple product representing the tax free option would not have taxes, but magento calculates taxes based on the parent product for configurable products.
Given this article, I can create custom rules that apply to a products' 'sku-modifier'. Meaning I can add a sku modifier for the custom option, then create a shopping cart rule that has a condition containing that sku-modifier.
The only part left is to create an action that would eliminate tax. I can't simply add a discount that is the same amount as my tax rate since the tax rate varies by region.
I have poked around in \app\code\core\Mage\Rule\Model\Action\Abstract.php but I'm not sure how to go about adding the code that would enable this functionality. Any help would be appreciated.
Thanks.
After searching on Google for quite a while I am going crazy.
My question: Can you configure Magento to require a coupon code to buy specific product?
This is for a promotion my employer is running, basically we want to allow specific customers to buy specific product in our Magento store before any of our other customers. Thank you for your suggestions.
A brief idea I can give here.
Create a backend module, which has own db tables to save linking of products ID to specific coupon, multiple coupon or just a check that coupon is required, depending on your case. From this Module you should be able to define such linking of product to coupon.
Since customer apply a coupon code at cart page, so we will let customer add product into cart. Then edit isDisabled method of Mage_Checkout_Block_Onepage_Link class. where you will check if your quote has any product from the product-coupon linking defined in your module and coupon is not applied yet. Similar thing you can should do for Multishipping method if it is enabled in your Magento. So whenever coupon coupon code will be applied page will refresh and button will get enabled.
Same check you will need to put in indexAction of Mage_Checkout_OnepageController.
I have created a warranty as a product in magento which has 2 custom checkbox options. This product (warranty) does not have any specific page so I would like to display both the custom options of a warranty products as checkbox when selected one of the custom option the product (warranty) also should get added to the cart. I want to display this addon product (warranty) only when the cart amount is larger then $2000. Is there any way to achieve this function without having to create a module. I have attached a screenshot below to illustrate the custom option.
without having to create a module.
No, there is not way to achieve this functionality without programming a custom module.
i want to look at the code in magento where the shopping cart rules are checked and applied to the items in the cart before the checkout, i can find in the templates where the information is displayed but i can't find where it is checked if the cart rule should be applied
EDIT 1: by "shopping cart rules are checked" i mean "shopping cart price rules are checked" (maybe there 2 different types of shopping cart rules), i'm looking for the code that goes
"these 3 items that are in the cart meet the conditions of the shopping cart rule with the id of 15, i know need to update the item information as described by the actions provided that the items meet the conditions in the actions"
In ver. 1.4.2.0 the main logic about aplying sales rules is in Mage_SalesRule_Model_Validator located in /app/code/core/Mage/SalesRule/Model/Validator.php
Also if you look for Mage::getModel('salesrule/validator') or Mage::getSingleton('salesrule/validator') statements in /app/code/ directory you can see where the rule processing is used:
/app/code/core/Mage/SalesRule/Model/Observer.php
/app/code/core/Mage/SalesRule/Model/Quote/Discount.php
/app/code/core/Mage/SalesRule/Model/Quote/Freeshipping.php
In the following module: Mage_Salesrule, specifically within app/code/core/Mage/SalesRule/Model/Rule.php