shape-and-shift / shopware-variant-switch Goto Github PK
View Code? Open in Web Editor NEWShopware plugin to show a variant switch on the product listing and within the (checkout) cart.
License: MIT License
Shopware plugin to show a variant switch on the product listing and within the (checkout) cart.
License: MIT License
When in the for loop of creating the option elements for the select of the variants, please add the productNumber association for the option group so the productNumber is assigned to the option as well, or to the option's product.
On Shopware 6.4.12
there seems to be a compatibility issue:
request.CRITICAL: Uncaught PHP Exception TypeError: "SasVariantSwitch\Storefront\Page\ProductListingConfigurationLoader::isCombinable(): Argument #3 ($combinations) must be of type Shopware\Core\Content\Product\SalesChannel\Detail\AvailableCombinationResult, null given, called in /www/htdocs/w007fddd/[shop.easy-to-run.de/custom/plugins/SasVariantSwitch/src/Storefront/Page/ProductListingConfigurationLoader.php](http://shop.easy-to-run.de/custom/plugins/SasVariantSwitch/src/Storefront/Page/ProductListingConfigurationLoader.php) on line 72" at /www/htdocs/w007fddd/[shop.easy-to-run.de/custom/plugins/SasVariantSwitch/src/Storefront/Page/ProductListingConfigurationLoader.php](http://shop.easy-to-run.de/custom/plugins/SasVariantSwitch/src/Storefront/Page/ProductListingConfigurationLoader.php) line 280 {"exception":"[object] (TypeError(code: 0): SasVariantSwitch\\Storefront\\Page\\ProductListingConfigurationLoader::isCombinable(): Argument #3 ($combinations) must be of type Shopware\\Core\\Content\\Product\\SalesChannel\\Detail\\AvailableCombinationResult, null given, called in /www/htdocs/w007fddd/[shop.easy-to-run.de/custom/plugins/SasVariantSwitch/src/Storefront/Page/ProductListingConfigurationLoader.php](http://shop.easy-to-run.de/custom/plugins/SasVariantSwitch/src/Storefront/Page/ProductListingConfigurationLoader.php) on line 72 at /www/htdocs/w007fddd/[shop.easy-to-run.de/custom/plugins/SasVariantSwitch/src/Storefront/Page/ProductListingConfigurationLoader.php:280](http://shop.easy-to-run.de/custom/plugins/SasVariantSwitch/src/Storefront/Page/ProductListingConfigurationLoader.php:280))"} []
There is a bug for multiple language channels.
When we have at least 2 domains for one channel there is a problem with changing variant on the listing page. When our sales channel have default English language and we are currently on any other like here:
When we change variant the link to the product also changes to the English version (default):
Does not work for shopware 6. Can anybody fix this
Hi, could you possibly push the new version to the Shopware Store.
Thanks in advance.
It would be a nice feature if there would be also a option for show all variants and those ones who are out of stock would be grayed out or disabled.
As seen on the issue tracker:
https://issues.shopware.com/issues/NEXT-15280
With a plugin installed like the popular Multi Range Slider labels are not represented on the product card.
See attached screenshot for explanation:
On the product list all variants are shown, including those that have been excluded for the current sales channel.
The product detail page shows only variants which are actually visible for the current sales channel.
Currently, all variants are displayed on the article. However, if the articles are split in the listing, you will see all variants multiple times. Once as a single article and once as a variant selector.
Here an option would be helpful, which shows only the variant attributes on the article for selection, which are not already split.
In this example, in the category the variants are split by color and the sizes are available for selection:
Hey,
ich habe euer Plugin "Varianten switch im Product Listing" im Einsatz.
Ich weiß das ihr kein Support dafür habt.
Aber vielleicht hat jemand von euch Lust drauf.
Ich glaube das Plugin hat einen kleinen Bug.
Bei dem ersten laden der Seite wird bei jeder Auswahl "is-combinable" als CSS classe hinzugefügt.
Kann man schön beobachten wenn man ein Produkt hat was mehrere Auswahl Kriterien hat. (bei mir, T-Shirt größe, T-Shirt Farbe und T-Shirt aufdruck_farbe)
Vielleicht hat ja mal wer Zeit zum nachschauen.
Liebe Grüße
Martin
in one of our Shopware 6 shops we have two other plugins active in addition to your plugin.
That would be “shopping cart free products / goals | by 28minds” and “Award Items”. As soon as a free product or a bonus item (using these plugins) is placed in the shopping cart, your plugin will issue an error message. In the CartPageLoadedSubscriber.php file, in line 122 of the addLineItemPropertyGroups function, the $lineItem parameter is set to zero, which leads to an error. Would it be an option here to include an if statement that checks whether $lineItem !== is null?
Would be great if it would also work on the detailpage for Corss-selling-articles.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.