html-column-shipping-message.php
1 week ago
html-custom-services.php
1 week ago
html-menu-icon.php
1 week ago
html-shipping-method-scripts.php
1 week ago
html-shipping-method-settings.php
1 week ago
html-shipping-settings-advanced.php
1 week ago
html-shipping-settings-info-description.php
1 week ago
html-shipping-settings-advanced.php
77 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @var $integration_checkbox bool |
| 4 | * @var $show_fs_connect bool |
| 5 | */ |
| 6 | |
| 7 | |
| 8 | $pl = get_locale() === 'pl_PL'; |
| 9 | $youtube_url = 'https://www.youtube.com/embed/qsFvYoiNDgU'; |
| 10 | $general_settings_url = $pl ? 'https://www.wpdesk.pl/docs/flexible-shipping-pro-woocommerce-docs/?utm_source=flexible-shipping-info&utm_medium=link&utm_campaign=flexible-shipping-resources-box&utm_content=general-settings#Ustawienia_glowne' : 'https://docs.flexibleshipping.com/article/25-general-settings/?utm_campaign=flexible-shipping&utm_source=user-site&utm_medium=link&utm_term=general-settings&utm_content=fs-configuration-flexibleshippingtablerate'; |
| 11 | $adding_a_shipping_method_url = $pl ? 'https://www.wpdesk.pl/docs/flexible-shipping-pro-woocommerce-docs/?utm_source=flexible-shipping-info&utm_medium=link&utm_campaign=flexible-shipping-resources-box&utm_content=adding-a-shipping-method#Metody_wysylki' : 'https://docs.flexibleshipping.com/article/29-shipping-methods/?utm_campaign=flexible-shipping&utm_source=user-site&utm_medium=link&utm_term=adding-a-shipping-method&utm_content=fs-configuration-flexibleshippingtablerate'; |
| 12 | $currency_support_url = $pl ? 'https://www.wpdesk.pl/docs/flexible-shipping-pro-woocommerce-docs/?utm_source=flexible-shipping-info&utm_medium=link&utm_campaign=flexible-shipping-resources-box&utm_content=currency-support#Waluty' : 'https://docs.flexibleshipping.com/article/30-currency-support/?utm_campaign=flexible-shipping&utm_source=user-site&utm_medium=link&utm_term=currency-support&utm_content=fs-configuration-flexibleshippingtablerate'; |
| 13 | $weight_based_shipping_url = $pl ? 'https://www.wpdesk.pl/docs/flexible-shipping-pro-woocommerce-docs/?utm_source=flexible-shipping-info&utm_medium=link&utm_campaign=flexible-shipping-resources-box&utm_content=weight-based-shipping#Koszt_na_wage' : 'https://docs.flexibleshipping.com/article/32-weight-based-shipping-woocommerce/?utm_campaign=flexible-shipping&utm_source=user-site&utm_medium=link&utm_term=weight-based-shipping&utm_content=fs-configuration-flexibleshippingtablerate'; |
| 14 | $shipping_insurance_url = $pl ? 'https://www.wpdesk.pl/docs/flexible-shipping-pro-woocommerce-docs/?utm_source=flexible-shipping-info&utm_medium=link&utm_campaign=flexible-shipping-resources-box&utm_content=shipping-insurance#Ubezpieczenie_przesylki' : 'https://docs.flexibleshipping.com/article/34-shipping-insurance/?utm_campaign=flexible-shipping&utm_source=user-site&utm_medium=link&utm_term=shipping-insurance&utm_content=fs-configuration-flexibleshippingtablerate'; |
| 15 | $conditional_cash_on_delivery_url = $pl ? 'https://www.wpdesk.pl/docs/flexible-shipping-pro-woocommerce-docs/?utm_source=flexible-shipping-info&utm_medium=link&utm_campaign=flexible-shipping-resources-box&utm_content=conditional-cash-on-delivery#Przesylka_za_pobraniem' : 'https://docs.flexibleshipping.com/article/35-conditional-cash-on-delivery/?utm_campaign=flexible-shipping&utm_source=user-site&utm_medium=link&utm_term=contitional-cash-on-delivery&utm_content=fs-configuration-flexibleshippingtablerate'; |
| 16 | ?> |
| 17 | </table> |
| 18 | <div class="fs-page-wrap"> |
| 19 | <div class="fs-box"> |
| 20 | <h3 class="wc-settings-sub-title"><?php _e( 'How to use Flexible Shipping?', 'flexible-shipping' ); ?></h3> |
| 21 | |
| 22 | <ol> |
| 23 | <li> |
| 24 | <?php |
| 25 | echo sprintf( |
| 26 | __( 'To add first Flexible Shipping method go to %sShipping zones%s and add Flexible Shipping to a shipping zone.', 'flexible-shipping' ), |
| 27 | '<a href="' . admin_url( 'admin.php?page=wc-settings&tab=shipping§ion' ) . '">', |
| 28 | '</a>' |
| 29 | ); |
| 30 | ?> |
| 31 | </li> |
| 32 | |
| 33 | <li><?php _e( 'You can start the configuration by clicking the Flexible Shipping link in the Shipping methods table.', 'flexible-shipping' ); ?></li> |
| 34 | </ol> |
| 35 | |
| 36 | <h4><?php _e( 'Quick Video Overview', 'flexible-shipping' ); ?></h4> |
| 37 | |
| 38 | <div class="flexible-shipping-video"> |
| 39 | <iframe width="688" height="387" src="<?php echo $youtube_url?>?rel=0&showinfo=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe> |
| 40 | </div> |
| 41 | |
| 42 | <h4><?php _e( 'More resources', 'flexible-shipping' ); ?></h4> |
| 43 | |
| 44 | <ul> |
| 45 | <li><a href="<?php echo $general_settings_url; ?>"><?php _e( 'General Settings', 'flexible-shipping' ); ?></a></li> |
| 46 | <li><a href="<?php echo $adding_a_shipping_method_url; ?>"><?php _e( 'Adding a shipping method', 'flexible-shipping' ); ?></a></li> |
| 47 | <li><a href="<?php echo $currency_support_url; ?>"><?php _e( 'Currency Support', 'flexible-shipping' ); ?></a></li> |
| 48 | <li><a href="<?php echo $weight_based_shipping_url; ?>"><?php _e( 'Weight Based Shipping', 'flexible-shipping' ); ?></a></li> |
| 49 | <li><a href="<?php echo $shipping_insurance_url; ?>"><?php _e( 'Shipping Insurance', 'flexible-shipping' ); ?></a></li> |
| 50 | <li><a href="<?php echo $conditional_cash_on_delivery_url; ?>"><?php _e( 'Conditional Cash on Delivery', 'flexible-shipping' ); ?></a></li> |
| 51 | </ul> |
| 52 | |
| 53 | <?php if ( $show_fs_connect ) : ?> |
| 54 | <h3 class="wc-settings-sub-title fs-connect-box-header"><?php _e( 'Integrations', 'flexible-shipping' ); ?></h3> |
| 55 | <table class="form-table"> |
| 56 | <tbody> |
| 57 | <tr valign="top"> |
| 58 | <th scope="row" class="titledesc"> |
| 59 | <label for="enable-fs-connect-box"><?php _e( 'FS Connect', 'flexible-shipping' ); ?></label> |
| 60 | </th> |
| 61 | <td class="forminp"> |
| 62 | <fieldset> |
| 63 | <legend class="screen-reader-text"><span><?php _e( 'FS Connect', 'flexible-shipping' ); ?></span></legend> |
| 64 | <label for="enable-fs-connect-box"> |
| 65 | <input class="enable-fs-connect-box" <?php checked( $integration_checkbox, 1 ); ?> type="checkbox" name="fsconnect_box" id="enable-fs-connect-box" style="" value="1"> <?php _e( 'Enable integration with Flexible Shipping Connect', 'flexible-shipping' ); ?> |
| 66 | </label> |
| 67 | </fieldset> |
| 68 | </td> |
| 69 | </tr> |
| 70 | </tbody> |
| 71 | </table> |
| 72 | <?php endif; ?> |
| 73 | |
| 74 | </div> |
| 75 | </div> |
| 76 | <table> |
| 77 |