Author Topic: Populating CartItem custom fields for EditCartBody  (Read 681 times)

AndyG

  • Newbie
  • *
  • Posts: 2
    • View Profile
Populating CartItem custom fields for EditCartBody
« on: January 22, 2010, 04:59:26 PM »
EditCartBody.jsp iterates over CartItem objects.  I have modified this JSP to capture extra per-item data into the custom1,2,3 fields, and I can see the values written to the customers_basket table.  If I continue shopping and then return to the EditCartBody page, the custom values are missing.  I can display item.getCustom1() and its null.  What class do I need to extend to make sure that customers_basket.custom1 gets copied to the CartItem?  Thanks.

- andy
 

ramesh

  • Jr. Member
  • **
  • Posts: 24
    • View Profile
Re: Populating CartItem custom fields for EditCartBody
« Reply #1 on: March 09, 2010, 04:53:04 AM »
hi andy

Did u find any solutions for above query.............! because even iam also facing same issues.....
if u got any solutions please let me know......!


Thank in advance
Mahesh



AndyG

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Populating CartItem custom fields for EditCartBody
« Reply #2 on: March 09, 2010, 10:08:52 AM »
Mahesh - No, we didn't find a suitable solution and re-considered our approach.  We now collect the data after the sale by hijacking CatalogCheckoutFinishedBody.jsp, overriding CheckoutFinishedSubmitAction and writing the data to our own table.  - andy