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
$this->getOnepage()->getQuote()->getShippingAddress(); | |
$this->getOnepage()->getQuote()->setTotalsCollectedFlag(false); | |
$this->getOnepage()->getQuote()->collectTotals();//i think this is right | |
$this->getOnepage()->getQuote()->save() | |
$subtotal = Mage::getSingleton('checkout/session')->getQuote()->getGrandTotal() - Mage::getSingleton('checkout/session')->getQuote()->getShippingAmount(); |
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
<?php | |
/** | |
* Has shipping been applied to quote? | |
* | |
* @var bool | |
*/ | |
protected $_hasShipping = false; | |
/** |
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
http://scotch.io/tutorials/javascript/submitting-ajax-forms-the-angularjs-way |
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
// Events and evenet | |
public function EventAllInfo($url) | |
{ | |
global $db; | |
// return a variable | |
$db->query("SELECT id FROM `mod_pages` WHERE type='events' AND url='other'"); |
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
<?php | |
/** | |
* @author Ron-Pro | |
* @copyright 2008 | |
*/ | |
// explode pages data | |
$query = $db->select("SELECT * FROM `mod_pages` WHERE `active`='1' ORDER BY `id` DESC"); |
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
{ | |
"repositories": [ | |
{ | |
"type": "composer", | |
"url": "https://packages.zendframework.com/" | |
}], | |
"require": { | |
"zendframework/zendframework":"2.2.4" | |
,"zendframework/skeleton-application":"dev-master" |
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
html, body, .container, .content { | |
height: 100%; | |
} | |
.container, .content { | |
position: relative; | |
} | |
.proper-content { | |
padding-top: 40px; /* >= navbar height */ |