<?php $fieldset->addField(‘country’, ‘select’, array( ‘name’ => ‘country’, ‘label’ => ‘Country’, ‘values’ => Mage::getModel (‘adminhtml/system_config_source_country’) ->toOptionArray(), ));?>
4x Masonry Grid
<?php$_countries= Mage::getResourceModel(‘directory/country_collection’) ->loadData() ->toOptionArray(false) ?><?php if (count($_countries) > 0): ?> <select name=”country” id=”country”> <option value=””>– Please Select –</option> <?php foreach($_countries as…
<?php$countryList = Mage::getResourceModel (‘directory/country_collection’) ->loadData() ->toOptionArray(false); echo ‘<pre>’; print_r( $countryList); exit(‘</pre>’);?>
<div id=”leftnav”><?php $helper = $this->helper(‘catalog/category’) ?><?php $categories = $this->getStoreCategories() ?><?php if (count($categories) > 0): ?><ul id=”leftnav-tree” class=”level0″><?php foreach($categories as $category):…
<?php// $_GET$productId = Mage::app()->getRequest()->getParam(‘product_id’);// The second parameter to getParam allows you to// set a default value //which is returned if…
<?php echo Zend_Debug::dump($thing_to_debug, ‘debug’); ?>
<?php echo Mage::helper(‘core/url’)->getCurrentUrl(); ?>
<?php$rootCategoryId = Mage::app()->getStore()->getRootCategoryId();$_category = Mage::getModel(‘catalog/category’) ->load($rootCategoryId);// You can then get all of the top level categories using:$_subcategories = $_category->getChildrenCategories();?>
# Mass UnexcludeUPDATE`catalog_product_entity_media_gallery_value` SET `disabled` = ‘0’ WHERE `disabled` = ‘1’;# Mass ExcludeUPDATE`catalog_product_entity_media_gallery_value` SET `disabled` = ‘1’ WHERE `disabled` =…
<?php $logged_in = Mage::getSingleton(‘customer/session’) ->isLoggedIn(); // (boolean) ?>
<?phpset_time_limit(0);ini_set(‘memory_limit’,’1024M’);require_once ‘../../app/Mage.php’;Mage::app(); //read data from csv file$row = 1; $cat_arr = array();if (($handle = fopen(“category.csv”, “r”)) !== FALSE){ while (($data…
<?php// input is $_product and result is iterating child products$conf = Mage::getModel(‘catalog/product_type_configurable’) ->setProduct($_product);$col = $conf->getUsedProductCollection()->addAttributeToSelect(‘*’)->addFilterByRequiredOptions();foreach($col as $simple_product){ var_dump($simple_product->getId());}?>
<?php$_category = Mage::getModel(‘catalog/category’)->load(89);$_category_url = $_category->getUrl();?>
<?php$_product_1 = Mage::getModel(‘catalog/product’)->load(12);$_product_2 = Mage::getModel(‘catalog/product’)->loadByAttribute(‘sku’,’cordoba-classic-6-String-guitar’);?>
UPDATEcustomer_entity,newsletter_subscriberSETcustomer_entity.`group_id` = 5WHEREcustomer_entity.`entity_id` = newsletter_subscriber.`customer_id`ANDnewsletter_subscriber.`subscriber_status` = 1;
<?php$_category = Mage::getModel(‘catalog/category’)->load(47);$_productCollection = $_category->getProductCollection();if($_productCollection->count()) { foreach( $_productCollection as $_product ): echo $_product->getProductUrl(); echo $this->getPriceHtml($_product, true); echo $this->htmlEscape($_product->getName()); endforeach;}?>
First step is to include j query to your magento website.To achieve this just add a new line add js…
To enable magento path hint for your magento website first login into your admin section i.e magento backend now go…
Magento 1.5 has come up with anew feature for categories and made category design management a lot more easier now when you…
Steps to Follow to add new Product:- 1) First login into Magento admin section 2) Now from top menu go…
Most of the time we want to access Store Contact info at different places of our magento site to do…
Magento go is advnce version of software as a service(SaaS) it is a platform as a service (Paas) Magento is…
Go System->Configuration->Google API->Google Checkout Enable Google Checkout and other configurations set details about your google checkout like merchant id, merchant…
Mastering Regular Expressions quickly covers the basics of regular-expression syntax, then delves into the mechanics of expression-processing, common pitfalls, performance…