Showing Attributes Bundle Products Magento Community 1.9.1Magento Bundle with only one product available is impossible to buyWhy attributes of bundle items of a bundle product are also saved to the bundle product itself? (database-wise)Magento 1.9.1 rwd : Custom Attribute Filter in Layered navigationBundle Products - how to use 2 different renderers for bundled product options? (to show in tab)How to add a global text attribute to all productsStop magento from changing bundle option prices after saving simple productAdding a variable for each Simple product within a Bundle in Magento 1.9 CEMagento: bundle item selected products view front end to separate boxHow to change the template of select (drop-down) in bundle products?Magento 2 Bundle product options images

Why are the 737's rear doors unusable in a water landing?

Can a virus destroy the BIOS of a modern computer?

How do conventional missiles fly?

Why no variance term in Bayesian logistic regression?

I would say: "You are another teacher", but she is a woman and I am a man

What are some good books on Machine Learning and AI like Krugman, Wells and Graddy's "Essentials of Economics"

Which is the best way to check return result?

How could indestructible materials be used in power generation?

Expand and Contract

Detention in 1997

Alternative to sending password over mail?

Is it acceptable for a professor to tell male students to not think that they are smarter than female students?

Why can't we play rap on piano?

Bullying boss launched a smear campaign and made me unemployable

How to tell a function to use the default argument values?

Ambiguity in the definition of entropy

If human space travel is limited by the G force vulnerability, is there a way to counter G forces?

CAST throwing error when run in stored procedure but not when run as raw query

Why didn't Miles's spider sense work before?

Why do bosons tend to occupy the same state?

Should I tell management that I intend to leave due to bad software development practices?

How seriously should I take size and weight limits of hand luggage?

ssTTsSTtRrriinInnnnNNNIiinngg

Mathematica command that allows it to read my intentions



Showing Attributes Bundle Products Magento Community 1.9.1


Magento Bundle with only one product available is impossible to buyWhy attributes of bundle items of a bundle product are also saved to the bundle product itself? (database-wise)Magento 1.9.1 rwd : Custom Attribute Filter in Layered navigationBundle Products - how to use 2 different renderers for bundled product options? (to show in tab)How to add a global text attribute to all productsStop magento from changing bundle option prices after saving simple productAdding a variable for each Simple product within a Bundle in Magento 1.9 CEMagento: bundle item selected products view front end to separate boxHow to change the template of select (drop-down) in bundle products?Magento 2 Bundle product options images













2















Looking at the Bundled product template select.phtml, I cannot figure how to pull in the attribute options in the 'dropdown' select input type that distinguishes between children (Simple products) rather than the Product Name (by default). In Configurable products this is the super_configurable_attribute so what I'm looking to do is something like a super_bundle_attribute which displays the relative attribute option.



app/design/frontend/rwd/default/template/bundle/catalog/product/view/type/bundle/option/select.phtml


How I would need to change this in Magento CE 1.9?










share|improve this question
















bumped to the homepage by Community 16 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • There is no thing such as attributes related to bundle products, you can bundle anything in a bundle option independent from attributes.

    – Fabian Schmengler
    Mar 22 '15 at 14:49






  • 1





    You are incorrect fschmengler, the Parent > Child relationship is derived from 'attributes' - so the origination of this question/request wasn't necessarily programmatic but rather how to get the data to display in such a way that more resembles a super_configurable_attribute...in this case, I have the parent > child relationship but also have an additional child (demo product) I don't want included in the dropdown.

    – Will Bebee
    Mar 23 '15 at 2:13











  • Looks like I misunderstood you then, and you were talking about the bundle options, which are technically not attributes and, more important, do not have names per simple product, they contain only relations to the simple products. Maybe the question will be more clear if you give an example.

    – Fabian Schmengler
    Mar 23 '15 at 6:20











  • Here's an example of in the cart: take.ms/GsgtQ - and here's the product page dropdown: take.ms/iChcQ -

    – Will Bebee
    Mar 23 '15 at 14:34















2















Looking at the Bundled product template select.phtml, I cannot figure how to pull in the attribute options in the 'dropdown' select input type that distinguishes between children (Simple products) rather than the Product Name (by default). In Configurable products this is the super_configurable_attribute so what I'm looking to do is something like a super_bundle_attribute which displays the relative attribute option.



app/design/frontend/rwd/default/template/bundle/catalog/product/view/type/bundle/option/select.phtml


How I would need to change this in Magento CE 1.9?










share|improve this question
















bumped to the homepage by Community 16 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • There is no thing such as attributes related to bundle products, you can bundle anything in a bundle option independent from attributes.

    – Fabian Schmengler
    Mar 22 '15 at 14:49






  • 1





    You are incorrect fschmengler, the Parent > Child relationship is derived from 'attributes' - so the origination of this question/request wasn't necessarily programmatic but rather how to get the data to display in such a way that more resembles a super_configurable_attribute...in this case, I have the parent > child relationship but also have an additional child (demo product) I don't want included in the dropdown.

    – Will Bebee
    Mar 23 '15 at 2:13











  • Looks like I misunderstood you then, and you were talking about the bundle options, which are technically not attributes and, more important, do not have names per simple product, they contain only relations to the simple products. Maybe the question will be more clear if you give an example.

    – Fabian Schmengler
    Mar 23 '15 at 6:20











  • Here's an example of in the cart: take.ms/GsgtQ - and here's the product page dropdown: take.ms/iChcQ -

    – Will Bebee
    Mar 23 '15 at 14:34













2












2








2








Looking at the Bundled product template select.phtml, I cannot figure how to pull in the attribute options in the 'dropdown' select input type that distinguishes between children (Simple products) rather than the Product Name (by default). In Configurable products this is the super_configurable_attribute so what I'm looking to do is something like a super_bundle_attribute which displays the relative attribute option.



app/design/frontend/rwd/default/template/bundle/catalog/product/view/type/bundle/option/select.phtml


How I would need to change this in Magento CE 1.9?










share|improve this question
















Looking at the Bundled product template select.phtml, I cannot figure how to pull in the attribute options in the 'dropdown' select input type that distinguishes between children (Simple products) rather than the Product Name (by default). In Configurable products this is the super_configurable_attribute so what I'm looking to do is something like a super_bundle_attribute which displays the relative attribute option.



app/design/frontend/rwd/default/template/bundle/catalog/product/view/type/bundle/option/select.phtml


How I would need to change this in Magento CE 1.9?







magento-1.9 bundle bundle-product






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 21 '15 at 14:46









Amit Bera

59.6k1676177




59.6k1676177










asked Mar 21 '15 at 14:40









Will BebeeWill Bebee

192




192





bumped to the homepage by Community 16 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 16 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.














  • There is no thing such as attributes related to bundle products, you can bundle anything in a bundle option independent from attributes.

    – Fabian Schmengler
    Mar 22 '15 at 14:49






  • 1





    You are incorrect fschmengler, the Parent > Child relationship is derived from 'attributes' - so the origination of this question/request wasn't necessarily programmatic but rather how to get the data to display in such a way that more resembles a super_configurable_attribute...in this case, I have the parent > child relationship but also have an additional child (demo product) I don't want included in the dropdown.

    – Will Bebee
    Mar 23 '15 at 2:13











  • Looks like I misunderstood you then, and you were talking about the bundle options, which are technically not attributes and, more important, do not have names per simple product, they contain only relations to the simple products. Maybe the question will be more clear if you give an example.

    – Fabian Schmengler
    Mar 23 '15 at 6:20











  • Here's an example of in the cart: take.ms/GsgtQ - and here's the product page dropdown: take.ms/iChcQ -

    – Will Bebee
    Mar 23 '15 at 14:34

















  • There is no thing such as attributes related to bundle products, you can bundle anything in a bundle option independent from attributes.

    – Fabian Schmengler
    Mar 22 '15 at 14:49






  • 1





    You are incorrect fschmengler, the Parent > Child relationship is derived from 'attributes' - so the origination of this question/request wasn't necessarily programmatic but rather how to get the data to display in such a way that more resembles a super_configurable_attribute...in this case, I have the parent > child relationship but also have an additional child (demo product) I don't want included in the dropdown.

    – Will Bebee
    Mar 23 '15 at 2:13











  • Looks like I misunderstood you then, and you were talking about the bundle options, which are technically not attributes and, more important, do not have names per simple product, they contain only relations to the simple products. Maybe the question will be more clear if you give an example.

    – Fabian Schmengler
    Mar 23 '15 at 6:20











  • Here's an example of in the cart: take.ms/GsgtQ - and here's the product page dropdown: take.ms/iChcQ -

    – Will Bebee
    Mar 23 '15 at 14:34
















There is no thing such as attributes related to bundle products, you can bundle anything in a bundle option independent from attributes.

– Fabian Schmengler
Mar 22 '15 at 14:49





There is no thing such as attributes related to bundle products, you can bundle anything in a bundle option independent from attributes.

– Fabian Schmengler
Mar 22 '15 at 14:49




1




1





You are incorrect fschmengler, the Parent > Child relationship is derived from 'attributes' - so the origination of this question/request wasn't necessarily programmatic but rather how to get the data to display in such a way that more resembles a super_configurable_attribute...in this case, I have the parent > child relationship but also have an additional child (demo product) I don't want included in the dropdown.

– Will Bebee
Mar 23 '15 at 2:13





You are incorrect fschmengler, the Parent > Child relationship is derived from 'attributes' - so the origination of this question/request wasn't necessarily programmatic but rather how to get the data to display in such a way that more resembles a super_configurable_attribute...in this case, I have the parent > child relationship but also have an additional child (demo product) I don't want included in the dropdown.

– Will Bebee
Mar 23 '15 at 2:13













Looks like I misunderstood you then, and you were talking about the bundle options, which are technically not attributes and, more important, do not have names per simple product, they contain only relations to the simple products. Maybe the question will be more clear if you give an example.

– Fabian Schmengler
Mar 23 '15 at 6:20





Looks like I misunderstood you then, and you were talking about the bundle options, which are technically not attributes and, more important, do not have names per simple product, they contain only relations to the simple products. Maybe the question will be more clear if you give an example.

– Fabian Schmengler
Mar 23 '15 at 6:20













Here's an example of in the cart: take.ms/GsgtQ - and here's the product page dropdown: take.ms/iChcQ -

– Will Bebee
Mar 23 '15 at 14:34





Here's an example of in the cart: take.ms/GsgtQ - and here's the product page dropdown: take.ms/iChcQ -

– Will Bebee
Mar 23 '15 at 14:34










1 Answer
1






active

oldest

votes


















0














I actually played around with this for a while and thanks to this post: Magento Bundle - Get attribute of option I was able to figure this out, the code change was from (native 1.9.1 select.phtml template):



<?php echo $this->getSelectionTitlePrice($_selection, false) ?></option>



to



<?php $bundledsize = Mage::getModel('catalog/product')->load($_selection->getId())->getAttributeText('your_custom_attribute');
echo $bundledsize; ?>






share|improve this answer

























  • Best Magento Magento practices would be using 'getSingleton' rather than using 'getModel', from a performance perspective > getModel is bad practice, the end result is: <option value="<?php echo $_selection->getSelectionId() ?>"<?php if ($this->_isSelected($_selection)) echo ' selected="selected"' ?><?php if (!$_selection->isSaleable()) echo ' disabled="disabled"' ?>><?php $bundledsize = Mage::getSingleton('catalog/product')->load($_selection->getId())->getAttributeText('your_custom_attribute'); echo $bundledsize; ?></option>

    – Will Bebee
    Mar 22 '15 at 12:41












  • No, getSingleton would only result in unwanted side effects and not resolve the best practice violations to not load a model in a template and especially to not load a model in a loop. Using getSingleton covers the violation from code sniffers at most, but doesn't solve the problem.

    – Fabian Schmengler
    Mar 22 '15 at 14:46











  • Hi fschmengler, then what would you use?

    – Will Bebee
    Mar 23 '15 at 2:10











  • And while I'm at it....how would I get this custom_attribute that I successfully called in the template to show in the cart as shown here: take.ms/GsgtQ -

    – Will Bebee
    Mar 23 '15 at 2:17











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f61551%2fshowing-attributes-bundle-products-magento-community-1-9-1%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














I actually played around with this for a while and thanks to this post: Magento Bundle - Get attribute of option I was able to figure this out, the code change was from (native 1.9.1 select.phtml template):



<?php echo $this->getSelectionTitlePrice($_selection, false) ?></option>



to



<?php $bundledsize = Mage::getModel('catalog/product')->load($_selection->getId())->getAttributeText('your_custom_attribute');
echo $bundledsize; ?>






share|improve this answer

























  • Best Magento Magento practices would be using 'getSingleton' rather than using 'getModel', from a performance perspective > getModel is bad practice, the end result is: <option value="<?php echo $_selection->getSelectionId() ?>"<?php if ($this->_isSelected($_selection)) echo ' selected="selected"' ?><?php if (!$_selection->isSaleable()) echo ' disabled="disabled"' ?>><?php $bundledsize = Mage::getSingleton('catalog/product')->load($_selection->getId())->getAttributeText('your_custom_attribute'); echo $bundledsize; ?></option>

    – Will Bebee
    Mar 22 '15 at 12:41












  • No, getSingleton would only result in unwanted side effects and not resolve the best practice violations to not load a model in a template and especially to not load a model in a loop. Using getSingleton covers the violation from code sniffers at most, but doesn't solve the problem.

    – Fabian Schmengler
    Mar 22 '15 at 14:46











  • Hi fschmengler, then what would you use?

    – Will Bebee
    Mar 23 '15 at 2:10











  • And while I'm at it....how would I get this custom_attribute that I successfully called in the template to show in the cart as shown here: take.ms/GsgtQ -

    – Will Bebee
    Mar 23 '15 at 2:17















0














I actually played around with this for a while and thanks to this post: Magento Bundle - Get attribute of option I was able to figure this out, the code change was from (native 1.9.1 select.phtml template):



<?php echo $this->getSelectionTitlePrice($_selection, false) ?></option>



to



<?php $bundledsize = Mage::getModel('catalog/product')->load($_selection->getId())->getAttributeText('your_custom_attribute');
echo $bundledsize; ?>






share|improve this answer

























  • Best Magento Magento practices would be using 'getSingleton' rather than using 'getModel', from a performance perspective > getModel is bad practice, the end result is: <option value="<?php echo $_selection->getSelectionId() ?>"<?php if ($this->_isSelected($_selection)) echo ' selected="selected"' ?><?php if (!$_selection->isSaleable()) echo ' disabled="disabled"' ?>><?php $bundledsize = Mage::getSingleton('catalog/product')->load($_selection->getId())->getAttributeText('your_custom_attribute'); echo $bundledsize; ?></option>

    – Will Bebee
    Mar 22 '15 at 12:41












  • No, getSingleton would only result in unwanted side effects and not resolve the best practice violations to not load a model in a template and especially to not load a model in a loop. Using getSingleton covers the violation from code sniffers at most, but doesn't solve the problem.

    – Fabian Schmengler
    Mar 22 '15 at 14:46











  • Hi fschmengler, then what would you use?

    – Will Bebee
    Mar 23 '15 at 2:10











  • And while I'm at it....how would I get this custom_attribute that I successfully called in the template to show in the cart as shown here: take.ms/GsgtQ -

    – Will Bebee
    Mar 23 '15 at 2:17













0












0








0







I actually played around with this for a while and thanks to this post: Magento Bundle - Get attribute of option I was able to figure this out, the code change was from (native 1.9.1 select.phtml template):



<?php echo $this->getSelectionTitlePrice($_selection, false) ?></option>



to



<?php $bundledsize = Mage::getModel('catalog/product')->load($_selection->getId())->getAttributeText('your_custom_attribute');
echo $bundledsize; ?>






share|improve this answer















I actually played around with this for a while and thanks to this post: Magento Bundle - Get attribute of option I was able to figure this out, the code change was from (native 1.9.1 select.phtml template):



<?php echo $this->getSelectionTitlePrice($_selection, false) ?></option>



to



<?php $bundledsize = Mage::getModel('catalog/product')->load($_selection->getId())->getAttributeText('your_custom_attribute');
echo $bundledsize; ?>







share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 22 '15 at 12:43

























answered Mar 21 '15 at 20:05









Will BebeeWill Bebee

192




192












  • Best Magento Magento practices would be using 'getSingleton' rather than using 'getModel', from a performance perspective > getModel is bad practice, the end result is: <option value="<?php echo $_selection->getSelectionId() ?>"<?php if ($this->_isSelected($_selection)) echo ' selected="selected"' ?><?php if (!$_selection->isSaleable()) echo ' disabled="disabled"' ?>><?php $bundledsize = Mage::getSingleton('catalog/product')->load($_selection->getId())->getAttributeText('your_custom_attribute'); echo $bundledsize; ?></option>

    – Will Bebee
    Mar 22 '15 at 12:41












  • No, getSingleton would only result in unwanted side effects and not resolve the best practice violations to not load a model in a template and especially to not load a model in a loop. Using getSingleton covers the violation from code sniffers at most, but doesn't solve the problem.

    – Fabian Schmengler
    Mar 22 '15 at 14:46











  • Hi fschmengler, then what would you use?

    – Will Bebee
    Mar 23 '15 at 2:10











  • And while I'm at it....how would I get this custom_attribute that I successfully called in the template to show in the cart as shown here: take.ms/GsgtQ -

    – Will Bebee
    Mar 23 '15 at 2:17

















  • Best Magento Magento practices would be using 'getSingleton' rather than using 'getModel', from a performance perspective > getModel is bad practice, the end result is: <option value="<?php echo $_selection->getSelectionId() ?>"<?php if ($this->_isSelected($_selection)) echo ' selected="selected"' ?><?php if (!$_selection->isSaleable()) echo ' disabled="disabled"' ?>><?php $bundledsize = Mage::getSingleton('catalog/product')->load($_selection->getId())->getAttributeText('your_custom_attribute'); echo $bundledsize; ?></option>

    – Will Bebee
    Mar 22 '15 at 12:41












  • No, getSingleton would only result in unwanted side effects and not resolve the best practice violations to not load a model in a template and especially to not load a model in a loop. Using getSingleton covers the violation from code sniffers at most, but doesn't solve the problem.

    – Fabian Schmengler
    Mar 22 '15 at 14:46











  • Hi fschmengler, then what would you use?

    – Will Bebee
    Mar 23 '15 at 2:10











  • And while I'm at it....how would I get this custom_attribute that I successfully called in the template to show in the cart as shown here: take.ms/GsgtQ -

    – Will Bebee
    Mar 23 '15 at 2:17
















Best Magento Magento practices would be using 'getSingleton' rather than using 'getModel', from a performance perspective > getModel is bad practice, the end result is: <option value="<?php echo $_selection->getSelectionId() ?>"<?php if ($this->_isSelected($_selection)) echo ' selected="selected"' ?><?php if (!$_selection->isSaleable()) echo ' disabled="disabled"' ?>><?php $bundledsize = Mage::getSingleton('catalog/product')->load($_selection->getId())->getAttributeText('your_custom_attribute'); echo $bundledsize; ?></option>

– Will Bebee
Mar 22 '15 at 12:41






Best Magento Magento practices would be using 'getSingleton' rather than using 'getModel', from a performance perspective > getModel is bad practice, the end result is: <option value="<?php echo $_selection->getSelectionId() ?>"<?php if ($this->_isSelected($_selection)) echo ' selected="selected"' ?><?php if (!$_selection->isSaleable()) echo ' disabled="disabled"' ?>><?php $bundledsize = Mage::getSingleton('catalog/product')->load($_selection->getId())->getAttributeText('your_custom_attribute'); echo $bundledsize; ?></option>

– Will Bebee
Mar 22 '15 at 12:41














No, getSingleton would only result in unwanted side effects and not resolve the best practice violations to not load a model in a template and especially to not load a model in a loop. Using getSingleton covers the violation from code sniffers at most, but doesn't solve the problem.

– Fabian Schmengler
Mar 22 '15 at 14:46





No, getSingleton would only result in unwanted side effects and not resolve the best practice violations to not load a model in a template and especially to not load a model in a loop. Using getSingleton covers the violation from code sniffers at most, but doesn't solve the problem.

– Fabian Schmengler
Mar 22 '15 at 14:46













Hi fschmengler, then what would you use?

– Will Bebee
Mar 23 '15 at 2:10





Hi fschmengler, then what would you use?

– Will Bebee
Mar 23 '15 at 2:10













And while I'm at it....how would I get this custom_attribute that I successfully called in the template to show in the cart as shown here: take.ms/GsgtQ -

– Will Bebee
Mar 23 '15 at 2:17





And while I'm at it....how would I get this custom_attribute that I successfully called in the template to show in the cart as shown here: take.ms/GsgtQ -

– Will Bebee
Mar 23 '15 at 2:17

















draft saved

draft discarded
















































Thanks for contributing an answer to Magento Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f61551%2fshowing-attributes-bundle-products-magento-community-1-9-1%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

六本木駅

Integral that is continuous and looks like it converges to a geometric seriesTesting if a geometric series converges by taking limit to infinitySummation of arithmetic-geometric series of higher orderGeometric series with polynomial exponentHow to Recognize a Geometric SeriesShowing an integral equality with series over the integersDiscontinuity of a series of continuous functionsReasons why a Series ConvergesSum of infinite geometric series with two terms in summationUsing geometric series for computing IntegralsLimit of geometric series sum when $r = 1$

Joseph Lister