Developer forum

Forum » Rapido » Rapido 2.0 - Cart.UpdateCart()

Rapido 2.0 - Cart.UpdateCart()

Mikkel Hornbech Nielsen
Reply

Hi there DW Support.

 I have an issue regarding Rapido 2.0 and the JS function "Cart.UpdateCart".
It's because locally i have tested out the code and it works perfectly, but on our staging site it dosen't work, and the templates are 1 to 1. So i can't seem to figure it out why it doesnt work.

It's this function "onchange="Cart.UpdateCart('Cart', '/Default.aspx?ID=@cartOrderlinesFeedPageId', '&CartCmd=UpdateOrderlines&QuantityOrderLine{{orderLineId}}=' + this.value + '&redirect=true', false + document.location.reload(true));"

I have added a custom line of JS "document.location.reload(true)" to force a page refresh either when the input arrow up or down is changed, the same when you leave the quantity input field with the mouse.

I will attach the files and link to our staging envoirment.

Steps to reproduce behavior:

Login with user.
Go to cart (add some products to cart if there isen't any).
Go to checkout - and try and change quantity, with either the arrows (up and down), the input quantity field or the input quantity button.

Thanks.


Replies

 
Nicolai Pedersen
Reply

Hi Mikkel

What would you want us to do? Install your custom checkout and locate the error?

BR Nicolai

 
Mikkel Hornbech Nielsen
Reply

Hi Nicolai.

I was just wondering if you guys could spot something either in the template or the given function that seems wrong.
Basically what i want to achieve is to be able to change the quantity and submit a page refresh at the same time.

I am not quite sure what you're options are in regards to helping me out, but i hope that you guys are able to somehow anyways.

Good day.

 
Mikkel Hornbech Nielsen
Reply

Is this at all possible or?

 

You must be logged in to post in the forum