GithubHelp home page GithubHelp logo

Comments (8)

mamazu avatar mamazu commented on September 25, 2024

I will look into it. Thanks for reporting it.

from syliustierpriceplugin.

mamazu avatar mamazu commented on September 25, 2024

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.

mamazu avatar mamazu commented on September 25, 2024

Never mind I have fixed it I think. Have a look at: e3c45ca.

from syliustierpriceplugin.

wimulkeman avatar wimulkeman commented on September 25, 2024

That does seem to be a good fix. Thanks

from syliustierpriceplugin.

mamazu avatar mamazu commented on September 25, 2024

You're welcome

from syliustierpriceplugin.

sabehira avatar sabehira commented on September 25, 2024

Could you please clarify how to do to fix this bug? Thanks.

from syliustierpriceplugin.

mamazu avatar mamazu commented on September 25, 2024

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.

wimulkeman avatar wimulkeman commented on September 25, 2024

@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)

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.