nwells
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce Email Order Digest] Get an error while want to use test text boxThe error appears to be related to a refund order which I hadn’t considered before. It is also failing to retrieve the billing country for the order which is normally a required field. Is this field not required on your website during checkout? Or was it a manually created order on your site and not all the data was filled out?
Forum: Plugins
In reply to: [WooCommerce Email Order Digest] Only 10 orders are beingsent to the emailWell done getting more orders each day.
WordPress defaults its query to 10 pages which can be adjusted in your general settings. To save the hassle, I’ve change the query used for the email to always include every order regardless of what that setting is now.
I’ve just pushed through an update to the plugin so it should be available within the next 24 hours..
I’ve just tried it on a site and it worked fine. It is likely the context of what page you’re adding it on i.e. the code above assumes it is on a product single page. If it is is anything else then it likely won’t work due to how the ZIP plugin works out what to show.
You’d need to wrap that code in a new shortcode if you don’t already have one and, yes, add it to your
functions.php
fileadd_shortcode('elementor_zip', function() { if ( ! class_exists( 'WC_Zipmoney_Payment_Gateway' ) ) { return; } $zip = new WC_Zipmoney_Payment_Gateway(); $zip->WC_Zipmoney_Payment_Gateway_Config = new WC_Zipmoney_Payment_Gateway_Config( $zip ); $zipWidget = new WC_Zipmoney_Payment_Gateway_Widget( $zip ); $zipWidget->render_root_el(); $zipWidget->render_widget_product(); });
You could then add the shortcode
[elementor_zip]
as a Shortcode Widget in Elementor.I’ve not tried out this exact example but it will be something like that.
I just posted some code to do this here if you’re still after something:
https://www.ads-software.com/support/topic/how-to-integrate-with-elementor/I had the same issue and ended up having to create a shortcode to then place the widget in the Elementor template. The Zip widget hooks in to the normal WooCommerce woocommerce_single_product_summary which of course doesn’t get triggered when creating your own product template in Elementor.
My shortcode contains this if it is of any use to anyone:
if ( ! class_exists( 'WC_Zipmoney_Payment_Gateway' ) ) { return; } $zip = new WC_Zipmoney_Payment_Gateway(); $zip->WC_Zipmoney_Payment_Gateway_Config = new WC_Zipmoney_Payment_Gateway_Config( $zip ); $zipWidget = new WC_Zipmoney_Payment_Gateway_Widget( $zip ); $zipWidget->render_root_el(); $zipWidget->render_widget_product();
Ideally, yes, we’d have a nice Elementor widget which the above could easily be converted in to one.
Forum: Plugins
In reply to: [Variation Swatches for WooCommerce] Not clickable variationsI found a partial fix (v 1.1.17) by editing the free plugin file, woo-variation-swatches.php around line 362.
There is an IF statement with a comment saying “If defer enable…” but the IF statement is actually just checking if the pro version is active – I suspect this is the bug. My temporary fix was to comment out that whole first block of the IF statement and just use the wp_enqueue_script in the ELSE block.Part of the issue is wp_localize_script won’t register the handle woo-variation-swatches as it hasn’t been set yet.
I still have a minor issue on archive pages which I’ll work through but it at least works on the product pages now. Hopefully they can fix this before their next version otherwise any fix will need to be applied again.
Not currently but it could be added.
You’d expect to just have the same summary but of all orders from the last x number of days?Forum: Plugins
In reply to: [WooCommerce Email Order Digest] Nice PluginYes that is something that would be useful. I’ve typically hard coded it in there when testing but I’m the developer and can do that ??
I’ll look to create a button along with a field so you can set the date you want to test it on as well.
Would that be enough do you think?
- This reply was modified 4 years, 9 months ago by nwells.
Forum: Plugins
In reply to: [WooCommerce Email Order Digest] Does this work with WC3.5 and WP 5?@dethfire I can confirm that it works fine on WP5.0.3 and WC3.5.4. I’m yet to test on the very latest but will do so when the next release comes out shortly which will have improved support for translations.
Yes it is still being supported.
Forum: Plugins
In reply to: [WooCommerce Email Order Digest] InternationalizationThanks for the rating! I’ve made a note to include this in the next release.
Forum: Plugins
In reply to: [WooCommerce Email Order Digest] Plugin enhancementsThanks for the request – I’ve added this to the list of updates for the new release. Will let you know once its ready.
Forum: Plugins
In reply to: [GF Windcave Free] Account2Account is not supportedHi @deosc, in order to have the A2A option appear you need to get DPS to enable it on your account as it isn’t something that is on by default. There is nothing in the plugin or any code you need to change in order for it to appear.
I’ve had the same issue – doesn’t appear to check any logic to see if the state is required in certain countries.
I’ve developed this hook which appears to do the job if you’re interested – goes in your functions.php file:
add_filter( 'woocommerce_checkout_fields' , function($fields) { $WC = WC(); $WC_Countries = new WC_Countries(); $states = $WC_Countries->get_states($WC->customer->get_country()); if($states !== false && !count($states)) { $fields['billing']['billing_state']['required'] = false; } $states = $WC_Countries->get_states($WC->customer->get_shipping_country()); if($states !== false && !count($states)) { $fields['shipping']['shipping_state']['required'] = false; } return $fields; });
Hope this helps
I’ve had the same issue – doesn’t appear to check any logic to see if the state is required in certain countries.
I’ve developed this hook which appears to do the job if you’re interested – goes in your functions.php file:
add_filter( 'woocommerce_checkout_fields' , function($fields) { $WC = WC(); $WC_Countries = new WC_Countries(); $states = $WC_Countries->get_states($WC->customer->get_country()); if($states !== false && !count($states)) { $fields['billing']['billing_state']['required'] = false; } $states = $WC_Countries->get_states($WC->customer->get_shipping_country()); if($states !== false && !count($states)) { $fields['shipping']['shipping_state']['required'] = false; } return $fields; });
Hope this helps