How to get the product id and SKU code of the product selected Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?How do I create a configurable product with associated products?Update product sku with customs options skus on product pages and cart“Shop by” / “layered navigation” configurable products not filtering correctlyHow to get the attributes of the selected productsDynamically updating the sku on the product page of a configurable product based on selected optionsProduct filtering with multiple attributesGet Custom Option Values of a product magento 2Passing sku code value to TrustPilot product reviewMagento 2 error - Product with Sku: prodotto not found in the catalog. - and the product existsConfigurable product set variant per store view

How to ask rejected full-time candidates to apply to teach individual courses?

Are there any AGPL-style licences that require source code modifications to be public?

Why do people think Winterfell crypts is the safest place for women, children & old people?

Does using the Inspiration rules for character defects encourage My Guy Syndrome?

Why are two-digit numbers in Jonathan Swift's "Gulliver's Travels" (1726) written in "German style"?

Converting a text document with special format to Pandas DataFrame

Assertions In A Mock Callout Test

What's the connection between Mr. Nancy and fried chicken?

Is the Mordenkainen's Sword spell underpowered?

Does traveling In The United States require a passport or can I use my green card if not a US citizen?

How is an IPA symbol that lacks a name (e.g. ɲ) called?

Is Bran literally the world's memory?

Trying to enter the Fox's den

false 'Security alert' from Google - every login generates mails from 'no-reply@accounts.google.com'

Lights are flickering on and off after accidentally bumping into light switch

Can I ask an author to send me his ebook?

When speaking, how do you change your mind mid-sentence?

What is the evidence that custom checks in Northern Ireland are going to result in violence?

Can this water damage be explained by lack of gutters and grading issues?

Who can become a wight?

Why doesn't the university give past final exams' answers?

Do chord progressions usually move by fifths?

Weaponising the Grasp-at-a-Distance spell

How to leave only the following strings?



How to get the product id and SKU code of the product selected



Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?How do I create a configurable product with associated products?Update product sku with customs options skus on product pages and cart“Shop by” / “layered navigation” configurable products not filtering correctlyHow to get the attributes of the selected productsDynamically updating the sku on the product page of a configurable product based on selected optionsProduct filtering with multiple attributesGet Custom Option Values of a product magento 2Passing sku code value to TrustPilot product reviewMagento 2 error - Product with Sku: prodotto not found in the catalog. - and the product existsConfigurable product set variant per store view



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








6















I am using a plugin to enable notify me (Out of stock) feature, the plugin is working properly but the problem is it is taking the core product id and storing it in the backend, even after I select a different color and size.



For example, if I have Product with the product id 82 and SKU code GEN26, even if I select a product with color green and size medium with SKU code GEN26GRMED and product id 84 and click on notify me button it is still storing the old product id 82 in the backend.



For now, I can see they are echoing the id using $_product->getId(), how can I dynamically get the product id of the product of the color and size I have selected so that I can know for which particular product customer have clicked notify me button.










share|improve this question
















bumped to the homepage by Community 34 mins ago


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










  • 1





    Not being part of the Magento core it's likely that a very few know and have that plugin. But just because it's a commercial extension which hopefully comes with support, why don't you ask this question to the extension developer?

    – Alessandro Ronchi
    May 27 '16 at 6:30











  • @AlessandroRonchi Hi, I tried but didn't get a reply, all I want to know is how can i get the id of the product variant that I select dynamically. I don't know much about magento as I am newbie here.

    – Akshay Vasu
    May 27 '16 at 6:33











  • If you did different attempts to contact the developer and you never received a reply, please inform Magento about that. It can be useful for other potential customers and the whole ecosystem would benefit from that. About your problem: you, the only one who has access to the code (pay attention not to disclose a commercial code) have to identify in which way the extension gets the product ID and change it with the selected variant. It's likely that some JavaScript is or should be used.

    – Alessandro Ronchi
    May 27 '16 at 6:49











  • On product page phtml file,simply pass child product id rather than parent id .

    – akgola
    Oct 27 '17 at 7:33

















6















I am using a plugin to enable notify me (Out of stock) feature, the plugin is working properly but the problem is it is taking the core product id and storing it in the backend, even after I select a different color and size.



For example, if I have Product with the product id 82 and SKU code GEN26, even if I select a product with color green and size medium with SKU code GEN26GRMED and product id 84 and click on notify me button it is still storing the old product id 82 in the backend.



For now, I can see they are echoing the id using $_product->getId(), how can I dynamically get the product id of the product of the color and size I have selected so that I can know for which particular product customer have clicked notify me button.










share|improve this question
















bumped to the homepage by Community 34 mins ago


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










  • 1





    Not being part of the Magento core it's likely that a very few know and have that plugin. But just because it's a commercial extension which hopefully comes with support, why don't you ask this question to the extension developer?

    – Alessandro Ronchi
    May 27 '16 at 6:30











  • @AlessandroRonchi Hi, I tried but didn't get a reply, all I want to know is how can i get the id of the product variant that I select dynamically. I don't know much about magento as I am newbie here.

    – Akshay Vasu
    May 27 '16 at 6:33











  • If you did different attempts to contact the developer and you never received a reply, please inform Magento about that. It can be useful for other potential customers and the whole ecosystem would benefit from that. About your problem: you, the only one who has access to the code (pay attention not to disclose a commercial code) have to identify in which way the extension gets the product ID and change it with the selected variant. It's likely that some JavaScript is or should be used.

    – Alessandro Ronchi
    May 27 '16 at 6:49











  • On product page phtml file,simply pass child product id rather than parent id .

    – akgola
    Oct 27 '17 at 7:33













6












6








6


0






I am using a plugin to enable notify me (Out of stock) feature, the plugin is working properly but the problem is it is taking the core product id and storing it in the backend, even after I select a different color and size.



For example, if I have Product with the product id 82 and SKU code GEN26, even if I select a product with color green and size medium with SKU code GEN26GRMED and product id 84 and click on notify me button it is still storing the old product id 82 in the backend.



For now, I can see they are echoing the id using $_product->getId(), how can I dynamically get the product id of the product of the color and size I have selected so that I can know for which particular product customer have clicked notify me button.










share|improve this question
















I am using a plugin to enable notify me (Out of stock) feature, the plugin is working properly but the problem is it is taking the core product id and storing it in the backend, even after I select a different color and size.



For example, if I have Product with the product id 82 and SKU code GEN26, even if I select a product with color green and size medium with SKU code GEN26GRMED and product id 84 and click on notify me button it is still storing the old product id 82 in the backend.



For now, I can see they are echoing the id using $_product->getId(), how can I dynamically get the product id of the product of the color and size I have selected so that I can know for which particular product customer have clicked notify me button.







product magento-1 product-attribute sku notify-me






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 17 '17 at 9:34









Teja Bhagavan Kollepara

2,99241949




2,99241949










asked May 27 '16 at 6:22









Akshay VasuAkshay Vasu

227314




227314





bumped to the homepage by Community 34 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 34 mins ago


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









  • 1





    Not being part of the Magento core it's likely that a very few know and have that plugin. But just because it's a commercial extension which hopefully comes with support, why don't you ask this question to the extension developer?

    – Alessandro Ronchi
    May 27 '16 at 6:30











  • @AlessandroRonchi Hi, I tried but didn't get a reply, all I want to know is how can i get the id of the product variant that I select dynamically. I don't know much about magento as I am newbie here.

    – Akshay Vasu
    May 27 '16 at 6:33











  • If you did different attempts to contact the developer and you never received a reply, please inform Magento about that. It can be useful for other potential customers and the whole ecosystem would benefit from that. About your problem: you, the only one who has access to the code (pay attention not to disclose a commercial code) have to identify in which way the extension gets the product ID and change it with the selected variant. It's likely that some JavaScript is or should be used.

    – Alessandro Ronchi
    May 27 '16 at 6:49











  • On product page phtml file,simply pass child product id rather than parent id .

    – akgola
    Oct 27 '17 at 7:33












  • 1





    Not being part of the Magento core it's likely that a very few know and have that plugin. But just because it's a commercial extension which hopefully comes with support, why don't you ask this question to the extension developer?

    – Alessandro Ronchi
    May 27 '16 at 6:30











  • @AlessandroRonchi Hi, I tried but didn't get a reply, all I want to know is how can i get the id of the product variant that I select dynamically. I don't know much about magento as I am newbie here.

    – Akshay Vasu
    May 27 '16 at 6:33











  • If you did different attempts to contact the developer and you never received a reply, please inform Magento about that. It can be useful for other potential customers and the whole ecosystem would benefit from that. About your problem: you, the only one who has access to the code (pay attention not to disclose a commercial code) have to identify in which way the extension gets the product ID and change it with the selected variant. It's likely that some JavaScript is or should be used.

    – Alessandro Ronchi
    May 27 '16 at 6:49











  • On product page phtml file,simply pass child product id rather than parent id .

    – akgola
    Oct 27 '17 at 7:33







1




1





Not being part of the Magento core it's likely that a very few know and have that plugin. But just because it's a commercial extension which hopefully comes with support, why don't you ask this question to the extension developer?

– Alessandro Ronchi
May 27 '16 at 6:30





Not being part of the Magento core it's likely that a very few know and have that plugin. But just because it's a commercial extension which hopefully comes with support, why don't you ask this question to the extension developer?

– Alessandro Ronchi
May 27 '16 at 6:30













@AlessandroRonchi Hi, I tried but didn't get a reply, all I want to know is how can i get the id of the product variant that I select dynamically. I don't know much about magento as I am newbie here.

– Akshay Vasu
May 27 '16 at 6:33





@AlessandroRonchi Hi, I tried but didn't get a reply, all I want to know is how can i get the id of the product variant that I select dynamically. I don't know much about magento as I am newbie here.

– Akshay Vasu
May 27 '16 at 6:33













If you did different attempts to contact the developer and you never received a reply, please inform Magento about that. It can be useful for other potential customers and the whole ecosystem would benefit from that. About your problem: you, the only one who has access to the code (pay attention not to disclose a commercial code) have to identify in which way the extension gets the product ID and change it with the selected variant. It's likely that some JavaScript is or should be used.

– Alessandro Ronchi
May 27 '16 at 6:49





If you did different attempts to contact the developer and you never received a reply, please inform Magento about that. It can be useful for other potential customers and the whole ecosystem would benefit from that. About your problem: you, the only one who has access to the code (pay attention not to disclose a commercial code) have to identify in which way the extension gets the product ID and change it with the selected variant. It's likely that some JavaScript is or should be used.

– Alessandro Ronchi
May 27 '16 at 6:49













On product page phtml file,simply pass child product id rather than parent id .

– akgola
Oct 27 '17 at 7:33





On product page phtml file,simply pass child product id rather than parent id .

– akgola
Oct 27 '17 at 7:33










1 Answer
1






active

oldest

votes


















0














You need to change method where $_product->getId() is called. In some product types you need to get selected simple productID. Please, look if you can write some javascript to pass selected product id value to the controller.



PD: Need more information about the extesion used






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%2f117201%2fhow-to-get-the-product-id-and-sku-code-of-the-product-selected%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














    You need to change method where $_product->getId() is called. In some product types you need to get selected simple productID. Please, look if you can write some javascript to pass selected product id value to the controller.



    PD: Need more information about the extesion used






    share|improve this answer



























      0














      You need to change method where $_product->getId() is called. In some product types you need to get selected simple productID. Please, look if you can write some javascript to pass selected product id value to the controller.



      PD: Need more information about the extesion used






      share|improve this answer

























        0












        0








        0







        You need to change method where $_product->getId() is called. In some product types you need to get selected simple productID. Please, look if you can write some javascript to pass selected product id value to the controller.



        PD: Need more information about the extesion used






        share|improve this answer













        You need to change method where $_product->getId() is called. In some product types you need to get selected simple productID. Please, look if you can write some javascript to pass selected product id value to the controller.



        PD: Need more information about the extesion used







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered May 27 '16 at 9:40









        jroselljrosell

        1463




        1463



























            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%2f117201%2fhow-to-get-the-product-id-and-sku-code-of-the-product-selected%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

            منجزی محتویات تیره‌های طایفه منجزی[ویرایش] مشاهیر طایفه منجزی[ویرایش] محل سکونت[ویرایش] پانویس[ویرایش] منابع[ویرایش] منوی ناوبری«نمودار اجتماعی طوایف بختیاری»«BakhtyārBAḴTĪĀRĪ TRIBE»«اسامی طوایف و شعب ایل بختیاری»ووگسترش آن

            What does the writing on Poe's helmet say? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Favorite questions and answers from first quarter of 2019 Latest Blog Post: Avengers: Endgame PredictionsWhat is the purpose of the blast shield helmet?Why was the Stormtrooper helmet designed this way?What does Kylo Ren place his helmet on?What does the writing on Poe Dameron's flight vest say?Is this Poe Damerons dad? (Kes Dameron)Is Poe Dameron Force-Sensitive?Why is Poe Dameron so shocked in the First Order star destroyer hangar?What does the code breaker's hat say?In “The Last Jedi” was it actually Poe's fault that so much of the resistance died?Did Poe Dameron make custom modifications to his black X-Wing?

            How to implement Time Range Picker in Magento 2 Admin system.xml? The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Date field system.xmlMagento 2 - time picker on backend (xml form)How to overwrite System.xml?Magento 2 Pattern Library — Date & Time SelectorsHTTP 500 Error in System ConfigurationMagento 2 - time picker on backend (xml form)Magento 2 Add Datetime picker in system.xmlDate Time picker and time zone woesHow to implement Single Date and Time Picker in Magento 2Custom Module for Custom Column using Plugin Yes/No optionMagento 2 DateTime picker - Limit time selection rangeMagento2 UI Component admin Grid / Listing stuck loading