Checkout message in Cart

Home Forums RestaurantPress Checkout message in Cart

This topic contains 3 replies, has 2 voices, and was last updated by  sanjeev3 6 months, 1 week ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1490

    redmars
    Participant

    Below the Cart Totals their is a message “Note: Shipping and taxes are estimated and will be updated during checkout based on your billing and shipping information.

    Where is this set? I would like to change it and add more.

    Also where is the color for the “Proceed to checkout” button set?

    #1501

    sanjeev3
    Moderator

    Hello @redmars,

    The color and the text are all set from woocommerce itself. However you can add the following CSS in customizer to change the color of the button.

    a.checkout-button.button.alt.wc-forward {
        background-color: red;
    }

    Also, for the text, you can hook on gettext filter:
    add_filter( 'gettext', 'change_estimated_shipping_taxes_text', 9999, 2 );

    Here is the refrence: https://gist.github.com/lmartins/9ed41e55b91d16de91eb

    #1506

    redmars
    Participant

    Not sure what or where a “hook a gettext filter” is, could you give a little more explanation.

    #1591

    sanjeev3
    Moderator

    You should create a child theme and add the following in your function.php:

    add_filter( 'gettext', 'change_estimated_shipping_taxes_text', 9999, 2 );
    
    function change_estimated_shipping_taxes_text {
          return 'Your changed text';
    }

    Here is the tutorial to create a child theme: https://themegrill.com/blog/tutorial-creating-wordpress-child-theme/

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

You must be logged in to reply to this topic.