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
<script type="text/javascript"> | |
// Select first shipping region if no shipping region is selected yet | |
if ($("[name='shipping_region']:checked").length === 0) { | |
$("[name='shipping_region']:first").prop("checked", true); | |
} | |
</script> |
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
<script type="text/javascript"> | |
// Remove banks logo in payment method options | |
$(".payment_method_label .logo.banks").remove(); | |
</script> |
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
<style> | |
.payment_method_label .logo.billplz { | |
background-image: url(//s28.postimg.org/lr4960ft9/billplz-demo.jpg); | |
background-size: auto; | |
background-position: 0; | |
width: 318px; | |
height: 158px; | |
} | |
</style> |
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
<script type="text/html" id="client_email_confirmation_template"> | |
<div class="form-group "> | |
<label for="client_email_confirmation" class="control-label col-md-3">Sahkan Emel<span class="glyphicon glyphicon-asterisk red-asterisk"></span></label> | |
<div class="col-md-7"> | |
<input type="email" class="form-control" id="client_email_confirmation" name="client_email_confirmation" placeholder="Sahkan emel anda..." maxlength="100" value=""> | |
</div> | |
</div> | |
</script> | |
<script type="text/javascript"> |
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
<script type="text/javascript"> | |
// Use input type number element for quantity | |
$("[name^='product_quantities']").each(function() { | |
var element = $(this); | |
element.replaceWith('<input type="number" class="form-control quantity" min="0" name="' + element.prop("name") + '" value="' + element.prop("value") + '">'); | |
}); | |
</script> |
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
<script type="text/javascript"> | |
$(document).ready(function() { | |
$("#submit-order").hide(); | |
$("#payment_form").show(); | |
$("#payment_form").submit(function(event) { | |
event.preventDefault(); | |
return false; | |
}); | |
$("#total_amount").change(function() { |
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 | |
function buildSourceString($data, $prefix = '') | |
{ | |
uksort($data, function($a, $b) { | |
$a_len = strlen($a); | |
$b_len = strlen($b); | |
$result = strncasecmp($a, $b, min($a_len, $b_len)); | |
if ($result === 0) { |
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
<script type="text/javascript"> | |
$("#payment-section").html('<input type="radio" class="payment_method" name="payment_method" value="billplz" data-button_text="Teruskan ke Pembayaran" style="display: none" checked>'); | |
</script> |
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
{#status_disahkan} | |
<!-- Facebook Pixel Code --> | |
<script type="text/javascript"> | |
function convertToFloat(value) { | |
return parseFloat(value.replace(",", "")); | |
} | |
!function(f,b,e,v,n,t,s) | |
{if(f.fbq)return;n=f.fbq=function(){n.callMethod? | |
n.callMethod.apply(n,arguments):n.queue.push(arguments)}; |
OlderNewer