Emmanuel ADEKPLOVI
Forum Replies Created
-
Hello @vanessaflibustiers ,
Thank you for reaching out. I see that youβre currently using the free version of the plugin. The screenshot i provided refers to a feature available in the Pro version.
Iβd recommend checking out our live demos to get a better idea of what the Pro version offers:
π https://www.orionorigin.com/generate-an-admin-demo/
If you like what you see, you can easily upgrade to the Pro plan at any time.
Let me know if you have any questions!
Hello @vanessaflibustiers ,
If your product list contains only the variations mentioned, you can set up your discount using the configuration shown below:
By configuring the discount this way, the discount should work correctly.
Thank you for your answer.
I’ll use the redirect to the print dialogue directly.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://ww.wp.xz.cn/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.phpat 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
ifcondition 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.phpat 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.