Skip to content

Instantly share code, notes, and snippets.

View DivaVocals's full-sized avatar

Crystal Jones DivaVocals

View GitHub Profile
@DivaVocals
DivaVocals / Center-Authorize-net-Code
Last active August 29, 2015 14:13
Center Authorize.net's Seal Code - I've seen LOTS of solutions out there in the wild to answer this question, and nearly ALL of them are wrong.. This solution works and is syntactically correct.
<!-- Add this code to your website: Note the only REAL change is on line 6, the addition of a linebreak after the Authorize.net seal -->
<!-- (c) 2005, 2008. Authorize.Net is a registered trademark of CyberSource Corporation -->
<div class="AuthorizeNetSeal">
<script type="text/javascript" language="javascript">var ANS_customer_id="YOUR-AUTHORIZE.NET-CUST-ID";</script>
<script type="text/javascript" language="javascript" src="//verify.authorize.net/anetseal/seal.js"></script>
<br />
<a href="//www.authorize.net/" id="AuthorizeNetText" target="_blank">Online Payments</a>
</div>
<!-- end Authorize.Net -->
@DivaVocals
DivaVocals / tpl_modules_shipping_estimator.php
Last active August 29, 2015 14:04
zenCart - Hide Available Shipping Methods table until Shipping Estimator runs ( /includes/templates/YOUR_TEMPLATE/templates/tpl_modules_shipping_estimator.php)
<?php
//This is a replacement for the /includes/templates/YOUR_TEMPLATE/templates/tpl_modules_shipping_estimator.php.
//There are two areas that were changed, just look for the //-bof and //-eof comments
// Use when you don't want the Available Shipping Methods table to display on the
//http://yoursite(dot)com/index(dot)php? main_page=shopping_cart page until you enter the location and postal code
//information. This way all the available shipping methods are displayed together. (flat rates as well as UPS)
}
}
if($_SESSION['cart']->get_content_type() == 'virtual'){
?>