|
Salutare,
ma chinui de vreo 2 luni sa invat Magento ptr magazinul unei prietene.
am adunat multe tips & tricks si le bag aici, poate mai au altii nevoie, si e pacat sa piarda ore intregi cautand pe forumul englez.
(nota: sunt designer, nu developer, habar nu am de PHP & stuff, de aia poate unele chestii sunt la mintea cocosului.
de asemenea, mi-am notat pasii in engleza, nu mai stau sa traduc.)
Important: unde vedeti /blank/ in cale, schimbati cu numele temei folosite de voi.
===============================
INSTALLING JW IMAGE ROTATOR:
http://www.magentocommerce.com/wiki/how_to/how_to_add_jw_image_gallery_xml-flash
1. Download JW Image Rotator: http://www.longtailvideo.com/players/jw-image-rotator/
2. copy swfobject.js to /js
3. open /app/design/frontend/default/blank/layout/page.xml => add this: <action method="addJs"><script>swfobject.js</script></action> to the JS part
4. edit XML. add full paths to pics!
5. copy imagerotator.swf & XML file to /media
6. Magento Admin - CMS - Manage Pages - Homepage
and add this code:
<div id="myContent" style="text-align:center;">
<a href="http://www.adobe.com/go/getflashplayer" target="_blank" border="0"><img src="http://www.adobe.com/macromedia/style_guide/images/160x41_Get_Flash_Player.jpg"></a><p>Hey! To view the section below as an interactive content feed</p><p> please install the latest version of the Adobe Flash Player clicking <a href="http://www.adobe.com/go/getflashplayer" target="_blank" border="0">here</a></p>
</div>
<script type="text/javascript">
var s0 = new SWFObject("http://www.situltau.ro/media/imagerotator.swf”,"myContent”,"649”,"216”,"9”,"#FFF", “http://www.situltau.ro/media/expressInstall.swf");
s0.addParam("allowfullscreen”,"true");
s0.addParam("wmode”,"transparent");
s0.addParam("allowscriptaccess”,"always");
s0.addParam("flashvars", “file=http://www.situltau.ro/media/siderisHome.xml&autostart;=true&allowscriptaccess;=always&showicons;=false&transition;=slowfade&shownavigation;=false&overstretch;=false&backcolor;=0x000000&screencolor;=0xFFFFFF&repeat;=true&rotatetime;=5&shuffle;=false&linktarget;=_self&linkfromdisplay;=true");
s0.write("myContent");
</script>
======================================
STATIC BLOCKS
adding products/categories to homepage:
http://www.magentocommerce.com/wiki/how_to/add_featured_products_to_home_page
1.
Create a category to contain the featured products. Call it e.g. “Featured” or “Home Page”. Set “Is Active” to No. That way, it won’t display in the catalog menu.
2.
After saving the category, please note what ID it gets. You can see it in the last part of the URL. If the URL ends with catalog_category/edit/id/8/, the ID is 8. (vezi ID: Catalog > URL-Rewriting)
3.
Add products for the home page to the new category.
4.
Edit the Home Page (butonul CMS → Manage Pages → Home Page) and add the following content, where 8 should be replaced by your category ID:
{{block type="catalog/product_list" category_id="8" template="catalog/product/list.phtml"}}
If you want a view that is different from the category lists, you can copy and modify list.phtml and change the path above.
======================================
Remove Community Poll:
admin - system - config - advanced - Disable Modules output
system - config - advanced - advanced - disable POLL
====================================
add Blocks to right column
app/design/frontend/default/blank/template/callouts/right-col.phtml
see HTML code
====================================
Live Inline translation:
http://www.magentocommerce.com/blog/comments/video-in-line-translations/
system- config - developr - inline translation - select main website - enable for frontend
========================================
Turn on template path hints:
http://www.vimeo.com/1067069
http://www.magentocommerce.com/boards/viewthread/8858/
system - config - developer - MainWebsite - debug - path hints=yes
=========================================
eliminate Header Language:
app/design/frontend/default/blank/layout/page.xml => comment <block type="page/switch" name="store_language" as="store_language" template="page/switch/languages.phtml"/>
=========================================
cand mai descopar ceva interesant, revin.
bafta
|