0
내 질문은 간단합니다. 난 그냥 내가 큰 스텐실의 객체를 사용할 필요가 알고 스텐실 형식으로 작동하지 않습니다 스텐실 프레임 워크 형식bigcommerce 스텐 슬에 blurprint 테마 스크립트를 사용하는 방법 Framwork formet?
<script type="text/javascript">
$(document).ready(function() {
var CartTotal = '%%GLOBAL_CartItemTotal%%';
var CustomerGroup = '%%GLOBAL_CustomerGroupName%%';
var CartTotal = CartTotal.replace('$','');
var CartTotal = CartTotal.replace(',','');
if(CartTotal >= 100.0) {
$('.CartTotalMessage').hide();
}
else {
if (CustomerGroup == "Wholesale") {
$('.ProceedToCheckout').hide();
$('.PayPalExpressCheckout').hide();
$('#CartHeader h2 img').hide();
$('.btn-secondary').hide();
$('a[title="Click here to proceed to checkout"]').hide();
}
else {
$('.CartTotalMessage').hide();
}
}
});
</script>
에 자바 스크립트 코드 아래 사용하려고합니다. 형식 나는 {{cart.grand_total}}에 %% GLOBAL_CartItemTotal %%을 대체하고 {{customer.customer_group_name}}에 %% GLOBAL_CustomerGroupName %%을 (를) 대체했습니다. $ 100 이상 주문할 때까지 결제 버튼을 숨기지 않습니다. 어떻게 도와 드릴 수 있습니까? 이것을 달성하십시오. 예 내가 해결 한 내 문제
변수 대신 전역 변수. 고객 그룹의 경우 {{customer.customer_group_name}} 또는 {{customer.customer_group_id}}을 (를) 사용할 수 있습니다. – Alyss