Forum Replies Created
-
AuthorPosts
-
Soft79Keymaster
I’m glad the fix worked, I’ll add the fix to the next version.
- On the CART-page ‘Update cart’ must be clicked to append the free product (or use the snippet provided above).
- On the CHECKOUT-page the ‘Select free gift’ will only be displayed if no free product was selected before.
- On the CHECKOUT-page, pressing ‘PLACE ORDER’ will apply the free product.
- If you don’t want to display free product selection on CHECKOUT, you can use CSS or template override. To override the template copy
/wp-content/plugins/woocommerce-auto-added-coupons-pro/checkout/select-free-product.php
to
/wp-content/themes/YOUR_THEME/woocommerce-auto-added-coupons/checkout/select-free-product.php
and delete or edit the contents.
Soft79KeymasterDid this work for you? Or do you need assistance?
Soft79KeymasterAre you using Internet Explorer by any chance?
It’s working fine on Firefox, but when testing on Internet Explorer I see that the button stays disabled.
Please open this file: wp-content/plugins/woocommerce-auto-added-coupons-pro/includes/pro/WJECF_Pro_Free_Products/js/wjecf-free-products.jsand replace this line:
me.update_totalizer = function( totalizer_id, updated_input = undefined ) {
with:
me.update_totalizer = function( totalizer_id, updated_input) {
Then clear your browser cache and try again. Does that help? If so please let me know, and I implement the fix in the next release.
Soft79KeymasterCan you please send an url to your store and instructions to reproduce the issue?
Because the ‘update cart’ button should be enabled whenever you click a free item. Also, when checking out the item should be applied when the user clicks the ‘checkout’ button.
Soft79KeymasterThe chose product is applied when ‘Update cart’ is clicked. Just like any other change in the cart.
My plugin does not submit the change by itself, because I don’t want to change the WooCommerce UX too much and it might conflict with certain themes. In the future I might add an option for this.
If you paste javascript snippet in the footer, it will work.
Soft79KeymasterThat’s the way WooCommerce works; changes to the cart are only updated after pressing ‘Refresh cart’.
You could use this jQuery snippet, though:
jQuery( document ).on( 'change input', '.wjecf-select-free-products :input', function() { jQuery('form.woocommerce-cart-form input[name="update_cart"]').click(); } );
Might need some tweaking.
Soft79KeymasterI’ve read well and understand your issues. Therefore I asked you to try it on a default theme.
The ‘remove’ link should not be visible, the coupon should be automatically, but it seems you have an issue on your setup. Therefore please try with a default theme like Storefront or Twentysomething.
You forgot to tell me which version of flatsome you are using. Even better, please send me the WooCommerce System Status Report.
Soft79KeymasterBased on the screenshot I see you are using an older version of Extended Coupon Features. Please update first (current version is 2.5.2.2).
Soft79KeymasterIf you want a quote for custom work, please contact me through the contact page.
Soft79KeymasterNo plans for that. You can use .htaccess for this if you want. Or use a landingpage with a call-to-action-button.
Soft79KeymasterI can’t reproduce the issue. Can you please try it on a default theme? Are you using plugins that might conflict?
It’s true that auto coupon’s can’t be removed, this is by design. The ‘remove’ link must not be visible though, what theme and version are you using?
It’s also by design that for Auto coupons the description is displayed. This allows a friendlier message to be presented to the customer instead of the couponcode.
Soft79KeymasterI’ll take a look…
Soft79KeymasterI see. Just in case, what version of Extended Coupon Features and WooCommerce are you using?
Soft79KeymasterDo you get any Javascript errors?
Can you send me a screenshot, please?
Soft79KeymasterRobert,
with the new 2.5.2 release, it is possible to have an option free gift selection. It requires a template override.
1) Copy wp-content/plugins/woocommerce-auto-added-coupons-pro/templates/coupon-select-free-product.php to wp-content/themes/YOUR_CHILD_THEME/woocommerce/auto-added-coupons/coupon-select-free-product.php
2) Replace
$input_type = $allow_multiple_products ? 'number' : 'radio';
by$input_type = 'checkbox';
Now the radio-buttons will be replace by checkboxes, and it is also possible to checkout with no product selected.
-
AuthorPosts