Wednesday, February 23, 2011

Price OverRide feature for price drop

Out of the box the price override feature is used in the Sales center to override the price by an admin.

This feature is really easy to customize for requirements such as price drop , to show some discount and implement as a price override. There is a bit for price override that needs to be set to let the performance engine make aware there is a price override on a orderitem.

int currentPrepFlag =orderItems[i].getPrepareFlagsInEJBType().intValue();
currentPrepFlag |=OrderConstants.PREPAREFLAGS_PRICE_OVERRIDE;
orderItems[i].setPrice(String.valueOf(finalprice));
orderItems[i].setPrepareFlags(new Integer(currentPrepFlag ));
orderItems[i].commitCopyHelper();

3 comments:

  1. This blog provides a strong evidence of phenomenal writing.
    purchase tracker

    ReplyDelete
  2. Welcome to Cults, the world’s main impartial website for 3D printer recordsdata. Discover and obtain one of the best 3D fashions for all of your 3D printing & DIY projects. /PRNewswire/ -- UltiMaker, high precision machining a world chief in desktop 3D printing, today announced the new new} MakerBot SKETCH® Large 3D printer, the latest addition to the popular MakerBot SKETCH platform. With the H350, Stratasys uses a third-party-certified powder material, PA11, rather than a resin or filament. PA11 is a bio-based plastic manufactured from renewable uncooked supplies derived from sustainable castor oil. Fluid is applied by industrial-grade piezoelectric print heads to prescribed areas to create each half cross section.

    ReplyDelete