Developer forum

Forum » Swift » Hiding free payment fees

Hiding free payment fees

Martin Ottesen
Martin Ottesen
Reply

Hey DW,

In Rapido there was a way to hide free payment fees, is there a way to do the same in swift in its current stage without having to alter the template?

Picture for reference.


Replies

 
Martin Ottesen
Martin Ottesen
Reply

Bump :) 

 
Marie Louise Veigert
Reply

Bump :)

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Registered as Devops#13869

I made a pull request - it has not been approved yet.

In PaymentMethods.cshtml template you can change the code to this until the release is out:

<dd class="g-col-4 g-col-sm-1 order-1 order-sm-2 mb-0 text-end">
 @if (!method.GetBoolean("Ecom:Cart.Paymethod.Price.IsZero"))
 {
 <span class="text-price">@method.GetString("Ecom:Cart.Paymethod.Price")</span>
 }
 </dd>

This is the template: https://github.com/dynamicweb/Swift/blob/main/Swift/Files/Templates/Designs/Swift/eCom7/CartV2/Step/Helpers/PaymentMethods.cshtml#L32

 

You must be logged in to post in the forum