EDITABLE ORDER TEMPLATES

Project: Colruyt
Ticket 70924: 4.3. EDITABLE ORDER TEMPLATES

HM-111036 - 3.9. SEARCH AND ADD PRODUCTS TO EXISTING TEMPLATES
Markis food Project

Project: Havric meats : 
HM-111036 - 3.9. SEARCH AND ADD PRODUCTS TO EXISTING TEMPLATES

Divercy
Ticket 79482: [Wave 2] 3.7.1. EDITABLE QUICK ORDERING TEMPLATES


set shop acc name to Create by field.
ExtendedRegisteredUserBasketStorage
public override void SaveBasket(ShopContext shopContext, IBasket basket)
        {
            basket.UserKey = GetBasketUserKey(shopContext);
            basket.ShopAccountType = shopContext.ShopAccount.Type;

            // Ticket 70924: 4.3. EDITABLE ORDER TEMPLATES
            ((Basket)basket).CreatedBy = shopContext.ShopAccount.Name;
 
            if (shopContext.ShopAccount.Type == ShopAccountType.Contact)
            {



used js files :- 
1. control.templateitem.js

2. control.ordertemplate.js

3. page.ordertemplatedetails.js
// Remove item/s form Template details page.
// When Click delete Order TemplateItem Popup's Ok button Call controller method.
// Show Order Template Popup
// New order template popup Save button click
// Clear all quantity box values.
// When user tries to enter '0' value to set to Empty.
// When user click  Add to cart button, MethodName: UpdateShoppingCart

4. page.ordertemplates.js
// Call Order Template Controller "TemplateDetail" method

5 control.quickorder.js
// When click add to template button add item line in to order template section
//Read exsisting qty
// update with previous qtys after click add to template button. 


Sana.Spinner.init(); //Use Quantity box buttons(+,-) initializeation

When need to reload the page 
// window.location.reload(true);