Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Order Details

 
Reply
   X-Cart forums > X-Cart 5 > General questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 02-16-2018, 04:00 AM
 
Soptareanu Alex Soptareanu Alex is offline
 

Member
  
Join Date: Sep 2016
Posts: 24
 

Default 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 !
__________________
alex
Reply With Quote
  #2  
Old 02-19-2018, 07:48 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Order Details

How do you add the property? Please could you share the source code of the model-extending class?
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #3  
Old 02-21-2018, 11:44 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default 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
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote

The following user thanks tony_sologubov for this useful post:
qualiteam (02-26-2018)
  #4  
Old 02-22-2018, 01:09 AM
 
Soptareanu Alex Soptareanu Alex is offline
 

Member
  
Join Date: Sep 2016
Posts: 24
 

Default 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 !
__________________
alex
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > General questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:17 PM.

   

 
X-Cart forums © 2001-2020