This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<service_calls> | |
<service_call name="selectedProductDetails" service="Mage_Catalog_Service_Product" method="item"> | |
<arg name="productId">{{request.params.id}}</arg> | |
</service_call> | |
</service_calls> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" label="Shopping Cart" type="page" parent="default"> | |
<container name="additional.product.info" label="Additional Product Info"/> | |
<!-- ... --> | |
</layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
level1.level2.sort | |
('level1' => array ( | |
'level2' => array( | |
'sort' => .... | |
) | |
)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> | |
<xs:element name="config"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element name="service"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element name="rest-route"> | |
<xs:complexType> | |
<xs:simpleContent> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<config> | |
<service class="Mage_Catalog_Service_ProductV1" baseUrl="/V1/products"> | |
<rest-route httpMethod="GET" method="getOne">/:sku</rest-route> | |
<rest-route httpMethod="POST" method="updateProduct" isSecure="true">/:sku</rest-route> | |
</service> | |
</config> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$headers['magento-hmac-signature'] = hash_hmac(self::SHA256_ALGORITHM, $body, $secret); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"headers": { | |
"content-type": "application/json", | |
"host": "localhost:8080", | |
"magento-topic": "customer/updated", | |
"content-length": "535", | |
"accept": "*/*", | |
"magento-hmac-signature": "0689892b46d33ac18b2fe3c51173ac52e1242c072b7123af0d298e79634ede18", | |
"magento-sender-domain": "sender.example.com" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<reference name="head"> | |
<data service-call="selectedProductDetails" /> | |
<action method="setTitle"><title>{{data.selectedProductDetails.metaTitle}}</title></action> | |
<action method="setKeywords"><keyword>{{data.selectedProductDetails.metaKeyword}}</keyword></action> | |
<action method="setDescription"><description>{{data.selectedProductDetails.metaDescription}}</description></action> | |
</reference> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p class="email-friend"> | |
<?php echo $productData->name; ?> | |
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="product-name"> | |
<h1>{{ productData.name|raw }}</h1> | |
</div> | |
<p class="email-friend"> | |
<a href="{{ links.emailToFriend }}">{{ 'Email to a friend'|translate }}</a> | |
</p> |