- This topic has 5 replies, 3 voices, and was last updated 4 years ago by Tom.
-
AuthorPosts
-
April 3, 2020 at 5:08 am #1224708Elzanne Botha
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
April 3, 2020 at 11:01 am #1225394DavidStaffCustomer SupportHi 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
April 4, 2020 at 2:18 am #1225973Elzanne BothaThank 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
April 4, 2020 at 9:35 am #1226491TomLead DeveloperLead DeveloperHi there,
Do your cart/checkout pages have the necessary shortcodes on them?: https://docs.woocommerce.com/document/woocommerce-shortcodes/#section-4
April 5, 2020 at 12:37 am #1227007Elzanne BothaNo, there was no shortcode on these pages.
Thank you so much for your assistance.
Friendly regards,
Elzanne
April 5, 2020 at 9:13 am #1227516TomLead DeveloperLead DeveloperYou’re welcome 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.