WooCommerce Integration: Replacement codes

The Groundhogg-Woocommerce add-on contains six different replacement codes that you can use to send discount codes to contacts.

wc_cart_url: The URL of your cart page.

wc_restore_cart_url: The URL to restore the cart of their last visit.

wc_cart_contents: The contents of the cart during their last visit. Default: "Cart is empty".

wc_percent_discount: Generate a single-use percentage coupon code for this contact only. 

  • Usage: {wc_percent_discount.10} - provides 10% discount for any product purchased
  • Usage: {wc_percent_discount.10[1,2,3]} - provides 10% discount to only product ID's listed in the brackets
  • Usage: {wc_percent_discount.10[1,2,3](7)} - provides 10% to only product ID's listed in the square brackets and only for 7 days from the emailed date. 

wc_flat_discount: Generate a single-use flat-rate coupon code for this contact only. 

  • Usage: {wc_flat_discount.10}

wc_recent_order_items: The contents of the cart of their last purchase. Default: "something awesome".

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us