Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7196891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:51:52+00:00 2026-05-28T20:51:52+00:00

still working on Magento here. Currently I’m looking at the product page’s view block,

  • 0

still working on Magento here.

Currently I’m looking at the product page’s “view” block, and in particular the block that is tagged with product_type_data in the as attribute. Its type is catalog/product_view_type_<type>, where <type> can be simple, configurable, etc.

I get what it’s for: displaying the availability of the product as well as its price, and with downloadable products it also shows the downloadable samples. Great.

The layout XML of the Checkout module also adds a block under the layout referral name product.info.<something>.extra where <something> is the product type (simple, configurable, etc). It is called by its parent block as product_type_data_extra. I found out that the Cataloginventory module adds its own block to this block and located the possible templates in the templates/cataloginventory/stockqty/ folder (default.phtml and composite.phtml).

Questions:
What is the block called as product_type_data_extra for?
Why can’t I see the additions I make in the aforementioned template files, even when they occur outside the if block placed around all of its usual content?

Thank you.

P.S. I’m using Alan Storm’s Commerce Bug and it says the block is being instantiated and the template it mentions is indeed the template I located (templates/cataloginventory/stockqty/default|composite.phtml)

EDIT:
The first question is answered below, the answer to the second question is:
Additions to that template aren’t visible because the “Only X left” threshold is configured to be zero or lower than the stock quantity of the product you are looking at.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T20:51:54+00:00Added an answer on May 28, 2026 at 8:51 pm

    To be honest, it looks like this is a placeholder block, to be used if required.

    If you look at the layouts/downloadable.xml you will see it references a template file for that block. Indeed it’s one of the template files you find with Alan Storm’s Commerce Bug

    <PRODUCT_TYPE_downloadable translate="label" module="downloadable">
        <label>Catalog Product View (Downloadable)</label>
        <reference name="product.info">
            <block type="downloadable/catalog_product_view_type" name="product.info.downloadable" as="product_type_data" template="downloadable/catalog/product/type.phtml">
                 <block type="downloadable/catalog_product_samples" name="product.info.downloadable.samples" as="samples" template="downloadable/catalog/product/samples.phtml"/>
                 <block type="cataloginventory/stockqty_default" name="product.info.downloadable.extra" as="product_type_data_extra" template="cataloginventory/stockqty/default.phtml"/>
            </block>
        </reference>
        <reference name="product.info.options.wrapper">
            <block type="downloadable/catalog_product_links" name="product.info.downloadable.options" as="type_downloadable_options" before="-" template="downloadable/catalog/product/links.phtml"/>
            <action method="insert"><block>product.info.downloadable.options</block></action>
        </reference>
    </PRODUCT_TYPE_downloadable>
    

    From what I understand of the Magento methodology, this will be so you can display extra data for a product, from an extension, without having to change a skin’s template files

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Still working on a problem that started from here Calling C++ dll function from
I'm still working on a particular RDF file, but seems that something is not
Still working through JQuery to get data and repopulate portions of a page. Right
I'm still working on that bitmap I/O problem from a week ago. I got
I'm still working with sound effects on my test app and I noticed that
I'm still working on a short Service example (page 304) of Pro Android 2
Background: I've got a dev magento site that we've been working on and had
have an issue updating magento product from frontend using a module that its function
I'm still working on my zoomable node-graph project. I'm currently having problems with what
I'm still working on my problem that an NSView in NSMenuItem is not receiving

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.