Code Monkey home page Code Monkey logo

mageprakash / configurableproductspreselected Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 3.0 61 KB

Pre-selected configurable product options, change URL and other improvements

PHP 81.79% JavaScript 11.36% HTML 6.85%
magento2-module magento-extension magento2 configurable-products preselect-for-configurable-products magento2-configurable-products associatedproducts-preselected magento2-configurable-preselected configurable-products-pre-selected

configurableproductspreselected's People

Contributors

mageprakash avatar sudheernayak31 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

configurableproductspreselected's Issues

error format json: Uncaught SyntaxError: Unexpected end of JSON input

First, Thank you very much for this module. It so good ๐Ÿ‘

These fields: description, short_description sometime include ' text.

Example: Pink Cotton 50's Inspired sleeves Jumpsuit Dry clean Only

It will be make error in browser: Uncaught SyntaxError: Unexpected end of JSON input
Please check: \Magebulls\ConfigurablePreselect\Plugin\Product\View\Type\ConfigurablePlugin::afterGetJsonConfig() line 39

$result['associated_products'][$product->getId()][] =
                [
                    'description' => $product->getData('description'),
                    'short_description' => $product->getData('short_description'),
                    'product_name' => $product->getData('name'),
                    'sku' => $product->getData('sku'),
                ];

So I fixed by use htmlentities:
Example: 'short_description' => htmlentities(stripslashes(utf8_encode($product->getData('short_description'))), ENT_QUOTES)

$result['associated_products'][$product->getId()][] =
                [
                    'description' => $product->getData('description'),
                    'short_description' => $product->getData('short_description'),
                    'product_name' => $product->getData('name'),
                    'sku' => $product->getData('sku'),
                ];

Can you please check?

Thank you

Dependency Issue

Hello,

Whether this source will support for Magento 2.3.3?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.