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
/** | |
* Adds a log record to the order payment attempts log | |
* @param mixed $order Order object the payment attempt is belongs to | |
* @param string $message Log message | |
* @param bool $is_successful Indicates that the attempt was successful | |
* @param array $request_array An array containing data posted to the payment gateway | |
* @param array $response_array An array containing data received from the payment gateway | |
* @param string $response_text Raw gateway response text | |
* @param string $ccv_response_code Card code verification response code | |
* @param string $ccv_response_text Card code verification response text |
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
<? | |
$partial = Cms_Partial::create()->find_by_name('payment:payflowpro'); | |
if(!$partial) { | |
$partial = new Cms_Partial(); | |
$partial->name = 'payment:payflowpro'; | |
$partial->html_code = <<< EOH | |
<p>Please provide your credit card information.</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
{ | |
/** | |
* Monokai Extended Color Scheme | |
* Author: Jon Schlinkert | |
* Link: https://github.com/jonschlinkert/sublime-monokai-extended | |
*/ | |
"color_scheme": "Packages/Monokai Extended/Monokai Extended.tmTheme", | |
/** |
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
<? $items = Shop_Cart::list_active_items(); | |
$total = Shop_Cart::total_price(); | |
$total_qty = Shop_cart::get_item_total_num(); | |
?> | |
<div class="box base-mini mini-cart"> | |
<div class="head"> | |
<h4> My Cart</h4> | |
</div> | |
<div class="actions"> |
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
if ($name == 'manufacturer') | |
{ | |
if ($this->grouped) | |
return $this->master_grouped_product->manufacturer_link; | |
else | |
return $this->manufacturer_link; | |
return $this->grouped_attribute_name; | |
} |
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
public function generate_sitemap() { | |
$params = Sitemap_Params::create(); | |
//header("Content-Type: application/xml"); | |
$xml = new DOMDocument(); | |
$xml->encoding = 'UTF-8'; | |
$urlset = $xml->createElement('urlset'); | |
$urlset->setAttribute('xmlns', 'http://www.sitemaps.org/schemas/sitemap/0.9'); | |
$urlset->setAttribute('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance'); |
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
function style_forms() { | |
var ua = $.browser; | |
if (!(ua.msie && ua.version.slice(0,1) == "7")) | |
{ | |
$('select, input:checkbox, input:radio').livequery(function(){ | |
$(this).uniform(); | |
}); | |
} | |
} |
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 | |
$Phpr_InitOnly = true; | |
include 'index.php'; | |
Core_UpdateManager::create()->cli_update(); | |
?> |
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
<? | |
/** | |
* EC2's load balancer sets these for us so we know we're secure, | |
* preventing Magento from performing a redirect loop. | |
**/ | |
if( isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && strtolower($_SERVER['HTTP_X_FORWARDED_PROTO']) == 'https' ) | |
{ | |
$_SERVER['HTTPS'] = 'on'; | |
$_SERVER['SERVER_PORT'] = 443; | |
} |
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 id="write_review" class="clearfix"> | |
<? if (isset($review_posted)): ?> | |
<p class="flash success">Your taste review has been successfully posted.</p> | |
<? else: ?> | |
<h3 id="review_link" class="clearfix"><a href="#" onclick="$('#review_form').removeClass('hidden'); $('#review_link').addClass('hidden'); return false;">Write Your Taste Review</a></h3> | |
<div id="review_form" class="hidden bottom_offset"> | |
<ul class="form"> | |
<li class="field"> | |
<label><span class="label">Rating</span> |