cancel
Showing results for 
Search instead for 
Did you mean: 

PriceRow and Product relationship

Former Member
0 Kudos

Greetings!

I'm unable to figure out what's the relationship between product and price row. Is it one-to-one or one-to-many. Can two products be related to one price row?

Thanks in advance!

Regards, Plamen

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

On the contrary Product to ProceRow is a one-to-many relationship defined in europe1-items.xml

 <itemtype code="Product" ..>
         <attributes>
         .....
             <attribute autocreate="true" qualifier="europe1Prices" type="PriceRowCollectionType">
                 <persistence type="jalo"/>
                 <modifiers read="true" write="true" search="false" initial="false" optional="true" partof="true"/>
             </attribute>
             ...
         </attributes>
 </itemtype>

This means that one product can have many price rows. The most relevant price row is picked base on certain criteria.

Former Member
0 Kudos

Can two products be related to one price row?

seems like i misread the question :]

Answers (1)

Answers (1)

Former Member
0 Kudos

It is one-to-one. PriceRow extends PDTRow which has the product property defined.

/platform/ext/europe1/resources/europe1-items.xml