• Resolved alfredo1216

    (@alfredo1216)


    Hello,

    The function of showing a hidden section with the terms and conditions when clicking on it, is perfect.

    However, I have the following problem.

    My terms and conditions page has many styles and content and when I expand it, it loses all these styles causing it to be displayed incorrectly.

    Thinking of solutions, two occur to me:

    The first is that there is simply an option that eliminates this function of expanding the terms and conditions and it will simply open in another tab.

    The second, that unique terms and conditions can be selected for this section. I understand that in the personalization section it allows me to select some terms and conditions but I understand that this must correspond to the global policies of the entire web, am I right?

    I hope you can help me and thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @alfredo1216

    This function is meant to provide a simple look at the terms and conditions a user might need to agree upon checking out on your webstore.

    What I can recommend would be to create a simpler version of the page, highlighting the most important parts in a concise way, with a link to open the full t&c page in a new tab. This shouldn’t pose any legal problems.

    Later edit: After a bit of further research, this functionality comes from WooCommerce directly, not from the theme. Even on the default Storefront theme, this feature is present and scrambles highly stylised pages – https://ibb.co/TkXg3Xy. This feature definitely expects a simple page to be set there, with more information linked in a new tab, from that simple page.

    Hope this clears things a bit up and points you in the right direction!

    Thanks.

    • This reply was modified 2 years, 1 month ago by Eduard. Reason: more information
    Thread Starter alfredo1216

    (@alfredo1216)

    Hello,

    I understand, I already had a simple page of terms and conditions. However, I could add it to be displayed on the checkout page but then users couldn’t see the full page. I did not want it to be something manual through a button on the simple page.

    For this reason, I think the best option was to generate a code that performs this redirection.

    function redirect_sample_page() {
       if ( ! is_admin() && is_page( 'URL-SINGLE-PAGE' ) ) {
          wp_redirect( 'URL-FULL-PAGE' );
          exit;
       }
    }
    add_action( 'template_redirect', 'redirect_sample_page' );

    Thus, on the checkout page the simple page of terms and conditions is shown and when I want to open it in another tab it shows me the complete page.

    Also, thank you very much for your excellent attention.

    Hello @alfredo1216

    Thank you for the suggestion. I have added an anecdote to the improvement note that I made this morning. ??

    Thanks again!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Terms and conditions – Additional function’ is closed to new replies.