Display delivery time in magento

Display delivery time in magento

August 15, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Display delivery time in magento

Displaying Product Delivery Time in Magento

In Magento, displaying product delivery time alongside “IN STOCK” status isn’t a built-in feature of the community edition. However, with some custom code and configuration tweaks, you can achieve this functionality without needing to upgrade to the enterprise version.

Why Display Delivery Time?

Displaying delivery times is crucial for managing customer expectations. It helps build trust by providing clear information about when they can expect their products to arrive. This transparency reduces cart abandonment rates and increases conversion rates.

The Native Magento Approach

Magento doesn’t have a stock attribute for delivery time out of the box. However, you can create a new attribute in the admin panel that stores this information.

  1. Log into your Magento admin panel.
  2. Go to Catalog > Manage Attributes.
  3. Click on Add New Attribute.

Create an attribute with:

  • Attribute Code: delivery_time
  • Frontend Label: Delivery Time
  • Input Type: Text Field

Save the changes and apply them to all existing products.

Adding Delivery Time to Product Pages

To display this new delivery time attribute on your product pages, you’ll need to modify some PHP files. This process requires intermediate-level coding skills.

  1. Open catalog/product/view.phtml located in app/design/frontend/default/your-theme/template/catalog/product. If the file doesn’t exist, copy it from a base theme folder like base/default.

  2. Find the line where the stock status is displayed:

<?php if ($_product->isSaleable()): ?>
    <span class="availability"><?php echo $this->__('In stock') ?></span>
<?php else: ?>
    <span class="availability out-of-stock"><?php echo $this->__('Out of stock') ?></span>
<?php endif; ?>
  1. Add the following code immediately after the stock status:
<?php if ($_product->getAttributeText('delivery_time')): ?>
    <span class="delivery-time"><?php echo $_product->getAttributeText('delivery_time'); ?></span>
<?php endif; ?>

This will display the delivery time attribute alongside the “IN STOCK” or “OUT OF STOCK” status.

Styling Delivery Time

To style the new “Delivery Time” field, you’ll need to create a CSS rule. In your theme’s stylesheet (usually skin/frontend/your-theme/css/styles.css), add:

.delivery-time {
    font-style: italic;
    color: #666; /* Choose a suitable color */
}

Wrapping Up

Displaying delivery times in Magento requires some manual configuration and custom code. However, with the steps outlined above, you can achieve this functionality without needing to upgrade to the enterprise edition.

Remember, never modify core files directly as they may be overwritten during updates. Always create a child theme or use an extension to add this feature safely.

If you’re looking for professional help in implementing complex Magento customizations like this, feel free to reach out to us at Laravel Company. We’ve helped many businesses extend the functionality of their Magento stores through custom development and extensions.

Checkout Catalog Themes Admin

Our network