Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

colectie de tips & tricks
 
andiszek
Member
 
Total Posts:  31
Joined:  2008-11-02
 

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

 
Magento Community Magento Community
Magento Community
Magento Community
 
andiszek
Member
 
Total Posts:  31
Joined:  2008-11-02
 

delete test orders:

http://www.magentocommerce.com/extension/reviews/module/873/p/5/
install extension - if error => Magento Connect -> Settings -> Preferred State -> Beta
1. cancel orders - 2. delete canceled orders

sau
http://inchoo.net/ecommerce/magento/delete-test-orders-in-magento/

 
Magento Community Magento Community
Magento Community
Magento Community
 
andiszek
Member
 
Total Posts:  31
Joined:  2008-11-02
 

adaugare blocuri statice (custom HTML) in paginile de Categorie si/sau subcategorie

1. create a static block (CMS - Static Block - Add => Identifier=myBlockID ->enabled - save)
2. insert static block into category page: Catalog - Manage Categories - Select Category - Display Mode: Static Block & Products - CMS Block -> select Block - save

 
Magento Community Magento Community
Magento Community
Magento Community
 
andiszek
Member
 
Total Posts:  31
Joined:  2008-11-02
 

inca cateva chestii:

la JW Image Rotator din primul post, toate linkurile de pe bannere se deschid in _self.
daca vreti ca unele dintre bannere sa se deschida si in _blank, asta e solutia:

A: in XML, de bagat urmatorul cod intre tagurile de INFO:

<info><![CDATA[[removed]jumpToMe('http://my.domain.com/''_blank')]]></info>

iar in HTML, urmatorul cod, inaintea inchiderii tagului SCRIPT (vezi sus in primul post ptr codul HTML)

function jumpToMe(urltarget)
{
  
if(target == '_self')
  
{
    document
.location.href=url;
  
}
  
else if(target == '_blank')
  
{
    window
.open(url)
  
}
}
;
 
Magento Community Magento Community
Magento Community
Magento Community
 
INsane
Jr. Member
 
Total Posts:  4
Joined:  2010-06-27
 

e bine de stiu ca mai sunt si romani pe aici smile , o sa incerc sa postez si eu cateva lucruri aici .

 
Magento Community Magento Community
Magento Community
Magento Community
 
akizor88
Jr. Member
 
Total Posts:  6
Joined:  2011-08-17
 

In loc de JW Image Rotator se poate folosi Simple Banners. Este mult mai usor de configurat si nu necesita accesarea de coduri.
http://www.magentocommerce.com/magento-connect/FME+Extensions/extension/3382/banners

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top