magento
How to add free shipping notice on product listing and product view in Magento
Posted Tue, 04/20/2010 - 3:30pm
NOTE: This tutorial assumes you're using an extension that uses the "special_shipping_group" attribute... But you can also use this tutorial to output any attribute you'd like into the product view and product listing.
Ok... Say you're using the "special_shipping_group" attribute, to specify which products should receive free shipping.
You would, for example, add an attribute called: FREE SHIPPING
Make sure you also set this visible under product listing, and product view, or else it won't display.
Magento Featured Products Listing on Home Page
Posted Thu, 03/25/2010 - 3:38pm
There are a few articles and extensions I've come across showing how to add "Featured Products" on the home page of Magento. The problem is that none that I have read, seem to fully tackle the issue of being compatible with Magento 1.4.x (Magento 1.4.0.1 at the time of this writing) AND fully using Magento's features while being fairly easy to implement (i.e. without adding complicated, unnecessary,redundant or outdated code)
Magento 1.4 toolbar error (How to properly upgrade to Magento 1.4)
Posted Thu, 03/04/2010 - 12:55pm
In case you upgraded to magento 1.4, and noticed that your category listings that require pagination (page 1, 2, 3) no longer show, here's the fix...
1. copy the new 1.4 toolbar.phtml from
app/design/frontend/base/default/template/catalog/product/list/toolbar.phtml
and paste it into your custom theme
app/design/frontend/*/YOURTHEME/template/catalog/product/list/toolbar.phtml
(note: make sure you put this into your currently used theme directory. If you installed a theme via Admin-->System-->Design then get the name of the theme from there)
2. edit your app/design/frontend/*/YOURTHEME/layout/catalog.xml
Find:
<block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">If you can't connect to magento admin after upgrade
Posted Wed, 03/03/2010 - 12:42pm
In case you upgraded to magento 1.4 and can't connect to admin section (you get an error)...
Then do the following:
- SSH into your magento install directory.
- remove all files from ./app/code/core/Zend/Cache/
rm -rf app/code/core/Zend/Cache/*How to remove Yoast MetaRobots from Magento
Posted Wed, 03/03/2010 - 11:26am
In case you want to upgrade to magento 1.4, and have Yoast MetaRobots installed, you'll have to uninstall it first, since it's not compatible with 1.4.
Here's how:
1. uninstall it from magento connect
2. Remove the config xml file from /app/etc/modules/Yoast_Metarobots.xml
3. Remove the module files and directories from /app/code/community/yoast/Metarobots/
4.Clear your cache
SSH into your root magento directory and:
rm -rf var/cache/*5. run this SQL query (easily done in phpMyAdmin)
DELETE FROM `eav_attribute` WHERE `eav_attribute`.`attribute_code` = 'meta_robots';
DELETE FROM `core_resource` WHERE CODE = 'metarobots_setup'; You should be good to go after this...
Magento 1.4 product-name quotes are converted to html and then escaped
Posted Tue, 02/23/2010 - 11:43am
After upgrading from magento 1.3 to 1.4, if your product headings used quotes " " or ampersands & , then magento may convert these into HTML and then escape that HTML counterparts hence showing e.g.:
"Thermo Balance" Tub & Shower Valve Rough In Valve
like:
"Thermo Balance" Tub & Shower Valve Rough In Valve
The fix is to go into "view.phtml" and change:
<h3 class="product-name">
<?php echo $_helper->productAttribute($_product, $this->htmlEscape($_product->getName()), 'name') ?>
</h3>to
<h3 class="product-name">
<?php echo $this->htmlEscape($_product->getName())?>
</h3>Now...
How to remove <br /> added by magento.
Posted Tue, 02/16/2010 - 10:10am
In case you're wondering why your product description is all spaced out, then that's because magento is adding automatic line breaks into the content description area...
To get rid of it... look for
nl2brspecifically in description.phtml you'll see
<div class="std">
<?php echo $this->helper('catalog/output')->productAttribute($this->getProduct(), nl2br($this->getProduct()->getDescription()), 'description') ?>
</div>it should look like this after you take the nl2br out:
<div class="std">
<?php echo $this->helper('catalog/output')->productAttribute($this->getProduct(), ($this->getProduct()->getDescription()), 'description') ?>
</div>How to remove Paypal Quick Checkout button from Magento when using Paypal.
Posted Thu, 12/03/2009 - 2:09pm
If you disable "guest checkout" in magento -- and are using PayPal -- guest check is still possible via Paypal button--it will show below the "Proceed to Checkout" button.
In order to completely remove the possibility of Guest checkout, you'll need to alter the following:
app/design/frondend/default/YOURTEMPLATE/template/paypal/link.phtml- copy link.phtml to link-01.phtml or whatever
- open/edit link.phtml and delete (or comment out) everything.