Change button back to store, shop to other custom link

This topic has 6 replies, 3 voices, and was last updated 3 years, 7 months ago ago by Olga Barlow

  • Avatar: Alvaro_Cercos
    Alvaro Cercos
    Participant
    July 25, 2020 at 00:15

    Hi guys, Is there a way to avoid people to get to the shop if my site is only one product?
    Like when someone clicks here:
    https://prnt.sc/to52li

    Many thanks in advance!

    Please, contact administrator
    for this information.
    5 Answers
    Avatar: John Holden
    John Holden
    Support staff
    July 25, 2020 at 05:50

    Hi,

    Please read this topic – https://www.8theme.com/topic/return-to-shop-on-cart-page/

    Regards,
    Hung PD

    Avatar: Alvaro_Cercos
    Alvaro Cercos
    Participant
    July 25, 2020 at 20:48

    Ok, i have check it, copy but don´t know how to change the link.

    this is the code I need to change?

    <?php if ( wc_get_page_id( 'shop' ) > 0 ) : ?>
    		<p><a class="btn" href="<strong><?php echo get_permalink(wc_get_page_id('shop')); ?></strong>"><span><?php esc_html_e('Return To Shop', 'xstore') ?></span></a></p>
    	<?php endif; ?>

    some in this other code:

    <?php if ( wc_get_page_id( 'shop' ) > 0 ) : ?>
    					<a class="return-shop" href="<strong><?php echo get_permalink(wc_get_page_id('shop')); ?></strong>"><i class="et-icon et-<?php echo (is_rtl()) ? 'right' : 'left'; ?>-arrow"></i><?php esc_html_e('Return to shop', 'xstore') ?></a>
    				<?php endif; ?>

    And how do I send the client back to the home page? many thanks

    Avatar: John Holden
    John Holden
    Support staff
    July 26, 2020 at 06:38

    Hi,

    Please send:

    – FTP info (server, username, password, port)
    – Admin info (wp-admin URL, username, password)

    I will check this problem for you.

    Regards,
    Hung PD

    Avatar: Alvaro_Cercos
    Alvaro Cercos
    Participant
    July 27, 2020 at 01:21

    ok, sending the access

    many thanks!

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    July 28, 2020 at 09:59

    Hello,

    Check now. Changes were made in
    xstore-child/woocommerce/cart/cart-empty.php
    xstore-child/woocommerce/cart/cart.php

    Regards

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.