• Hello,

    We here are offering free delivery above Rs.299. we want this text to appear near checkout so that if a customer’s cart value is less than 299,website must insist them to purchase above 299 for free delivery.

    Do help us.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @phanisri444, you can use WooCommerce Conditional Content to display text based on conditions set on the Cart Total.

    Thread Starter phanisri444

    (@phanisri444)

    Hello,

    Thank you for the response.Is there any way to just put the text in free? Just notify if any.

    Thanks.

    If you’re comfortable with writing code, you can also manually change the checkout page template using the WooCommerce action hooks.

    These action hooks add markup to the page, which you can use to customize both its content, style and functionality. If you want to use these action hooks to modify your checkout page template, you can do so by editing the checkout form PHP file.

    In the additional markup, you can access the WooCommerce cart object [doc] using the WC() global function [doc]. Then you can access the cart total attribute [doc] from the cart.

    WC()->$cart->get_cart_contents_total()

    Finally you can display your message in an if condition.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘adding text near checkout’ is closed to new replies.