Skip to content

Commit

Permalink
Change offcanvas alert classes
Browse files Browse the repository at this point in the history
  • Loading branch information
crftwrk committed Feb 16, 2023
1 parent b2a822b commit 3872704
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions woocommerce/ajax-cart/ajax-add-to-cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ function bootscore_product_page_ajax_add_to_cart_js() {

let notice = '';
if (response.error == true) {
notice = `<div class='woocommerce-message alert alert-danger'><?php _e('You cannot add another', 'bootscore'); ?>${prod_title}<?php _e('to your cart.', 'bootscore'); ?></div>`;
notice = `<div class='woocommerce-error'><?php _e('You cannot add another', 'bootscore'); ?>${prod_title}<?php _e('to your cart.', 'bootscore'); ?></div>`;
} else {
notice = `<div class="woocommerce-message alert alert-success">“${prod_title}<?php _e('has been added to your cart.', 'bootscore'); ?></div>`;
notice = `<div class="woocommerce-message">“${prod_title}<?php _e('has been added to your cart.', 'bootscore'); ?></div>`;
}

// Add new notices to offcanvas
Expand Down

0 comments on commit 3872704

Please sign in to comment.