This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * add to cart from url, useful for email promos | |
| * based on http://www.magentocommerce.com/wiki/4_-_themes_and_template_customization/catalog/adding_a_product_to_the_cart_via_querystring | |
| * which no longer works because of session validation of form_key | |
| * usage: link to add.php?product=[id]&qty=[qty] | |
| */ | |
| require 'app/Mage.php'; | |
| Mage::app(); |