Help

Moving Magento Sites across Servers

Moving sites across servers doesn’t happen that often, however some sites needed to move from server A to server B, and here is how we went about doing it. Firstly, you will need to open Putty for whichever server your site is currently on and log in at root. Once you have logged in cd to the home directory using the following command and then into public_html within your chosen site – in this example cd home/{yoursite}/public_html should do the trick. Next, you can use the “ls” command to list the current contents of the directory you are in. This… Read More »Moving Magento Sites across Servers

Changing number of items per row in category page – Magento

Firstly navigate to app/design/frontend/default/default/layout/catalog.xml, backup the file before you do anything on that. Then Find the following: 1 2 3 <!– Category default layout –> Replace the following content on around row 140 <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 this <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… Read More »Changing number of items per row in category page – Magento

Adding Extra Category Attributes – Magento

(this example is for a second category description) eav_attribute table within magento install attribute_id           leave blank (take note of this when you insert as you will need it at a later point) entity_type_id      3 attribute_code     description_second attribute_model   leave blank backend_model   leave blank backend_type      text backend_table     leave blank frontend_model  leave blank frontend_input    textarea frontend_label     Second Description frontend_class     leave blank source_model      leave blank is_required           0 is_user_defined   0 default_value       leave blank is_unique                              0 note                        leave blank eav_entity_attribute table within magento install create new row entity_attribute_id              leave blank entity_type_id      3 attribute_set_id   3 attribute_group_id              4 attribute_id           (the number from… Read More »Adding Extra Category Attributes – Magento

Magento: How do I edit “Add to cart” buttons and buttons in the cart?

Q: How do I edit buttons in the cart? A: Edit the file app\design\frontend\base\default\template\checkout\cart.phtml. REMEMBER: It is always a good idea to keep the base\dafault files untouched. You can copy the files from base\default to your theme. For example, the file “app\design\frontend\base\default\template\checkout\cart.phtml” would go to “app\design\frontend\default\YourTemplate\template\checkout\cart.phtml “ Q: How do I edit the “Add to cart” buttons on the product pages? A: For some reason, the category and search pages are easy and the product page has a totally different file to edit. Edit the file app\design\frontend\base\default\template\catalog\product\view\addto.phtml.