Developer forum

Forum » Rapido and Wrap » Need some help with shipping fee implementation

Need some help with shipping fee implementation

Peter Leleulya
Peter Leleulya
Reply

Hi guys,

I have a Dw965 With Rapido31 solution.
I can use some help with implementing a simple shipping rule.

I want euro 7,50 shipping fee added automatically to the cart when my order total is less than 50 euro.
The delivery country is of no importance, it is always based on the customer country.

I want no shipping fee when the order total is 50 euro or more or the former shipping fee automatically removed.

I do NOT want a selectable shipping fee in the payment step of the multi step template.

How can I set this up?

I created a shipping fee and set the fee settings:
- default fee: 7,50
- no fee for purchases over: 50,00

I've selected this fee in my cart module.

The result of this is:
- No fee in slide out cart, it shows:Delivery FREE
- No fee in cart step 1, it shows:Delivery FREE
- No fee in cart step 2, it shows nothing at all
- Selectable fee of 7,50 in cart step 3, well I'd never select that option if I was the customer ..

I've tried to add fee rules to my shipping fee, that didn't help ...

There must be a setting I'm missing here ...

Can anyone please help me along?

With kind regards and thanks in advance ....

Peter

 

Replies

 
Adrian Ursu
Adrian Ursu
Reply
Hi Peter, Have you tried setting it as default method? Also, if you use the fee matrix, please make sure to put a value for the minimum order. Something like 0.01. Adrian
 
Nicolai Pedersen
Nicolai Pedersen
Reply
This post has been marked as an answer

Yes, set default shipping and payment methods on the countries under settings, internatioinalisation

Votes for this answer: 1
 
Peter Leleulya
Peter Leleulya
Reply

Where does this live in the database?
I don't like to set both settings for all 113 countries in all supported languages manually ... 

 

Nevermind, I found it at [EcomMethodCountryRelation]

 
Peter Leleulya
Peter Leleulya
Reply

Thanks for your help Adrian and Nicolai, the shipping costs are being added and removed now.

I've unchecked the website ecommerce configuration 'hide free services', because that doesn't work on the mini cart yet (known issue).

But now it shows as following:

mini cart: both payment and shipping fee
cart step 1: both payment and shipping fee
cart step 2: only shipping fee
cart step 3: only shipping fee and a blank shipping area

Is this how it is supposed to display?

Capture-Fees.PNG
 
Nicolai Pedersen
Nicolai Pedersen
Reply

Check your settings on the cart app on the paragraph - try to choose "all", save it, and see. See dump

Capture.PNG
 
Peter Leleulya
Peter Leleulya
Reply

Nicoal, this makes no difference in displaying the fees in the cart.
They are being displayed inconsequent IMHO ... see previous dump

 
Nicolai Pedersen
Nicolai Pedersen
Reply

Hint me - I see 7,5 euros 4 times...

 
Peter Leleulya
Peter Leleulya
Reply

Yes, but the payment fee is shown in 2/4 ... why is that ... 

 

 
Nicolai Pedersen
Nicolai Pedersen
Reply

oh, you changed subject. Sorry - did not get that.

yes, that might be a template thing. I'll report it to QA

 
Peter Leleulya
Peter Leleulya
Reply

Sorry, see previous post:

Thanks for your help Adrian and Nicolai, the shipping costs are being added and removed now.

I've unchecked the website ecommerce configuration 'hide free services', because that doesn't work on the mini cart yet (known issue).

But now it shows as following:

mini cart: both payment and shipping fee
cart step 1: both payment and shipping fee
cart step 2: only shipping fee
cart step 3: only shipping fee and a blank shipping area

Is this how it is supposed to display?

The functionality You guys helped me fix, it was the displaying part that still bothered me ..
Thanks in advance for passing it through ...

 
Peter Leleulya
Peter Leleulya
Reply

The red lines conflict with the following line:

@if (GetInteger("Ecom:Order.PaymentFee.Price"!= 0 && Pageview.AreaSettings.GetItem("Ecommerce").GetItem("Checkout").GetBoolean("HideFreeServices"!= true)
        {
            string paymentFee = GetInteger("Ecom:Order.PaymentFee.Price"!= 0 ? GetString("Ecom:Order.PaymentFee.PriceFormatted": Translate("Free");
            <div class="u-padding u-border-bottom">
                <div class="cart-summary__info dw-mod"><i class="fas fa-credit-card"></i> @GetString("Ecom:Order.PaymentMethod")</div>
                <div class="cart-summary__info u-pull--right dw-mod">@paymentFee</div>
            </div>
        }
 
        @if (GetInteger("Ecom:Order.ShippingFee.Price"!= 0 && Pageview.AreaSettings.GetItem("Ecommerce").GetItem("Checkout").GetBoolean("HideFreeServices"!= true)
        {
            string shippingFee = GetInteger("Ecom:Order.ShippingFee.Price"!= 0 ? GetString("Ecom:Order.ShippingFee.PriceFormatted": Translate("Free");
 
            <div class="u-padding">
                <div class="cart-summary__info dw-mod"><i class="fas fa-truck"></i> @GetString("Ecom:Order.ShippingMethod")</div>
                <div class="cart-summary__info u-pull--right dw-mod">@shippingFee</div>
            </div>
        }
 
Olga Shedko
Olga Shedko
Reply

Hello Peter,

1. As for the condition to hide Payment and Shipping if it's free on Steps 2-3 (while showing it on Step 1) - I agree with you that it looks inconsistent and not user friendly. I've created TFS #64701 and assigned to our Project Manager for confirmation/fixing.

2. As for the empty Shipping block with a header - I've created TFS #64701. Will be fixed to the next hot-release.

Thank you.

Best regards,

Olga | QA

 

You must be logged in to post in the forum