-
Author
-
December 29, 2014 at 20:33 #40596Jsb828BeParticipant
Hi!
How to custom url woocommerce “return to shop/ Go to the shop” button? I would like to enter my own custom link when you press the “return to shop/ Go to the shop”.
Thanks in advance!
January 1, 2015 at 22:42 #40852AbeKeymasterHi, that is generated by Woocommerce if you are referring to the cart page when you don’t have products in cart.
The one from the menu cart then it is generated by the theme in this file wp-content/themes/kleo/lib/plugin-woocommerce/config.php in the function named kleo_woo_get_mini_cart around line 943.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.January 1, 2015 at 23:03 #40855Jsb828BeParticipantThanks for the reply. So how exactly can i make that button my custom url? I tried editing code in ftp, but no luck.
January 1, 2015 at 23:06 #40856AbeKeymasterYou need basic php knowledge and change the line I suggested, the href attribute.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.January 1, 2015 at 23:10 #40858Jsb828BeParticipantIn this line:
$cart_output .= '<a class="btn btn-default kleo-go-shop" href="'.esc_url( $shop_page_url ).'"><span class="text">'.__('Go to the shop', 'kleo_framework').'</span></a>';
change the
'.esc_url( $shop_page_url ).'
into my own url?
Because i tried that and it didn’t work.January 5, 2015 at 17:51 #41039AbeKeymasteryes that is what I meant, so it will be like:
COPY CODE$cart_output .= '<a class="btn btn-default kleo-go-shop" href="http://mysite.com/page"><span class="text">'.__('Go to the shop', 'kleo_framework').'</span></a>';
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.October 22, 2015 at 22:15 #83799prestoParticipantHi Abe,
I have attempted to edit the menu cart ‘go to the shop’ button in the manner you have described here but the changes are not taking. I am uploading the edited config.php to kleo-child > lib > plugin-woocommerce.
I changed the link to a URL from my site and changed the text on the button but neither of those changes are showing up. (I cleared my cache also; still no change.) Can you please tell me what I am missing?
Thanks!
November 6, 2015 at 00:40 #85826AbeKeymasterSorry for the late reply.
Unfortunately right now it is not possible to override the config file and only to change it in the main fileHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer. -
AuthorPosts
The forum ‘KLEO’ is closed to new topics and replies.