X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   General questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=66)
-   -   Order Details (https://forum.x-cart.com/showthread.php?t=75993)

Soptareanu Alex 02-16-2018 04:00 AM

Order Details
 
Anyone can explain me how actualy processQuick() function works ? In \XLite\Model\OrderItem I create a new property(item_disponibility). His value is set when I add some product in cart based on a product property.
In my Order Details I show in the table this propery. It shows very well but if I want to add another product on that particulary order, I recive an error when it calls recalculate method because of item_disponibility that has no value and it send a null to database column. The question is how to pass this value to entity before make the persistence in xc_order_items table.

I use a XCART 5.3.2.13 version !

qualiteam 02-19-2018 07:48 AM

Re: Order Details
 
How do you add the property? Please could you share the source code of the model-extending class?

tony_sologubov 02-21-2018 11:44 AM

Re: Order Details
 
@Soptareanu Alex,

Did you try to define this column with nullable=true parameter?
It would look something like this:

Code:

@Column (type="string", nullable=true)

Please, let me know if it helps.

Tony

Soptareanu Alex 02-22-2018 01:09 AM

Re: Order Details
 
Quote:

Originally Posted by tony_sologubov
@Soptareanu Alex,

Did you try to define this column with nullable=true parameter?
It would look something like this:

Code:

@Column (type="string", nullable=true)

Please, let me know if it helps.

Tony


Yes, If I set as nullable it works !


All times are GMT -8. The time now is 07:28 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.