shipping.controller.js
7 years ago
shipping.directive.js
7 years ago
shipping.scss
7 years ago
shipping.tpl.html
7 years ago
shipping.tpl.html
60 lines
| 1 | <div class="wpallexport-collapsed wpallexport-section" ng-class="{closed: !shipping.open }"> |
| 2 | <div class="wpallexport-content-section"> |
| 3 | <div class="wpallexport-collapsed-header disable-jquery" |
| 4 | ng-click="shipping.open = !shipping.open "> |
| 5 | <h3>Shipping</h3> |
| 6 | </div> |
| 7 | <div class="wpallexport-collapsed-content" id="shipping" ng-slide-down="shipping.open" duration="0.5"> |
| 8 | <div class="wpallexport-collapsed-content-inner"> |
| 9 | <h4>Shipping Price</h4> |
| 10 | <p> |
| 11 | This attribute allows Google to provide a shipping estimate for the product. |
| 12 | This overrides the default shipping price configured in the Google Merchant Center. |
| 13 | </p> |
| 14 | <div class="input"> |
| 15 | <input type="text" class="wpae-default-input" ng-model="shipping.shippingPrice" droppable /> |
| 16 | <a href="" ng-click="shipping.adjustShippingPrice = !shipping.adjustShippingPrice" class="adjust-price-link"> |
| 17 | <span ng-if="!shipping.adjustShippingPrice" style="width: 6px; display: inline-block;">+</span> |
| 18 | <span ng-if="shipping.adjustShippingPrice" style="width: 6px; display: inline-block;">-</span> |
| 19 | Adjust Shipping Price</a> |
| 20 | <div ng-slide-down="shipping.adjustShippingPrice" class="adjust-price" duration="0.2" style="margin-top: 5px; "> |
| 21 | <input type="text" style="margin-top: 0; margin-right: 0;" class="wpae-default-input" ng-model="shipping.adjustShippingPriceValue" droppable /><select style="margin-top:5px;" ng-model="shipping.adjustPriceType"> |
| 22 | <option value="%">%</option> |
| 23 | <option value="USD">{{currency}}</option> |
| 24 | </select> |
| 25 | |
| 26 | <div ng-show="shipping.adjustPriceType == '%'" class="tooltip-container"> |
| 27 | <a href="#" ng-cloak="" class="wpallexport-help" style="top:0;" |
| 28 | tipsy="Leave blank or enter in 100% to keep the price as is. Enter in 110% to markup by 10%. Enter in 50% to cut prices in half.">?</a> |
| 29 | </div> |
| 30 | <div ng-show="shipping.adjustPriceType == 'USD'" class="tooltip-container"> |
| 31 | <a href="#" style="top:0;" ng-cloak="" class="wpallexport-help" tipsy="Enter a negative number to reduce prices.">?</a> |
| 32 | </div> |
| 33 | </div> |
| 34 | </div> |
| 35 | |
| 36 | <h4>Length, Width, Height</h4> |
| 37 | <div class="input"> |
| 38 | <label> |
| 39 | <input type="radio" ng-model="shipping.dimensions" value="useWooCommerceProductValues"/>Use WooCommerce's product values and convert them to |
| 40 | <select ng-model="shipping.convertTo" style="width: 175px; height: 30px; padding: 0 0 0 8px; margin-left: 5px; margin-top: 5px; "> |
| 41 | <option value="cm">Centimeters (cm)</option> |
| 42 | <option value="inches">Inches (in)</option> |
| 43 | </select> |
| 44 | </label> |
| 45 | </div> |
| 46 | <div class="input"> |
| 47 | <label><input type="radio" ng-model="shipping.dimensions" value="customValue"/>Custom data</label> |
| 48 | <div ng-slide-down="shipping.dimensions == 'customValue'" duration="0.2" class="input inner"> |
| 49 | <input type="text" class="wpae-default-input" ng-model="shipping.dimensionsCV" droppable /> |
| 50 | </div> |
| 51 | </div> |
| 52 | |
| 53 | <h4>Shipping Label</h4> |
| 54 | <div class="input"> |
| 55 | <input type="text" class="wpae-default-input" ng-model="shipping.shippingLabel" droppable /> |
| 56 | </div> |
| 57 | </div> |
| 58 | </div> |
| 59 | </div> |
| 60 | </div> |