Developer forum

Forum » Ecommerce - Standard features » Orderline price without fees, discount or taxed

Orderline price without fees, discount or taxed

Nuno Aguiar
Reply

Hi,

 

How can we get the orderline price without discount, shipping/billing fees, vat or tax?

 

Right now the only way we can think of is: 

double num_subtotal = GetDouble("Ecom:Order.PriceWithoutDiscountsOrTaxes.Price") - GetDouble("Ecom:Order.ShippingFee.PriceWithoutVAT");
string str_subtotal = num_subtotal.ToString("#,##.00");

 

Best Regards,

Nuno


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Nuno

You should use the @Ecom:Order.OrderLines.Total.* tags: http://templates.dynamicweb.com/eCommerce/Dynamicweb-eCommerce-template-tags/Shopping-Cart/Order/Cart.aspx

Nicolai

 

 
Nuno Aguiar
Reply

Hi Nicolai,

 

That does not give me what I need. For example:

Product A: $ 38.00 each * 3 quantities - I would expect to have a tal with $114.00, but none exist

If you go to http://dev.janice.dw-demo.com/ffc-face/skin-perfector, add it 3 times, go to the checkout http://dev.janice.dw-demo.com/checkout and rendering tags, you will see what I mean.

 

(site under dev and the Subtotal value will look OK, because we are calculating - see first post)

 

Best Regards,

Nuno

 
Nicolai Høeg Pedersen
Reply

You have @Ecom:Order.PriceWithoutDiscountsOrTaxes.PriceWithoutVAT and @Ecom:Order.PriceWithoutDiscounts.PriceWithoutVAT and Ecom:Order.OrderLines.Total.PriceWithoutVAT

 
Nuno Aguiar
Reply

Hi Nicolai,

 

I don't get the values I am expecting. Check the screencast http://nunoaguiar.dev1.dynamicweb.pt:81/Files/Files/EcomTag.swf

 

You can see all the steps and how the values get updated. The only way I managed to get it was to calculate it (first post).

 

Best Regards,

Nuno

 

You must be logged in to post in the forum