Phone Orders For WooCommerce

WooCommerce Extra Product Options (By ThemeHigh)

Phone Orders for WooCommerce works with the Extra Product Options plugin by ThemeHigh. When an agent adds a product that has custom fields (text inputs, checkboxes, file uploads) to a phone order, the plugin must preserve those extra options so they appear on the final order and invoice.

The code below copies the ThemeHigh add‑on data from the cart item into the order item. It uses three dedicated filters to ensure the options are displayed correctly and the price stays accurate.

The Complete Code Snippet

What the code does

FilterPurpose
wpo_get_item_by_productCopies the thwepo_options array and the original price from the product data into the order item structure. The plugin later uses this information to build the order line item.
wpo_update_cart_cart_item_metaStores the same extra data in the cart item meta when the phone order cart is updated. This keeps the add‑on options associated with the correct cart entry.
wpo_update_cart_loaded_productAdds the extra options to the loaded product object when the phone order interface displays the cart. It also calls wc_get_formatted_cart_item_data() to generate a human‑readable summary of all add‑on selections (e.g., “Engraving text: Happy Birthday”).

Why you need this code
Without these filters, ThemeHigh add‑on data would be lost during order creation. The customer’s special instructions or customisations would not appear on the order confirmation, invoice, or in the admin dashboard.

How to implement it

  1. Copy the entire code snippet.
  2. Go to your WordPress admin dashboard.
  3. Install and activate the free Code Snippets plugin (search for “Code Snippets” in Plugins → Add New).
  4. Go to Snippets → Add New.
  5. Give the snippet a title, for example “Phone Orders – ThemeHigh Extra Options”.
  6. Paste the code into the Code text area.
  7. Set the “Run snippet” option to “Run everywhere”.
  8. Click Save Changes and Activate.

Testing the integration

  1. Create a product that has at least one Extra Product Options field (e.g., a text field for engraving).
  2. Add that product to a phone order.
  3. Fill in the extra option field.
  4. Complete the order.
  5. Check the order details in WooCommerce → Orders. The extra option should appear in the line item details.

Have questions? Please submit a support request. We're always happy to help!

Phone Orders
for WooCommerce
PRO

From $120
Buy
✓ 30-day money-back guarantee