Going with style: Themes and apps for Magento Go

1,252 views
1,194 views

Published on

Magento Go, our SaaS solution, provides merchants with capabilities to customize their stores with different themes and to integrate applications for valuable functionality. We will provide examples of the best methods and approaches for customizing storefronts with different themes and layouts, as well as how to integrate apps into Magento Go stores.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,252
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Layout is actually a hierarchical tree of all visual blocks that form visual appeal for a page. It's obvious that some elements are meant to be displayed on every page and some of them — on specific pages only. Magento recognizes several cases like this and supports specific layouts for every case.
  • Block - Is used to create a new block in current context. Layout block nesting defines the ordering of block initialization location of the blocks on the page.
  • Reference - Changes the context for all included instructions to a previously defined block. Empty <reference> tag makes no sence, it affects only instructions which are children
  • Action - Is used to access block API, in other words, call block's public methods. It is used to set up the execution of a certain method of the block during the block generation. Action child tags are translated into block method arguments. The list of all available methods, depends on the block implementation (e.g. public method of the block class).
  • Remove - Is used to remove an existing block from the layout.
  • Going with style: Themes and apps for Magento Go

    1. 1. <block><block type="core/text" name="test.block"> <action method="addText"> <txt><![CDATA[<h2>New Block Created!</h2>]]></txt> </action></block>
    2. 2. <reference><reference name="content"> <block type="cms/block" name="additional.info" as="additionalInfo"> <action method="setBlockId"><id>additional_info</id></action> </block></reference>
    3. 3. <action><!-- ... --> <action method="someActionName"> <arg1>Value 1</arg1> <arg2>Value 2</arg2> <!-- ... --> <argN>Value N</argN> </action><!-- ... -->
    4. 4. <remove><remove name="blockName"/>
    5. 5. www.STORE.name/api/soap?wsdl=1 <message name="call"> <part name="sessionId" type="xsd:string" /> <part name="resourcePath" type="xsd:string" /> <part name="args" type="xsd:anyType" /> </message> <message name="callResponse"> <part name="callReturn" type="xsd:anyType" /> </message> <message name="multiCall"> <part name="sessionId" type="xsd:string" /> <part name="calls" type="typens:FixedArray" /> <part name="options" type="xsd:anyType" /> </message>
    6. 6. www.STORE.name/api/v2_soap?wsdl=1 <message name="customerCustomerListRequest"> <part name="sessionId" type="xsd:string"/> <part name="filters" type="typens:filters"/> </message> <message name="customerCustomerListResponse"> <part name="storeView" type="typens:customerCustomerEntityArray"/> </message>
    7. 7. www.STORE.name/api/xml-rpc <methodCall> <methodName> call </methodName> <params> <param> <value><string>sessonID</string></value> </param> <param> <value><string>customer.list</string></value> </param> </params> </methodCall>
    8. 8. 1 $proxy = new SoapClient(http://magentohost/api/soap/?wsdl);2 $sessionId = $proxy->login(apiUser, apiKey);34 // Get stock info5 $stockInfo = $proxy->call($sessionId, product_stock.list, Sku);67 // Update stock info8 $stockUpdate = $proxy->call($sessionId, product_stock.update, array(Sku, array(qty=>50, is_in_stock=>1)));
    9. 9. 1 $proxy = new SoapClient(http://magentohost/api/v2_soap/?wsdl);2 $sessionId = $proxy->login(apiUser, apiKey);3

    ×