Display product variations in shop page
Display product variations in shop page
Display product variations in shop page
This was down to a Woocommerce setting. Woocommerce -> Settings -> Tax -> Rounding untick “Round tax at subtotal level, instead of rounding per line”. This will stop the bad rounding.
How do you reactive related products on WooCommerce when it has been disabled?
Getting error in debug : price was called incorrectly. Product properties should not be accessed directly
You’re attempting to do a “taxonomy query”. This is for things like tags and categories. Custom fields are stored as meta, so you need to do a meta query. $loop = new WP_Query( [ ‘post_type’ => ‘product’, ‘posts_per_page’ => -1, ‘meta_query’ => [ [ ‘key’ => ‘is_new’, ‘value’ => ‘Yes’, ], ], ] ); There’s … Read more
How to fix: “The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.” after malware cleaning
You’d better use woocommerce_email_order_items_args filter. It can be done this way: function add_product_thumbnail_to_wc_emails( $args ) { $args[‘show_image’] = true; $args[‘image_size’] = array( 100, 100 ); return $args; } add_filter( ‘woocommerce_email_order_items_args’, ‘add_product_thumbnail_to_wc_emails’ ); The code has to be placed to functions.php
Ok, i have found the solution: In the object $item i found this: $item->legacy_values[‘variation_id’] which gives me the ID. Also in $item->legacy_values[] array i have the both prices, which i take now: function wpler_add_quantities_to_order_items($item, $cart_item_key, $values, $order) { setlocale(LC_MONETARY, ‘de_DE’); $price1 = doubleval($item->legacy_values[‘price1’]); $price2 = doubleval($item->legacy_values[‘price2’]); $r = $order->get_billing_postcode(); $rabatt = !empty($r)&&is_numeric($r)&&$r>0 ? doubleval($r) : … Read more
You use include_once in praga_emails_after_order() method therefore files (templates: email-confirm.php, email-admin.php, email-proveedor.php) will be included only in the first iteration. Try to use include instead of include_once, it’s possible that next emails are not sent because of empty content.
If you have a good hosting and the site is optimized( cache plugin, optimized images, etc. ) then there will be no problems with any styles of categories. Check this: Is your WooCommerce site slow.