Hi Silvester,
Thanks for getting back to us. Unfortunately, I didn’t find swatches after adding the voucher code.
Please check here- https://prnt.sc/xJSapUvWh3bP
Hope to hear from you soon!
Thank You
Hi Silvester,
Thanks for getting back to us. Unfortunately, I didn’t find swatches after adding the voucher code.
Please check here- https://prnt.sc/xJSapUvWh3bP
Hope to hear from you soon!
Thank You
Shoot Im sorry Hakik, Please give it a try one more time.
I modified the coupon.
Thank you!
Hi Silvester,
Please add the below CSS at Appearance > Customize > Additional CSS
.woocommerce-cart.woo-variation-swatches .variable-items-wrapper.enabled-large-size .variable-item:not(.radio-variable-item) {
height: var(--wvs-single-product-large-item-height,40px) !important;
}
Some plugin is adding additional inline CSS here- https://prnt.sc/_9dBL_OA8UHe
That’s why it was happening. I hope it will resolve your issue.
After adding the above, don’t forget to clear your caches.
Hope to hear from you soon!
Thank You
Hi Silvester,
We need an event from your coupon plugin that should be triggered after products are loaded.
Just send this plugin to your Smart coupons for Woocommerce plugin developer: https://wordpress.org/plugins/malinky-ajax-pagination/
And ask them to send triggers like the following as the Malinky Ajax Pagination plugin provides.
document.addEventListener(‘malinkyLoadPostsComplete’, function(e) {
console.log(‘LoadPostsComplete’);
});
Like this filter plugin: https://woocommerce.com/products/product-filters/
jQuery(document).ready(function( $ ){
// Your code in here
jQuery(window).on(‘wcpf_update_products’, function () {
console.log(‘Hi’);
});
});
Thank You
Hello Hakik, so developer couldnt provide me with what you requested but they sent me this snippet.
add_filter(‘woocommerce_coupon_is_valid’, ‘trigger’, 1000, 2);
function trigger($valid, $coupon){
$coupon_id = $coupon->get_id();
if(Wt_Smart_Coupon_Giveaway_Product_Public::is_bogo($coupon))
{
$bogo_customer_gets = Wt_Smart_Coupon_Giveaway_Product_Public::get_coupon_meta_value($coupon_id, ‘_wt_sc_bogo_customer_gets’);
if(!empty($bogo_customer_gets)){
?>
<script src=”//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js“></script>
<script>
window.jQuery || document.write(‘<script src=”http://mysite.com/jquery.min.js“><\/script>’)
</script>
<script>
jQuery(‘document’).ready(function(){
jQuery(document).on(“click”,’.wt_sc_giveaway_products_cart_page’, function(){
console.log(‘webtofee giveaway trigger’);
});
});
</script>
<?php
}
return $valid;
}
}
I activated it on the website.
Could it help you?
Thanks!
Hi Silvester,
I have tried the page. It is not the trigger we need.
Check this- https://paste.pics/JF1V9 we need a trigger after pressing the apply coupon button.
Because the below product loads while you are clicking on the apply coupon.
I hope it will help your plugin author to understand what we need.
Thank You
Incompatibility with Smart Coupons for WooCommerce
Silvester Csémy
Hello,
I think there is incompatibility with Smart coupons for Woocommerce plugin.
https://www.webtoffee.com/product/smart-coupons-for-woocommerce/
When you apply coupon in cart with Buy one get one function, both color and size variations are big and cant be selected.
Could you pls check?
Testing voucher code: HGBMQCTA
Thank you for your help!