magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.55k stars 9.32k forks source link

Configurable product Price not updated when choosing other variation in frontend #11647

Closed hemendraajmera closed 7 years ago

hemendraajmera commented 7 years ago

Preconditions

  1. Magento version 2.1.8

Steps to reproduce

  1. Add configurable product
  2. Add variations based on attribute size (swatch)
  3. Set different prices for each variation

Expected result

  1. Would expect a different price when choosing different size swatch in frontend product page but price isn't updated

Actual result

  1. Price stays the same
  2. url http://www.thehouseofthings.com/thotstaging/gramercy-zebra-rug.html
magento-engcom-team commented 7 years ago

@hemendraajmera We can't reproduce this issue. Please install clean and fresh Magento, and try to reproduce this issue again.

hemendraajmera commented 7 years ago

Fresh install need to install and configure all data.

hemendraajmera commented 7 years ago

Can you please share URL for reference

hemendraajmera commented 7 years ago

image

Please refer above product variant and check on below URL http://www.thehouseofthings.com/thotstaging/gramercy-zebra-rug.html

orlangur commented 7 years ago

@hemendraajmera it seems like your store is broken.

When I open product page there is JS error in console:

mailchimpjs.js:1 Uncaught TypeError: require is not a function
    at mailchimpjs.js:1

When I choose size swatch:

swatch-renderer.js:947 Uncaught TypeError: $(...).AddFotoramaVideoEvents is not a function
    at $.(anonymous function).(anonymous function).updateBaseImage (http://www.thehouseofthings.com/thotstaging/pub/static/frontend/Advaiya/thot/en_US/Magento_Swatches/js/swatch-renderer.js:947:58)
    at $.(anonymous function).(anonymous function).updateBaseImage (http://www.thehouseofthings.com/thotstaging/pub/static/frontend/Advaiya/thot/en_US/jquery/jquery-ui.js:402:25)
    at $.(anonymous function).(anonymous function)._ProductMediaCallback (http://www.thehouseofthings.com/thotstaging/pub/static/frontend/Advaiya/thot/en_US/Magento_Swatches/js/swatch-renderer.js:902:18)
    at $.(anonymous function).(anonymous function)._ProductMediaCallback (http://www.thehouseofthings.com/thotstaging/pub/static/frontend/Advaiya/thot/en_US/jquery/jquery-ui.js:402:25)
    at Object.mediaSuccessCallback [as success] (http://www.thehouseofthings.com/thotstaging/pub/static/frontend/Advaiya/thot/en_US/Magento_Swatches/js/swatch-renderer.js:768:29)
    at fire (http://www.thehouseofthings.com/thotstaging/pub/static/frontend/Advaiya/thot/en_US/jquery.js:3232:32)
    at Object.fireWith [as resolveWith] (http://www.thehouseofthings.com/thotstaging/pub/static/frontend/Advaiya/thot/en_US/jquery.js:3362:8)
    at done (http://www.thehouseofthings.com/thotstaging/pub/static/frontend/Advaiya/thot/en_US/jquery.js:9840:15)
    at XMLHttpRequest.callback (http://www.thehouseofthings.com/thotstaging/pub/static/frontend/Advaiya/thot/en_US/jquery.js:10311:9)

Before reporting bugs to this repo please make sure they are not caused by store customizations.

magento-engcom-team commented 7 years ago

@hemendraajmera We cannot reproduce this issue as described. Please provide the detailed steps we must follow to reproduce this issue. In addition, identify the web server you are running, the versions of PHP and MySQL, and any other information needed to reproduce your issue.

hemendraajmera commented 7 years ago

I have reproduced the issue and the issue is related to CSS. I have changed product-info-main class to --product-info-main, that is the reason it will not work.

Thanks for your support.