• Hi

    We have just updated the Woocommerce plugin to version 2.6. We manufacture to order items, when a variation of a product was made a confirmed price was shown above the quantity field. Even though there was no price variation. Now it only shows when there is a price variation within the product. Also the words “In Stock” are appearing, where they never used to before. As we dont stock items we would rather that didn’t show. (I have removed it temporarily using CCS)

    Thanks

    Jim…

    https://www.ads-software.com/plugins/woocommerce/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Mike Jolley

    (@mikejolley)

    Example link? “Now it only shows when there is a price variation within the product” I don’t know what you mean by this. AFAIK this has not changed in 2.6 from 2.5.5

    Thread Starter Jim

    (@jimuk69)

    Hi Mike

    Thanks for getting back so promptly. Sorry I didn’t explain too clearly.

    The two examples below.

    Where there is a price range (by variation):
    https://www.stratafurniture.co.uk/product/stirling-range-wardrobe-with-doors/
    Shows a confirmed price.

    Where there is no price range (by variation)
    https://www.stratafurniture.co.uk/product/spitfire-range-deep-wardrobe/
    Doesn’t show a confirmed price (though it did before upgrade)

    I hope this is a little bit clearer.

    Thanks

    Jim…

    Plugin Contributor Mike Jolley

    (@mikejolley)

    It has always been this way, even in 2.5. There is no need to show the same price twice on variation pages.

    Same issue here
    “In Stock” appearing below product title
    Link to example on my dev site
    https://lincoln.paulcobbdesign.co.uk/product/weekly-classes/

    This was not appearing before WC 2.6
    Had to resort to hiding this with

    .stock { display: none; }

    Thanks,
    Paul

    Plugin Contributor Mike Jolley

    (@mikejolley)

    As mentioned elsewhere, in stock shows by default now. Use CSS or hide in template files if it’s not required.

    This appears to restore the previous conditions of output via functions –

    add_filter( 'woocommerce_get_availability', 'wc_hide_status_no_manage', 1, 2 );
    function wc_hide_status_no_manage( $availability, $_product ) {
    
        if( $_product->is_in_stock() && get_option( 'woocommerce_manage_stock' ) !== 'yes' ) {
            $availability[ 'availability' ] = '';
        }
        return $availability;
    }

    I welcome any simpler alternatives ??

    Thread Starter Jim

    (@jimuk69)

    Hi

    OK I think I have seen something that has changed in this update. Before the update I was able to add a product and set it as a variable product and if I didn’t enter a regular price it would say Call for price on the displayed product. Now it seems that it will only display Call for price if the product is set up as a Simple product.

    Is this correct?

    Thanks

    Jim…

    Plugin Contributor Mike Jolley

    (@mikejolley)

    It would depend on your code for “Call for price”. I’m not familiar with it.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘In Stock appearing on product display page’ is closed to new replies.