Title: Additional shortcodes
Last modified: October 4, 2022

---

# Additional shortcodes

 *  Resolved [amwebch](https://wordpress.org/support/users/amwebch/)
 * (@amwebch)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/additional-shortcodes-6/)
 * Hi,
 * Would it be possible to add some additional specific shortcodes to the plugin,
   for the number of articles in the order, used payment method, delivery/pickup
   method and charges, as well as subtotal/total?
 * Right now we have {email_order_total_footer} at our disposal, but this leaves
   no room for customization if you want to print a custom footer on the receipt,
   instead of using the default WooCommerce output. In addition, it does not provide
   a count of the articles in the order.
 * For now, I added the following to the plugin, which does part of the job:
 *     ```
       $cart_items = $this->object->get_item_count();
       $cart_total = $this->object->get_total();
       $payment_method = $this->object->get_payment_method_title();
       $this->placeholders['{woocommerce_email_cart_items}'] = sprintf( _n( '%d articolo', '%d articoli', $cart_items, 'amweb' ), $cart_items ) . ' - CHF ' . $cart_total . '<br/>' . $payment_method;
       ```
   
 * But this has some limits: for example, get_item_count is always returning the
   exact count of items, including also all components of composite products, which
   should be delivered as 1 single item, but are counted as 3 items (the composite
   product and its two components in my case).
 * Thank you in advance for your feedback.
 * Regards,
    Aron
    -  This topic was modified 3 years, 8 months ago by [amwebch](https://wordpress.org/support/users/amwebch/).
      Reason: code indentation issue

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

 *  Thread Starter [amwebch](https://wordpress.org/support/users/amwebch/)
 * (@amwebch)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/additional-shortcodes-6/#post-16134564)
 * Hi,
 * Do you have any update on this request?
 * Thank you in advance for your feedback.
 * Reards,
    Aron
 *  Plugin Author [Georgi Bakalski](https://wordpress.org/support/users/irdroid/)
 * (@irdroid)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/additional-shortcodes-6/#post-16134622)
 * Not supported yet
 *  Thread Starter [amwebch](https://wordpress.org/support/users/amwebch/)
 * (@amwebch)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/additional-shortcodes-6/#post-16134635)
 * Hi Georgi,
 * Thank you for your reply.
 * Is there any chance to add this as a feature request? Or having a quote for custom
   development (if you provide this service)?
 * Thank you and have a nice day.
 * Regards,
    Aron

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

The topic ‘Additional shortcodes’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woo-instant-notifications_8a7739.
   svg)
 * [Woo Instant Notifications](https://wordpress.org/plugins/woo-instant-notifications/)
 * [Support Threads](https://wordpress.org/support/plugin/woo-instant-notifications/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-instant-notifications/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-instant-notifications/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-instant-notifications/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [amwebch](https://wordpress.org/support/users/amwebch/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/additional-shortcodes-6/#post-16134635)
 * Status: resolved