Try new release.
If you don't want to replace all cshtml files (you changed them before).
How to upgrade plugin?
1. Replace DLL file.
2. Add new function
checkoutAttributeChange in _SimpleCheckoutScript.cshtml.
3. Add new cshtml file _CheckoutAttributes.cshtml.
4. Change SimpleOrderSummary.cshtml or SimpleOrderSummary2.cshtml.
Add this code
if (Model.CheckoutAttributes.Count() > 0)
{
<div class="selected-checkout-attributes">
@Html.Partial((string)Model.CustomProperties["_CheckoutAttributes"], Model.CheckoutAttributes)
</div>
}
old code
if (!String.IsNullOrEmpty(Model.CheckoutAttributeInfo))
{
<div class="selected-checkout-attributes">
@Html.Raw(Model.CheckoutAttributeInfo)
</div>
}
About problem.
We wasted a lot of time for solving problem with another our plugin
Payment Method Rules. You can create a payment rule using checkout attributes.
Example.
Add new payment rule
- display 'Direct PayPal payment method' if customer selected checkout attribute 'Use gift wrapping'.But you can have new condition on cart page
- hide checkout attribute 'Use gift wrapping' if customer selected 'Direct PayPal payment method'.I realize that the store's owner had to think about such problem himself, but ....
We haven't solve this problem yet. In this release we use the next logic.
Customer changed checkout attribute but plugin didn't refresh payment method/ shipment method list.