How to add custom attribute in magento2.1 customer panel wishlist section?How to add product to wishlist after login by guest customer?Wishlist all to cart button -> don't add items to cart with 0 qtyAdd to wishlist button not available for Products in Magento 2Wishlist products by customerHow to remove customer account navigation menu from wishlist item view pageHow to add custom customer attribute in customer edit account page Magento 2override wishlist block in custom themeShow customer wishlist collection like in category view pageCustomer panel myorders area magento 2.1Magento 2 custom tab on customer section in admin panel

Hashing password to increase entropy

Put the phone down / Put down the phone

Would this string work as string?

Should I warn a new PhD Student?

Should a narrator ever describe things based on a character's view instead of facts?

Output visual diagram of picture

Extract substring according to regexp with sed or grep

Sort with assumptions

Can you describe someone as luxurious? As in someone who likes luxurious things?

If the Dominion rule using their Jem'Hadar troops, why is their life expectancy so low?

Magnifying glass in hyperbolic space

Would a primitive species be able to learn English from reading books alone?

Why is implicit conversion not ambiguous for non-primitive types?

When is the exact date for EOL of Ubuntu 14.04 LTS?

How do I prevent inappropriate ads from appearing in my game?

Why does a 97 / 92 key piano exist by Bosendorfer?

What do the positive and negative (+/-) transmit and receive pins mean on Ethernet cables?

C++ lambda syntax

Has the laser at Magurele, Romania reached a tenth of the Sun's power?

How can I, as DM, avoid the Conga Line of Death occurring when implementing some form of flanking rule?

How do I lift the insulation blower into the attic?

How would a solely written language work mechanically

How to preserve electronics (computers, ipads, phones) for hundreds of years?

Writing in a Christian voice



How to add custom attribute in magento2.1 customer panel wishlist section?


How to add product to wishlist after login by guest customer?Wishlist all to cart button -> don't add items to cart with 0 qtyAdd to wishlist button not available for Products in Magento 2Wishlist products by customerHow to remove customer account navigation menu from wishlist item view pageHow to add custom customer attribute in customer edit account page Magento 2override wishlist block in custom themeShow customer wishlist collection like in category view pageCustomer panel myorders area magento 2.1Magento 2 custom tab on customer section in admin panel













4















I want to add guaranty (custom product attribute) to customers wish-list page that is in customer dashboard in my Wishlist tab. Means that I wanted to show price, qty, name, guaranty, and add to basket into the products section in customers Wishlist tab.



I am using Magento 2.1.



How can I do that?










share|improve this question
























  • can you please elaborate your question a little more with some image or some code content so that someone can help you better

    – ABHISHEK TRIPATHI
    23 hours ago











  • Yes! i want to add guaranty attribute that is my custom attribute to my wishlist page in customer panel my wishlist tab. means that i want to show price qty name guaranty and add to basket into my products who are in my wishlist tab

    – MGPM
    22 hours ago











  • @MGPM guaranty is product attribute or custom option ?

    – Vishwas Bhatnagar
    18 hours ago















4















I want to add guaranty (custom product attribute) to customers wish-list page that is in customer dashboard in my Wishlist tab. Means that I wanted to show price, qty, name, guaranty, and add to basket into the products section in customers Wishlist tab.



I am using Magento 2.1.



How can I do that?










share|improve this question
























  • can you please elaborate your question a little more with some image or some code content so that someone can help you better

    – ABHISHEK TRIPATHI
    23 hours ago











  • Yes! i want to add guaranty attribute that is my custom attribute to my wishlist page in customer panel my wishlist tab. means that i want to show price qty name guaranty and add to basket into my products who are in my wishlist tab

    – MGPM
    22 hours ago











  • @MGPM guaranty is product attribute or custom option ?

    – Vishwas Bhatnagar
    18 hours ago













4












4








4








I want to add guaranty (custom product attribute) to customers wish-list page that is in customer dashboard in my Wishlist tab. Means that I wanted to show price, qty, name, guaranty, and add to basket into the products section in customers Wishlist tab.



I am using Magento 2.1.



How can I do that?










share|improve this question
















I want to add guaranty (custom product attribute) to customers wish-list page that is in customer dashboard in my Wishlist tab. Means that I wanted to show price, qty, name, guaranty, and add to basket into the products section in customers Wishlist tab.



I am using Magento 2.1.



How can I do that?







magento-2.1 customer-account wishlist






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 19 hours ago









ABHISHEK TRIPATHI

1,9101726




1,9101726










asked 2 days ago









MGPMMGPM

18215




18215












  • can you please elaborate your question a little more with some image or some code content so that someone can help you better

    – ABHISHEK TRIPATHI
    23 hours ago











  • Yes! i want to add guaranty attribute that is my custom attribute to my wishlist page in customer panel my wishlist tab. means that i want to show price qty name guaranty and add to basket into my products who are in my wishlist tab

    – MGPM
    22 hours ago











  • @MGPM guaranty is product attribute or custom option ?

    – Vishwas Bhatnagar
    18 hours ago

















  • can you please elaborate your question a little more with some image or some code content so that someone can help you better

    – ABHISHEK TRIPATHI
    23 hours ago











  • Yes! i want to add guaranty attribute that is my custom attribute to my wishlist page in customer panel my wishlist tab. means that i want to show price qty name guaranty and add to basket into my products who are in my wishlist tab

    – MGPM
    22 hours ago











  • @MGPM guaranty is product attribute or custom option ?

    – Vishwas Bhatnagar
    18 hours ago
















can you please elaborate your question a little more with some image or some code content so that someone can help you better

– ABHISHEK TRIPATHI
23 hours ago





can you please elaborate your question a little more with some image or some code content so that someone can help you better

– ABHISHEK TRIPATHI
23 hours ago













Yes! i want to add guaranty attribute that is my custom attribute to my wishlist page in customer panel my wishlist tab. means that i want to show price qty name guaranty and add to basket into my products who are in my wishlist tab

– MGPM
22 hours ago





Yes! i want to add guaranty attribute that is my custom attribute to my wishlist page in customer panel my wishlist tab. means that i want to show price qty name guaranty and add to basket into my products who are in my wishlist tab

– MGPM
22 hours ago













@MGPM guaranty is product attribute or custom option ?

– Vishwas Bhatnagar
18 hours ago





@MGPM guaranty is product attribute or custom option ?

– Vishwas Bhatnagar
18 hours ago










1 Answer
1






active

oldest

votes


















1














To show the custom attribute value on the wishlist section of customer dashboard do the following thing



  • From admin panel go to the below location


Admin_panel > STORES > Attributes > Products > select the attribute




  • Go to the storefront properties please refer this

  • Look for the Used in Product Listing change it to yes please refer this

  • Save the attribute

  • Now copy the name.phtml file from the below location


magento_root/vendor/magento/module-wishlist/view/frontend/templates/item/column/name.phtml




  • Paste it to the below location


magento_root/app/design/frontend/Vendor/theme/Magento_Wishlist/templates/item/column/name.phtml




  • Paste the below code to the newly created name.phtml

name.phtml



<?php if(!empty($product)) : ?>
<?php $attributeValue = $product->getResource()->getAttribute('attibute_name')->getFrontend()->getValue($product);
$attributeLabel = $product->getResource()->getAttribute('attibute_name')->getFrontend()->getLabel($product);
if(!empty($attributeValue)) ?>
<h2 class="product-<?php echo $attributeLabel?>"><strong><?php echo __($attributeLabel);?></strong> <?php echo __($attributeValue); ?></h2>
<?php
endif; ?>



Note: Replace the attribute_name with the name of your attribute that
you can copy from the Admin panel.



You can also use some other phtml file but make sure to call it using the layout.xml file for the wishlist you can use wishlist_index_index.xml file



If the content is not loading then to flush the cache run the below
command



php bin/magento cache:flush






share|improve this answer






















    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%2f266259%2fhow-to-add-custom-attribute-in-magento2-1-customer-panel-wishlist-section%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









    1














    To show the custom attribute value on the wishlist section of customer dashboard do the following thing



    • From admin panel go to the below location


    Admin_panel > STORES > Attributes > Products > select the attribute




    • Go to the storefront properties please refer this

    • Look for the Used in Product Listing change it to yes please refer this

    • Save the attribute

    • Now copy the name.phtml file from the below location


    magento_root/vendor/magento/module-wishlist/view/frontend/templates/item/column/name.phtml




    • Paste it to the below location


    magento_root/app/design/frontend/Vendor/theme/Magento_Wishlist/templates/item/column/name.phtml




    • Paste the below code to the newly created name.phtml

    name.phtml



    <?php if(!empty($product)) : ?>
    <?php $attributeValue = $product->getResource()->getAttribute('attibute_name')->getFrontend()->getValue($product);
    $attributeLabel = $product->getResource()->getAttribute('attibute_name')->getFrontend()->getLabel($product);
    if(!empty($attributeValue)) ?>
    <h2 class="product-<?php echo $attributeLabel?>"><strong><?php echo __($attributeLabel);?></strong> <?php echo __($attributeValue); ?></h2>
    <?php
    endif; ?>



    Note: Replace the attribute_name with the name of your attribute that
    you can copy from the Admin panel.



    You can also use some other phtml file but make sure to call it using the layout.xml file for the wishlist you can use wishlist_index_index.xml file



    If the content is not loading then to flush the cache run the below
    command



    php bin/magento cache:flush






    share|improve this answer



























      1














      To show the custom attribute value on the wishlist section of customer dashboard do the following thing



      • From admin panel go to the below location


      Admin_panel > STORES > Attributes > Products > select the attribute




      • Go to the storefront properties please refer this

      • Look for the Used in Product Listing change it to yes please refer this

      • Save the attribute

      • Now copy the name.phtml file from the below location


      magento_root/vendor/magento/module-wishlist/view/frontend/templates/item/column/name.phtml




      • Paste it to the below location


      magento_root/app/design/frontend/Vendor/theme/Magento_Wishlist/templates/item/column/name.phtml




      • Paste the below code to the newly created name.phtml

      name.phtml



      <?php if(!empty($product)) : ?>
      <?php $attributeValue = $product->getResource()->getAttribute('attibute_name')->getFrontend()->getValue($product);
      $attributeLabel = $product->getResource()->getAttribute('attibute_name')->getFrontend()->getLabel($product);
      if(!empty($attributeValue)) ?>
      <h2 class="product-<?php echo $attributeLabel?>"><strong><?php echo __($attributeLabel);?></strong> <?php echo __($attributeValue); ?></h2>
      <?php
      endif; ?>



      Note: Replace the attribute_name with the name of your attribute that
      you can copy from the Admin panel.



      You can also use some other phtml file but make sure to call it using the layout.xml file for the wishlist you can use wishlist_index_index.xml file



      If the content is not loading then to flush the cache run the below
      command



      php bin/magento cache:flush






      share|improve this answer

























        1












        1








        1







        To show the custom attribute value on the wishlist section of customer dashboard do the following thing



        • From admin panel go to the below location


        Admin_panel > STORES > Attributes > Products > select the attribute




        • Go to the storefront properties please refer this

        • Look for the Used in Product Listing change it to yes please refer this

        • Save the attribute

        • Now copy the name.phtml file from the below location


        magento_root/vendor/magento/module-wishlist/view/frontend/templates/item/column/name.phtml




        • Paste it to the below location


        magento_root/app/design/frontend/Vendor/theme/Magento_Wishlist/templates/item/column/name.phtml




        • Paste the below code to the newly created name.phtml

        name.phtml



        <?php if(!empty($product)) : ?>
        <?php $attributeValue = $product->getResource()->getAttribute('attibute_name')->getFrontend()->getValue($product);
        $attributeLabel = $product->getResource()->getAttribute('attibute_name')->getFrontend()->getLabel($product);
        if(!empty($attributeValue)) ?>
        <h2 class="product-<?php echo $attributeLabel?>"><strong><?php echo __($attributeLabel);?></strong> <?php echo __($attributeValue); ?></h2>
        <?php
        endif; ?>



        Note: Replace the attribute_name with the name of your attribute that
        you can copy from the Admin panel.



        You can also use some other phtml file but make sure to call it using the layout.xml file for the wishlist you can use wishlist_index_index.xml file



        If the content is not loading then to flush the cache run the below
        command



        php bin/magento cache:flush






        share|improve this answer













        To show the custom attribute value on the wishlist section of customer dashboard do the following thing



        • From admin panel go to the below location


        Admin_panel > STORES > Attributes > Products > select the attribute




        • Go to the storefront properties please refer this

        • Look for the Used in Product Listing change it to yes please refer this

        • Save the attribute

        • Now copy the name.phtml file from the below location


        magento_root/vendor/magento/module-wishlist/view/frontend/templates/item/column/name.phtml




        • Paste it to the below location


        magento_root/app/design/frontend/Vendor/theme/Magento_Wishlist/templates/item/column/name.phtml




        • Paste the below code to the newly created name.phtml

        name.phtml



        <?php if(!empty($product)) : ?>
        <?php $attributeValue = $product->getResource()->getAttribute('attibute_name')->getFrontend()->getValue($product);
        $attributeLabel = $product->getResource()->getAttribute('attibute_name')->getFrontend()->getLabel($product);
        if(!empty($attributeValue)) ?>
        <h2 class="product-<?php echo $attributeLabel?>"><strong><?php echo __($attributeLabel);?></strong> <?php echo __($attributeValue); ?></h2>
        <?php
        endif; ?>



        Note: Replace the attribute_name with the name of your attribute that
        you can copy from the Admin panel.



        You can also use some other phtml file but make sure to call it using the layout.xml file for the wishlist you can use wishlist_index_index.xml file



        If the content is not loading then to flush the cache run the below
        command



        php bin/magento cache:flush







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 16 hours ago









        ABHISHEK TRIPATHIABHISHEK TRIPATHI

        1,9101726




        1,9101726



























            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%2f266259%2fhow-to-add-custom-attribute-in-magento2-1-customer-panel-wishlist-section%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

            Sum ergo cogito? 1 nng

            三茅街道4182Guuntc Dn precexpngmageondP