Plugin is working with WordPress 4.9.4 – and the plugin is working with WooCommerce 3.3.1.
Please read our minimum requirements first:
1. PHP version 5.6 minimum
2. WooCommerce 3.x minimum
3. Your theme must be ready for WooCommerce 3.x also
After that you can share a URL with us support [at] decom.ba – so we can take a closer look, but you must have minimum requirements set.
Sorry but i have:
1. WooCommerce 3.3.1
2. Me theme is storefront 2.2.8 (last version)
3. PHP 2.0.26
and the plugins not work.
When you’re going to select a gift, the plugin will be inserted in the cart with price, not as a gift.
You must update PHP to minimum 5.6 version (7.0 or 7.1 will give you small speed boost)
We have test environment:
WooCommerce 3.3.1
Storefront latest
PHP 5.6 , 7.0 and 7.1
* and plugin is working as it should, could you once again check your PHP version (phpinfo)?
it´s ok!
I did this and now work!
How to add code / giftable fast fix for disabled buttons:
1. Copy/Paste code to footer.php <script> paste code here </script>
2. Use a plugin “Custom CSS & JS” to add a code – without <script> just a code.
Gist full code can be found here
or copy/paste this:
jQuery( document.body ).on( ‘updated_cart_totals’, function(){
if ( jQuery( ‘#dgfw-gifts-carousel’ ).length ) {
jQuery( ‘.dgfw-gift’ ).each(function( ) {
jQuery( ‘.dgfw-add-gift-button, .dgfw-select-gift-button’ ).prop( ‘disabled’, false);
});
}
});
jQuery( window ).on( “load”, function() {
if ( jQuery( ‘#dgfw-gifts-carousel’ ).length ) {
jQuery( ‘.dgfw-gift’ ).each(function( ) {
jQuery( ‘.dgfw-add-gift-button, .dgfw-select-gift-button’ ).prop( ‘disabled’, false);
});
}
});
I think this can help you, if you are using plugin “Custom CSS and JS”
This is JavaScript code, so it should go to JavaScript:
1. Custom CSS & JS (install plugin)
2. Add JS Code (add new code via plugin)
3. Remove everything and Copy/Paste the code you need (from this post or from github – its the same code)
4. Sidebar > Where on page: Select Footer
Screenshot CSS & JS – how to add code
-
This reply was modified 8 years, 2 months ago by
DecomTeam.
Add to cart – button are fixed in latest version Giftable for WooCommerce 1.0.1