Quantcast
Viewing all articles
Browse latest Browse all 20145

Reply To: If in stock…

Dear Jill,

Please try following code. Before that go to Views>>Settings and choose Woo-commerce hidden fields like this one http://wp-types.com/learn/create-an-ecommerce-wordpress-site/create-custom-fields-and-taxonomies/#hiddencustomfields .

[wpv-if evaluate="'[wpv-post-field name="_stock_status"]' = 'instock'"]  
     <div class="product-price">£[wpv-post-field name="_regular_price"]</div>
    Condition:   [types field="condition"][/types]
    [wpv-post-excerpt]
    [wpv-wooaddcart]
[/wpv-if]                 
[wpv-if evaluate="'[wpv-post-field name="_stock_status"]' = 'outofstock'"] 
      <p> </p>
      <p>Sorry, this item is currently out of stock.</p>
[/wpv-if]


With Regards

Bigul


Viewing all articles
Browse latest Browse all 20145

Trending Articles