- Moderator
- 1044
Hi,
Thank you for your feedback. There was a change in the Nop Ajax Cart in the way how is integrated manually and this has not been added in our documentation which we are going to fix very soon.
Can you try integrating the Nop Ajax Cart using the line below:
For ProductBox_.cshtml :
@Html.Action("GetAddProductToCartAjaxButton", "NopAjaxCart", new { ProductId = Model.Id, ButtonValue = Model.ProductPrice.AvailableForPreOrder ? T("ShoppingCart.PreOrder") : T("ShoppingCart.AddToCart") })
For _ProductVariantAddToCart.cshtml:
@Html.Action("GetAddProductVariantToCartAjaxButton", "NopAjaxCart", new { ProductVariantId = Model.ProductVariantId, ButtonValue = Model.AvailableForPreOrder ? T("ShoppingCart.PreOrder") : T("ShoppingCart.AddToCart") })
Please let us know if this does not work!
Thanks!
Thank you for your feedback. There was a change in the Nop Ajax Cart in the way how is integrated manually and this has not been added in our documentation which we are going to fix very soon.
Can you try integrating the Nop Ajax Cart using the line below:
For ProductBox_.cshtml :
@Html.Action("GetAddProductToCartAjaxButton", "NopAjaxCart", new { ProductId = Model.Id, ButtonValue = Model.ProductPrice.AvailableForPreOrder ? T("ShoppingCart.PreOrder") : T("ShoppingCart.AddToCart") })
For _ProductVariantAddToCart.cshtml:
@Html.Action("GetAddProductVariantToCartAjaxButton", "NopAjaxCart", new { ProductVariantId = Model.ProductVariantId, ButtonValue = Model.AvailableForPreOrder ? T("ShoppingCart.PreOrder") : T("ShoppingCart.AddToCart") })
Please let us know if this does not work!
Thanks!