Skip to Content
0
Former Member
Mar 07, 2010 at 12:38 AM

How to get price in basket.inc.jsp

60 Views

Hi All,

Could someone let me know if I can get the Gross Value (Total price) in basket.inc.jsp

When I tried to display the value of price in this jsp I get 0 GBP because

SalesDocument instance (salesDoc ) which is available in basket.inc.jsp is giving false value for below Boolean fields.

boolean isTaxValueAvailable = salesDoc.isTaxValueAvailable();

boolean isNetValueAvailable = salesDoc.isNetValueAvailable();

boolean isGrossValueAvailable = salesDoc.isGrossValueAvailable();

Also item.getGrossValue() gives 0 price.

The reason is the at this stage, in SalesDocumentthe Gross Value is not available.

Is there any way to get the price at this stage itself?

I am currently able to get the price in checkout.inc.jsp this is the next file which gets displayed after basket.inc.jsp.

Thanks

Neha