April 11, 2012 at 2:13 pm #11322
In the single product page I have the amount of products. For example 10 in stock. But is it possible to leave the number and to see only if there are products in stock or not? So just: In stock or Not in stock.
And another question. Is it possible to put the stock info,the text fielt where you can choose your amount of products, the add to cart button and the price, in the product description box?
I found the [add_to_cart id="" sku=""] shortcode. Is there a shortcode for the in stock text and the field where you can choose your amount of products?
ThanksApril 12, 2012 at 1:13 pm #71385
Personally, I only know these shortcodes:
[recent_products per_page="12" columns="4"] – Lists recent products – useful on the homepage. The per page limits the amount of recent products shown, and the columns attribute controls how many columns wide the products should be before wrapping.
[featured_products per_page="12" columns="4"] – Works exactly the same as recent products but displays products which have been set as “featured”.
[product id="99"] – Show a single product by ID
[product sku="FOO"] – Show a single product by SKU
[products ids="1, 2, 3, 4, 5"] – Show multiple products by ID
[products skus="foo, bar, baz" orderby="date" order="desc"] – Show multiple products by SKU
I don’t think though they offer what you’re looking for so you may want to visit Woocommerce’s shortcode page.
Hope that helps!
MyaApril 13, 2012 at 8:32 am #71386
Yeah I found those also. I think it is not possible then. And the stock issue? Is that possible. To let the customer see in stock or not in stock instead of how many products there still left?
ThanksssApril 15, 2012 at 1:06 pm #71387
You need to modify woocommerceclassesclass-wc-product.php – delete/comment out following line:
$availability = sprintf( __('%s in stock', 'woocommerce'), $this->stock );
PeterApril 16, 2012 at 8:56 am #71388April 16, 2012 at 10:17 am #71389
The topic ‘Stock’ is closed to new replies.