oscarpo
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Update variation price by variation idBut i need to get the details in product loop , that’s why i am asking is this . Please help to solve this .
Forum: Plugins
In reply to: [WooCommerce] Update variation price by variation idThank you all . but How to get all the variation details whether it is instock or outofstock ?
Forum: Plugins
In reply to: [WooCommerce] Update variation price by variation idAlso i notice that out of stock variation is not getting the code .
for example
` $args=array(
‘post_type’ => ‘product’,
‘post_status’ => ‘publish’,
‘p’ =>$_POST[‘givenid’]
);
while($loop->have_posts()): $loop->the_post();
$product_id=$_POST[‘givenid’];
$product=wc_get_product($product_id);
if( $product->is_type( ‘variable’ ) ){
$variations_all = $product->get_available_variations($product);
}
endwhile;`Here $variation_all contains the variation details of instock item .
How to get all the variation details whether it is instock or outofstock ?
Forum: Plugins
In reply to: [WooCommerce] Update variation price by variation idIs there any functions to update variation price and variation quantity by variation id?
Other wise we need to update each post_meta manually . it consist of many
for example_regular_price
_sale_price
_price
display_price
_min_variation_price
_max_variation_price
_min_variation_regular_price
_max_variation_regular_price
_min_variation_sale_price
_max_variation_sale_priceetc .
Forum: Plugins
In reply to: [WooCommerce] Update variation price by variation idHi, Thank you friend . We are using WooCommerce 2.5.5 . What about ‘display_price’?
Forum: Plugins
In reply to: [WooCommerce] Create woocommerce order by Uploading Excel fileThank you @anandamd . It is working .
Forum: Plugins
In reply to: [WooCommerce] Create woocommerce order by Uploading Excel fileHi, i see the wc_create_order function and it is working good . But by default when i create an order using this function then the order status is wc-hold . How to change this . I try the following code . But it is not working for order status
` $args=array(
‘post_status’=>’processing’
);
$order = wc_create_order($args);`Forum: Plugins
In reply to: [WooCommerce] Create woocommerce order by Uploading Excel fileOk. Thank you Mike for providing this helpful docs . We will definitely look at this .
Thank you @tom for supporting us . π
Forum: Plugins
In reply to: [WooCommerce] Create woocommerce order by Uploading Excel fileBut in the final of rest api or any other things , all things is for to make database operations to inset entries in corresponding tables and fetch the data .
Maybe there will be 4 sql queries need to do this one by one . But in rest api also same thing is happen .
Just ignore all other things . Just imagine we have tables and we need to insert data manually in database .Then we need to know which table which entries need to be done . So please tell in which table i need to insert first and after that which table , then which table . Or think i have access to database , but i can’t make operation via website then how i can add order in database ?
Please give sample query .
Forum: Plugins
In reply to: [WooCommerce] Create woocommerce order by Uploading Excel fileUsing Rest API Is very good choice . But could you please help to solve this using sql query . Just an simple example . It will surely help to many of many people now and future .
Forum: Plugins
In reply to: [WooCommerce] Create woocommerce order by Uploading Excel fileNote : We need to create sql query . We don’t need to create customer and customer meta table entries , because in this order the customer who place this order is our default company customer service account . So no need to think about customer and customer meta table . The real customer information is added into order meta fields like _billing_phone,_billing_email, _shipping_address_1 etc