Remove Composite Parent Titles
-
Hi,
I’m using Woocommerce Composite and Woocommerce Bundles together in a project. It means simple products assigned to bundles and bundles assigned to composites. The issue I was experiencing was the selected product in the cart, order email, and invoice shows all the composite parent titles including quantity beside the bundle products below that also including quantity. It confuses the customer as well as the admin.
Now I was able to remove the composite parent titles from the cart and the confirmation email, but no luck removing them from the PDF invoice.
To be more clear I would like to remove the parent titles from the invoice.I found this code but nit sure how to modify it to hide Woocommerce Composite parent titles.
add_filter('wf_pklist_modify_meta_data', 'wt_pklist_modify_meta_data_fn'); function wt_pklist_modify_meta_data_fn($meta_data) { unset($meta_data['wooco_ids']); unset($meta_data['wooco_parent_id']); unset($meta_data['wooco_qty']); unset($meta_data['wooco_price']); return $meta_data; }
The page I need help with: [log in to see the link]
- The topic ‘Remove Composite Parent Titles’ is closed to new replies.