Archive for the ‘Tutorial’ Category
We recently faced a problem in magento when we tried to set Rupees as default currency. We solved it. Here are the steps that needs to be followed in order to bring Rs. as your currency.
Goto /lib/Zend/Locale/Date/root.xml
Find the following line at 2882
Rp
Replace it with the following:
Rs.
That’s it. You are done.
Please let us know if it doesn’t work.
If you were using magento 1.4 and above, please follow the instructions
Goto app/etc/local.xml
Find the following lines
<host><![CDATA[localhost]]></host> <username><![CDATA[root]]></username> <password><![CDATA[stability]]></password> <dbname><![CDATA[pe_vivek]]></dbname> <active>1</active>
I guess you can easily modify now the username and other details ![]()
Leave out your comments if this doesn’t work
A new problem that we sorted out today in magento is: Having a different price for a product for different stores.
We solved it and here are the steps:
1. Goto adminpanel, System-> Manage stores
2. Create a new website, new store and new store view. I hope you won’t have any problems in creating the above.
3. Go to System-> Configuration->Catalog->Catalog, Look out for Price tab on your right hand side, Please select Catalog Price Scope to Website. This is the most important stuff.
4. Goto Catalog-> Manage products, Select your desired products to which you need to have a different price, Select the store view to which you need to set the price, select the newly created websites store view, go to prices and uncheck use default value and enter your price.
5. Repeat the same steps as many times for your stores.
That’s it. You are set now.
Please leave in comments if you cannot solve it by yourself.
Thanks
If you feel that you want to change the number of products on the product listings page from default 3, please make sure that you follow the instructions and get sorted
- Goto app/design/frontend/default/default/layout/catalog.xml, backup the file before you do anything on that.
- Find the following
<!-- Category default layout -->
3. Replace the following content
<reference name="content"> <block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml"> <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml"> <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml"> <!-- The following code shows how to set your own pager increments --> <!-- <action method="setDefaultListPerPage"><limit>4</limit></action> <action method="setDefaultGridPerPage"><limit>9</limit></action> <action method="addPagerLimit"><mode>list</mode><limit>2</limit></action> <action method="addPagerLimit"><mode>list</mode><limit>4</limit></action> <action method="addPagerLimit"><mode>list</mode><limit>6</limit></action> <action method="addPagerLimit"><mode>list</mode><limit>8</limit></action> <action method="addPagerLimit" translate="label"><mode>list</mode><limit>all</limit><label>All</label></action> --> </block> <action method="setToolbarBlockName"><name>product_list_toolbar</name></action> </block> </block> </reference>
With the following code
<reference name="content"> <block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml"> <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml"> <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml"> <!-- The following code shows how to set your own pager increments --> <!-- <action method="setDefaultListPerPage"><limit>4</limit></action> <action method="setDefaultGridPerPage"><limit>9</limit></action> <action method="addPagerLimit"><mode>list</mode><limit>2</limit></action> <action method="addPagerLimit"><mode>list</mode><limit>4</limit></action> <action method="addPagerLimit"><mode>list</mode><limit>6</limit></action> <action method="addPagerLimit"><mode>list</mode><limit>8</limit></action> <action method="addPagerLimit" translate="label"><mode>list</mode><limit>all</limit><label>All</label></action> --> </block> <action method="setColumnCount"><columns>5</columns></action> <action method="setToolbarBlockName"><name>product_list_toolbar</name></action> </block> </block> </reference>
Did you see
<columns>5</columns>
its been set to 5 per row on product listing you can change accordingly.
It would work and just leave out in comments if you were not able to solve it using the instructions.
Another problem we sorted out while developing with magento is after installation of magento 1.4 with sample data, all categories are showing up but when you view the categories it doesn’t show the products under the categories.
If you are the one who stuck up with the same problem follow the instructions and your problem would be solved.
1. Goto your admin panel, select System->Index management, Select all and select “Reindex data” from actions drop down and click on submit. It would take some time to re index it, once its finished. Go to front end and see your products are listed now.
If your products are not listed follow the remaining steps,
2. Goto admin panel, System->Manage Stores, Select the store name, by default it would be “Main Store“, Click to edit it, on the edit screen, See to it that “Root Category” points to your root catalog, ie., All the categories are been formed under this root catalog.
If its not pointing then make sure it points to your real root catalog. Then click on “Save Store” .
Now if you clear your cache and look your front end, you would see your products listed on the desired categories.
Please leave your thoughts as comments.




