Magento – “Availability: in stock” remove

PictureIf you want to from the product description or. The article considers the display “Availability: in stock” remove, For example, because the article is not available YET, This can be implemented very well. In the specific case, I had just, should the customer can buy authentic, so then, when the product is available- can be shipped. As production starts only after order, may be waived in the Magento backend inventory management, and this is the crux.

If one in a backend, that inventory management is turned off, This will display in the front end still connected.Picture

But if the default.phtml (or simple.phtml to Magento Version 1.4.1.1) in the folder app / design / frontend /[base or default]/[Ihr Template]/template/catalog/product/view/type a “When – Dann” Function is used, this is indicated only, If inventory management is actively.

To this end, the file is opened and

<?php if($_product->getStockItem()->getManageStock()): ?>

BEFORE

<?php if ($_product->isAvailable()): ?>

inserted and

<?php endif; ?>

BEHIND (or even before)

<?php endif; ?>

then the only show availability, if the stock is managed.

This works well with configurable, combinable etc. Products in the related files in o.g. Folder.

Used in Magento Version 1.5.1.0 Comments? Additions? Notes? Gladly!

Published by Covos

Since 2009 I have been working intensively with Magento. I started with the creation and operation of B2C stores. This was extended through my work in the logistics sector. This resulted first specialized B2E systems. Today I work day-a day with exciting B2C, B2B- and B2E projects and reports in this blog about challenges and give insider tips.

10 comments on “Magento – “Availability: in stock” remove”

  1. How do I get out when the Inventory Management: No is set, that a text will appear as z. B. :
    The product is made for you and has a Leiferzeit of 5-7 Meet.

    mfg bert

  2. Hallo,

    I would do it because I probably relatively easy to write either directly to the item description text or in “Delivery time:” Enter in the item master data, so then the product (usually below the price) is “Delivery time: The product is made for you and has a turnaround time of 5-7 Days.”
    Is that a solution?

    VG

  3. Thank you for your answer Covos. Ideally it would be me , when

    Warenbestand verwalten: Nein

    ?>

    getProduct() ?>
    getStockItem()->getManageStock()): ?>


    __('Availability:') ?> __('Das Produkt wird für Sie hergestellt und hat eine Lieferzeit von 5-7 Tagen.') ?>

    isAvailable()): ?>
    __('Availability:') ?> __('In stock') ?>

    __('Availability:') ?> __('Out of stock') ?>

    getChildHtml('product_type_data_extra') ?>
    getPriceHtml($_product) ?>

    I know unfortunately Sogut as garnet with php from

  4. now he has the code is not posted to me right 🙁

    ?>

    getProduct() ?>
    getStockItem()->getManageStock()): ?>

    __('Availability:') ?> __('Das Produkt wird für Sie hergestellt und hat eine Lieferzeit von 5-7 Tagen.') ?>

    isAvailable()): ?>

    __('Availability:') ?> __('In stock') ?>

    __('Availability:') ?> __('Out of stock') ?>



    getChildHtml('product_type_data_extra') ?>
    getPriceHtml($_product) ?>

  5. I’m sure there’s a function in the backend to remove this “Stock Availability”. Trying to figure out or please post if someone already done it.

    1. Hi,

      ich habe es selber nicht ausprobiert. Es sollte aber eigentlich nichts dagegen sprechen. Try it out. Wenn es nicht klappt, dann die Änderungen einfach rückgängig machen.
      Würde mich über eine Rückmeldung freuen.
      VG

  6. Hi,

    hab es schon ausprobiert und ich habe ein eingens Template basierend auf “default” aber da fehlt schon die default.phtml Datei –> die wiederum ist nur im eigentlichen default-Template drin und wenn ich den Code da reinsetze bleibt der Hinweis dennoch stehen

    Thank you

    1. Hi,
      das scheinen mir kleinere grundsätzliche Probleme zu sein. Können wir uns gerne einmal anschauen. Einfach mal anrufen oder Mail schreiben.
      VG

Leave a Reply

Your email address will not be published. Required fields are marked *