product Questions
4
Solved
I would like to display the default product attributes form value and it's regular price in my front end template file.
The var_dump below shows options in an array. I Need to get the [default_attr...
Josephinejosephson asked 9/12, 2017 at 10:37
7
Solved
In WooCommerce I would like to hide Out of Stock products from Related products in single product pages. Is it possible?
Any track is appreciated.
Rover asked 1/3, 2019 at 20:29
4
Solved
I would like to remove from the dropdown of variations in WooCommerce product page following "option":
I found plenty of, apparently not working codes which should do the job. Probably outdated t...
Ronnyronsard asked 4/7, 2018 at 22:41
2
Solved
I would like to update the price of products adding a custom price in cart using this simple piece of code update_post_meta( $product->id, '_regular_price', $frame_price_added);.
Note: what I'm...
Dampen asked 31/8, 2016 at 18:12
7
Solved
In WooCommerce from the following line code:
$order = new WC_Order( $order_id );
How can I get WooCommerce order details from the order id?
Bespectacled asked 8/9, 2016 at 23:0
7
Solved
With this code:
foreach ( WC()->cart->get_cart() as $cart_item ) {
$quantity = $cart_item['quantity'];
echo $quantity;
}
I can get the quantity of all the products added in cart but I n...
Swindle asked 19/6, 2017 at 13:0
13
Solved
I have created a variable product ("parent" product) in WooCommerce version 3+. From a WordPress plugin, I would like to programmatically create the product variations ("children&quo...
Porter asked 27/11, 2017 at 19:18
3
Solved
How can I get the product description or the product object using product ID.
$order = new WC_Order($order_id);
foreach ($order->get_items() as $item) {
$product_description = get_the_product...
Morehouse asked 4/11, 2013 at 8:22
2
Solved
Is there any way to check the product has variation something like
Please help me.
<?php
If (product has variation) {
echo"This Product have Variations ";
} else {
echo "This Product does n...
Linage asked 15/6, 2015 at 21:32
11
Solved
Is it possible to show out of stock products at the end of a category or page in wordpress?
So the customer first see the products that are available and after that the products that are ou...
Adama asked 4/8, 2014 at 7:21
3
Solved
from what I understand, Android Studio is supposed to show the whole matrix of build variants and flavors in the "Build Variants" panel.
I've created an empty project, with the following build.gra...
2
Solved
I am trying to update a custom meta on Woocommerce product update event. I've read that I should use woocommerce_update_product rather than save_post but I cannot figure out why only save_post work...
Fellows asked 14/6, 2020 at 17:30
5
Since there is a command:
wp_insert_post()
shouldn't there be a command:
wp_delete_post()
Seems like it does not exist, what is an alternative that you use when you have the ID of a product i...
Manoeuvre asked 22/10, 2017 at 12:23
2
In WooCommerce, I have products with a regular price of X and a sales price of Y. I would like to add a coupon with a code for a $45.00 discount to be taken from the regular price X.
I would like...
Furmenty asked 12/4, 2017 at 18:20
4
Solved
I need to exclude Out of Stock items from displaying when the Woocommerce Recent Products shortcode is used on my front page.
[recent_products]
Is it possible to create a rule like hide_outofsto...
Maryannemarybella asked 30/8, 2017 at 17:25
5
Writing custom code to create product detail page with wordpress database.
I have displayed product title, desc, price, stock, etc and got stuck up with product attributes.
In the database, _produ...
Slopwork asked 26/2, 2014 at 7:40
4
Solved
I need Woocommerce Product publish, update and delete hooks if any one know then please inform me.
I find this hook :
add_action('transition_post_status', 'wpse_110037_new_posts', 10, 3);
functi...
Granduncle asked 17/7, 2015 at 6:14
4
Solved
In Woocommerce, I have a report in the admin area that tallies up products sold.There are only 5 products sold on the site but there are 1 or 2 variations on some. The report works great but ignore...
Motorist asked 22/1, 2018 at 21:50
3
Solved
IN woocommerce I would like to display the total stock of all variations in a variable product. The stock of each product variation is managed at the product variation level.
If I use for a variab...
Ramberg asked 17/10, 2018 at 14:19
10
Solved
I would like to create a WooCommerce plugin to add some offers for customers (that have a purchase History).
How can I check a user bought something before?
Thanks.
Robbins asked 10/8, 2016 at 13:0
3
I'm using WooCommerce and want to get the meta keys specifically for the product e.g. price, color and so on...
But the problem is that I don't want to get all meta keys but only the ones needed. F...
Scrupulous asked 16/7, 2020 at 5:8
2
Solved
As part of a WooCommerce site I want to have a sale page that lists sale items (with pagination and filtering). I think the best way to do this is to have a 'Sale' category that is added automatica...
Laid asked 5/12, 2016 at 0:42
1
Solved
I have created a custom product data tab in WooCommere using:
function my_custom_panel(){ ?>
<div class='panel woocommerce_options_panel'>
<?php
woocommerce_wp_text_input(array(
'id...
Venetis asked 19/12, 2021 at 16:12
7
Solved
I just exported a product that is working nicely if I hit the "Launch an Eclipse application" button. If try to execute the exported product, I get following exception on the startup:
!SESSION 201...
Lxx asked 16/3, 2012 at 16:37
5
Solved
I am using woocommerce and I have the following issue:
The products are displayed in the homepage with their price and add to cart button.
Add to cart button redirects to cart page.
The image ...
Retail asked 8/9, 2017 at 7:42
1 Next >
© 2022 - 2024 — McMap. All rights reserved.