Mini Tutorial: Store/Website Redirect Based On GeoIP in Magento March 26, 2013 by Allen Have you ever wanted to redirect your customers to the correct store site based on their GeoIP? In this tutorial, I’ll show you the basic requirement...
Latest posts
Customer Credit Points
http://www.magentocommerce.com/magento-connect/customer-credit-points.html
import large db mysqlsqldump
https://www.lullabot.com/articles/importexport-large-mysql-databases
export and import product one to other server
http://www.lomeit.info/export-et-import-des-produits-et-catgories-magento/
Programmatically assign products to configurable
Programmatically assign products to configurable Version 1, last updated by lbernard at 2010-12-29 <?php define('MAGENTO', realpath('/var/www/magento')); ini_set('memory_limit', '128M'); require_once MAGENTO . '/app/Mage.php'; Mage::app(); $title = 'Test Video'; $description = 'Test Video'; $bodyContent='This is a test video'; $itemNum='testVideo2.1'; $price='129.95'; $product = Mage::getModel('catalog/product'); $product->setTypeId('configurable'); // $product->setTaxClassId(0); //none $product->setWebsiteIds(array(1)); // store id $product->setAttributeSetId(26); //Videos Attribute Set Id /* Media Format Values <option value="6">dvd</option>7 <option value="5">vhs</option> */ $product->setSku($itemNum); $product->setName($title); $product->setDescription($description); $product->setInDepth($bodyContent); $product->setPrice($price); $product->setShortDescription(ereg_replace("n","",$description)); $product->setWeight(0); $product->setStatus(1); //enabled $product->setVisibilty(4); //catalog and search...
magento contact form handle
<contacts_index_index translate="label"> <label>Contact Us Form</label> <reference name="root"> <action method="setTemplate"><template>page/2columns-right.phtml</template></action> <action method="setHeaderTitle" translate="title" module="contacts"><title>Contact Us</title></action> </reference> <reference name="content"> <block type="core/template" name="contactForm" template="contacts/form.phtml"/> </reference> </contacts_index_index>
Magento – Missing “Header” & “Footer” tabs from Config->Design
If you are wanting to make changes to the header or footer sections in Magento (for example, change the copyright notice or change the logo) then the place to do this is in Configuration->General->Design and then under the “Header” and...
Password Protection with htaccess
Password Protection with htaccess With .htaccess it is very easy to password protect a folder or directory. The method is calledhtaccess password protection or htaccess authentication, and works by uploading two files called .htaccess and .htpasswd in the directory you...
adding a block in
<checkout_cart_index> <reference name="checkout.cart"> <block type="mdeprojects_discount/remainder" name="mdeprojects.remainder" as="mdeprojects.remainder" template="discount/remainder.phtml" /> </reference> </checkout_cart_index>
Call to undefined method Mage_Core_Model_Locale::getDateFormatWithLongYear() in /home/…/public_html/…/app/code/core/Mage/Adminhtml/Block/Widget/Form.php on line 207
Probleme Call to undefined method Mage_Core_Model_Locale::getDateFormatWithLongYear() in /home/.../public_html/.../app/code/core/Mage/Adminhtml/Block/Widget/Form.php on line 207 Solutions I fixed by copying /app/code/core/Mage/Adminhtml/Block/Widget/Form.php to /app/code/local/Mage/Adminhtml/Block/Widget/Form.php Changing line 207 to read: $element->setFormat(Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT));