Author Topic: Save a different price in the order  (Read 4076 times)

Anni

  • Full Member
  • ***
  • Posts: 96
    • View Profile
Re: Save a different price in the order
« Reply #15 on: December 06, 2007, 10:09:52 AM »
I changed the finalPriceIncTax. is that one not saved?

Anni

  • Full Member
  • ***
  • Posts: 96
    • View Profile
Re: Save a different price in the order
« Reply #16 on: December 12, 2007, 06:27:16 AM »
any ideas? my code doesn't seem to fire at all ...  :'(

David

  • Full Member
  • ***
  • Posts: 59
    • View Profile
Re: Save a different price in the order
« Reply #17 on: December 13, 2007, 11:50:28 AM »
Hi, I don't if it could help, but I'll show you what I did:

in CheckoutConfirmationSubmitAction.java
in the method:    public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)

          OrderProductIf[] articulosKK;

          articulosKK = checkoutOrder.getOrderProducts();

          for(int i=0; i<articulosKK.length; ++i){
             articulosKK.setFinalPriceExTax( --my special price-- );
             articulosKK.setPrice( --my special price-- );
             articulosKK.setFinalPriceIncTax( --my special price-- );
          }

I don't remember if I did something else, if I find something i'll put it here...

good luck

Anni

  • Full Member
  • ***
  • Posts: 96
    • View Profile
Re: Save a different price in the order
« Reply #18 on: December 14, 2007, 06:15:57 AM »
hi david,

thanks for the reply :)
actually my code looks nearly the same but I only changed one of the prices ... I might just try changing all and see if it works.

regards,
anni