magento
Magento can't reindex data through admin
Posted Thu, 01/19/2012 - 3:15pm
If you're trying to reindex data under "Index Management" but can't, do the following to fix the problem...
in SSH.
rm -rf var/locks/*Now try again, and you should be successful
If that doesn't work, also make sure the var/locks dir is writable.
chmod -R 777 var/locksMagento upgrade to 1.5.x or 1.6.x
Posted Sat, 07/09/2011 - 3:26am
As many magento users will know, Magento is no fun to work with-- mainly due to poor community support (the developers help paying customers; i.e. Magento Enterprise ... Only payed support there... Great for business but bad for the average or beginning user...)
Anyhow...
So here's how we do it.
MAKE A BACKUP!
You can skip this step all together, however, please make a backup of everything prior to beginning the upgrade.
Create a test environment somewhere on your server (preferably away from your production installation)
How to uninstall multipletablerates from magento
Posted Tue, 12/14/2010 - 11:01am
Multiple Table Rates (aka multipletablerates) was a very popular extension in the magento 1.3 and earlier days... However, after several magento versions this extension basically became completely unstable/buggy (this is normal as it only lists magento 1.1 compatability)... Even so, it still worked on magento 1.3 with a few minor bugs... Then later down the road other extensions came up (mostly paid) that provided similar functionality, plus some, and minus the bugs...
Magento Catalog Price Rules bugs
Posted Mon, 11/15/2010 - 11:33am
Magento's "Catalog Price Rules" was always a buggy experience, ever since magento 1.3... I don't know what's going with the development, but it's still buggy up to 1.4.1 ...
So here are a couple of fixes I found.
Magento 1.4.0.1:
source: http://www.magentocommerce.com/boards/viewthread/194930/#t245120
1. Open up Observer.php in /app/code/core/Mage/CatalogRule/Model/
2. Find the dailyCatalogUpdate() method
3. At the end of the method, before “return $this;”, add:
$this->applyAllRules( $this );
4. (Not sure if this step is necessary) Open up /app/code/core/Mage/CatalogRule/etc/config.xml
5. Find the crontab > jobs > catalogrule_apply_all area
6. Change
<cron_expr>0 1 * * *</cron_expr>
Magento default sort order
Posted Fri, 08/20/2010 - 1:36pm
In order to specify the default sort order of the product listing open up your 'catalog.xml' (this is tested in magento 1.4):
desc
To order products by a specific order, e.g. to order products by the order specified under category listing:
set in your admin: yoursite.com/admin/system_config/edit/section/catalog/
Product listing sort by: Best ValueAnd for those wondering where 'category products' is... it's located here: /admin/admin/catalog_category/ (under "Category Products" tab, when you click on any category)
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:
<h1 class="product-name">
<?php echo $_helper->productAttribute($_product, $this->htmlEscape($_product->getName()), 'name') ?>
</h1>to
<h1 class="product-name">
<?php echo $this->htmlEscape($_product->getName())?>
</h1>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.