Emmanuel ADEKPLOVI
Forum Replies Created
-
Hello,
In order to understand the problem you are experiencing, could you please share your WooCommerce status?
You can find it here ( WooCommerce > Status ).
Hello @dgiraudaudine ,
Thank you for reporting this problem, we’ll check it with the flatsome theme and get back to you as soon as possible.
Hi @rorutiz,
I don’t know if you have a custom code written in code snippet plugin, if yes comment all your code and let me know if you are still encountering issue when activating the plugin.
I meant at least one version no higher than 2.30.
Hello @rorutiz,
Thanks for providing the details, but it didn’t really help me reproduce the problem. The status log we’re looking for is the one containing the name fatal-errors: https://prnt.sc/NoCq301gr8jX
Have you experienced the problem with our previous version of the plugin, if not can you download it from here :
https://wordpress.org/plugins/woo-advanced-discounts/advanced/Once you’ve done that, can you send us a screenshot of the discounts you’ve configured on your website?
Best regards
Hello @rorutiz ,
In order to provide you useful help, we need you to provide us the following details :
- WooCommerce System Report ( you can find it here : Woocommerce > Status )
- WooCommerce Status Log ( you can find it here : Woocommerce > Status > Log )
- the number of products your store currently has
By providing these information, this will help us to find easily where is the problem.
Best regards
Hi @dgiraudaudine,
I was able to check the configuration of your site, the problem was related to one of our plugin dependencies. In order to be able to see the social sharing icon, I’d like you to include the following code in your child theme.
Once this is done, your users will be able to easily share their content on social networks.
The css to apply:.tooltip { position: unset !important; z-index: unset !important; display: unset !important; font-size: unset !important; line-height: unset !important; opacity: unset !important; filter: unset !important; visibility: unset !important; }
If you don’t know how to include custom css, here’s a tutorial explaining how to do it: https://www.wpbeginner.com/plugins/how-to-easily-add-custom-css-to-your-wordpress-site/
Best regards
To better assist you, could you please provide more information? Specifically, it would be helpful to know the configuration of your discounts, the current output displayed during the checkout process, and the expected results you have in mind. This will allow us to better understand the problem and provide more tailored guidance.
I observed the same issue, and I have a solution for you. You’ll need to modify the code in the file
class-wad-products-list.php
at line 629. Replace the existingif ('post__not_in')
condition with the following code:if ('post__not_in' == $parameter) { $args[$parameter] = array_map('intval', explode(',', $raw_args[$parameter])); $products = wc_get_products(array('type' => 'variable', 'include' => $args[$parameter])); if (!empty($products)) { $variations = array_reduce( array_map( function ($e) { return $e->get_children(); }, $products ), function ($carry, $item) { return array_merge($carry, $item); }, [] ); $args[$parameter] = array_merge($args[$parameter], $variations); } }
The code provided earlier is working.
After editing the code, could you please go to the product list screen, evaluate, and let me know if the excluded product is still displayed there?
If not, the price will not be discounted twice.
Regarding the issue where the discount is applied twice on the checkout page, you need to modify the following file:
wp-content/plugins/woo-advanced-discounts/includes/class-wad-products-list.php
.Go to line 682 and replace the existing
if
condition with this code:if (isset($args['post__not_in']) && !empty($args['post__not_in'])) { $wad_last_products_fetch = array_diff($wad_last_products_fetch, array_map('intval', $args['post__not_in'])); }
This modification should resolve the issue with the double discount on the checkout page.
I have been able to locate the issue and have a solution for the issue you encountered with the variations. You can implement the following code into the file
wp-content/plugins/woo-advanced-discounts/includes/class-wad-products-list.php
at line 752:if ( ! empty( $parents_ids_str ) ) {
$results = $wpdb->get_col(
$wpdb->prepare( "SELECT DISTINCT id FROM $wpdb->posts WHERE post_parent IN ($parents_ids_str) AND post_type = %s",
'product_variation'
)
);
}Let me know, if it resolves the issue you’re encountering.
Hello,
I followed the configuration suggested by the screenshots and I was able to apply the discounts on the cart and the checkout.
In order to solve the problem as soon as possible, can you please tell us the version of the plugin you are experiencing the problem with?
And can you share your WooCommerce status page ( You can find it in the WooCommerce menu WooCommerce>Status>System status ) .
Thank you.
Hello,
I would like to know if you are still experiencing issues with the plugin. If so, please contact us through our live chat here, as we have an update that addresses this problem.
Thank you.
Hello,
I would like to know if you are still experiencing issues with the plugin. If so, please contact us through our live chat here, as we have an update that addresses this problem.
Thank you.