Forum Replies Created
-
AuthorPosts
-
Soft79Keymaster
This requires a php snippet. Please see https://www.soft79.nl/forums/topic/buy-product-a-get-30-off-each-product-b/
Soft79KeymasterPlease don’t send private information in this forum! Instead please send details to email address: admin at soft79.nl.
When I click the url you provided, I do see that I get a ‘live staging’ cookie, but when I try to enter wp-admin I get redirected to /404. Also, all pages display the ‘Stiamo lavorando al nostro nuovo sitoweb’ notification.
Soft79KeymasterI need (temporary) wp-admin access to investigate this further. Can you please send me credentials to admin at soft79.nl. If possible, please create a staging/test environment.
Soft79KeymasterIn that case you can’t restrict the coupon to the non-free shipping methods.
Just in case I send you a link to how FREE SHIPPING works in WooCommerce: https://woocommerce.com/document/free-shipping/ .
I suspect you don’t have a free shipping method configured. If you have, can you please send a screenshot of the configured free shipping method? ( WooCommerce > Settings > Shipping)
Soft79KeymasterSource of the problem is in this template file. Please let your theme developer take a look at it.
/home/sinituotefi/website/wp-content/themes/storefront/assets/functions/WC_SINI_Shipping.php
Please note: This is not an existing file in the original storefront theme. It looks like changes have been made to the storefront theme without using a child theme. This is not recommended!
Soft79KeymasterPlease provide the full stack trace of the error
Soft79KeymasterTo set the maximum number of free items to 2, paste this snippet in your child theme’s functions.php:
add_filter( 'wjecf_free_product_amount_for_coupon', function ( $amount, $coupon ) { if ( strcasecmp( $coupon->get_code(), 'THE_COUPON_CODE' ) === 0 && $amount > 2 ) { $amount = 2; } return $amount; }, 10, 2 );
To use checkboxes in the form:
Copy wp-content/plugins/woocommere-auto-added-coupons-pro/templates/coupon-select-free-product.php to wp-content/themes/YOUR_CHILD_THEME/woocommere-auto-added-coupons/coupon-select-free-product.php and replace$input_type = $allow_multiple_products ? 'number' : 'radio';
with
$input_type = $allow_multiple_products ? 'checkbox' : 'radio';
Soft79KeymasterWhen you check ‘allow multiplication’ the amount of products that can be chosen will be set to the number of times the minimum restrictions apply. E.g. if ‘minimimum subtotal’ is $100 and the cart contains $200 then 2 products can be chosen.
Soft79KeymasterHi, please provide the details to admin at soft79.nl.
Soft79KeymasterHi,
Thank you for sending me your coupon settings and video.
Your coupon has ‘enable free shipping’ checked, but there is no free shipping method configured. Please uncheck ‘enable free shipping’.
Soft79KeymasterI sent you a new url.
Soft79KeymasterHi,
Your store loads a css file ( /custom/themes/100×100/assets/css/100×100.min.css ) that contains the following css:
form input[type=checkbox],form input[type=radio]{display:none} input,input[type=submit]{-webkit-appearance:none;-moz-appearance:none;appearance:none}
These two css rules disable the free product selection.
Please disable these two css rules.
Soft79KeymasterHi, no our plugin doesn’t have timer-functionality.
Soft79KeymasterCan you please send an url + instructions for us so we can see this issue in your store? If you don’t want to share this information publicly, please send the details to admin at soft79.nl
Soft79KeymasterUse wp-admin > Tools > Export
-
AuthorPosts