Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 12293

Question related to the shopping cart: adding/removing products, shoping cart price rules, the appearance of the shopping cart page.

4 votes

cart shipping & tax automatic estimation - one country

You can: 1) copy file app\code\core\Mage\Checkout\Block\Cart\Shipping.php in the app\code\local\Mage\Checkout\Block\Cart\Shipping.php 2) define method protected function _getQuote() { return Mage … ::getSingleton('checkout/cart')->getQuote(); } 3) in the function getEstimateRates add $this->_getQuote()->getShippingAddress() ->setCountryId($country) ->setCity($city) ->setPostcode …
Amasty's user avatar
  • 6,518
0 votes
Accepted

Cart rule works but one built similar doesn't

In the second rule you apply discount for given products only (listed in the "Apply the rule only ...") However there is an error. The condition is ALL. So a product should have SKU PUPGP... AND P …
Amasty's user avatar
  • 6,518
3 votes
Accepted

Custom product choices with shopping cart rules

Magento does not take into account custom options when calculate shopping cart rules unless you have an extension for this. …
Amasty's user avatar
  • 6,518
1 vote
Accepted

BOGOF not working on magento store

Select all groups with ctrl + mouse click. It's multiselect field.
Amasty's user avatar
  • 6,518
2 votes

MOQ For TOTAL Products In The Cart

Use event catalog_product_type_prepare_full_options `class Company_Example_Model_Observer { public function catalogProductTypePrepare($observer) { $quote = Mage::getSingleton('checkou …
Amasty's user avatar
  • 6,518
1 vote

Event to add product attribute to quote item, just once and not on sales_quote_item_set_product

Set this attribute as "Used for Promo Rules" = "Yes" at the attribute edit page admin > attributes > manage attributes and it will be available in the quote.
Amasty's user avatar
  • 6,518
0 votes

How to determine upsell products in shopping cart

You have to specify upsell, cross-sell and related products manually when create or edit products. See corresponding tabs in admin > catalog > products. There are also some modules at the magento co …
Amasty's user avatar
  • 6,518
1 vote

Custom redirect Add to Cart Magento

Use event catalog_product_type_prepare_full_options `class Company_Example_Model_Observer { public function catalogProductTypePrepare($observer) { $quote = Mage::getSingleton('checkou …
Amasty's user avatar
  • 6,518
1 vote
Accepted

How can you display individual discounts in the cart?

This is how we did this in our module: 1) Add an observer, like this: <salesrule_validator_process> <observers> <amasty_rules_model_observer> <type>singleto …
Amasty's user avatar
  • 6,518
3 votes

How to modify the Discount caption in shopping cart

To create beautiful discount breakdown we: 1. changed the template app/design/frontend/base/default/template/checkout/total/default.phtml for the block Mage_Checkout_Block_Total_Default via rewrite; 2 …
Amasty's user avatar
  • 6,518
1 vote

Magento 1.8 add to cart Querystring

You can copy the code from the build in Wishlist module, that stores the $buyRequest variable. Actually it contains the custom options from the post/get request. See app\code\core\Mage\Wishlist\contr …
Amasty's user avatar
  • 6,518
1 vote

Correct way to execute PHP in the background

Then, if he clicks "Add", it generates the ajax call that does the cart related job, and returns some status. …
Amasty's user avatar
  • 6,518
3 votes

How to check if a product is already in the cart

See app\code\core\Mage\Checkout\Block\Cart\Crosssell.php: protected function _getCartProductIds() { $ids = $this->getData('_cart_product_ids'); if (is_null($ids)) { $ids = array(); …
Amasty's user avatar
  • 6,518
6 votes
2 answers
6k views

How to determine if an item has discount from catalog price rule

Any ideas how to make sure the item in the cart / quote was affected by CATALOG price rule (not shopping cart rule)? …
Amasty's user avatar
  • 6,518