Support » Plugin: Linear Checkout for WooCommerce by Cartimize » Inlining terms and conditions

  • Resolved Gal Baras

    (@galbaras)


    In the old version of Cartimize, I can use JS and CSS to open the terms and conditions area on page load so that buyers are sure to see it without having to click, which nobody does.

    I need to be able to do this with the new version too. Ideally, this should be a plugin option, but if not, can you please advise another way to do it?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Amrit Anandh

    (@amritanandh)

    @galbaras Since we implemented a stand-alone checkout page, we removed all the enqueue scripts and styles from the active theme. So you can use add_action() function with a footer hook and write your scripts inline.

    Thread Starter Gal Baras

    (@galbaras)

    That’s not the problem. On the standard checkout page, everything is visible and the T&C element is statically positioned, so I can hook my script as $(window).on('load',function(){/* code */}).

    However, the linear checkout opens the T&C in a lightbox, which shouldn’t be opened on window load. It’s too soon.

    So I need to know which event triggers the step that includes this element. I can probably take it from there.

    Having said that, an option to show the T&C inline will be the best.

    Plugin Contributor Amrit Anandh

    (@amritanandh)

    I’m marking this as resolved since we have found a resolution.

    Thread Starter Gal Baras

    (@galbaras)

    It’s not resolved at all. I need a way to (almost) force customers to look at the terms of conditions before they confirm the order.

    Again, when I’ve done before is shown them inline, and I’d like to be able to do the same.

    To be able to do this, I need to detect when the “review” section is being displayed. I’ll take care of it from there.

    What is the event the moves the checkout to the review stage?

    If the page reloads at the review stage, how can I detect that?

    Thread Starter Gal Baras

    (@galbaras)

    Never mind. The WooCommerce T&C block is still on the page, only hidden.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Inlining terms and conditions’ is closed to new replies.