An extension help me to display the delivery time as attribute in product page

(its above the price, but is´s look like... )

How to display the attribute under the " Auf die Wunschliste Auf Lager" enter image description here

  • Please add the fix you found as answer and accept it so we can "close" this question. thanks! Commented Jun 27, 2015 at 13:29

1 Answer 1


It would really help to know which extension you are using. But let's see how we can load attributes and solve your problem without an extension.

Loading attributes on the Front-end

Magento allows you to load product attributes out of the box. The code to do this is slightly different depending on the attribute type. First of all, you can load any attribute that has its option Display on Front-end set to Yes with the following code.

echo $_helper->productAttribute($_product, $_product->getDeliveryEstimate(), 'delivery_estimate')

Mind you; it assumes that you have the variables $_helper and $_product set to $this->helper('catalog/output'); respectively $_product = $this->getProduct(); at the top of your view.phtml. getColor is a magic function and refers to the attribute name camelcased.

There is one problem with the line above. It correctly displays the content of a text field, but not that of a drop down. For a dropdown it would merely display the attribute ID. In order to get the attribute's text value we do the following.

echo $_product->getAttributeText('delivery_estimate');

Using magento attributes to display a delivery estimate

Now that you know how to load any value entered in the product backend we could create an attribute that serves your purpose. I assume you know how to create an attribute. Let's call is delivery_estimate. The attribute is going to be a dropdown value. Next, assign some attribute options that match your delivery windows. E.g. "Between 4 and 5 days".

For each product, select the appropriate delivery window and load it with getAttributeText('delivery_estimate').

Obviously this does not allow for dynamically changing delivery windows based an ERP system or warehousing backend. You could however play around with stock levels / backorder status to display two different delivery estimates ;-).

Good luck!

  • Hi, that´s the extention magentocommerce.com/magento-connect/firegento-magesetup.html
    – Timo
    Commented Jun 21, 2015 at 14:22
  • but I don´t fine any code from you :( I have to search in view.phtml right?
    – Timo
    Commented Jun 21, 2015 at 14:24
  • Hi Timo, I am not entirely sure what it is that you're asking. My answer explained how to display a product attribute on the product view page. What attribute are you trying to display from the extension? Commented Jun 26, 2015 at 11:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.