Skip to main content
Solved

Dynamic block with cart value.

  • August 21, 2024
  • 1 reply
  • 66 views

Forum|alt.badge.img

Hi! 

We’re using woocommerce in our webshop - right now I’m trying to improve our abandoned cart flow.

I want to add a section that is personalized based on the recipient’s cart value, but I’m having trouble finding the option to do that. I’ve noticed that I can add dynamic information via text blocks to display the current value of someone’s cart, but that’s not exactly what I’m looking for.

Here’s what I’m aiming to achieve:

a. If the cart value is equal to or less than 248 PLN:
“Add products worth xx,xx PLN or more to get free shipping! [product recommendations]”

b. If the cart value is more than 248 PLN:
“Congrats! You get free shipping!”

Could you help me figure out how to set this up? I’ve reviewed the knowledge base but couldn’t find the specific information I need - any piece of information will be extremely helpful.

Thank you in advance!

Best answer by bluesnapper

Welcome to the community @Roumyanek 

For the display logic on WooC use the following for each block:

  1. If the cart value is equal to or less than 248 PLN: event|lookup:'$value'<=248
  2.  If the cart value is more than 248 PLN: event|lookup:'$value'>248

That works for me but please test.

Hope that helps

Andy

View original
Did this topic or the replies in the thread help you find an answer to your question?

1 reply

bluesnapper
Partner
Forum|alt.badge.img+45
  • Champion & Partner
  • 740 replies
  • Answer
  • August 21, 2024

Welcome to the community @Roumyanek 

For the display logic on WooC use the following for each block:

  1. If the cart value is equal to or less than 248 PLN: event|lookup:'$value'<=248
  2.  If the cart value is more than 248 PLN: event|lookup:'$value'>248

That works for me but please test.

Hope that helps

Andy