hjfierce
Forum Replies Created
-
@wckalkulator
Yes. The ATC button is inside that form tag
And form tag has settings below,
<form class=”cart” action=”https://mywebsite” method=”post” enctype=”multipart/form-data”>@wckalkulator oh, since you are actively updating the plugin. I am looking forward for more freedom in field locations. Currently there is only “before/after add to cart” available.
Frontend user activity/inputs are most likely on these 3 pages, the cart page, the checkout page, and my account page.
Maybe allow us to use “ACF Field” features, instead ACF fields at backend, your plugin populates fields to frontend would be really helpful!
I don’t code so I don’t know how hard to achieve this.@wckalkulator Thanks for your reply. I will wait for the official release. (Hopefully soon.)
I find a temporary solution myself.
I know this plugin is made as a “price calculator”.Would be great if the author can implement this feature.
Disable/Hide “add to cart” button if certain condition in the field is not met.jQuery(document).ready(function() {
jQuery(‘.single_add_to_cart_button’).prop(‘disabled’, true);
jQuery(‘#wck_thefiledname’).change(function() {
if (this.value == ‘thevalueoftheoption’ )
jQuery(‘.single_add_to_cart_button’).prop(‘disabled’, true);
else
jQuery(‘.single_add_to_cart_button’).prop(‘disabled’, false);
});
});What it does is to disable “add-to-cart” button at the beginning and keep “add-to-cart” button disable if the field option value == something (which is the “empty/null/not apply” option created yourself).
you can find value of the select option in in F12 Chrome Dev. tool.