endeavouren
Forum Replies Created
-
Sorry, I have no idea why… Good luck anyway!
Hi, I actually had a sililiar issue a few days back on a page. It did seem to loop the page somehow and yes, UM was responsible for this loop. I found the error here:
When a page is missing and not being translated to this loop can occur. For me it happened cause Logout page was missing in the secondary WPML language.
So make sure all pages that UM created exist in all languages, otherwise this can happen. Good luck!
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Total weight in packing slipThanks, just small correction..
quantity instead of qty, here is working code:
<?php $items = $wpo_wcpdf->get_order_items(); $weight = 0; if( sizeof( $items ) > 0 ) { foreach( $items as $item ) { $weight += $item['weight'] * $item['quantity']; } } echo "Total weight: " . $weight; ?>Thanks for the help!
Cheers!Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Total weight in packing slipThanks!
Seems to work good, just, it also needs to count the quantity of products, now it counts only 1 product of each.
If I order ex. 40 pcs of a product that weigh 1kg each it should write 40kg instead of 1kg.
How do I add this to this function?
Thanks a lot!
Cheers!