Magento Checkout Success page testing

You may find yourself wanting to edit your checkout success page, putting an order through every time you want to test your changes can get a bit repetitive. To save doing this every time the best thing to do is stop Magento clearing the session. To do so go to: /app/code/core/Mage/Checkout/controllers/OnepageController.php Find: $session->clear(); Replace it […]

Magento unique coupon code for emails

  I needed to be able to create a unique coupon code that would be programmatically created and that could be inserted into emails. In this case I inserted the below code into a function that sends emails Function: public function sendEmail($emailAddress, $store, $customer) Code: $randomString = substr(str_shuffle(“abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ”), 0, 1) . substr(str_shuffle(“0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ”), 0, 10); $model = Mage::getModel(‘salesrule/rule’); $model->setName(‘Refer-a-Friend’); […]

Magento Firecheckout and Aheadworks Loyalty and Rewards

To get Magento Firecheckout to work correctly with Aheadworks Loyalty and Rewards module you have to make the following changes to the code to ensure that it updates the totals. 1. Open /app/code/local/AW/Points/Block/Checkout/Onepage/Payment/Methods.php 2. Find the following lines (~44-46): $this->setTemplate(‘aw_points/checkout/onepage/payment/’ . $magentoVersionTag . ‘/methods.phtml’); return parent::_toHtml(); } 3. Add our code between them: if (‘firecheckout’ […]

Notice: ob_end_flush(): failed to send buffer of zlib output compression (0) in /home/wwwwebam/public_html/blog/wp-includes/functions.php on line 4339