smartstore / Smartstore

A modular, scalable and ultra-fast open-source all-in-one eCommerce platform built on ASP.NET Core 7
http://www.smartstore.com/
GNU Affero General Public License v3.0
1.2k stars 447 forks source link

Don't render payment buttons in OffCanvasCart if there are mandatory checkout attributes #1023

Closed Michael-Herzog closed 8 months ago

Michael-Herzog commented 8 months ago

Enhance MiniShoppingCartModel with a value which indicates whether Buttons should be rendered and apply here: Smartstore\src\Smartstore.Web\Views\ShoppingCart\Partials\OffCanvasShoppingCart.cshtml Line 179

TBD: What about checkout attributes that have a charge? Should we enforce saving them first before making payments?

mgesing commented 8 months ago

TBD: What about checkout attributes that have a charge? Should we enforce saving them first before making payments?

This is the job of the payment plugin. If it already creates a payment transaction on the cart page, it must first call IShoppingCartService.SaveCartDataAsync to save the data selected on the shopping cart page (including checkout attributes).