Admin Settings in all CPTs are already set. Continue to frontend.
This commit is contained in:
@@ -57,31 +57,38 @@ span.product-qty-wrapper {
|
||||
gap: .5em;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: .5rem;
|
||||
background-color: white;
|
||||
width: fit-content;
|
||||
}
|
||||
span.product-qty-wrapper > button {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
min-width: unset!important;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 0!important;
|
||||
border-radius: 50%;
|
||||
background-color: var(--formipay-button-submit-bg-color);
|
||||
padding: 0 .25rem;
|
||||
background-color: white;
|
||||
}
|
||||
span.product-qty-wrapper > button svg path {
|
||||
stroke: var(--formipay-button-submit-text-color);
|
||||
}
|
||||
span.product-qty-wrapper > button:disabled {
|
||||
background-color: #efefef;
|
||||
span.product-qty-wrapper > button {
|
||||
background-color: transparent;
|
||||
}
|
||||
span.product-qty-wrapper > button svg path {
|
||||
stroke: var(--formipay-button-submit-bg-color);
|
||||
}
|
||||
span.product-qty-wrapper > button:disabled svg path {
|
||||
stroke: #666;
|
||||
}
|
||||
span.product-qty-wrapper > input {
|
||||
height: 40px;
|
||||
width: 40px!important;
|
||||
padding: .25rem!important;
|
||||
border: unset!important;
|
||||
background-color: transparent;
|
||||
min-width: unset;
|
||||
text-align: center;
|
||||
}
|
||||
span.product-qty-wrapper > input::-webkit-outer-spin-button,
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
jQuery(function($){
|
||||
|
||||
console.info(formipay_form);
|
||||
let formipay_form_id = $('[data-form-id]').attr('data-form-id');
|
||||
let formipay = formipay_form.forms[formipay_form_id];
|
||||
|
||||
@@ -218,7 +219,8 @@ jQuery(function($){
|
||||
form_inputs.append('action', 'formipay_submission');
|
||||
form_inputs.append('nonce', formipay_form.nonce);
|
||||
form_inputs.append('data[qty]', $('.formipay-qty-input').val());
|
||||
form_inputs.append('form_id', form_id);
|
||||
form_inputs.append('form_id', form_id);
|
||||
form_inputs.append('currency', 'IDR');
|
||||
|
||||
var $valid = true; // Initialize as true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user