Magento Themes and Magento Extensions

Magento: Change the store currency

Share
Posted on January 10th, 2013 | Posted by admin

Magento: Change the store currency

$store = Mage::app()->getStore();

$store->setCurrentCurrencyCode(‘GBP’);

Change attributes magento

Share
Posted on October 14th, 2012 | Posted by admin

Change attributes magento
I use custom attributes for my products and I am working on my script, which get attributes and after change them value. I have done selecting code but I dont know how can I do code, which change value.

getCollection()
->addAttributeToFilter(‘manufacturer’, ’3′)
->addAttributeToSelect(‘*’);

foreach ($collection as $product) {

echo $product->getName();
echo $product->getResource()->getAttribute(‘cena_balenia_czk’)->getFrontend()->getValue($product);
echo ‘-’;
echo $product->getResource()->getAttribute(‘czk’)->getFrontend()->getValue($product);
echo ‘
‘;
}
?>

How to change currency position in Magento

Share
Posted on September 9th, 2012 | Posted by admin

Magento fails when you change the Currency in your store.

I mean it doesn’t crash or something it’s just it doesn’t change the currency position.

How to change Default Sort Order Magento

Share
Posted on January 7th, 2012 | Posted by admin

I’ll be clear… Magento is not good as you could imagine. In fact sucks in so many ways.

Today i’m showing you one. There is no backend option to change the Default Sort Order in your product listing (catalog).

Lucky there is an easy solution.
The Toolbar
Look for the file toolbar.php located in:

/app/code/core/Mage/Catalog/Block/Product/List
Create the Local folder
Create the same folder structure in the local. Now the future upgrades will not affect your changes.

Should be like:

/app/code/local/Mage/Catalog/Block/Product/List

How to change the Price Range Magento

Share
Posted on January 5th, 2012 | Posted by admin

If you need to change the Price Range in your Magento catalog go to:

app/code/core/Mage/Catalog/Model/Layer/Filter/Price.php

Look for the line:

$range = pow(10, (strlen(floor($maxPrice))-$index));

Change the 10 for a lower / higher number.

Tested in the 1.4 version

Page 1 of 3123»