| @@ -109,8 +109,41 @@ | ||
| 109 | 109 | |
| 110 | 110 | ), |
| 111 | 111 | ), |
| 112 | 112 | array( |
| 113 | + 'title' => esc_html__( 'Display position', 'merchant' ), | |
| 114 | + 'module' => Merchant_Size_Chart::MODULE_ID, | |
| 115 | + 'fields' => array( | |
| 116 | + | |
| 117 | + array( | |
| 118 | + 'id' => 'display_hook', | |
| 119 | + 'type' => 'hook_select', | |
| 120 | + 'title' => esc_html__( 'Loading position and priority on single product', 'merchant' ), | |
| 121 | + 'desc' => esc_html__( 'Where the button renders on the single product page. A lower priority number moves it higher. The add to cart positions only exist while a product is purchasable and in stock.', 'merchant' ), | |
| 122 | + 'options' => array( | |
| 123 | + '' => esc_html__( 'Default', 'merchant' ), | |
| 124 | + 'woocommerce_single_product_summary' => esc_html__( 'After Product summary', 'merchant' ), | |
| 125 | + 'woocommerce_before_add_to_cart_form' => esc_html__( 'Before add to cart form', 'merchant' ), | |
| 126 | + 'woocommerce_after_add_to_cart_form' => esc_html__( 'After add to cart form', 'merchant' ), | |
| 127 | + 'woocommerce_before_add_to_cart_button' => esc_html__( 'Before add to cart button', 'merchant' ), | |
| 128 | + 'woocommerce_after_add_to_cart_button' => esc_html__( 'After add to cart button', 'merchant' ), | |
| 129 | + ), | |
| 130 | + 'min' => 1, | |
| 131 | + 'max' => 999, | |
| 132 | + 'step' => 1, | |
| 133 | + 'unit' => '', | |
| 134 | + 'order' => true, | |
| 135 | + 'default' => array( | |
| 136 | + 'hook_name' => '', | |
| 137 | + 'hook_priority' => 10, | |
| 138 | + ), | |
| 139 | + 'ai_meta' => array( | |
| 140 | + 'usage_hint' => 'Controls where the size chart button renders on the single product page. Leave hook_name empty to keep the default placement: inside the variation block for variable products, next to the add to cart button otherwise. Valid hook_name values are an empty string, woocommerce_single_product_summary, woocommerce_before_add_to_cart_form, woocommerce_after_add_to_cart_form, woocommerce_before_add_to_cart_button, woocommerce_after_add_to_cart_button. A lower hook_priority renders the button higher on the page.', | |
| 141 | + ), | |
| 142 | + ), | |
| 143 | + ), | |
| 144 | +), | |
| 145 | + array( | |
| 113 | 146 | 'title' => esc_html__( 'Popup Design', 'merchant' ), |
| 114 | 147 | 'module' => Merchant_Size_Chart::MODULE_ID, |
| 115 | 148 | 'fields' => array( |
| 116 | 149 | |