• Resolved doublemarvellouscork

    (@doublemarvellouscork)


    Hi maybe this is a simple one, I can’t find the setting for this or in the docs.
    How do I change the word ‘Checkout’ to ‘Add to Cart’ or similar using the shortcode? The product pulls in fine but I can’t see how to change the wording in the button.

    [wps_products title=”This is the product title” direct_checkout=”true”]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author andrewmrobbins

    (@andrewmrobbins)

    @doublemarvellouscork

    Hey there,

    Try using the add_to_cart_button_text attribute, like this:

    
    [wps_products title="This is the product title" direct_checkout="true" add_to_cart_button_text="Add to cart"]
    
    Thread Starter doublemarvellouscork

    (@doublemarvellouscork)

    Hi

    Thanks, yes I did try that, but the text remains “Checkout”.

    [wps_products title=”Product Title” direct_checkout=”true” add_to_cart_button_text=”Add to cart”]

    Anything else I’m not doing right? This is Shop WP Pro if that makes any difference

    Plugin Author andrewmrobbins

    (@andrewmrobbins)

    @doublemarvellouscork

    I just finished taking a closer look at this.

    It looks like the plugin checks whether the add_to_cart_button_text value is “Add to cart” or not. If is, it just returns that text.

    So at the moment, the add_to_cart_button_text attribute won’t work if you set the value to “Add to cart”.

    Are you able to set it to something else?

    Thread Starter doublemarvellouscork

    (@doublemarvellouscork)

    Hi
    lol yes that has worked…ha ha the one phrase it checks against

    I got around it by adding the string ‘add to cart’ to the shortcode and using css text-transform to capitalize it so all good

    Thanks for sorting!

    Plugin Author andrewmrobbins

    (@andrewmrobbins)

    Clever solution! Glad you got it working. Let me know if you need anything else.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Change the word ‘Checkout’ when using shortcode’ is closed to new replies.