Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author vark

    (@vark)

    Hi,
    Great idea! Can you suggest the hooks you’d like to see, and any detailed controls? I’d be glad to put them in.
    Best,
    Vark

    Thread Starter eljefejb

    (@eljefejb)

    Wow, that was a fast response!

    Maybe some means of returning an array of the discounted items, for use in other areas of the email body. For instance, I would like to show the discounted item price next to the original price, instead of having a separate set of rows added to the email table. If I just had the data, I could use the woocommerce hooks to add it into the original line.

    Thread Starter eljefejb

    (@eljefejb)

    Also, some simple hooks (filters) to change frontend labels would be nice.

    Plugin Author vark

    (@vark)

    Hi,
    you said “If I just had the data, I could use the woocommerce hooks to add it into the original line. ” I haven’t investigated these hooks at all, can you list them for me? I could include the discount info in that line directly in the plugin, as option in the settings.

    What frontend labels do you want to change? They can currently be changed using the PO function…

    Best,
    Vark

    Thread Starter eljefejb

    (@eljefejb)

    ‘woocommerce_order_item_meta_start’ could probably be used to add the discount and/or discounted price in the default WooCommerce email output row.

    I was able to change the front end strings I needed to with various filters. Here’s a complete list of those provided by WooCommerce: (warning: it’s long!)

    Thread Starter eljefejb

    (@eljefejb)

    Plugin Author vark

    (@vark)

    ‘woocommerce_order_item_meta_start’ looks like a good candidate for adding the crossout info. I’ll add it into the enhancement mix, thanks for pointing this out.

    Thread Starter eljefejb

    (@eljefejb)

    Hi Vark,

    Any progress?

    Plugin Author vark

    (@vark)

    Hi,
    You wrote in your original email “I would like to show the discounted item price next to the original price” . This enhancement is in production. When “Unit Price Discount or Coupon Discount” is set to “Unit Price”, the original price crossout will show in both purchase receipt and emails, when Unit Price crossouts are selected.
    Best,
    Vark

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Hooks’ is closed to new replies.