Developer forum

Forum » Rapido » Sign in Modal popping up when returning from the cart

Sign in Modal popping up when returning from the cart

Mafalda Correa
Mafalda Correa
Reply

Hi,

There's a strange bug with the LastAddedProduct modal notification. If you add a product to the cart, click proceed to cart and then click the return button and go back to the Product List (or Product Detail), the Sign in modal pops up, even though the user is logged in.

As far as I can tell, this only happens with the add to cart notification and by clicking proceed to checkout and then returning. It doesn't happen if you click on proceed to cart in the mini cart.

See the repro: 

https://www.screencast.com/t/mC8vue1EbQV


Replies

 
Olga Shedko Dynamicweb Employee
Olga Shedko
Reply

Hello Mafalda,

The new TFS #73088 has been created for fixing this issue. Will be ready to the next hot-fix release.

Thank you.

Best regards,

Olga | QA

 
Mavrichi Marian
Reply

Hi,
We just started having this exact bug in DynamicWeb 9.14.13, but with other modals as well, seemingly random modals ( or sometimes all of them ) pop up on "back" or "duplicate tab". I have searched all our templates and javascript and we don't have anything there. 
In which version can we find this hot-fix?

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Mavrichi 

This specific bug is related to Rapido templates - you know if that is what you are using? Then you just need the latest Rapido version. It is not related to DW.

 
Mavrichi Marian
Reply

Hi Nicolai,

Dynamicweb.Rapido.dll 6.33.1

Dynamicweb.Rapido, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Build date Mon, 29 May 2023 11:49
I'm not sure but this might be it, but yes we are using Rapido here.
 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,

We have a pretty customized version of Rapido, it would be hard to overwrite all files.

Can we find out somehow what the fix did and in which templates?
I am not sure how I could find the related changes based on the TFS ticket number mentioned here

Thank you,

Adrian

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

This is the changeset linked to the item:

 

<script id="LastAddedProductTemplate" type="text/x-template">
@{
 
Modal lastAddedProduct = new Modal
{
Id = "LastAddedProduct",
Heading = new Heading
{
Level = 2,
Title = Translate("Product is added to the cart")
},
Width = ModalWidth.Md,
BodyTemplate = RenderModalContent()
};
 
lastAddedProduct.AddActions(
new Button
{
ButtonType = ButtonType.Button,
ButtonLayout = ButtonLayout.Secondary,
Title = Translate("Continue shopping"),
CssClass = "u-pull--left u-no-margin btn--sm",
OnClick = "document.getElementById('LastAddedProductModalTrigger').checked = false"
},
new Link
{
Href = "/Default.aspx?ID=" + cartPageId,
ButtonLayout = ButtonLayout.Secondary,
CssClass = "u-pull--right u-no-margin btn--sm",
Title = Translate("Proceed to checkout"),
OnClick = "document.getElementById('LastAddedProductModalTrigger').checked = false"
}
);
 
@Render(lastAddedProduct)
}
</script>

 

You must be logged in to post in the forum