Changeset 3093843
- Timestamp:
- 05/28/2024 11:33:23 AM (22 months ago)
- Location:
- cdekdelivery/trunk/src
- Files:
-
- 2 edited
-
Actions/CallCourier.php (modified) (1 diff)
-
CdekShippingMethod.php (modified) (15 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cdekdelivery/trunk/src/Actions/CallCourier.php
r3093807 r3093843 104 104 Note::send($orderId, $message); 105 105 106 $validate = new Validate(true, sprintf(esc_html__(/* translators: %s: uuid of application*/'Request number: 107 %s', 'cdekdelivery'), $intakeNumber)); 106 $validate = new Validate(true, sprintf(esc_html__(/* translators: %s: uuid of application*/'Request number: %s', 'cdekdelivery'), $intakeNumber)); 108 107 109 108 return $validate->response(); -
cdekdelivery/trunk/src/CdekShippingMethod.php
r3093807 r3093843 133 133 'type' => 'checkbox', 134 134 'desc_tip' => true, 135 'description' => esc_html__( "When the international orders mode is enabled, additional fields will appear on the checkout page:\n\r passport series, passport number, date of issue, department, TIN, date of birth.",135 'description' => esc_html__('When the international orders mode is enabled, additional fields will appear on the checkout page: passport series, passport number, date of issue, department, TIN, date of birth.', 136 136 'cdekdelivery'), 137 137 'default' => 'no', … … 141 141 'type' => 'text', 142 142 'desc_tip' => true, 143 'description' => esc_html__( "Address of the actual seller. Used when printing invoices to display the address of the present\n\r seller of the product or trade name. For international orders",143 'description' => esc_html__('Address of the actual seller. Used when printing invoices to display the address of the present seller of the product or trade name. For international orders', 144 144 'cdekdelivery'), 145 145 ], … … 190 190 ], 191 191 'delivery_block_name' => [ 192 'title' => '<h3 style="text-align: center;">'. __('Delivery', 'cdekdelivery').'</h3>',192 'title' => '<h3 style="text-align: center;">'.esc_html__('Delivery', 'cdekdelivery').'</h3>', 193 193 'type' => 'title', 194 194 'class' => 'cdek_delivery_block_name', 195 195 ], 196 196 'automate_orders' => [ 197 'title' => __('Automatically create orders in CDEK', 'cdekdelivery'),198 'type' => 'checkbox', 199 'description' => __('If you have information about the dimensions and correctly filled in shipping addresses, the CDEK invoice will be created automatically',197 'title' => esc_html__('Automatically create orders in CDEK', 'cdekdelivery'), 198 'type' => 'checkbox', 199 'description' => esc_html__('If you have information about the dimensions and correctly filled in shipping addresses, the CDEK invoice will be created automatically', 200 200 'cdekdelivery'), 201 201 ], 202 202 'tariff_list' => [ 203 'title' => __('Tariff', 'cdekdelivery'),203 'title' => esc_html__('Tariff', 'cdekdelivery'), 204 204 'type' => 'multiselect', 205 205 'desc_tip' => true, 206 206 'options' => Tariff::getTariffList(), 207 'description' => __("To select multiple tariffs, hold down the \"CTRL\" key and select tariffs with the left mouse button.",207 'description' => esc_html__('To select multiple tariffs, hold down the "CTRL" key and select tariffs with the left mouse button.', 208 208 'cdekdelivery'), 209 209 'css' => 'height: 400px;', 210 210 ], 211 211 'tariff_name' => [ 212 'title' => __('Change tariff name', 'cdekdelivery'),212 'title' => esc_html__('Change tariff name', 'cdekdelivery'), 213 213 'type' => 'text', 214 'description' => sprintf( __("In the list of tariffs in the field \"Tariffs\" the tariff code is indicated in brackets.\n\r To change the name of the tariff, an entry in the code-name format is added to the field; for multiple changes,\n\r tariffs are separated by a semicolon, for example, an entry that will change the name of tariff 136 and 137 looks like this:%s If the value is not specified, the tariff names will be standard.",214 'description' => sprintf(esc_html__('In the list of tariffs in the field "Tariffs" the tariff code is indicated in brackets.\n\r To change the name of the tariff, an entry in the code-name format is added to the field; for multiple changes,\n\r tariffs are separated by a semicolon, for example, an entry that will change the name of tariff 136 and 137 looks like this:%s If the value is not specified, the tariff names will be standard.', 215 215 'cdekdelivery'), '<b>136-Доставка до пвз;137-Доставка курьером</b> <br>'), 216 216 ], 217 217 'has_packages_mode' => [ 218 'title' => __('Multi-seater', 'cdekdelivery'),219 'type' => 'checkbox', 220 'desc_tip' => true, 221 'description' => __("When the 'Multi-seat' mode is enabled, the detailed order page will display\n\r the ability to create several packages for one order and distribute goods among the created packages",218 'title' => esc_html__('Multi-seater', 'cdekdelivery'), 219 'type' => 'checkbox', 220 'desc_tip' => true, 221 'description' => esc_html__('When the "Multi-seat" mode is enabled, the detailed order page will display the ability to create several packages for one order and distribute goods among the created packages', 222 222 'cdekdelivery'), 223 223 'default' => 'no', 224 224 ], 225 225 'extra_day' => [ 226 'title' => __('Add days for delivery', 'cdekdelivery'),227 'type' => 'number', 228 'desc_tip' => true, 229 'description' => __('Number of days will be added to the estimated delivery time',226 'title' => esc_html__('Add days for delivery', 'cdekdelivery'), 227 'type' => 'number', 228 'desc_tip' => true, 229 'description' => esc_html__('Number of days will be added to the estimated delivery time', 230 230 'cdekdelivery'), 231 231 'default' => 0, … … 236 236 ], 237 237 'map_auto_close' => [ 238 'title' => __('Close the map after selecting pick-up', 'cdekdelivery'),239 'type' => 'checkbox', 240 'desc_tip' => true, 241 'description' => __('If this setting is enabled, then after selecting a pick-up point on the checkout page, the card will automatically close.',238 'title' => esc_html__('Close the map after selecting pick-up', 'cdekdelivery'), 239 'type' => 'checkbox', 240 'desc_tip' => true, 241 'description' => esc_html__('If this setting is enabled, then after selecting a pick-up point on the checkout page, the card will automatically close.', 242 242 'cdekdelivery'), 243 243 'default' => 'no', … … 245 245 'map' => [ 246 246 'type' => 'hidden', 247 'title' => __('Select addresses to send on the map', 'cdekdelivery'),247 'title' => esc_html__('Select addresses to send on the map', 'cdekdelivery'), 248 248 ], 249 249 'pvz_code' => [ … … 257 257 ], 258 258 'package_setting_block_name' => [ 259 'title' => '<h3 style="text-align: center;">'. __('Dimensions', 'cdekdelivery').'</h3>',259 'title' => '<h3 style="text-align: center;">'.esc_html__('Dimensions', 'cdekdelivery').'</h3>', 260 260 'type' => 'title', 261 261 'class' => 'cdek_package_setting_block_name', 262 262 ], 263 263 'product_weight_default' => [ 264 'title' => __('Default weight of one item in', 'cdekdelivery').264 'title' => esc_html__('Default weight of one item in', 'cdekdelivery'). 265 265 ' ('. 266 266 get_option('woocommerce_weight_unit'). 267 267 ')', 268 268 'desc_tip' => true, 269 'description' => sprintf( __('All goods must have their weight indicated, if there are goods without %s a specified weight, then for such goods the value from this field will be substituted. %s This will affect the accuracy of the delivery calculation. The default value is 1 weight unit specified in the settings.',269 'description' => sprintf(esc_html__('All goods must have their weight indicated, if there are goods without %s a specified weight, then for such goods the value from this field will be substituted. %s This will affect the accuracy of the delivery calculation. The default value is 1 weight unit specified in the settings.', 270 270 'cdekdelivery'), "<br>", "<br>"), 271 271 'type' => 'number', … … 277 277 ], 278 278 'product_length_default' => [ 279 'title' => __('Item length', 'cdekdelivery'),280 'description' => __('Default product length in cm', 'cdekdelivery'),279 'title' => esc_html__('Item length', 'cdekdelivery'), 280 'description' => esc_html__('Default product length in cm', 'cdekdelivery'), 281 281 'type' => 'number', 282 282 'desc_tip' => true, … … 288 288 ], 289 289 'product_width_default' => [ 290 'title' => __('Item width', 'cdekdelivery'),291 'description' => __('Default product width in cm', 'cdekdelivery'),290 'title' => esc_html__('Item width', 'cdekdelivery'), 291 'description' => esc_html__('Default product width in cm', 'cdekdelivery'), 292 292 'type' => 'number', 293 293 'desc_tip' => true, … … 299 299 ], 300 300 'product_height_default' => [ 301 'title' => __('Item height', 'cdekdelivery'),302 'description' => __('Default product height in cm', 'cdekdelivery'),301 'title' => esc_html__('Item height', 'cdekdelivery'), 302 'description' => esc_html__('Default product height in cm', 'cdekdelivery'), 303 303 'type' => 'number', 304 304 'desc_tip' => true, … … 310 310 ], 311 311 'product_package_default_toggle' => [ 312 'title' => __('Product dimensions on/off', 'cdekdelivery'),313 'description' => __('Force the use of product dimensions (length, width and height) by default for all products',312 'title' => esc_html__('Product dimensions on/off', 'cdekdelivery'), 313 'description' => esc_html__('Force the use of product dimensions (length, width and height) by default for all products', 314 314 'cdekdelivery'), 315 315 'type' => 'checkbox', … … 318 318 ], 319 319 'services_block_name' => [ 320 'title' => '<h3 style="text-align: center;">'. __('Services', 'cdekdelivery').'</h3>',320 'title' => '<h3 style="text-align: center;">'.esc_html__('Services', 'cdekdelivery').'</h3>', 321 321 'type' => 'title', 322 322 'class' => 'cdek_delivery_block_name', 323 323 ], 324 324 'services_ban_attachment_inspection' => [ 325 'title' => __('Prohibition of inspection of attachment', 'cdekdelivery'),326 'description' => __("This service is not available for tariffs to the parcel locker and is only available to clients with an IM type agreement.\n\r Also, the prohibition on inspecting the attachment does not work when the services of fitting at home and partial delivery are included.",325 'title' => esc_html__('Prohibition of inspection of attachment', 'cdekdelivery'), 326 'description' => esc_html__('This service is not available for tariffs to the parcel locker and is only available to clients with an IM type agreement.\n\r Also, the prohibition on inspecting the attachment does not work when the services of fitting at home and partial delivery are included.', 327 327 'cdekdelivery'), 328 328 'type' => 'checkbox', … … 330 330 ], 331 331 'services_trying_on' => [ 332 'title' => __('Trying on', 'cdekdelivery'),332 'title' => esc_html__('Trying on', 'cdekdelivery'), 333 333 'description' => '', 334 334 'type' => 'checkbox', … … 336 336 ], 337 337 'services_part_deliv' => [ 338 'title' => __('Partial delivery', 'cdekdelivery'),338 'title' => esc_html__('Partial delivery', 'cdekdelivery'), 339 339 'description' => '', 340 340 'type' => 'checkbox', … … 342 342 ], 343 343 'delivery_price_block_name' => [ 344 'title' => '<h3 style="text-align: center;">'. __('Delivery cost', 'cdekdelivery').'</h3>',344 'title' => '<h3 style="text-align: center;">'.esc_html__('Delivery cost', 'cdekdelivery').'</h3>', 345 345 'type' => 'title', 346 346 'class' => 'cdek_delivery_price_block_name', 347 347 ], 348 348 'insurance' => [ 349 'title' => __('Insurance', 'cdekdelivery'),350 'label' => __('Add insurance quote to shipping cost', 'cdekdelivery'),351 'type' => 'checkbox', 352 'desc_tip' => true, 353 'description' => __('Calculated based on the amount of goods in the order', 'cdekdelivery'),349 'title' => esc_html__('Insurance', 'cdekdelivery'), 350 'label' => esc_html__('Add insurance quote to shipping cost', 'cdekdelivery'), 351 'type' => 'checkbox', 352 'desc_tip' => true, 353 'description' => esc_html__('Calculated based on the amount of goods in the order', 'cdekdelivery'), 354 354 ], 355 355 'delivery_price_rules' => [ 356 'title' => __('Rules for displaying the delivery amount', 'cdekdelivery'),356 'title' => esc_html__('Rules for displaying the delivery amount', 'cdekdelivery'), 357 357 'label' => '', 358 358 'type' => 'hidden', 359 359 ], 360 360 'stepcodprice_title' => [ 361 'title' => __('Cash on delivery settings', 'cdekdelivery'),361 'title' => esc_html__('Cash on delivery settings', 'cdekdelivery'), 362 362 'type' => 'title', 363 'description' => __("Cash on delivery settings are applied only when sending an order from the admin\n\r panels and for the user on the checkout page are not displayed",363 'description' => esc_html__('Cash on delivery settings are applied only when sending an order from the admin panels and for the user on the checkout page are not displayed', 364 364 'cdekdelivery'), 365 365 ], 366 366 'percentcod' => [ 367 'title' => __('Extra charge on order as a percentage', 'cdekdelivery'),368 'type' => 'number', 369 'description' => sprintf( __("Calculated from the cost of the order.\n\r Changes the total amount on the receipt.%s The surcharge will only appear on the receipt.%s Therefore, it is recommended to inform the user on the checkout page\n\r about extra charges when sending by cash on delivery.",367 'title' => esc_html__('Extra charge on order as a percentage', 'cdekdelivery'), 368 'type' => 'number', 369 'description' => sprintf(esc_html__('Calculated from the cost of the order. Changes the total amount on the receipt.%s The surcharge will only appear on the receipt.%s Therefore, it is recommended to inform the user on the checkout page about extra charges when sending by cash on delivery.', 370 370 'cdekdelivery'), "<br> <b> ", "</b> "), 371 371 'custom_attributes' => [ … … 380 380 ], 381 381 'barcode_format_title' => [ 382 'title' => __('Print settings', 'cdekdelivery'),382 'title' => esc_html__('Print settings', 'cdekdelivery'), 383 383 'type' => 'title', 384 384 ], 385 385 'barcode_format' => [ 386 'title' => __('Barcode format', 'cdekdelivery'),386 'title' => esc_html__('Barcode format', 'cdekdelivery'), 387 387 'type' => 'select', 388 388 'options' => BarcodeFormat::getAll(),
Note: See TracChangeset
for help on using the changeset viewer.