Comments (8)
I will look into it. Thanks for reporting it.
from syliustierpriceplugin.
Okay, I have found the problem. The problem is that if it is a simple product we want the AdminProductFormMenuListener
to be included. If it is a configurable product the product doesn't show the tierprices in the form but rather in the variants. There is a quick fix for it to just hide the content of the tab but this is not the best way to deal with it, I would say.
On the other hand I don't think that there is a way to destinguish in the MenuListener when is it a simple product and when is it a configurable product.
from syliustierpriceplugin.
Never mind I have fixed it I think. Have a look at: e3c45ca
.
from syliustierpriceplugin.
That does seem to be a good fix. Thanks
from syliustierpriceplugin.
You're welcome
from syliustierpriceplugin.
Could you please clarify how to do to fix this bug? Thanks.
from syliustierpriceplugin.
You can cherry-pick this commit e3c45ca or manually implement the changes.
What I have done so far is that I have added a condition to the MenuListener
that adds the tierpricing. When it is a configurable product, it will not add the Menu entry to the product menu and just the product variant entity.
from syliustierpriceplugin.
@sabehira What I did in my project was disabling the service which registers the listener. That could work in the meantime if you're working with a build process and can't implement the changes in the vendor.
To remove it, you need to add a compiler pass with the following code:
<?php
namespace AppBundle\DependencyInjection\Compiler;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
class ThirdPartyServiceRemovalPass implements CompilerPassInterface
{
public function process(ContainerBuilder $container)
{
$container->removeDefinition('brille24.listener.admin.product.form.menu_builder');
}
}
from syliustierpriceplugin.
Related Issues (20)
- Adding support for Sylius 1.4 HOT 1
- Does it support Sylius 1.3.x HOT 8
- Feature suggestion: add customer group HOT 8
- Delete button not working HOT 1
- Tag current master HOT 5
- Unable to override plugin templates HOT 3
- Fixtures loading is broken HOT 1
- Price validation is less than or equal to zero
- Form extension priority error
- Issue updating tier prices for customer groups HOT 6
- Exception during the database update HOT 4
- Working with 100's of quantities and adjustments HOT 1
- Schema not updating in default installation. HOT 1
- Plugin installation override the doctrine migration_paths order HOT 3
- sylius 1.11 support HOT 3
- Original price is not set HOT 3
- Support for Sylius 1.12 HOT 18
- I cannot see "tier prices" in a configurable product HOT 4
- Setting tiered price in one variant is showing tables for all variants HOT 3
- Dependency injection fails: non-existent service brille24.factory.tierprice HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from syliustierpriceplugin.