Developer forum

Forum » Rapido » Custom components breaking cart page

Custom components breaking cart page

Lara Arsénio
Reply
Hello.

I got a broken cart page after creating a custom component.

It turned out to be the include Custom__Components.cshtml, that is repeated, both inside "GeneralComponents.cshml" and then included in the cart step template files


@* Include the required Grid builder (Contains the methods @RenderBlockList and @RenderBlock) *@

@Include("../../../Components/GridBuilder.cshtml")

@Include("../../../Components/GeneralComponents.cshtml")

@* Remove redundant include *@
@Include("../../../Components/Custom/Custom__Components.cshtml")

 

I Found this issue only in this files subset

...\Designs\Rapido\eCom7\CartV2\Step\Cart.cshtml
..\Designs\Rapido\eCom7\CartV2\Step\StepOneCart.cshtml
..\Designs\Rapido\eCom7\CartV2\Step\StepThreeShippingPayment.cshtml
..\Designs\Rapido\eCom7\CartV2\Step\StepTwoDelivery.cshtml


Replies

 
Karsten Thuen Dynamicweb Employee
Karsten Thuen
Reply

Hi Lara

Thank you for reporting this. You are perfectly right, this is wrong. The reference to the "Custom__Components.cshtml" should not be in the cart template, as it is already referenced in "GeneralComponents.cshtml"

We have already made the fix, and it will be in the next Rapido release. Until then, you can safely remove the wrong reference.

 

Best regards
Karsten Thuen

 

You must be logged in to post in the forum