Fabrice ESQUIROL
Forum Replies Created
-
So following your code, this should work for you :
function disable_partial_payment() {
if (payments_category_is_in_the_cart()) {
add_filter(‘woo_wallet_disable_partial_payment’, ‘__return_true’);
}
}
add_action( ‘woocommerce_cart_calculate_fees’,’disable_partial_payment’);Did you found a workaround for this ? I got exactly the same need, i want to disable partial payment if there is a subscription product in the cart, but keep it enabled for other products.
I found that the code add_filter(‘is_enable_wallet_partial_payment’, ‘__return_false’); won’t work inside the ‘woocommerce_available_payment_gateways’ filter.
The following code : add_filter(‘woo_wallet_disable_partial_payment’, ‘__return_true’); works fine if called inside :
add_action( ‘woocommerce_cart_calculate_fees’,’Your_function_to_check_category_in_cart’);- This reply was modified 4 years, 10 months ago by Fabrice ESQUIROL. Reason: typo
Forum: Reviews
In reply to: [Simple Divi Shortcode] It works!You can t add a tab inside another tab or a togle inside another one (same for accordions…) This is due to javascript way of handling events by divi modules.
Forum: Reviews
In reply to: [Simple Divi Shortcode] It works!Just did a test and it works perfect with 3 blurbs inside a tab. Pretty sure you have a design issue.
Let’s take a look at the following screen capture : Left are 3 blurbs, right are same blurbs inside a tab module. They are shrinked (due to tab width) but style is exactly the same.
Forum: Reviews
In reply to: [Simple Divi Shortcode] It works!Maybe you need to adjust the style. Did you check if your tab width is large enough to contain your blurbs ? Or what is responsible of the first blurb losing style ?
And so why can we read in error : Cannot redeclare showmodule_shortcode() (previously declared in /public_html/wp-content/themes/divi_child_theme/functions.php:2746)
So the showmodule function is already declared inside functions.php
Someone did add the function, the plugin can’t add it because it already exist…
Forum: Plugins
In reply to: [Simple Divi Shortcode] Duplicate shortcode contentI’m sorry, i didn’t received a notification of your reply.
I never had any issue with a price module inside a tab module.Just build a section with one column, put your price module in that column and then call the section using the shortcode.
Forum: Plugins
In reply to: [Simple Divi Shortcode] Solution – The proper way for the NEW DiviAs said previously, i never had any style problem, so i can’t see what you’re talking about. Maybe you can contact me by mail and tell me more about your problem.
Hi, if you look at the error, you’ll see that you did a mistake. You previously installed the code from my blog inside functions.php and next you tried to install the plugin. The function name is the same, so you can’t redeclare the function showmodule. Plugin does the same job than showmodule function. So remove the function from functions.php and install and activate the module, or keep the function but don’t install the plugin.
Forum: Plugins
In reply to: [Simple Divi Shortcode] How to use in a footer widgetThanks for your solution. I do same using php template but having an alternative way to do it is nice.
Forum: Plugins
In reply to: [Simple Divi Shortcode] Duplicate shortcode contentHi, what did you try to insert inside tab content ? There are known limitations like trying to insert a tab in a tab or an accordion inside another one.
Can you describe what you want to achieve and the way you build library items ?
Forum: Plugins
In reply to: [Simple Divi Shortcode] Plugin is not working since last update.No more news from Tim. The plugin has been tested working with last DIVI update.
Forum: Plugins
In reply to: [Simple Divi Shortcode] Plugin is not working since last update.Hi Tim, i’m sure your crash has nothing to do with Simple Divi Shortcode plugin.
I’ve tested it up to last DIVI revision without any problem.
As said by mail, you can desactivate the plugin via FTP by changing plugin folder name inside wp-content/plugins/Kind regards,
FabriceForum: Plugins
In reply to: [Simple Divi Shortcode] Module dividingHi, sorry for the delay, i wasn’t notified for your question.
In order to use the shortcode inside a php template, just use the following syntax (where you have to replace the id with your DIVI library item ID)
echo do_shortcode(‘[showmodule id=”28827″]’);
Forum: Plugins
In reply to: [Google Authenticator] New Maintainer, Version 0.50Thanks Ivan, this plugin is a great tool, i’m glad to see updates and improvements ??
- This reply was modified 5 years, 7 months ago by Fabrice ESQUIROL.