Change "Adding" and "Added" text on add to cart buttons globally

Does someone have a simple solution for changing the “Adding” and “Added” text which appears when and after a product is added to the shopping cart on the archive pages and related product widget?

On the normal add to card button, you have the option to change the AJAX text:

This option is missing for the archive pages and related products widget.

I would be nice if there was a global option for it.

Thanks in advance.

1 Like

I also tried to solve it by building a custom query for displaying the products, with adding the “add to card” button in the query so that I could change the text via de build in settings of the Bricks “Add to cart” button.

But after changing the text of it, it still displays the “Adding” and “Added” text. That looks like a bug. The option seems only to work when there is 1 add to cart button on the page.

Strange that there are not more messages about this on the forum, there must be more people using the WooCommerce Bricks builder in other languages than English.

Hoping some has a fix, thanks again!

Fixed it for now with the following snippet:

function my_theme_enqueue_scripts() {
wp_localize_script(
‘bricks-scripts’,
‘bricksWooCommerce’,
[
‘ajaxAddToCartEnabled’ => true,
‘ajaxAddingText’ => esc_html__( ‘Fill your custom adding text here’, ‘bricks’ ),
‘ajaxAddedText’ => esc_html__( ‘Fill your custom added text here’, ‘bricks’ ),
]
);
}
add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_scripts’, 100 );

1 Like

Hi I’m running Bricks 1.7 and I’m not seeing the option AJAX under tab ‘Button’ for the Add to Cart Block… Do I mis something?

Did you activate “Ajax add to cart” under the global Bricks settings?

Check, I saw that I didn’t activate the Ajax add to cart option. Thanks.
Is it easy to have the text 'go to shopping cart ’ below the button?

I have fixed it with css thanks it works fantastic

1 Like