Shopware plugin to show a variant switch on the product listing and within the (checkout) cart.

Overview

Variant switch for Shopware 6

A plugin for Shopware 6

Features

  • Show variant switch on product listing card
  • Variant switch when hovering a variant property on product listing
  • Show variant switch on off-canvas cart
  • Show variant switch on cart page
  • Show variant switch on checkout confirm page
  • All these options are configurable

Requirements

Version Requirements
1.0.0 Shopware 6.4 >=

License

Plugin's Icon by flaticon.

The plugin is released under MIT. For a full overview check the LICENSE file.

Comments
  • Hide split variants (Feature Request)

    Hide split variants (Feature Request)

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

    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: grafik

    enhancement 
    opened by simgero 2
  • Show also variants which are out of stock

    Show also variants which are out of stock

    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

    enhancement 
    opened by ChristopherDosin 1
  • 6.4.12 compablity

    6.4.12 compablity

    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))"} []

    opened by ChristopherDosin 0
  • Invisible variant shown on product list

    Invisible variant shown on product list

    Problem description

    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.

    Steps to reproduce

    1. Create two sales channels, for example pointing to different subdomains.
    2. Create a product with a few variants.
    3. For a certain variant change visibility, removing one sales channel.
    4. See the behavior:
      1. Open product list to see it still shows the variant that should be hidden now.
      2. When switching to this variant the entire product is hidden.
      3. When opening the product detail page the variant is not shown.
    opened by Guite 0
  • Bug add extension on null

    Bug add extension on null

    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?

    image

    opened by ChristopherDosin 0
  • Please Add the ProductNumber of each Variant to the group option variable

    Please Add the ProductNumber of each Variant to the group option variable

    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.

    opened by davitsargsyan 0
Releases(1.0.0)
Owner
Shape & Shift
We build high conversion shopware shops for your brand.
Shape & Shift
Doctrine-like fixtures integration for Shopware 6.

Shopware 6 Fixtures Did you ever want to create and load Doctrine-like fixtures in your Shopware 6 plugin? Look no further! This plugin provides an ul

Familiy Office 0 Oct 29, 2021
PHP SDK for Checkout RESTful APIs

REST API SDK for PHP V2 To consolidate support across various channels, we have currently turned off the feature of GitHub issues. Please visit https:

PayPal 400 Nov 29, 2022
This small POC aims to show how Symfony is able, natively without modifications, to use subdirectories for Entities, Repositories, controllers, views…

POC - Using Sub Directories in a Symfony Project This small POC aims to show how Symfony is able, natively without modifications, to use subdirectorie

Yoan Bernabeu 2 May 12, 2022
Add Price Including tax for Magento's "cart" GraphQl query

Comwrap_GraphQlCartPrices Add Price Including tax for Magento's "cart" GraphQl query Query will looks like following: items { id __typenam

Comwrap 1 Dec 2, 2021
Chargebee API PHP Client (for API version 2 and Product Catalog version 2.0)

chargebee-php-sdk Overview This package provides an API client for Chargebee subscription management services. It connects to Chargebee REST APIs for

GLOBALIS media systems 8 Mar 8, 2022
A list of all the Belgian stations and their properties used within the iRail project

All stations in Belgium We try to maintain a list of all the stations in Belgium using CSV so everyone can help to maintain it on github. Furthermore,

null 33 Nov 16, 2022
This project was built to connect WHMCS with GridPane.com's API service so we can create sites within WHMCS.

GridPane Server Module for WHMCS This project was built to connect WHMCS with GridPane.com's API service so we can create sites within WHMCS. Discliam

null 10 Sep 2, 2021
Use middleware to decorate method calls within your application code.

Laravel Middlewarize ?? Chain of Responsibility Design Pattern In Laravel Apps ?? You can use middlewares to decorate any method calls on any object.

Iman 99 Jan 1, 2023
The perfect starting point to integrate Algolia within your PHP project

⚡️ A fully-featured and blazing-fast PHP API client to interact with Algolia.

Algolia 629 Jan 4, 2023
Monorepo of the PoP project, including: a server-side component model in PHP, a GraphQL server, a GraphQL API plugin for WordPress, and a website builder

PoP PoP is a monorepo containing several projects. The GraphQL API for WordPress plugin GraphQL API for WordPress is a forward-looking and powerful Gr

Leonardo Losoviz 265 Jan 7, 2023
Monorepo of the PoP project, including: a server-side component model in PHP, a GraphQL server, a GraphQL API plugin for WordPress, and a website builder

PoP PoP is a monorepo containing several projects. The GraphQL API for WordPress plugin GraphQL API for WordPress is a forward-looking and powerful Gr

Leonardo Losoviz 265 Jan 7, 2023
EXPERIMENTAL plugin extending WPGraphQL to support querying (Gutenberg) Blocks as data, using Server Side Block registries to map Blocks to the GraphQL Schema.

WPGraphQL Block Editor This is an experimental plugin to work toward compatiblity between the WordPress Gutenberg Block Editor and WPGraphQL, based on

WPGraphQL 29 Nov 18, 2022
This plugin lets you to get spawners that when you break them they regenerates themselves!

ItemSpawners This plugin lets you to get spawners that when you break them they regenerates themselves! How to use? For any information: https://githu

Oğuzhan 6 Jan 16, 2022
Osclass REST API plugin.

Osclass API Osclass API plugin, with all the required endpoints and JWT auth. Osclass App (Native + PWA) You always wanted a mobile app for Osclass, d

Defected 4 Sep 10, 2022
Pocketmine plugin API [4.0.0]

About /!\ Plugin in development [FR] Plugin de Mineral Contest [ENG] Mineral Contest Plugin Credit [FR] N'hésitez pas à donner votre avis sur le plugi

Achedon12 1 Jan 7, 2022
A RESTful and extendable Backend as a Service that provides instant backend to develop sites and apps faster, with dead-simple integration for JavaScript, iOS, Android and more.

Welcome to hook ![Gitter](https://badges.gitter.im/Join Chat.svg) hook is a RESTful, extendable Backend as a Service that provides instant backend to

doubleleft 762 Dec 30, 2022
Online Book Store is a E-commerce Website and Book Conversion(pdf to audio and Img to txt) and Book Sharing platform.

Online-Book-Store Online Book Store is a E-commerce Website and Book Conversion(pdf to audio and Img to txt) and Book Sharing platform. The main descr

Gokul krishnan 1 May 22, 2022
Read and write OpenAPI 3.0.x YAML and JSON files and make the content accessible in PHP objects.

php-openapi Read and write OpenAPI 3.0.x YAML and JSON files and make the content accessible in PHP objects. It also provides a CLI tool for validatin

Carsten Brandt 399 Dec 23, 2022
Simple and effective multi-format Web API Server to host your PHP API as Pragmatic REST and / or RESTful API

Luracast Restler ![Gitter](https://badges.gitter.im/Join Chat.svg) Version 3.0 Release Candidate 5 Restler is a simple and effective multi-format Web

Luracast 1.4k Dec 14, 2022