Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #11322

    Hello,

    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?

    EDIT:

    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?

    Thanks

    #71385

    Hi jorisvh,

    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.

    http://www.woothemes.com/woocommerce-docs/

    Hope that helps!

    Regards,

    Mya

    #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?

    Thanksss

    #71387

    Hey!

    You need to modify woocommerceclassesclass-wc-product.php – delete/comment out following line:

    $availability = sprintf( __('%s in stock', 'woocommerce'), $this->stock );

    Best regards,

    Peter

    #71388

    THanksss!!!

    #71389

    Hi!

    Glad that I could help you :)

    Regards,

    Peter

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Stock’ is closed to new replies.