[Resolved] Woocommerce Add to Cart and Checkout pages not displaying correctly

Home Forums Support Woocommerce Add to Cart and Checkout pages not displaying correctly

  • This topic has 5 replies, 3 voices, and was last updated 2 months ago by Tom.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1224708
    Elzanne

    Good day,

    I please need your assistance on the following in Woocommerce:

    I have changed the “Add to Cart” button text to “Place Order” instead, with a plugin that I have used.

    How to I change the text of “View Cart” to “View Order”?

    Also the following issues:

    “View Cart” must open in the “Your Order”-page, but it is not displaying on that page at all.
    The Checkout page must open in the “Place Your Order”-page, but just as above it is not displaying at all.

    Also, I am unable to enter a number in the block when on the individual product page to place an order (or add to cart).

    Please assist.

    Thank you very much.

    Elzanne

    #1225394
    David
    Staff
    Customer Support

    Hi there,

    1. you would need to use the gettext function like so:

    add_filter( 'gettext', function( $translated_text ) {
        if ( 'View cart' === $translated_text ) {
            $translated_text = 'Your new text here';
        }
    
        return $translated_text;
    } );

    Adding PHP:
    https://docs.generatepress.com/article/adding-php/

    2. In Woocommerce > Settings have you check the Page setup to make sure the correct page is selected for the Checkout ?

    3. Can you check for plugin conflicts by disabling other Plugins

    #1225973
    Elzanne

    Thank you David.

    Regarding the buttons text, I came right with the PHP by using Code Snippets, and it works perfectly.

    I have checked my Woocommerce setting, the pages are indeed set up correctly. I have deactivated all my plugins except for GP Premium, Woocommerce and Code Snippets and still the View Cart and Checkout Pages did not display under the allocated pages as set up in Woocommerce advanced settings.

    When I add an item to my cart and I click on the “view order” (view cart) button, it links to the correct page but no information is displaying and the page is completely blank.

    I am not sure what I am doing wrong.

    Please advise.

    Thank you.

    Regards,

    Elzanne

    #1226491
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Do your cart/checkout pages have the necessary shortcodes on them?: https://docs.woocommerce.com/document/woocommerce-shortcodes/#section-4

    #1227007
    Elzanne

    No, there was no shortcode on these pages.

    Thank you so much for your assistance.

    Friendly regards,

    Elzanne

    #1227516
    Tom
    Lead Developer
    Lead Developer
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.