WCMp Vendor Stock Alert
Tagged: display_stock_alert_form
-
AuthorPosts
-
-
August 1, 2022 at 6:08 PM #140980kote.frParticipant
Hello,
I have a problem with the [display_stock_alert_form] and the variable products.
Indeed, if a variable product has 1 variation out of stock, the form appears and I can’t choose another variation (which would still be in stock).
Maybe my template is badly prepared…
Here is the extract of my content-single-product.php :<?php echo woocommerce_template_single_rating(); ?>
<?php if($product->get_stock_status() == ‘outofstock’) { echo do_shortcode( ‘[display_stock_alert_form]’ ); } ?>
<?php echo woocommerce_template_single_add_to_cart(); ?>
<?php echo woocommerce_template_single_meta(); ?>
<?php echo woocommerce_template_single_sharing(); ?>
<?php echo woocommerce_template_single_price(); ?>Is there a solution to this?
Sincerely,
Quentin
-
August 3, 2022 at 6:51 PM #141031MVX Support NinjaKeymaster
Hi,
we have checked our end and it’s working fine.
Let me did you added custom code?
If yes then please checkout the page for coding structure.
https://github.com/wcmarketplace/woocommerce-product-stock-alert/blob/master/classes/shortcode/class-woo-product-stock-alert-shortcode-display-stock-alert-form.phpRegards,
-
August 3, 2022 at 7:39 PM #141038kote.frParticipant
Here is an example: https://horse-liberty.fr/produit/pantalon-homme-horse-pilot-x-balance-2020-2/
The only product NAVY – L has 1 stock. The others are at 0.
I can’t click on the others to see the stock alert form.
I am using Variation Swatches for WooCommerce plugin (By Emran Ahmed) to handle variations like radio buttons.
-
-
August 4, 2022 at 6:42 PM #141055MVX Support NinjaKeymaster
Hi,
I have checked your end. Maybe Variation Swatches for WooCommerce plugin or your theme block this. Kindly check and ask to your plugin/theme author to fix this.Regards,
-
August 9, 2022 at 1:21 PM #141134kote.frParticipant
Hello,
I have managed to make sure that I can click on the out of stock variations.
https://horse-liberty.fr/produit/pantalon-homme-horse-pilot-x-balance-2020-2/
In this example, sizes XS, S and M are out of stock and size L has 1 stock.
I would like your Stock Alert plugin to display the [display_stock_alert_form] for the 3 out of stock variations but not on the one still in stock.
Is there a way (dynamically during the variation change event/trigger or more simple?) to search for/know the stock value (instock or outofstock) of the current variation?
Sincerely,
Quentin
-
August 9, 2022 at 6:24 PM #141149MVX Support NinjaKeymaster
Hi,
Kindly checkout the video – https://www.awesomescreenshot.com/video/10416167?key=f701a2d60c6237449856a87cfc6bf993The default flow is working fine on our end.
May be your issue coming from the theme or the variation Swatches for WooCommerce plugin.
Kindly deactivate and test.Regards,
-
August 10, 2022 at 8:15 PM #141165kote.frParticipant
Ok, thank you for your answer.
Indeed I customized the basic theme. For information if someone has the same problem, I found the solution.
Just add a filter in function.php : https://stackoverflow.com/questions/53437611/add-a-contact-form-to-out-of-stock-product-variations-in-woocommerceThanks for your help !
Quentin
-
August 10, 2022 at 9:00 PM #141175NerdySupportExpert MoumitaKeymaster
We are happy to help @Quentin
-
-
AuthorPosts
The topic ‘display_stock_alert_form on Variable product’ is closed to new replies.