Tagged: x
-
AuthorPosts
-
August 29, 2016 at 9:26 am #1151800
[email protected]ParticipantTrying to change Proceed to Checkout link, can not find where:
http://dyesub.alldigitalusa.com/wp/cart/
Thanks in advance
August 29, 2016 at 10:02 am #1151858
LelyModeratorHi There,
Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.
That button is in proceed-to-checkout-button.php file of woocommerce plugin folder here:wp-content\plugins\woocommerce\templates\cart. To update that button, copy that file on this folder: \wp-content\themes\x-child\woocommerce\cart. Open the copied file and you can see that text on line 27 of the code. Update as you wish.
Hope this helps.
August 31, 2016 at 8:41 am #1155107
[email protected]ParticipantThanks for your help, but I can not find where is \wp-content\themes\x-child\woocommerce\cart.
The path that I found is public_html/wp/wp-content/themes/x-child/framework/views/integrity
Please let me know what I made wrong.
Thanks again
August 31, 2016 at 10:09 am #1155236
LelyModeratorHi There,
Please create those folder if it is not existing yet. By default, since you don’t have any customization for woocommerce yet, those folder is not existing at the moment. Sorry I forgot to mention this. Inside x-child folder, create woocommerce folder, then inside that folder, create cart folder. Then copy the file inside.
Hope this helps.
August 31, 2016 at 10:49 am #1155291
[email protected]ParticipantThanks, sorry for the ignorance, I don’t know how to direct the line 27 to my checkout page
<?php echo __( ‘Checkout’, ‘woocommerce’ ); ?>
Please help me, need to know what I have to wrote in line 27, I am not familiar with that
Thank You!
August 31, 2016 at 12:28 pm #1155460
Nabeel AModeratorHi again,
Let’s try a simple way. Please add the following jQuery script in your Customizer via Appearance > Customize > Custom > Edit Global Javascript
jQuery(document).ready(function($){ $('a.checkout-button.button').attr("href", "http://dyesub.alldigitalusa.com/wp/checkout/"); });Don’t forget to clear your browser’s cache after adding the code. Let us know how this goes!
August 31, 2016 at 2:24 pm #1155597
[email protected]ParticipantThat worked perfect Thanks a lot!!
August 31, 2016 at 3:17 pm #1155652
JoaoModeratorGlad to hear it,
Let us know if we can help with anything else.
Joao
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1151800 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
