Magento “Please specify the product's option(s)” message remains after completing add to cart after...












2














Sequence is that customer clicks "Add to Cart" button for a configurable product on the category page. As expected, customer is taken to product page with a notification message to "Please specify the product's option(s)." All good. Problem is that once the options have been selected and the customer clicks "Add to Cart" on the product page, the "Please specify the product's option(s)" message re-appears along with a message indicating the product was successfully added to the cart. Confusing for customer, who has to go into cart to be sure they added it successfully.



I've only found the problem described in one other forum post (http://www.magentocommerce.com/boards/viewthread/298926/), but it's unanswered.



A few thoughts:




  • I have the "After Adding a Product Redirect to Shopping Cart" config setting for the site set to No. Really don't want customers going back and forth to the cart like that--too interruptive to shopping.

  • It seems to have to do with the URL, which is appended with a "?options=cart" variable both when customer first goes into product page (correct behavior) and after reloading page when successfully adding product to cart (seemingly incorrect behavior).

  • I've considered tweaking the code to strip the "?options=cart" part of the URL after Add to Cart is hit on the product page, but I figured I'd check with the Internet and see if I can avoid that work. Seems like I'm missing something simple (or I've stumbled upon a bug).


Not a huge problem, but definitely confusing for the end user. Any ideas?










share|improve this question






















  • I'm voting to close this question as off-topic because Stack Overflow is a programming-related Q&A site. Your question is not about programming. Perhaps you should post it on magento.stackexchange.com instead?
    – Enigmativity
    Nov 26 '18 at 7:04
















2














Sequence is that customer clicks "Add to Cart" button for a configurable product on the category page. As expected, customer is taken to product page with a notification message to "Please specify the product's option(s)." All good. Problem is that once the options have been selected and the customer clicks "Add to Cart" on the product page, the "Please specify the product's option(s)" message re-appears along with a message indicating the product was successfully added to the cart. Confusing for customer, who has to go into cart to be sure they added it successfully.



I've only found the problem described in one other forum post (http://www.magentocommerce.com/boards/viewthread/298926/), but it's unanswered.



A few thoughts:




  • I have the "After Adding a Product Redirect to Shopping Cart" config setting for the site set to No. Really don't want customers going back and forth to the cart like that--too interruptive to shopping.

  • It seems to have to do with the URL, which is appended with a "?options=cart" variable both when customer first goes into product page (correct behavior) and after reloading page when successfully adding product to cart (seemingly incorrect behavior).

  • I've considered tweaking the code to strip the "?options=cart" part of the URL after Add to Cart is hit on the product page, but I figured I'd check with the Internet and see if I can avoid that work. Seems like I'm missing something simple (or I've stumbled upon a bug).


Not a huge problem, but definitely confusing for the end user. Any ideas?










share|improve this question






















  • I'm voting to close this question as off-topic because Stack Overflow is a programming-related Q&A site. Your question is not about programming. Perhaps you should post it on magento.stackexchange.com instead?
    – Enigmativity
    Nov 26 '18 at 7:04














2












2








2







Sequence is that customer clicks "Add to Cart" button for a configurable product on the category page. As expected, customer is taken to product page with a notification message to "Please specify the product's option(s)." All good. Problem is that once the options have been selected and the customer clicks "Add to Cart" on the product page, the "Please specify the product's option(s)" message re-appears along with a message indicating the product was successfully added to the cart. Confusing for customer, who has to go into cart to be sure they added it successfully.



I've only found the problem described in one other forum post (http://www.magentocommerce.com/boards/viewthread/298926/), but it's unanswered.



A few thoughts:




  • I have the "After Adding a Product Redirect to Shopping Cart" config setting for the site set to No. Really don't want customers going back and forth to the cart like that--too interruptive to shopping.

  • It seems to have to do with the URL, which is appended with a "?options=cart" variable both when customer first goes into product page (correct behavior) and after reloading page when successfully adding product to cart (seemingly incorrect behavior).

  • I've considered tweaking the code to strip the "?options=cart" part of the URL after Add to Cart is hit on the product page, but I figured I'd check with the Internet and see if I can avoid that work. Seems like I'm missing something simple (or I've stumbled upon a bug).


Not a huge problem, but definitely confusing for the end user. Any ideas?










share|improve this question













Sequence is that customer clicks "Add to Cart" button for a configurable product on the category page. As expected, customer is taken to product page with a notification message to "Please specify the product's option(s)." All good. Problem is that once the options have been selected and the customer clicks "Add to Cart" on the product page, the "Please specify the product's option(s)" message re-appears along with a message indicating the product was successfully added to the cart. Confusing for customer, who has to go into cart to be sure they added it successfully.



I've only found the problem described in one other forum post (http://www.magentocommerce.com/boards/viewthread/298926/), but it's unanswered.



A few thoughts:




  • I have the "After Adding a Product Redirect to Shopping Cart" config setting for the site set to No. Really don't want customers going back and forth to the cart like that--too interruptive to shopping.

  • It seems to have to do with the URL, which is appended with a "?options=cart" variable both when customer first goes into product page (correct behavior) and after reloading page when successfully adding product to cart (seemingly incorrect behavior).

  • I've considered tweaking the code to strip the "?options=cart" part of the URL after Add to Cart is hit on the product page, but I figured I'd check with the Internet and see if I can avoid that work. Seems like I'm missing something simple (or I've stumbled upon a bug).


Not a huge problem, but definitely confusing for the end user. Any ideas?







magento






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 5 '14 at 19:06









user3163227

1914




1914












  • I'm voting to close this question as off-topic because Stack Overflow is a programming-related Q&A site. Your question is not about programming. Perhaps you should post it on magento.stackexchange.com instead?
    – Enigmativity
    Nov 26 '18 at 7:04


















  • I'm voting to close this question as off-topic because Stack Overflow is a programming-related Q&A site. Your question is not about programming. Perhaps you should post it on magento.stackexchange.com instead?
    – Enigmativity
    Nov 26 '18 at 7:04
















I'm voting to close this question as off-topic because Stack Overflow is a programming-related Q&A site. Your question is not about programming. Perhaps you should post it on magento.stackexchange.com instead?
– Enigmativity
Nov 26 '18 at 7:04




I'm voting to close this question as off-topic because Stack Overflow is a programming-related Q&A site. Your question is not about programming. Perhaps you should post it on magento.stackexchange.com instead?
– Enigmativity
Nov 26 '18 at 7:04












2 Answers
2






active

oldest

votes


















0














If anyone else encounters this problem in the future, here's the fix. I know that there is a better way to overwrite core Magento php files, but the quick and dirty way is to alter the _goBack() function within app/code/core/Mage/Checkout/controllers/CartController.php. This begins at line 74, approximately.



Change the following from...



elseif (!Mage::getStoreConfig('checkout/cart/redirect_to_cart')
&& !$this->getRequest()->getParam('in_cart')
&& $backUrl = $this->_getRefererUrl()
) {
$this->getResponse()->setRedirect($backUrl);
}


...to...



elseif (!Mage::getStoreConfig('checkout/cart/redirect_to_cart')
&& !$this->getRequest()->getParam('in_cart')
&& $backUrl = $this->_getRefererUrl()
) {
if (strstr($backUrl,'?options=cart')) $backUrl = str_replace('?options=cart', '', $backUrl);
$this->getResponse()->setRedirect($backUrl);
}


Why on Earth this is not default functionality is beyond me.






share|improve this answer





























    0














    Had the same problem today. I couldn't edit an order because of the "Please specify the product's option(s)." message.



    I checked logs and found one product which stop the operation. Problem was in configurable product at tab Custom Options. I've deleted all of the options there and now everything is OK.






    share|improve this answer





















      Your Answer






      StackExchange.ifUsing("editor", function () {
      StackExchange.using("externalEditor", function () {
      StackExchange.using("snippets", function () {
      StackExchange.snippets.init();
      });
      });
      }, "code-snippets");

      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "1"
      };
      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: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      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%2fstackoverflow.com%2fquestions%2f20937823%2fmagento-please-specify-the-products-options-message-remains-after-completin%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      If anyone else encounters this problem in the future, here's the fix. I know that there is a better way to overwrite core Magento php files, but the quick and dirty way is to alter the _goBack() function within app/code/core/Mage/Checkout/controllers/CartController.php. This begins at line 74, approximately.



      Change the following from...



      elseif (!Mage::getStoreConfig('checkout/cart/redirect_to_cart')
      && !$this->getRequest()->getParam('in_cart')
      && $backUrl = $this->_getRefererUrl()
      ) {
      $this->getResponse()->setRedirect($backUrl);
      }


      ...to...



      elseif (!Mage::getStoreConfig('checkout/cart/redirect_to_cart')
      && !$this->getRequest()->getParam('in_cart')
      && $backUrl = $this->_getRefererUrl()
      ) {
      if (strstr($backUrl,'?options=cart')) $backUrl = str_replace('?options=cart', '', $backUrl);
      $this->getResponse()->setRedirect($backUrl);
      }


      Why on Earth this is not default functionality is beyond me.






      share|improve this answer


























        0














        If anyone else encounters this problem in the future, here's the fix. I know that there is a better way to overwrite core Magento php files, but the quick and dirty way is to alter the _goBack() function within app/code/core/Mage/Checkout/controllers/CartController.php. This begins at line 74, approximately.



        Change the following from...



        elseif (!Mage::getStoreConfig('checkout/cart/redirect_to_cart')
        && !$this->getRequest()->getParam('in_cart')
        && $backUrl = $this->_getRefererUrl()
        ) {
        $this->getResponse()->setRedirect($backUrl);
        }


        ...to...



        elseif (!Mage::getStoreConfig('checkout/cart/redirect_to_cart')
        && !$this->getRequest()->getParam('in_cart')
        && $backUrl = $this->_getRefererUrl()
        ) {
        if (strstr($backUrl,'?options=cart')) $backUrl = str_replace('?options=cart', '', $backUrl);
        $this->getResponse()->setRedirect($backUrl);
        }


        Why on Earth this is not default functionality is beyond me.






        share|improve this answer
























          0












          0








          0






          If anyone else encounters this problem in the future, here's the fix. I know that there is a better way to overwrite core Magento php files, but the quick and dirty way is to alter the _goBack() function within app/code/core/Mage/Checkout/controllers/CartController.php. This begins at line 74, approximately.



          Change the following from...



          elseif (!Mage::getStoreConfig('checkout/cart/redirect_to_cart')
          && !$this->getRequest()->getParam('in_cart')
          && $backUrl = $this->_getRefererUrl()
          ) {
          $this->getResponse()->setRedirect($backUrl);
          }


          ...to...



          elseif (!Mage::getStoreConfig('checkout/cart/redirect_to_cart')
          && !$this->getRequest()->getParam('in_cart')
          && $backUrl = $this->_getRefererUrl()
          ) {
          if (strstr($backUrl,'?options=cart')) $backUrl = str_replace('?options=cart', '', $backUrl);
          $this->getResponse()->setRedirect($backUrl);
          }


          Why on Earth this is not default functionality is beyond me.






          share|improve this answer












          If anyone else encounters this problem in the future, here's the fix. I know that there is a better way to overwrite core Magento php files, but the quick and dirty way is to alter the _goBack() function within app/code/core/Mage/Checkout/controllers/CartController.php. This begins at line 74, approximately.



          Change the following from...



          elseif (!Mage::getStoreConfig('checkout/cart/redirect_to_cart')
          && !$this->getRequest()->getParam('in_cart')
          && $backUrl = $this->_getRefererUrl()
          ) {
          $this->getResponse()->setRedirect($backUrl);
          }


          ...to...



          elseif (!Mage::getStoreConfig('checkout/cart/redirect_to_cart')
          && !$this->getRequest()->getParam('in_cart')
          && $backUrl = $this->_getRefererUrl()
          ) {
          if (strstr($backUrl,'?options=cart')) $backUrl = str_replace('?options=cart', '', $backUrl);
          $this->getResponse()->setRedirect($backUrl);
          }


          Why on Earth this is not default functionality is beyond me.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 17 '14 at 14:14









          user3163227

          1914




          1914

























              0














              Had the same problem today. I couldn't edit an order because of the "Please specify the product's option(s)." message.



              I checked logs and found one product which stop the operation. Problem was in configurable product at tab Custom Options. I've deleted all of the options there and now everything is OK.






              share|improve this answer


























                0














                Had the same problem today. I couldn't edit an order because of the "Please specify the product's option(s)." message.



                I checked logs and found one product which stop the operation. Problem was in configurable product at tab Custom Options. I've deleted all of the options there and now everything is OK.






                share|improve this answer
























                  0












                  0








                  0






                  Had the same problem today. I couldn't edit an order because of the "Please specify the product's option(s)." message.



                  I checked logs and found one product which stop the operation. Problem was in configurable product at tab Custom Options. I've deleted all of the options there and now everything is OK.






                  share|improve this answer












                  Had the same problem today. I couldn't edit an order because of the "Please specify the product's option(s)." message.



                  I checked logs and found one product which stop the operation. Problem was in configurable product at tab Custom Options. I've deleted all of the options there and now everything is OK.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Sep 2 '14 at 9:24









                  maciej813

                  1




                  1






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Stack Overflow!


                      • 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.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • 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%2fstackoverflow.com%2fquestions%2f20937823%2fmagento-please-specify-the-products-options-message-remains-after-completin%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

                      Monofisismo

                      Angular Downloading a file using contenturl with Basic Authentication

                      Olmecas