Diwali

Wishing you joy this Diwali and Halloween! Enjoy up to 20% OFF on all addons!

Claim Offer
03Day 14Hr 31Min 04Sec
Diwali

Change "Add to cart" to "Add"

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 1 reply thread
  • Author
    Posts
    • #46368
      boogiepet
      Guest

      Hi,

      Is there a way to change the “Add to cart” text to “Add” for products/bookings in a vendor’s store?

      Thanks in advance for the great support.

    • #46477
      WCFM Forum
      Member

      Hi,

      please add this code to your child theme’s functions.php –

      function wcfm_custom_translate_text( $translated ) {
      	$translated = str_ireplace( 'Add to cart', 'Add', $translated );
      	return $translated;
      }
      add_filter('gettext', 'wcfm_custom_translate_text');
      add_filter('ngettext', 'wcfm_custom_translate_text');

      Thank You

Viewing 1 reply thread
  • The topic ‘Change "Add to cart" to "Add"’ is closed to new replies.