Catalog Product View XML attribute insertion issueMagento 2 - How to get attribute of product?Magento 2 -...
Error in a formula field
Traveling through the asteriod belt?
Blindfold battle as a gladiatorial spectacle - what are the tactics and communication methods?
Using only 1s, make 29 with the minimum number of digits
Why do no American passenger airlines still operate dedicated cargo flights?
How should I handle players who ignore the session zero agreement?
What is better: yes / no radio, or simple checkbox?
How would an AI self awareness kill switch work?
Avoiding morning and evening handshakes
If I deleted a game I lost the disc for, can I reinstall it digitally?
Can an insurance company drop you after receiving a bill and refusing to pay?
What kind of hardware implements Fourier transform?
Writing a character who is going through a civilizing process without overdoing it?
Difference between `vector<int> v;` and `vector<int> v = vector<int>();`
What's a good word to describe a public place that looks like it wouldn't be rough?
If I delete my router's history can my ISP still provide it to my parents?
Why exactly do action photographers need high fps burst cameras?
What are "industrial chops"?
Why Normality assumption in linear regression
Can I write a book of my D&D game?
Is a debit card dangerous in my situation?
Strange Sign on Lab Door
How to deal with an incendiary email that was recalled
Roman Numerals equation 1
Catalog Product View XML attribute insertion issue
Magento 2 - How to get attribute of product?Magento 2 - what is “at_call” for in layout file?create new product attribute returns fault code 104 (Incorrect attribute type)How can i rewrite TierPrice Block in Magento2Catalog Category not loading with pagerMagento2: Change store view in product list of admin panelWhy Getting categories and names on product view page Magento 2 fails?Magento 2 - Create product programmatically with different store view valuesConditionally load js based on cms static block typeMagento 2 overriding MagentoCatalogBlockProductViewMagento2 Override Block - Invalid template file problemCall MagentoCatalogModelProduct::getData() returns null
I've got this code in my catalog_category_view.xml file:
<block class="MagentoCatalogBlockProductViewDescription" name="product.info.condition" template="product/view/attribute.phtml" before="product.info.sku">
<arguments>
<argument name="at_call" xsi:type="string">getCondition</argument>
<argument name="at_code" xsi:type="string">condition</argument>
<argument name="css_class" xsi:type="string">condition</argument>
<argument name="at_label" xsi:type="string">CONDITION:</argument>
<argument name="add_attribute" xsi:type="string">itemprop="condition"</argument>
</arguments>
</block>
The Label "Condition" renders but the attribute value only returns the ID number and not the Dropdown value.
May I ask what I am missing?
magento2 layout xml
bumped to the homepage by Community♦ 41 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I've got this code in my catalog_category_view.xml file:
<block class="MagentoCatalogBlockProductViewDescription" name="product.info.condition" template="product/view/attribute.phtml" before="product.info.sku">
<arguments>
<argument name="at_call" xsi:type="string">getCondition</argument>
<argument name="at_code" xsi:type="string">condition</argument>
<argument name="css_class" xsi:type="string">condition</argument>
<argument name="at_label" xsi:type="string">CONDITION:</argument>
<argument name="add_attribute" xsi:type="string">itemprop="condition"</argument>
</arguments>
</block>
The Label "Condition" renders but the attribute value only returns the ID number and not the Dropdown value.
May I ask what I am missing?
magento2 layout xml
bumped to the homepage by Community♦ 41 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Can refer magento.stackexchange.com/questions/113605/…?
– Ankit Shah
Oct 6 '16 at 4:47
Did you find an answer to this? Got the same problem with only being able to print the id
– Alex
Mar 21 '17 at 11:18
1
Possible duplicate of Magento 2 - How to get attribute of product?
– Teja Bhagavan Kollepara
Mar 21 '17 at 11:28
add a comment |
I've got this code in my catalog_category_view.xml file:
<block class="MagentoCatalogBlockProductViewDescription" name="product.info.condition" template="product/view/attribute.phtml" before="product.info.sku">
<arguments>
<argument name="at_call" xsi:type="string">getCondition</argument>
<argument name="at_code" xsi:type="string">condition</argument>
<argument name="css_class" xsi:type="string">condition</argument>
<argument name="at_label" xsi:type="string">CONDITION:</argument>
<argument name="add_attribute" xsi:type="string">itemprop="condition"</argument>
</arguments>
</block>
The Label "Condition" renders but the attribute value only returns the ID number and not the Dropdown value.
May I ask what I am missing?
magento2 layout xml
I've got this code in my catalog_category_view.xml file:
<block class="MagentoCatalogBlockProductViewDescription" name="product.info.condition" template="product/view/attribute.phtml" before="product.info.sku">
<arguments>
<argument name="at_call" xsi:type="string">getCondition</argument>
<argument name="at_code" xsi:type="string">condition</argument>
<argument name="css_class" xsi:type="string">condition</argument>
<argument name="at_label" xsi:type="string">CONDITION:</argument>
<argument name="add_attribute" xsi:type="string">itemprop="condition"</argument>
</arguments>
</block>
The Label "Condition" renders but the attribute value only returns the ID number and not the Dropdown value.
May I ask what I am missing?
magento2 layout xml
magento2 layout xml
asked Oct 5 '16 at 18:58
Matthew McLennanMatthew McLennan
76531028
76531028
bumped to the homepage by Community♦ 41 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♦ 41 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Can refer magento.stackexchange.com/questions/113605/…?
– Ankit Shah
Oct 6 '16 at 4:47
Did you find an answer to this? Got the same problem with only being able to print the id
– Alex
Mar 21 '17 at 11:18
1
Possible duplicate of Magento 2 - How to get attribute of product?
– Teja Bhagavan Kollepara
Mar 21 '17 at 11:28
add a comment |
Can refer magento.stackexchange.com/questions/113605/…?
– Ankit Shah
Oct 6 '16 at 4:47
Did you find an answer to this? Got the same problem with only being able to print the id
– Alex
Mar 21 '17 at 11:18
1
Possible duplicate of Magento 2 - How to get attribute of product?
– Teja Bhagavan Kollepara
Mar 21 '17 at 11:28
Can refer magento.stackexchange.com/questions/113605/…?
– Ankit Shah
Oct 6 '16 at 4:47
Can refer magento.stackexchange.com/questions/113605/…?
– Ankit Shah
Oct 6 '16 at 4:47
Did you find an answer to this? Got the same problem with only being able to print the id
– Alex
Mar 21 '17 at 11:18
Did you find an answer to this? Got the same problem with only being able to print the id
– Alex
Mar 21 '17 at 11:18
1
1
Possible duplicate of Magento 2 - How to get attribute of product?
– Teja Bhagavan Kollepara
Mar 21 '17 at 11:28
Possible duplicate of Magento 2 - How to get attribute of product?
– Teja Bhagavan Kollepara
Mar 21 '17 at 11:28
add a comment |
1 Answer
1
active
oldest
votes
Found a solution here: Magento 2 - How to get attribute of product?
<argument name="at_type" xsi:type="string">text</argument>
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f139559%2fcatalog-product-view-xml-attribute-insertion-issue%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
Found a solution here: Magento 2 - How to get attribute of product?
<argument name="at_type" xsi:type="string">text</argument>
add a comment |
Found a solution here: Magento 2 - How to get attribute of product?
<argument name="at_type" xsi:type="string">text</argument>
add a comment |
Found a solution here: Magento 2 - How to get attribute of product?
<argument name="at_type" xsi:type="string">text</argument>
Found a solution here: Magento 2 - How to get attribute of product?
<argument name="at_type" xsi:type="string">text</argument>
edited Apr 13 '17 at 12:54
Community♦
1
1
answered Mar 21 '17 at 11:26
AlexAlex
3001414
3001414
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f139559%2fcatalog-product-view-xml-attribute-insertion-issue%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
Can refer magento.stackexchange.com/questions/113605/…?
– Ankit Shah
Oct 6 '16 at 4:47
Did you find an answer to this? Got the same problem with only being able to print the id
– Alex
Mar 21 '17 at 11:18
1
Possible duplicate of Magento 2 - How to get attribute of product?
– Teja Bhagavan Kollepara
Mar 21 '17 at 11:28