anahitipoint
Forum Replies Created
-
Hi,
Thank you for the answer.
I tried to add your suggested code but nothing changed. The order remained the same. Am i editing right file?
Am editing /woocommerce/includes/widgets/class-wc-widget-recently-viewed.php file.
Any idea?
Thanks!
Forum: Plugins
In reply to: [WooCommerce] Get product Paid price from an OrderYeah thank you very much. I got the total cost with get_line_total.
Forum: Plugins
In reply to: [WooCommerce] Get product Paid price from an OrderSo yeah that’s the issue that i couldnt’t get the total price per product so i can divide it. With
get_item_totalam getting one product price. Any idea how i can get the total price per quantity?Thanks!
Forum: Plugins
In reply to: [WooCommerce] Get product Paid price from an OrderYeah it returns the price for one product not per quantity. The get_line_total will return the total price Caleb Burks? Or else i need to display Unit price and Total price in some way.
Thanks!
Forum: Plugins
In reply to: [WooCommerce] Get product Paid price from an OrderHi Caleb Burks,
Thank you for the answer.
Yeah seems you are right. With get_item_total i got price for one product within order. Any idea how i can get the price per quantity as well so i get total price per product?
Thanks in advance.
Forum: Plugins
In reply to: [WooCommerce] Get product Paid price from an OrderI tried like this
$order->get_item_subtotal($lineItem, false, false)Is this what i want? is this the paid price for product?
Thanks.
Forum: Plugins
In reply to: [WooCommerce] Get product Paid price from an Orderyeah but how i can extract that info and display it?
Thanks
Forum: Plugins
In reply to: [WooCommerce] product thumbnail on order pagedeepakkv123 You need to add custom loop for purchased orders per user and display whatever info you want. See below code snippet
$customer_orders = get_posts(array( 'numberposts' => -1, 'meta_key' => '_customer_user', 'meta_value' => get_current_user_id(), 'post_type' => 'shop_order', 'post_status' => array_keys(wc_get_order_statuses() ), ));Forum: Plugins
In reply to: [WooCommerce] product thumbnail on order pageHi deepakkv123,
I did it with exactly that code. If you are getting an error so the $product_id is not setted correctly.
Forum: Plugins
In reply to: [WooCommerce] product thumbnail on order pageHey i solved it by displaying image with product ID.
Forum: Plugins
In reply to: [WooCommerce] product thumbnail on order pageI also wanna create something similar to your comment deepakkv123.
I have a custom Order page where am displaying the purchase History per user with all details. So i also need a way to display the image of the bought product.
Still no luck deepakkv123?
Thanks
Forum: Plugins
In reply to: [WooCommerce] How to get country name from country codeThe issue is that the plugin inserts within the array only the country codes and when am getting it i see only the country code.
So any idea what can i do?
Thanks in advance.
Forum: Plugins
In reply to: [WooCommerce] How to get country name from country codeYou mean that i need to add if statement for every country?
Forum: Plugins
In reply to: [WooCommerce] is_on_sale() function did not work in cart sectionAlso when am checking in the same way if the product is variable and on sale like this
if ($_product->is_on_sale() && $_product->product_type == 'variable')It does nothing.
Any other way for tracking variable product sale price percentage and display it in cart?
Thanks!
Forum: Plugins
In reply to: [WooCommerce] is_on_sale() function did not work in cart sectionCould you guide me a bit which part of the javascript is tracking the active variation and how i can get the active variation price after getting it with javascript?
Thanks