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 | |
/** | |
* PUT THE PATH TO GEOIP DATABASE HERE | |
*/ | |
$database ='geoip/GeoLiteCity.dat'; | |
try { | |
require_once('Net/GeoIP.php'); |
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
RewriteCond %{HTTP_USER_AGENT} ^.*(iPhone|iPod|BlackBerry|Palm|Googlebot\-Mobile|Mobile|mobile|mobi|Windows\ Mobile|Safari\ Mobile|Android|Opera\ Mini).*$ [NC] | |
RewriteCond %{REQUEST_URI} ^.*(onestepcheckout) | |
RewriteRule .* /checkout/onepage/ [R,L] |
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
/** | |
* Initialize billing and shipping information | |
*/ | |
public function estimatePostAction() | |
{ | |
$country = (string) $this->getRequest()->getParam('country_id'); | |
$postcode = (string) $this->getRequest()->getParam('estimate_postcode'); | |
$city = (string) $this->getRequest()->getParam('estimate_city'); | |
$regionId = (string) $this->getRequest()->getParam('region_id'); | |
$region = (string) $this->getRequest()->getParam('region'); |
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 | |
/** | |
* Magento | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the Open Software License (OSL 3.0) | |
* that is bundled with this package in the file LICENSE.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://opensource.org/licenses/osl-3.0.php |
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
RegionUpdater.prototype.setMarkDisplay = RegionUpdater.prototype.setMarkDisplay.wrap( | |
function(parent, elem, display){ | |
elem = $(elem); | |
var labelElement = elem.up(0).down('label > span.required') || | |
elem.up(1).down('label > span.required') || | |
elem.up(0).down('label.required > em') || | |
elem.up(1).down('label.required > em'); | |
if(labelElement) { | |
inputElement = labelElement.up().next('input'); | |
if (display) { |
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
/** | |
* @author Ryan Johnson <http://syntacticx.com/> | |
* @copyright 2008 PersonalGrid Corporation <http://personalgrid.com/> | |
* @package LivePipe UI | |
* @license MIT | |
* @url http://livepipe.net/core | |
* @require prototype.js | |
*/ | |
if(typeof(Control) == 'undefined') |
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
/** | |
* @author Ryan Johnson <http://syntacticx.com/> | |
* @copyright 2008 PersonalGrid Corporation <http://personalgrid.com/> | |
* @package LivePipe UI | |
* @license MIT | |
* @url http://livepipe.net/core | |
* @require prototype.js | |
*/ | |
if(typeof(Control) == 'undefined') |
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 | |
$_form = $this; | |
$_code = $_form->getMethodCode(); | |
$_method = $_form->getMethod(); | |
$_model = Mage::getModel('braintree/paymentmethod'); | |
$_loggedIn = Mage::app()->isInstalled() && Mage::getSingleton('customer/session')->isLoggedIn(); | |
$_storedCards = $_model->currentCustomerStoredCards(); | |
$_useVault = $_loggedIn && $_model->useVault() && count($_storedCards); | |
?> |
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 if(!$this->isCustomerLoggedIn()): ?> | |
<?php $billingFields['email'] = $billingFields['email'].' | |
<div class="input-box input-email'.((in_array('email', $formErrors)) ? ' input-error' : '').'"> | |
<label for="billing:email">'.$this->__('Email Address').' <span class="required">*</span></label><br /> | |
<input type="text" name="billing[email]" id="billing:email" value="'.$dataHelper->clearDash($this->getQuote()->getBillingAddress()->getEmail()).'" title="'.$this->__('Email Address') .'" class="validate-email required-entry input-text" /> | |
</div> | |
<div class="input-box input-email-repeat'.((in_array('email', $formErrors)) ? ' input-error' : '').'"> | |
<label for="billing:email-repeat">'.$this->__('Retype Email Address').' <span class="required">*</span></label><br /> | |
<input type="text" name="billing[email-repeat]" id="billing:email-repeat" value="'.$dataHelper->clearDash($this->getQuote()->getBillingAddress()->getEmail()).'" title="'.$this->__( |
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
/* Responsive styles created by Valentin Niklasson */ | |
@media screen and (min-width : 954px) { | |
div.checkoutcontainer div.input-city { width: 45%!important; } | |
div.checkoutcontainer div.input-country select { width: 83%!important; } | |
div.checkoutcontainer div.input-city { width: 100%!important; } | |
div.checkoutcontainer div.input-region { width: 55.8%!important; } | |
div.checkoutcontainer div.input-address-short .input-text, | |
div.checkoutcontainer div.input-firstname .input-text, | |
div.checkoutcontainer div.input-lastname .input-text, | |
div.checkoutcontainer div.input-email .input-text, |
OlderNewer