Giter Site home page Giter Site logo

'ThirtyBeesDatabaseException: Duplicate entry '2-7-0-0-2023-12-24 00:00:00-2023-12-31 08:00:00-1-0-0-0-0-1-1' for key 'id_product_2' when entering more than 3 condition groups in Catalog Price Rules about thirtybees HOT 3 CLOSED

therampagerado avatar therampagerado commented on June 9, 2024
'ThirtyBeesDatabaseException: Duplicate entry '2-7-0-0-2023-12-24 00:00:00-2023-12-31 08:00:00-1-0-0-0-0-1-1' for key 'id_product_2' when entering more than 3 condition groups in Catalog Price Rules

from thirtybees.

Comments (3)

getdatakick avatar getdatakick commented on June 9, 2024

@therampagerado Can you please provide exact reprosteps? I don't really know how to test this

from thirtybees.

pjrp avatar pjrp commented on June 9, 2024

@therampagerado Can you please provide exact reprosteps? I don't really know how to test this

Had to patch it in my install. Its possible there are many ways of reproducing it as there is no verification if rule was already applied to the product.

Reprosteps:

  1. Associate a product with more than one category.
  2. Add a catalogue rule that includes both categories as condition.

Saving this rule will cause this duplicate entry exception.

Edit: added info

The rule must have two condition groups. Example:
Category: Cameras OR Category: DSLR Cameras

If a product is associated with both "Cameras" and "DSLR Cameras" , function SpecificPriceRule->getAffectedProducts() will return duplicate product IDs.

from thirtybees.

therampagerado avatar therampagerado commented on June 9, 2024

@getdatakick I did exactly what was given as info in the initial thread - created a new Catalog Price Rule with 3 or more sections and upon saving it I get the exception:
image
image
image

from thirtybees.

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.