|
English Version Best Seller And most Viewed
Magento Version: 1.4.1.1
Status: Working website RH Super (Just using Bestseller)
------------------------------------------------------------------------------------------------
Hey guys, just try to do wha jazkatt sayd…
Step by step to make this work:
1. Download all the updated files files(i have updated them):
If you would like to download the original files posted by cristache, the link is:
http://www.magentocommerce.com/boards/viewthread/14764/P15/
2. When you download all the files, Edit these lines:
(if you have downloaded the updated files, jump to the third step)
<?php mainBlock('top') ?>
<?php title('top') ?>
<?php title('bottom') ?>
<?php contentBlock('top') ?>
<?php contentBlock('bottom') ?>
<?php mainBlock('bottom') ?>
Just open each PHTML file and edit them(Just have 2 files)
3. When you have finished, put all the files in the correct folder.
Place *.php files here: /public_html/app/code/core/Mage/Catalog/Block/Product
Place *.phtml files here: /public_html/app/design/frontend/*/*/template/catalog/product
(The * is your template folder)
4. Now, you will create static blocs at the main menu of your admin system. Acess these menu:
CMS -> static blocs -> new block
In the page to create the new block, fill the form with the required information.
The unique information you need to put, and can’t be diferent is the form content and it will be filled with this value:
{{block type="catalog/product_bestseller" template="catalog/product/bestseller.phtml"}}
fill the name as Bestseller
Do the same think whith the most viewed, create an static block and fill the content value with:
{{block type="catalog/product_mostviewed" template="catalog/product/mostviewed.phtml"}}
fill the name as Mostviewed
5. The next step is to put the block working on the fist page
Acess the menu system: CMS -> pages ->home -> content
Desabilite the editor text, clicking at “Show / Hide Editor”
After clicking on it, click on the button: “Insert Widget”
An new window will open, choose CMS static block at the dropdown
And hit the button: Select
An grid with all static blocks will be showed, choose your static block and hit “Insert Widget” at the top of the window,
An variable of the system like this should appear at the text form:
{{widget type="cms/widget_block" template="cms/widget/static_block/default.phtml" block_id="6"}}
6. Now, styling… Edit pages HTML from PHTML the way you want. Put styles, divs and everything you need.
The variable {{widget type="cms/widget_block" template="cms/widget/static_block/default.phtml" block_id="6"}} can pe puted inside divs at the content home page.
If you do all the steps, should be working nice!
------------------------------------------------------------------------------------------------
Any help, ask me at:
Se alguém precisar de uma tradução galera…
Posso estar traduzindo também…
Me enviem um email caso seja necessário!
Good luck Guys!
File Attachments
|