Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1151800
    [email protected]
    Participant

    Trying to change Proceed to Checkout link, can not find where:

    http://dyesub.alldigitalusa.com/wp/cart/

    Thanks in advance

    #1151858
    Lely
    Moderator

    Hi 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.

    #1155107
    [email protected]
    Participant

    Thanks 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

    #1155236
    Lely
    Moderator

    Hi 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.

    #1155291
    [email protected]
    Participant

    Thanks, 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!

    #1155460
    Nabeel A
    Moderator

    Hi 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!

    #1155597
    [email protected]
    Participant

    That worked perfect Thanks a lot!!

    #1155652
    Joao
    Moderator

    Glad to hear it,

    Let us know if we can help with anything else.

    Joao

  • <script> jQuery(function($){ $("#no-reply-1151800 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>