http://thatcodecorner.com/wp/2015/06/angularjs-the-brave-framework/ http://reactor.apppresser.com/blog/wordpress-api-ionic-app/ http://thejackalofjavascript.com/architecting-a-restful-node-js-app/ http://pt.slideshare.net/DreamFactorySoftware/angularjs-and-rest-made-simple
This file contains hidden or 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
<?php | |
/** | |
* Create Shopping Cart Sales Rule with Specific Coupon Code Programmatically | |
*/ | |
// All customer group ids | |
$customerGroupIds = Mage::getModel('customer/group')->getCollection()->getAllIds(); | |
// SalesRule Rule model | |
$rule = Mage::getModel('salesrule/rule'); |
This file contains hidden or 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
<pre> | |
<?php | |
error_reporting(E_ALL); | |
require_once 'app/Mage.php'; | |
Mage::app(); |
This file contains hidden or 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
<?php | |
$productSku = "27609";// the SKU example | |
$productId = Mage::getModel('catalog/product')->getIdBySku( $productSku ); | |
/** @var $product Mage_Catalog_Model_Product */ | |
$product = Mage::getModel('catalog/product')->load($productId); | |
/** @var $option Mage_Catalog_Model_Product_Option */ | |
$option = $product->getOptionById('10190'); | |
foreach ($option->getValues() as $_value) { | |
/** @var $_value Mage_Catalog_Model_Product_Option_Value */ |
https://facebook.github.io/react-native/docs/getting-started.html#content https://code.facebook.com/posts/1189117404435352/ https://facebook.github.io/react/blog/2015/02/20/introducing-relay-and-graphql.html https://github.com/reactioncommerce/reaction https://code.facebook.com/posts/622382554568759/ https://facebook.github.io/react/blog/2015/05/01/graphql-introduction.html http://graphql.org/ https://github.com/firebase/reactfire/tree/master/examples/commentsBox https://www.firebase.com/blog/2014-05-01-using-firebase-with-react.html http://maketea.co.uk/2014/04/07/building-robust-web-apps-with-react-part-2.html
This file contains hidden or 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
<?php | |
error_reporting(E_ALL); | |
require_once '../../../../../Mage.php'; | |
Mage::app(); | |
require_once './Garantia.php'; | |
$productModel = Mage::getModel('catalog/product'); |
This file contains hidden or 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>Forms with Prototype</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<meta http-equiv="pragma" content="no-cache" /> | |
<script type="text/javascript" src="js/prototype.js"></script> | |
<script type="text/javascript"> |
This file contains hidden or 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
<?php | |
public function addToAction() | |
{ | |
$cart = Mage::getSingleton('checkout/cart'); | |
$cart->addProductsByIds( | |
array( | |
$this->getRequest()->getParam('currentproduct'), | |
$this->getRequest()->getParam('relatedproduct') |