Adding to Category Pages

Out of the box, the "Notify me" button will be shown on the "Quick view" modal on category pages (PLPs), but not directly on the product grid.


However, this can be achieved with some additional JS configuration. This can be achieved by adding a new script using BigCommerce's Script Manager.

Create a new script, with the following settings:


  • Placement: Header
  • Location: Storefront pages
  • Script Category: Essential (or Functional)
  • Script Type: Script

The script content should be:

<script>
    window.BISAData = window.BISAData || {};
    window.BISAData.enable_list_alert_requests = true;
    window.BISAData.list_item_selector = '.productGrid .product .card-figcaption-body';
    window.BISAData.list_item_product_id_selector = 'a[data-product-id]';
    window.BISAData.list_item_out_of_stock_selector = 'a[data-product-id]';
    window.BISAData.list_item_out_of_stock_text = 'Out Of Stock';
    window.BISAData.list_item_button_label = 'Notify Me';
</script>

Each configuration field will need to be reviewed and updated to align with your theme:

Field name Description Example Value
enable_list_alert_requests Enable/disable PLP back-in-stock notifications true
list_item_selector The container of the products buttons .productGrid .product .card-figcaption-body
list_item_product_id_selector The selector for the element where the product ID can be found a[data-product-id]
list_item_out_of_stock_selector Selector for the element of the original out-of-stock button a[data-product-id]
list_item_out_of_stock_text The text value of the original out-of-stock button Out Of Stock
list_item_button_label The text you want the new out-of-stock button to have Notify Me

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us