Giter Site home page Giter Site logo

bitbagcommerce / syliusproductbundleplugin Goto Github PK

View Code? Open in Web Editor NEW
20.0 7.0 36.0 1.03 MB

This plugin allows you to create new products by bundling existing products together.

Home Page: https://bitbag.io/

PHP 89.54% JavaScript 3.13% Gherkin 2.05% Twig 5.29%
sylius-plugin symfony bitbag

syliusproductbundleplugin's People

Contributors

arek31 avatar bartoszwojdalowicz avatar bitbager avatar damonsson avatar dieterholvoet avatar er1z avatar gabriela-lubkowska avatar glancu avatar gracjanjozefczyk avatar jakubtobiasz avatar jcgdjob avatar krisflorq avatar leszczuu avatar liszkapawel avatar lruozzi9 avatar macbalc avatar marekrzytki avatar mateuszdyla avatar patrick477 avatar piotrszymanski2000 avatar pptasinski avatar senghe avatar szymonfilipek avatar szymonkostrubiec avatar vitse avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

syliusproductbundleplugin's Issues

Product variants list is always empty

@patrick477
Hi! Do I understand correctly that your plugin allows you to create a bundle-type product that consists of other products? What should I do to display the required data in the product variant field?
image

Thanks!)

product variants are not saved

Hello,

I have installed “SyliusProductBundlePlugin” in these versions:

  • sylius-v1.10/PHP7.4/SF4.4
  • sylius-v1.11/PHP8.1/SF5.4.

When I create a bundle, the data of the product variants corresponding to that bundle are not saved in the database.
In addition, the bundle’s tab disappear by itself after submitting the form.

Product bundle Item dont show in Front page detail product

Hello,

I have installed “SyliusProductBundlePlugin” in these versions:

sylius-v1.10/PHP7.4/SF4.4
sylius-v1.11/PHP8.1/SF5.4.

I use these plugin to do a list of products, the plugin is working perfectly in the BO but when I try it in the front-end product show, it doesn’t show the list of products for this product bundle.

Could you please help me solve this issue?

Error on installation

When I tried to install this plugin on a clean Sylius 1.7 installation and following the steps on the documentation I got the following error when
Unrecognized option "links" under "sylius_grid.grids.sylius_admin_product.actions.main.create". Available options are "enabled", "icon", "label", "options", "position", "type".

Also, could someone assist me with the doctrine XML configuration?

  • is it mandatory?
  • should I add those xmls? where?
  • how does it work given that Sylius come preconfigured with annotations

Also, it would be very helpful that you add the the missing file's name comment on the top of the file snippets ( bundles.php, product & itemOrder entities & XMLs)

Thanks!

Install problem

Hi, I tried to install the package on Sylius v1.9.0, but got this message:
image

After using -W flag, installation is successful, but I no longer have the "src/Kernel.php" file, just 2 directories: "src/Entity" and "src/Migrations" so now I have to install Sylius from scratch.

Does anyone know why is this happening?

PS: I have the same problem when I try to install Sylius ShopAPI plugin.

Windows 10 Pro
Sylius: 1.9.0
Composer: 2.0.13
PHP: 7.4.9

Thanks!

Entity ProductBundleOrderItem mapping is invalid

I'm trying to install the CMSPlugin and i get an doctrine error, making a bin/console doctrine:schema:validate i get the following error:

 [FAIL] The entity-class BitBag\SyliusProductBundlePlugin\Entity\ProductBundleOrderItem mapping is invalid:
 * The association BitBag\SyliusProductBundlePlugin\Entity\ProductBundleOrderItem#orderItem refers to the inverse side field App\Entity\Order\OrderItem#productBundleItems which does not exist.

I review the src\Entity\OrderItem class that have the extension and i see that the protected value is:

    /**
     * @var Collection|ProductBundleOrderItemInterface[]
     *
     * @OneToMany(
     *     targetEntity="BitBag\SyliusProductBundlePlugin\Entity\ProductBundleOrderItemInterface",
     *     mappedBy="orderItem",
     *     cascade={"ALL"}
     * )
     */
    protected $productBundleOrderItems;

I will do some tests, but it don't allowme to install other plugins.

Not support promotion

Step to reproduce

  1. Create a promotion with cart total reach $500 could enjoy $10 discount.
  2. Add bundle item with item total > $500
  3. apply discount code
  4. invalid code

Is this plugin still active?

Hello,

Is this plugin still active?
If not, do you know an alternative Sylius plugin to manage sets of products?

Thanks

Doctrine conflict

Hello guys,

I want to install this package, but am unable to do so with the latest version because of this part added to composer.json :

"conflict": {
    "doctrine/orm": "^2.10.0"
},

I currently have version 2.11.1 of doctrine/orm installed and I want to avoid the downgrade to 2.9.

Any way to know why this package conflicts with doctrine/orm:^2.10.0 ?

The association BitBag\SyliusProductBundlePlugin\Entity\ProductBundleOrderItem#orderItem refers to the inverse side field App\Entity\Order\OrderItem#productBundleOrderItems which does not exist

When looking through the Symfony Profiler for an unrelated issue, I noticed an error in the Entities Mapping section of the Doctrine pane:

The association BitBag\SyliusProductBundlePlugin\Entity\ProductBundleOrderItem#orderItem refers to the inverse side field App\Entity\Order\OrderItem#productBundleOrderItems which does not exist

AddProductBundleToCartCommand serialization config not compatible with constructor fields

Affected SyliusProductBundlePlugin version: v2.2.0
Sylius version: v1.12.5
PHP version: 8.0.23

Describe the issue

When using the API-route [PATCH] /api/v2/shop/product-bundles/{id}/add-to-cart with the following body (as stipulated by AddProductBundleToCartCommand):

{
    "orderId": 1,
    "productCode": "example-bundle",
    "quantity": 1
}

I get the following response:
400 Bad Request

{
    "code": 400,
    "message": "Cannot create an instance of \"BitBag\\SyliusProductBundlePlugin\\Command\\AddProductBundleToCartCommand\" from serialized data because its constructor requires parameter \"orderId\" to be present."
}

The serialization file AddProductBundleToCartCommand.xml specifies two fields to be deserialized: orderToken and quantity. But the AddProductBundleToCartCommand requires orderId, productCode, and quantity.

Observation

While the serialization file is wrong, it proposes a better way to define the command-object. Since the route already contains an ID for the product-bundle, the productCode field is not necessary. orderToken is also a better way to associate the add of a bundle to a cart as that follows the convention of Sylius checkout API.

Possible solutions

  1. Reconfigure the serialization so the fields orderId, productCode, and quantity is associated with the group 'shop:product_bundle:add_to_cart'
  2. Redefine the command-file and how it is used

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.