Closed knsenthil closed 6 years ago
@peterjaap @astorm : Is there any update on this ?
Please paste the json here so we can see what's wrong with it. On Wed, 30 May 2018 at 18:24, Senthil notifications@github.com wrote:
@peterjaap https://github.com/peterjaap @astorm https://github.com/astorm : Is there any update on this ?
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/elgentos/LargeConfigProducts/issues/8#issuecomment-393225597, or mute the thread https://github.com/notifications/unsubscribe-auth/AAaVAIb99WOy7ebJ3q5AdGZOaMv4lDgDks5t3sfPgaJpZM4URjr2 .
@knsenthil Not my circus, not my monkeys -- but per @peterjaap's comments seeing the JSON (maybe via the XHR debugger?) would be a prerequisite to helping out.
@peterjaap @astorm Here is the JSON { "*": { "mage/cookies": { "expires": null, "path": "/magento2/magento219", "domain": ".localhost", "secure": false, "lifetime": "3600" } } }
{
"*": {
"Magento_Ui/js/core/app": {
"components": {
"customer": {
"component": "Magento_Customer/js/view/customer"
}
}
}
}
}
{
"[data-block='minicart']": {
"Magento_Ui/js/core/app": {"components":{"minicart_content":{"children":{"subtotal.container":{"children":{"subtotal":{"children":{"subtotal.totals":{"config":{"display_cart_subtotal_incl_tax":0,"display_cart_subtotal_excl_tax":1,"template":"Magento_Tax\/checkout\/minicart\/subtotal\/totals"},"children":{"subtotal.totals.msrp":{"component":"Magento_Msrp\/js\/view\/checkout\/minicart\/subtotal\/totals","config":{"displayArea":"minicart-subtotal-hidden","template":"Magento_Msrp\/checkout\/minicart\/subtotal\/totals"}}},"component":"Magento_Tax\/js\/view\/checkout\/minicart\/subtotal\/totals"}},"component":"uiComponent","config":{"template":"Magento_Checkout\/minicart\/subtotal"}}},"component":"uiComponent","config":{"displayArea":"subtotalContainer"}},"item.renderer":{"component":"uiComponent","config":{"displayArea":"defaultRenderer","template":"Magento_Checkout\/minicart\/item\/default"},"children":{"item.image":{"component":"Magento_Catalog\/js\/view\/image","config":{"template":"Magento_Catalog\/product\/image","displayArea":"itemImage"}},"checkout.cart.item.price.sidebar":{"component":"uiComponent","config":{"template":"Magento_Checkout\/minicart\/item\/price","displayArea":"priceSidebar"}}}},"extra_info":{"component":"uiComponent","config":{"displayArea":"extraInfo"}},"promotion":{"component":"uiComponent","config":{"displayArea":"promotion"}}},"config":{"itemRenderer":{"default":"defaultRenderer","simple":"defaultRenderer","virtual":"defaultRenderer"},"template":"Magento_Checkout\/minicart\/content"},"component":"Magento_Checkout\/js\/view\/minicart"}},"types":[]} },
"*": {
"Magento_Ui/js/block-loader": "http://localhost:82/magento2/magento219/pub/static/version1527768131/frontend/Magento/luma/en_US/images/loader-1.gif"
}
}
{"[data-role=compare-products-link]": {"Magento_Ui/js/core/app": {"components":{"compareProducts":{"component":"Magento_Catalog\/js\/view\/compare-products"}}}}}
{
"*": {
"Magento_Ui/js/core/app": {
"components": {
"customer": {
"component": "Magento_Customer/js/view/customer"
}
}
}
}
}
{
"*": {
"Magento_Ui/js/core/app": {
"components": {
"messages": {
"component": "Magento_Theme/js/view/messages"
}
}
}
}
}
{
"[data-role=swatch-options]": {
"Magento_Swatches/js/swatch-renderer": {
"jsonConfig": null<? /* @escapeNotVerified */ //echo $swatchOptions = $block->getJsonConfig() ?>,
"jsonSwatchConfig": {"141":{"167":{"type":"0","value":"XS","label":"XS"},"168":{"type":"0","value":"S","label":"S"},"169":{"type":"0","value":"M","label":"M"},"170":{"type":"0","value":"L","label":"L"},"171":{"type":"0","value":"XL","label":"XL"}},"93":{"50":{"type":"1","value":"#1857f7","label":"Blue"},"56":{"type":"1","value":"#eb6703","label":"Orange"},"57":{"type":"1","value":"#ef3dff","label":"Purple"}}},
"mediaCallback": "http://localhost:82/magento2/magento219/swatches/ajax/media/",
"gallerySwitchStrategy": "prepend"
},
"Magento_Swatches/js/configurable-customer-data": {
"swatchOptions": null }
}
}
My Version is 2.1.8. I think this module will work well in version 2.2.2. Is there any work around to make this working in 2.1.8 version. As per my analyse . I found "configurable-customer-data.js" file is missing in vendor -> module-swatches of Magento 2.1.8. Which is available in 2.2.2.
Kindly help me.
Could you fix the rendering of the json you pasted here? Or lint it yourself with https://jsonlint.com/ so you can check whether the JSON itself is indeed correct or not?
If not, you should trace the origin of the faulty JSON. Or get the JSON where it is still correct and compare the two.
@peterjaap :
I fixed JSON error. Thank you.
After that i found console saying .. "TypeError: this._determineProductData is not a function" in "swatch-renderer-mixin.js". I copy paste the same function found in "configurable-mixin.js" to "swatch-renderer-mixin.js".
Now getting the following error:
Loading failed for the Githubissues.
@peterjaap @astorm My Configurable product has around 14k products associated. I have installed this module & I am getting this error. My Magento version 2.1.9. Is there anything i am missing ? SyntaxError: JSON.parse: expected ',' or '}' after property value in object at line 5 column 35 of the JSON data
kindly help me to get this resolved.