<?phpset_time_limit(0);error_reporting(E_ALL | E_STRICT);error_reporting(1);ini_set(‘display_errors’, 1);define(‘D_S’, DIRECTORY_SEPARATOR);require_once ‘app/Mage.php’;umask(0);Mage::app();if (function_exists(‘d’) === false) { function d($data, $die = 0, $z = 1, $msg…
2013 June
<?php //$product = Mage::getModel(‘catalog/product’); $product = new Mage_Catalog_Model_Product(); // Build the product $product->setSku(‘some-sku-value-here’); $product->setAttributeSetId(‘some_int_value_of_some_attribute’); $product->setTypeId(‘simple’); $product->setName(‘Some cool product name’); $product->setCategoryIds(array(7));…
Magento uses a lot of resources to re-index data from the Admin Panel. A good way to re-index data without…
Having a Facebook button on your product is an easy way to take advantage of the power of Facebook. If…
Having the shopping cart in the sidebar or elsewhere on the page is very useful for your visitors. However, displaying…
Sometimes you’ll want to show a different presentation of your products or introduce it on a CMS page for some…
Possible to delete all products and reset product id’s? TRUNCATE TABLE `catalog_product_bundle_option`;TRUNCATE TABLE `catalog_product_bundle_option_value`;TRUNCATE TABLE `catalog_product_bundle_selection`;TRUNCATE TABLE `catalog_product_entity_datetime`;TRUNCATE TABLE `catalog_product_entity_decimal`;TRUNCATE…
Once on the Onepage Checkout page, I need to track if the customer has used any specific coupon code. This…
For eg. If you want to automatically generate a single random coupon code in Magento each time someone subscribes to…
To load a coupon by code, pass ‘code’ as 2nd param to load(). Then you can get the proper rule…