WordPress.org

Ready to get started?Download WordPress

Forums

eShop
stock quantity right behind product price (4 posts)

  1. kaqp
    Member
    Posted 3 years ago #

    Can anyone tell me please, how i can display, how much selected product is available for customers. In single product page
    Sorry, for my English :(

    Exmpl. Testproduct @ £7.99 , Products avaible: 44 ,Qty:[ 1] [ADD TO CART]

  2. elfin
    Moderator
    Plugin Author

    Posted 3 years ago #

    Specifically, there you can't.

    look at using the eshop_details shortcode to display the stock available:
    http://quirm.net/wiki/eshop/shortcodes/

  3. kaqp
    Member
    Posted 3 years ago #

    Thanks for fast reply!
    When i use
    <?php echo do_shortcode( '[eshop_details show="sku"]' ); ?>
    all is ok, and sku shows
    but whne i put
    <?php echo do_shortcode( '[eshop_details show="stockqty"]' ); ?>
    there is nothing, what i do wrong ?

  4. esmi
    Forum Moderator
    Posted 3 years ago #

    [eshop_details]
    Display product details normally used for the add to cart form. Attributes:
    * show: Comma delimited list of details to display. The list determines the order in which these are displayed. Acceptable values (default order): sku, description, options, optionset, shipping

    http://quirm.net/wiki/eshop/shortcodes/

    You cannot use stockqty with eshop_details

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags