<img src="abc.png" />
    
call to replace anchor tags contains '/admin' in href

Time widget

To add delivery time option on checkout, you can enable calendar option on the checkout.

    1. In the order_options form, you can create a new field as Delivery Time.
    2. Select type as Widget.


    3. Click on the settings icon to edit the field, in the Widget column enter the name of the widget (say "time").
    4. Once the field is configured go to Store widgets entity.
    5. Add new store widget, name it as "time" (mentioned above), in the template add the below-mentioned code:
      <select class="form-control" ng-model="optionData[option.name].value">
          <option value="">Please Select</option>
          <option ng-if="opt.value" ng-disabled="n >= opt.value.split('-')[0] && today_date==selected_date"
                  ng-repeat="opt in option.settings.options" value="{{opt.value}}">{{opt.name}}
          </option>
          <option ng-if="!opt.value" ng-repeat="opt in option.options" value="{{opt.value}}">{{opt.name}}
          </option>
      </select>
      


      In the controller, add the below-mentioned code:

      function($scope,$rootScope){
      
          $scope.today_date = $rootScope.today;
      
          var formatDate = function (date) {
              var d = new Date(date),
                  month = '' + (d.getMonth() + 1),
                  day = '' + d.getDate(),
                  year = d.getFullYear();
              if (month.length < 2) month = '0' + month;
              if (day.length < 2) day = '0' + day;
              return [year, month, day].join('-');
          }
      
          $rootScope.getDateValue = function(opt){
              console.log('====opt',opt);
              $scope.selected_date = formatDate(opt);
              console.log('===orderOptions opt=====',$scope.selected_date)
          }
      
          var d=new Date();
          $scope.n = d.getHours();
          console.log('===time=====',$scope.n)
      
      }
      
      
    6. Enable the "Active" checkbox.
    7. Select the theme to which this widget is to be applied.
    8. Save the store widget.
    9. Go back to the order options section, edit the Delivery time field.



Add options with the name as the delivery time slot (say 11 AM to 1 PM), in the value enter the lower time and the upper time limit separated by "-" (11-13 for the above example).