Title: Change alert message
Last modified: April 29, 2021

---

# Change alert message

 *  Resolved [Jonas](https://wordpress.org/support/users/gnuworld/)
 * (@gnuworld)
 * [5 years ago](https://wordpress.org/support/topic/change-alert-message/)
 * Is there a way that we can override how this alert/error message is worded?
 * “Please select a purchasable product in the component before adding to the cart.”
 * In our case we don’t set up composite products with required product groups where
   the user can pick one of several products.
 * Instead we might have 3x product groups, each of which only has one product in
   it, but all 3 product groups are required.
 * So if one of those required products/product groups is out of stock then that
   error message is showing up, but it would be far better if we could rephrase 
   it to something like:
 * “A required component product is out of stock. The bundle cannot be purchased
   until it is back in stock.”

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Support [miemie](https://wordpress.org/support/users/miemie/)
 * (@miemie)
 * [5 years ago](https://wordpress.org/support/topic/change-alert-message/#post-14377604)
 * Hi [@gnuworld](https://wordpress.org/support/users/gnuworld/),
    In order to manage
   the stocks of the composite, you can go to the Inventory tab, put a check to “
   Enable stock management at product level” >> enter a stock quantity in the box
   under that to set up the available stock for the composite product.
 * Note: If you enable the stock management option without entering any number for
   the quantity, your product will be “Out of Stock” in the front-end.
 * If you have set up the stock properly but the “Out of Stock” notification keeps
   showing, you can also go to WPClever >> Composite Products, choose “Yes” for “
   Exclude un-purchasable”, in the front-end, out-of-stock products will be removed
   and your composite product will be in stock again.
    [https://prnt.sc/128809k](https://prnt.sc/128809k)
 * Besides, You can hide alert text from the plugin setting: WPClever >> Composite
   Products >> choose “No, always hide the alert” for the “Show alert” option >>
   Update options.
    [https://prnt.sc/12883iy](https://prnt.sc/12883iy) Regards,
    -  This reply was modified 5 years ago by [miemie](https://wordpress.org/support/users/miemie/).
    -  This reply was modified 5 years ago by [miemie](https://wordpress.org/support/users/miemie/).
 *  Thread Starter [Jonas](https://wordpress.org/support/users/gnuworld/)
 * (@gnuworld)
 * [5 years ago](https://wordpress.org/support/topic/change-alert-message/#post-14377653)
 * Hi [@miemie](https://wordpress.org/support/users/miemie/)
 * The ‘Exclude unpurchasable’ setting is not suitable if we want to only sell the
   composite when all component products are available. We are not trying to force
   the composite back to ‘in stock’.
 * And hiding the alert is not good for UX because it can actually explain to customers
   why the composite cannot currently be purchased.
 * Is there no function to change the alert text?
 *  Plugin Author [WPClever](https://wordpress.org/support/users/wpclever/)
 * (@wpclever)
 * [5 years ago](https://wordpress.org/support/topic/change-alert-message/#post-14387089)
 * Hi [@gnuworld](https://wordpress.org/support/users/gnuworld/)
 * Please follow [this article](https://wpclever.net/faqs/plugin-translation) to
   change the text in our plugin.
 * The original text for search and replace is:
 * `Please select a purchasable product in the component [name] before adding to
   the cart.`
 *  Thread Starter [Jonas](https://wordpress.org/support/users/gnuworld/)
 * (@gnuworld)
 * [5 years ago](https://wordpress.org/support/topic/change-alert-message/#post-14390647)
 * [@wpclever](https://wordpress.org/support/users/wpclever/) Thank you
    -  This reply was modified 5 years ago by [Jonas](https://wordpress.org/support/users/gnuworld/).

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Change alert message’ is closed to new replies.

 * ![](https://ps.w.org/wpc-composite-products/assets/icon-128x128.png?rev=2527543)
 * [WPC Composite Products for WooCommerce](https://wordpress.org/plugins/wpc-composite-products/)
 * [Support Threads](https://wordpress.org/support/plugin/wpc-composite-products/)
 * [Active Topics](https://wordpress.org/support/plugin/wpc-composite-products/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpc-composite-products/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpc-composite-products/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Jonas](https://wordpress.org/support/users/gnuworld/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/change-alert-message/#post-14390647)
 * Status: resolved