PluginProbe
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant / 1.6
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant v1.6
2.3.2 2.3.1 2.3.0 2.2.8 2.2.7 trunk 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.11.0 1.11.1 1.11.2 1.6 1.7 1.8 1.8.1 1.8.2 1.8.3 1.9.0 1.9.1 1.9.10 1.9.11 All 60 releases
merchant / inc / modules / checkout / admin / options.php

options.php in Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant 1.6, at inc/modules/checkout/admin/options.php

54 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Checkout Options.
5 *
6 * @package Merchant
7 */
8
9 if ( ! defined( 'ABSPATH' ) ) {
10 exit; // Exit if accessed directly
11 }
12
13 $before_fields = array();
14 if ( defined( 'MERCHANT_PRO_VERSION' ) && merchant_is_checkout_block_layout() ) {
15 $before_fields = array(
16 'type' => 'warning',
17 'content' => sprintf(
18 /* Translators: 1. docs link */
19 __( 'Your checkout page is being rendered through the new WooCommerce checkout block. You must edit the checkout page to use the classic checkout shortcode instead. Check <a href="%1$s" target="_blank">this documentation</a> to learn more.', 'merchant' ),
20 'https://docs.athemes.com/article/how-to-switch-cart-checkout-blocks-to-the-classic-shortcodes/'
21 ),
22 );
23 }
24
25 // Settings
26 Merchant_Admin_Options::create( array(
27 'title' => esc_html__( 'Settings', 'merchant' ),
28 'module' => 'checkout',
29 'fields' => array(
30
31 $before_fields,
32
33 array(
34 'id' => 'layout',
35 'type' => 'radio',
36 'title' => esc_html__( 'Layout', 'merchant' ),
37 'options' => array(
38 'layout-shopify' => esc_html__( 'Shopify multi step', 'merchant' ),
39 'layout-one-step' => esc_html__( 'One step', 'merchant' ),
40 'layout-multi-step' => esc_html__( 'Multi step', 'merchant' )
41 ),
42 'default' => 'layout-shopify',
43 ),
44
45 array(
46 'id' => 'sticky_totals_box',
47 'type' => 'switcher',
48 'title' => esc_html__( 'Sticky Totals Box', 'merchant' ),
49 'condition' => array( 'layout', 'any', 'layout-shopify|layout-one-step' ),
50 ),
51
52 )
53 ) );
54