Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

Okay
  Public Ticket #1755740
Disable Back button
Closed

Comments

  • MorenoArias started the conversation

    Good morning, I need to deactivate the back button on the product page in the online store.

    Also I want to thank you for the help provided in a previous ticket, greetings.


    Carlos Castaneda.

  •  7,095
    Oliver replied

    Hi!

    pls. use following css:

    .single-product-content-right .back-to-shop-button {
        display: none;
    }

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • MorenoArias replied

    Thanks Gregor, it worked very well, but this I have to do product by product?

  •  7,095
    Oliver replied

    Hi,

    Put the code here:

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • MorenoArias replied

    Gregor, thank you very much for your prompt help, really that this issue I like, only it would be very good that these procedures were explained in the documentation, I really am not an expert, and would be very helpful to do so.
    On the other hand, there are many sections of the subject that can not be modified, some of them are:
    1. The cart page, this text can not be changed (you Have 3 items In Your cart)
    2. On the end page purchase the buttons (Billing, Payment and confirmation), on this page the text (Different Address?)
    Again thanks and Greetings,
    My English is not very good, I'm sorry.
    Carlos

  •  7,095
    Oliver replied

    What you need to change there?

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • MorenoArias replied

    Gregor, I was able to change the words:

    1. You have .... items in Your Cart
    2. Billing, Payment and Confirmation and Different Address.

    Only that I find one more problem, on the cart page, when you delete all the products there is a link that says back to the store, I need to change that link for another one, I hope you can help me.

    Thank you very much and greetings,

    Charles

  •  7,095
    Oliver replied

    Hi,

    Add this code to the functions.php of the child theme:

    function wc_empty_cart_redirect_url() {
        return 'http://yourdomain.com/your-page/';
    }
    add_filter( 'woocommerce_return_to_shop_redirect', 'wc_empty_cart_redirect_url' );
    

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • MorenoArias replied

    Gregor, thank you for the answer.
    It works, but the text I can not change, the text says  "Back to the store ", this text is in Spanish and that's how it should go.
    I'm developing a page in Spanish.
    I know this I can find in some file. php of the topic, the only thing that is not in which.
    I hope you can explain and help me.
    Thanks and Greetings

    Carlos

  •  7,095
    Oliver replied

    Hi,

    We recommend to use Loco Translate plugin for the theme translation or you can translate theme manually with .po file, pls. follow the instructions: 

    1. Take file languages/thegem.pot or xx_YY.po from theme directory.

    2. Open this file with Poedit software.

    3. Translate necessary strings to your language.

    4. In software open Catalog - Settings and set Language to Translation to xx_YY.

    5. Then save the file as thegem-xx_YY. (You must have two files thegem-xx_YY.po and thegem-xx_YY.mo.)

    6. These files you need to put to the wp-content/languages/themes of your site.

    With the same operation, you can translate TheGem elements plugin.

    Just put  translations in wp-content/languages/plugins

     

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • MorenoArias replied

    Gregor, thank you very much, I will make the modification as you tell me.

    Best regards,


    Carlos.

  •  7,095
    Oliver replied

    Welcome!

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver