Developer forum

Forum » Rapido » Total not cleared when CartCmd DelOrderLine removes last product

Total not cleared when CartCmd DelOrderLine removes last product

Torben Grove
Reply

Hi all

We are experiencing a weird issue when removing products from a cart manually using the DelOrderLine CartCmd.

When removing the last remaining item in the cart the total price before deletion is still present in the view and the returned feed.

We are running Rapido version 3.4.2 and a DW Version 9.14.4

Cart command:

/Default.aspx?ID=6308&CartCmd=DelOrderLine&key=OL129650&redirect=false&feedtype=Counter

Feed response:

[
    {
        "numberofproducts": 0,
        "subtotalprice": "0,00 DKK",
        "subtotalpricewithouttaxes": "0,00 DKK",
        "paymentmethod": "Invoice",
        "paymentfee": "Free",
        "hidePaymentfee": true,
        "shippingmethod": "Shipping",
        "shippingfee": "Free",
        "hideShippingfee": true,
        "hideSubTotal": false,
        "hideComment": false,
        "showCheckoutDisclaimer": false,
        "checkoutDisclaimer": "* Sales Tax and Shipping calculated at Checkout",
        "totalprice": "618,00 DKK",
        "earnings": 0,
        "totalvat": "154,50 DKK",
        "totaltaxes": "-",
        "hasTaxSettings": false,
        "isEmpty": true,
        "vouchercode": "",
        "giftcardcode": "",
        "comment": "",
        "userPoints": 0,
        "pointsUsedInCart": 0,
        "termsAccepted": "",
        "disabledNextStep": "disabled",
        "totalPriceWithVat": "772,50 DKK",
        "totalPriceWithoutVat": "618,00 DKK",
        "vatPercent": "0%",
        "OrderLines": []
    }
]

 

Cart_with_1_item.png

Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Torben

Some bug, thats for sure. Question is if it is Rapido or the cart.

Try remove the setting "Do not delete carts with 0 orderlines"

https://doc.dynamicweb.com/documentation-9/platform/advanced-settings/ecommerce-advanced-configuration#6663

 
Torben Grove
Reply

Hi Nicolai

That is a possible solution, i will reach out to the customer to confirm that this is the behaviour they want.

Thank you so much

 

Preview of empty cart:

 

 

You must be logged in to post in the forum