Developer forum

Forum » Ecommerce - Standard features » Payment fees DW 9.8.5 (no rapido)

Payment fees DW 9.8.5 (no rapido)

Siv-Renate Hansen
Siv-Renate Hansen
Reply

for a client mine, aapw, I've created a fee using this description:

 

To create a fee:

  • Click Click here to add a new row
  • Enter a fee and select a type – amount or percentage
  • Select a Total Price at which point the fee will trigger – below this threshold, the fee will not trigger

 

The Fee is 90, type = amount and total price is set to 0.

I cannot find any TemplateTags which  returns the fee of 90. All of the templateTags with fees returns 0

How do I proceed from here? 

 


Replies

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

Hi,

The payment fee amount can be taken either via Ecom:Order.PaymentFee inside cart/order details or Ecom:Cart.Paymethod.Price under Paymethods loop in cart. Final values of  the tags can be depended on VAT and the option state in Settings-Eccommerce-AC-Prices-Calculate VAT on Fees-Payment. It was tested on last DW9..6 - OK.

BR, Oleg QA

 
Siv Hansen
Siv Hansen
Reply

Ok, thanks. I used the Ecom:Order.PaymentFee, and it works after setting a default payment method.

However, there is no Template tag for the calculated price (aka the product price Ecom:Order.PriceWithoutFees.PriceWithoutVATFormatted +  VAT Ecom:Order.Price.VATFormatted + fee Ecom:Order.PaymentFee). In my case, it should be 748,50, but I have no TemplateTag that contains this value.

 

  • BeløpNOK 518,00
  • Mva. 25%NOK 129,50
  • GebyrNOK 101,00
  • Beløp inkl. mva.NOK 647,50 <-- this is wrong calculation

 

What am I doing wrong here? 

 
Nicolai Pedersen
Reply

Hi Siv.

Please find attached a cart "Cheatsheet" that will show you all totals, subtotals, discounts etc. When you hover any amount, it will also reveal what template tag is used for each amount.

Try to use that on your cart page (or make a copy of the paragraph with your cart module using this template). Place the template in the "eCom7\CartV2\Step" folder and select it for step 1 of your cart. See attached dump for how it looks.

BR Nicolai

Capture.JPG
 
Siv Hansen
Siv Hansen
Reply

Thanks. I tried this and now I think I'd like to report a bug. Perhaps it is a feature, I don't know.

The coat is 518 + vat 129,50 = 647,50. Then we add payment fee, 101, which should give us 748,50 (and I still don't have any template tag for that), but now I see that we also
should have included Shipping (Bring) of 115, which should give us the total of 863,50 - which I don't have either.

Is it so that Dynamicweb is not meant to calculate price, vat and fees (both payment and shipping) (aka a feature) or is this a bug?

aapw-cart.png
 
Nicolai Pedersen
Reply

I can see that the orderline with the product has a price that comes from an integration - or some sort of custom. Orderlinetype = fixed.

That indicates, that the integration has taken over the calculation of the order, and then DW will not do that. So the integration code will have to do that. The order has methods to do the calculations, but needs to be called and handled in the integration code.

 

You must be logged in to post in the forum