product id
-
I need to write code to check the product_id.
I’m using the functions:
if ( wc_current_user_has_role( ‘whole_sale’ ) ) {
if(get_post_meta( $product->get_id(), ‘_regular_price’, true )){
$gift_id = $product->get_id();
if($gift_id == ‘49372’) {$price_unchanged = ‘$’ . wc_get_price_to_display( $product );
return $price_unchanged;
I works for all the products except for the one I created with your plugin.How do I find the product_id so I can code just for that product_id?
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘product id’ is closed to new replies.