Show cart item configurator data in Pdf
-
Hi!
I use a plugin to generate a pdf of the current items in cart and I would like to add the configurator data in the pdf but I can’t quite figure out how to get it done.
Maybe you can help me with this?The function I’m using to display information only takes $id and $html and I I’m pretty sure I need to do something like this:
function show_product_information_pdf ($html, $id) { global $woocommerce, $product; if (count(WC()->cart->get_cart()) > 0) { foreach (WC()->cart->get_cart() as $cart_item_key => $cart_item) { if (($cart_item['product_id']) && isset( $cart_item['configurator_data'] )) { $htmloutput = '';
Then I probably need a foreach loop to get the choices?
I’m kinda stuck and your help would be greatly appreciated!
If you need me to explain it further please tell me and if possible I would also like to get the generated image to be able to display it.
Thank you!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Show cart item configurator data in Pdf’ is closed to new replies.