Latest Post

How to Change the WooCommerce products Price in Wordpress

How to Change the WooCommerce products Price in Wordpress

How to Change the WooCommerce products Price in Wordpress.


You are change WooCommerce products Price using code ,this code you are add your theme function.php file. this code is WooCommerce’s hooks.

function custom_your_price($price, $product) {
    global $post, $blog_id;
$product_id = $post->ID;
    $price = get_post_meta($post->ID, '_regular_price');
    $price = ($price[0]*2.5);
    return $price;
}

add_filter('woocommerce_get_price', 'custom_your_price', 10, 2);



Changing the Price of a Your Simple Product.


First you are login your wordpress and you are login your wordpress than after your this type of screen.

How to Change the WooCommerce products Price in Wordpress

You check your screen left panel and click product or all product.

How to Change the WooCommerce products Price in Wordpress

You are click product than after show all product your screen and you are open one product..

How to Change the WooCommerce products Price in Wordpress

You are open product than after selected the General tab.

How to Change the WooCommerce products Price in Wordpress

Your screen show two price field Regular Price or Sale Price.  you can change price for this two field.

How to Change the WooCommerce products Price in Wordpress

Last setp you are change price than after click "Update" button.

How to Change the WooCommerce products Price in Wordpress

Changing the Price of a Your Variable Product


First you are login your wordpress and you are login your wordpress than after your this type of screen.

How to Change the WooCommerce products Price in Wordpress

You check your screen left panel and click product or all product.

How to Change the WooCommerce products Price in Wordpress

You are click product than after show all product your screen and you are open one product..

How to Change the WooCommerce products Price in Wordpress

You Can see your screen Product Data dropdown menu and select Variable Product.

How to Change the WooCommerce products Price in Wordpress

After Product Data under selected Variations tab.

How to Change the WooCommerce products Price in Wordpress

After your screen show for all Variations and click "Expand" button and open all Variations details..

How to Change the WooCommerce products Price in Wordpress

Your screen show two price field Regular Price or Sale Price.  you can change price for this two field.

How to Change the WooCommerce products Price in Wordpress

Last setp you are change price than after click "Update" button

How to Change the WooCommerce products Price in Wordpress

No comments