PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 2.5.0
ShopBuilder – WooCommerce Builder For Elementor v2.5.0
3.4.2 3.4.1 3.4.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 All 63 releases
← All changes | app/Models/ModuleList.php +1450 -3 2.4.22.5.0 View file →
@@ -11,8 +11,9 @@
11 11 use RadiusTheme\SB\Models\Base\ListModel;
12 12 use RadiusTheme\SB\Modules\Badges\Badges;
13 13 use RadiusTheme\SB\Modules\CheckoutEditor\CheckoutEditorInit;
14 14 use RadiusTheme\SB\Modules\CheckoutEditor\CheckoutFns;
15 +use RadiusTheme\SB\Modules\ShopifyCheckout\ShopifyCheckout;
15 16 use RadiusTheme\SB\Traits\SingletonTrait;
16 17 use RadiusTheme\SB\Modules\Compare\Compare;
17 18 use RadiusTheme\SB\Modules\WishList\Wishlist;
18 19 use RadiusTheme\SB\Modules\Compare\CompareFns;
@@ -739,19 +740,19 @@
739 740 'label' => ' ',
740 741 'html' => sprintf(
741 742 /* translators: 1: The shortcode.*/
742 743 esc_html__( 'Choose where to show button on the product page. Copy this shortcode %1$s and paste it where you want to show the button.', 'shopbuilder' ),
743 - '<code>[rtsb_wishlist_button]</code> '
744 + '<code>[rtsb_compare_button]</code> '
744 745 ),
745 746 'dependency' => [
746 747 'rules' => [
747 748 [
748 - 'item' => 'modules.wishlist.show_btn_product_page',
749 + 'item' => 'modules.compare.show_btn_product_page',
749 750 'value' => 'on',
750 751 'operator' => '==',
751 752 ],
752 753 [
753 - 'item' => 'modules.wishlist.product_btn_position',
754 + 'item' => 'modules.compare.product_btn_position',
754 755 'value' => 'shortcode',
755 756 'operator' => '==',
756 757 ],
757 758 ],
@@ -1302,13 +1303,1459 @@
1302 1303 ],
1303 1304 'fields' => Fns::pro_version_notice( '1.6.0' ),
1304 1305 ]
1305 1306 ),
1307 + 'shopify_checkout' => apply_filters(
1308 + 'rtsb/module/shopify_checkout/options',
1309 + [
1310 + 'id' => 'shopify_checkout',
1311 + 'active' => '',
1312 + 'title' => esc_html__( 'Shopify Checkout', 'shopbuilder' ),
1313 + 'base_class' => ShopifyCheckout::class,
1314 + 'active_field' => [
1315 + 'label' => esc_html__( 'Enable Shopify Checkout?', 'shopbuilder' ),
1316 + 'help' => esc_html__( 'Switch on to enable Shopify Checkout module.', 'shopbuilder' ),
1317 + ],
1318 + 'fields' => $this->shopify_checkout_options(),
1319 + 'tabs' => [
1320 + 'general' => [
1321 + 'title' => esc_html__( 'General', 'shopbuilder' ),
1322 + ],
1323 + 'multi-step' => [
1324 + 'title' => esc_html__( 'Multi-Step', 'shopbuilder' ),
1325 + ],
1326 + 'styles' => [
1327 + 'title' => esc_html__( 'General Styles', 'shopbuilder' ),
1328 + ],
1329 + 'btn-styles' => [
1330 + 'title' => esc_html__( 'Button Styles', 'shopbuilder' ),
1331 + ],
1332 + ],
1333 + ]
1334 + ),
1306 1335 ];
1307 1336 return apply_filters( 'rtsb/core/modules/raw_list', $list );
1308 1337 }
1309 1338
1339 + /**
1340 + * Get All Menu
1341 + */
1342 + public function get_all_menu() {
1343 + $manus = [
1344 + 'none' => esc_html__( 'None', 'shopbuilder' ),
1345 + ];
1346 + $nav_menus = wp_get_nav_menus();
1347 + if ( empty( $nav_menus ) ) {
1348 + return $manus;
1349 + }
1350 + foreach ( $nav_menus as $menu ) {
1351 + $manus[ $menu->slug ] = $menu->name;
1352 + }
1353 + return $manus;
1354 + }
1355 + /**
1356 + * Sticky add-to-cart module options.
1357 + *
1358 + * @return array
1359 + */
1360 + public function shopify_checkout_options() {
1361 + $notice = [];
1362 + if ( defined( 'RTSBPRO_VERSION' ) && version_compare( RTSBPRO_VERSION, '1.8.0', '<' ) ) {
1363 + $notice = Fns::pro_version_notice( '1.8.0', 'general', 'ShopBuilder Pro', false );
1364 + }
1365 + $fields = $notice + [
1366 + 'general_settings' => [
1367 + 'id' => 'general_settings',
1368 + 'type' => 'title',
1369 + 'label' => esc_html__( 'Settings', 'shopbuilder' ),
1370 + 'tab' => 'general',
1371 + ],
1372 + 'shopify_page_logo' => [
1373 + 'id' => 'shopify_page_logo',
1374 + 'type' => 'fileupload',
1375 + 'label' => esc_html__( 'Upload Checkout Page Logo', 'shopbuilder' ),
1376 + 'help' => esc_html__( 'Please upload your custom logo to display on the checkout page.', 'shopbuilder' ),
1377 + 'tab' => 'general',
1378 + ],
1379 + 'shopify_logo_height' => [
1380 + 'id' => 'shopify_logo_height',
1381 + 'label' => esc_html__( 'Logo Height (px)', 'shopbuilder' ),
1382 + 'help' => esc_html__( 'Specify the height of the checkout page logo in px.', 'shopbuilder' ),
1383 + 'type' => 'slider',
1384 + 'min' => 10,
1385 + 'max' => 200,
1386 + 'unit' => 'px',
1387 + 'value' => 40,
1388 + 'tab' => 'general',
1389 + ],
1390 + 'cart_icon_source' => [
1391 + 'id' => 'cart_icon_source',
1392 + 'label' => esc_html__( 'Cart Icon', 'shopbuilder' ),
1393 + 'help' => sprintf(
1394 + // translators: %s for pro message.
1395 + __( 'Choose a cart icon to display in your checkout\'s header. <br />%s', 'shopbuilder' ),
1396 + ! rtsb()->has_pro()
1397 + ? sprintf(
1398 + '<a target="_blank" href="%s">%s </a> %s ',
1399 + esc_url( rtsb()->pro_version_link() ),
1400 + esc_html__( 'Upgrade to PRO', 'shopbuilder' ),
1401 + esc_html__( 'to unlock custom image icon.', 'shopbuilder' )
1402 + )
1403 + : ''
1404 + ),
1405 + 'type' => 'select',
1406 + 'value' => 'none',
1407 + 'isPro' => ! rtsb()->has_pro(),
1408 + 'options' => [
1409 + 'none' => esc_html__( 'None', 'shopbuilder' ),
1410 + 'select_icon' => esc_html__( 'Select Icon', 'shopbuilder' ),
1411 + 'upload_icon' => esc_html__( 'Upload Icon', 'shopbuilder' ),
1412 + ],
1413 + 'tab' => 'general',
1414 + ],
1415 + 'cart_icon' => [
1416 + 'id' => 'cart_icon',
1417 + 'label' => esc_html__( 'Select Cart Icon', 'shopbuilder' ),
1418 + 'help' => esc_html__( 'Please choose the icon.', 'shopbuilder' ),
1419 + 'type' => 'icon_select',
1420 + 'searchable' => true,
1421 + 'options' => Fns::get_icons(),
1422 + 'value' => 'cart-2',
1423 + 'tab' => 'general',
1424 + 'dependency' => [
1425 + 'rules' => [
1426 + [
1427 + 'item' => 'modules.shopify_checkout.cart_icon_source',
1428 + 'value' => 'select_icon',
1429 + 'operator' => '==',
1430 + ],
1431 + ],
1432 + ],
1433 + ],
1310 1434
1435 + 'cart_image_icon' => [
1436 + 'id' => 'cart_image_icon',
1437 + 'type' => 'fileupload',
1438 + 'label' => esc_html__( 'Upload Custom Icon', 'shopbuilder' ),
1439 + 'help' => esc_html__( 'Please upload your custom image icon.', 'shopbuilder' ),
1440 + 'tab' => 'general',
1441 + 'dependency' => [
1442 + 'rules' => [
1443 + [
1444 + 'item' => 'modules.shopify_checkout.cart_icon_source',
1445 + 'value' => 'upload_icon',
1446 + 'operator' => '==',
1447 + ],
1448 + ],
1449 + ],
1450 + ],
1451 +
1452 + 'email_field_title' => [
1453 + 'id' => 'email_field_title',
1454 + 'type' => 'text',
1455 + 'label' => esc_html__( 'Email Field Section Title', 'shopbuilder' ),
1456 + 'help' => esc_html__( 'Enter the custom title to be displayed above the email field section.', 'shopbuilder' ),
1457 + 'value' => esc_html__( 'Contact', 'shopbuilder' ),
1458 + 'tab' => 'general',
1459 + ],
1460 +
1461 + 'billing_address_field_title' => [
1462 + 'id' => 'billing_address_field_title',
1463 + 'type' => 'text',
1464 + 'label' => esc_html__( 'Billing Fields Section Title', 'shopbuilder' ),
1465 + 'help' => esc_html__( 'Enter the custom title to be displayed above the billing fields section', 'shopbuilder' ),
1466 + 'value' => esc_html__( 'Billing address', 'shopbuilder' ),
1467 + 'tab' => 'general',
1468 + ],
1469 +
1470 + 'enable_multi_step' => [
1471 + 'id' => 'enable_multi_step',
1472 + 'type' => 'switch',
1473 + 'isPro' => ! rtsb()->has_pro(),
1474 + 'label' => esc_html__( 'Multi-Step Checkout', 'shopbuilder' ),
1475 + 'help' => esc_html__( 'Enable multi-step checkout to simplify the purchasing process.', 'shopbuilder' ),
1476 + 'tab' => 'multi-step',
1477 + ],
1478 + 'step_menu_settings' => [
1479 + 'id' => 'step_menu_settings',
1480 + 'type' => 'title',
1481 + 'label' => esc_html__( 'Step Settings ', 'shopbuilder' ),
1482 + 'tab' => 'multi-step',
1483 + 'dependency' => [
1484 + 'rules' => [
1485 + [
1486 + 'item' => 'modules.shopify_checkout.enable_multi_step',
1487 + 'value' => 'on',
1488 + 'operator' => '==',
1489 + ],
1490 + ],
1491 + ],
1492 + ],
1493 +
1494 + 'show_step_menu' => [
1495 + 'id' => 'show_step_menu',
1496 + 'type' => 'switch',
1497 + 'isPro' => ! rtsb()->has_pro(),
1498 + 'label' => esc_html__( 'Show Step Menu', 'shopbuilder' ),
1499 + 'help' => esc_html__( 'Enable to display the step navigation menu during checkout.', 'shopbuilder' ),
1500 + 'tab' => 'multi-step',
1501 + 'value' => 'on',
1502 + 'dependency' => [
1503 + 'rules' => [
1504 + [
1505 + 'item' => 'modules.shopify_checkout.enable_multi_step',
1506 + 'value' => 'on',
1507 + 'operator' => '==',
1508 + ],
1509 + ],
1510 + ],
1511 + ],
1512 + 'show_cart_menu' => [
1513 + 'id' => 'show_cart_menu',
1514 + 'type' => 'switch',
1515 + 'isPro' => ! rtsb()->has_pro(),
1516 + 'label' => esc_html__( 'Show Cart Menu', 'shopbuilder' ),
1517 + 'help' => esc_html__( 'Enable this option to display the cart item in the step menu.', 'shopbuilder' ),
1518 + 'tab' => 'multi-step',
1519 + 'dependency' => [
1520 + 'rules' => [
1521 + [
1522 + 'item' => 'modules.shopify_checkout.enable_multi_step',
1523 + 'value' => 'on',
1524 + 'operator' => '==',
1525 + ],
1526 + [
1527 + 'item' => 'modules.shopify_checkout.show_step_menu',
1528 + 'value' => 'on',
1529 + 'operator' => '==',
1530 + ],
1531 + ],
1532 + ],
1533 + ],
1534 + 'cart_text' => [
1535 + 'id' => 'cart_text',
1536 + 'type' => 'text',
1537 + 'isPro' => ! rtsb()->has_pro(),
1538 + 'label' => esc_html__( 'Cart Step Title', 'shopbuilder' ),
1539 + 'help' => esc_html__( 'Enter the cart step menu title.', 'shopbuilder' ),
1540 + 'value' => esc_html__( 'Cart', 'shopbuilder' ),
1541 + 'tab' => 'multi-step',
1542 + 'dependency' => [
1543 + 'rules' => [
1544 + [
1545 + 'item' => 'modules.shopify_checkout.show_step_menu',
1546 + 'value' => 'on',
1547 + 'operator' => '==',
1548 + ],
1549 + [
1550 + 'item' => 'modules.shopify_checkout.show_cart_menu',
1551 + 'value' => 'on',
1552 + 'operator' => '==',
1553 + ],
1554 + ],
1555 + ],
1556 + ],
1557 +
1558 + 'billing_text' => [
1559 + 'id' => 'billing_text',
1560 + 'type' => 'text',
1561 + 'isPro' => ! rtsb()->has_pro(),
1562 + 'label' => esc_html__( 'Billing Step Title', 'shopbuilder' ),
1563 + 'help' => esc_html__( 'Enter the billing step menu title.', 'shopbuilder' ),
1564 + 'value' => esc_html__( 'Billing', 'shopbuilder' ),
1565 + 'tab' => 'multi-step',
1566 + 'dependency' => [
1567 + 'rules' => [
1568 + [
1569 + 'item' => 'modules.shopify_checkout.enable_multi_step',
1570 + 'value' => 'on',
1571 + 'operator' => '==',
1572 + ],
1573 + [
1574 + 'item' => 'modules.shopify_checkout.show_step_menu',
1575 + 'value' => 'on',
1576 + 'operator' => '==',
1577 + ],
1578 + ],
1579 + ],
1580 + ],
1581 +
1582 + 'shipping_text' => [
1583 + 'id' => 'shipping_text',
1584 + 'type' => 'text',
1585 + 'isPro' => ! rtsb()->has_pro(),
1586 + 'label' => esc_html__( 'Shipping Step Title', 'shopbuilder' ),
1587 + 'help' => esc_html__( 'Enter the shipping step menu title.', 'shopbuilder' ),
1588 + 'value' => esc_html__( 'Shipping', 'shopbuilder' ),
1589 + 'tab' => 'multi-step',
1590 + 'dependency' => [
1591 + 'rules' => [
1592 + [
1593 + 'item' => 'modules.shopify_checkout.enable_multi_step',
1594 + 'value' => 'on',
1595 + 'operator' => '==',
1596 + ],
1597 + [
1598 + 'item' => 'modules.shopify_checkout.show_step_menu',
1599 + 'value' => 'on',
1600 + 'operator' => '==',
1601 + ],
1602 + ],
1603 + ],
1604 + ],
1605 +
1606 + 'shipping_method_text' => [
1607 + 'id' => 'shipping_method_text',
1608 + 'type' => 'text',
1609 + 'isPro' => ! rtsb()->has_pro(),
1610 + 'label' => esc_html__( 'Shipping Method Step Title', 'shopbuilder' ),
1611 + 'help' => esc_html__( 'Enter the shipping method step menu title.', 'shopbuilder' ),
1612 + 'value' => esc_html__( 'Shipping Method ', 'shopbuilder' ),
1613 + 'tab' => 'multi-step',
1614 + 'dependency' => [
1615 + 'rules' => [
1616 + [
1617 + 'item' => 'modules.shopify_checkout.enable_multi_step',
1618 + 'value' => 'on',
1619 + 'operator' => '==',
1620 + ],
1621 + [
1622 + 'item' => 'modules.shopify_checkout.show_step_menu',
1623 + 'value' => 'on',
1624 + 'operator' => '==',
1625 + ],
1626 + ],
1627 + ],
1628 + ],
1629 +
1630 + 'payment_text' => [
1631 + 'id' => 'payment_text',
1632 + 'type' => 'text',
1633 + 'isPro' => ! rtsb()->has_pro(),
1634 + 'label' => esc_html__( 'Payment Method Step Title', 'shopbuilder' ),
1635 + 'help' => esc_html__( 'Enter the payment method step menu title.', 'shopbuilder' ),
1636 + 'value' => esc_html__( 'Payment', 'shopbuilder' ),
1637 + 'tab' => 'multi-step',
1638 + 'dependency' => [
1639 + 'rules' => [
1640 + [
1641 + 'item' => 'modules.shopify_checkout.enable_multi_step',
1642 + 'value' => 'on',
1643 + 'operator' => '==',
1644 + ],
1645 + [
1646 + 'item' => 'modules.shopify_checkout.show_step_menu',
1647 + 'value' => 'on',
1648 + 'operator' => '==',
1649 + ],
1650 + ],
1651 + ],
1652 + ],
1653 +
1654 + 'next_button_settings' => [
1655 + 'id' => 'next_button_settings',
1656 + 'type' => 'title',
1657 + 'label' => esc_html__( 'Button Settings', 'shopbuilder' ),
1658 + 'tab' => 'multi-step',
1659 + 'dependency' => [
1660 + 'rules' => [
1661 + [
1662 + 'item' => 'modules.shopify_checkout.enable_multi_step',
1663 + 'value' => 'on',
1664 + 'operator' => '==',
1665 + ],
1666 + ],
1667 + ],
1668 + ],
1669 +
1670 + 'shop_continue_btn' => [
1671 + 'id' => 'shop_continue_btn',
1672 + 'type' => 'switch',
1673 + 'isPro' => ! rtsb()->has_pro(),
1674 + 'label' => esc_html__( 'Show Next Button', 'shopbuilder' ),
1675 + 'help' => esc_html__( 'Enable this option to display the \'Next\' button.', 'shopbuilder' ),
1676 + 'tab' => 'multi-step',
1677 + 'value' => 'on',
1678 + 'dependency' => [
1679 + 'rules' => [
1680 + [
1681 + 'item' => 'modules.shopify_checkout.enable_multi_step',
1682 + 'value' => 'on',
1683 + 'operator' => '==',
1684 + ],
1685 + ],
1686 + ],
1687 + ],
1688 + 'continue_btn_text_for_shipping' => [
1689 + 'id' => 'continue_btn_text_for_shipping',
1690 + 'type' => 'text',
1691 + 'isPro' => ! rtsb()->has_pro(),
1692 + 'label' => esc_html__( 'Next Button Label for Shipping', 'shopbuilder' ),
1693 + 'value' => esc_html__( 'Next', 'shopbuilder' ),
1694 + 'tab' => 'multi-step',
1695 + 'dependency' => [
1696 + 'rules' => [
1697 + [
1698 + 'item' => 'modules.shopify_checkout.enable_multi_step',
1699 + 'value' => 'on',
1700 + 'operator' => '==',
1701 + ],
1702 + [
1703 + 'item' => 'modules.shopify_checkout.shop_continue_btn',
1704 + 'value' => 'on',
1705 + 'operator' => '==',
1706 + ],
1707 + ],
1708 + ],
1709 + ],
1710 + 'continue_btn_text_for_shipping_method' => [
1711 + 'id' => 'continue_btn_text_for_shipping_method',
1712 + 'type' => 'text',
1713 + 'isPro' => ! rtsb()->has_pro(),
1714 + 'label' => esc_html__( 'Next Button Label for Shipping Method', 'shopbuilder' ),
1715 + 'value' => esc_html__( 'Next', 'shopbuilder' ),
1716 + 'tab' => 'multi-step',
1717 + 'dependency' => [
1718 + 'rules' => [
1719 + [
1720 + 'item' => 'modules.shopify_checkout.enable_multi_step',
1721 + 'value' => 'on',
1722 + 'operator' => '==',
1723 + ],
1724 + [
1725 + 'item' => 'modules.shopify_checkout.shop_continue_btn',
1726 + 'value' => 'on',
1727 + 'operator' => '==',
1728 + ],
1729 + ],
1730 + ],
1731 + ],
1732 + 'continue_btn_text_for_payment' => [
1733 + 'id' => 'continue_btn_text_for_payment',
1734 + 'type' => 'text',
1735 + 'label' => esc_html__( 'Next Button Label for Payment', 'shopbuilder' ),
1736 + 'value' => esc_html__( 'Next', 'shopbuilder' ),
1737 + 'tab' => 'multi-step',
1738 + 'dependency' => [
1739 + 'rules' => [
1740 + [
1741 + 'item' => 'modules.shopify_checkout.enable_multi_step',
1742 + 'value' => 'on',
1743 + 'operator' => '==',
1744 + ],
1745 + [
1746 + 'item' => 'modules.shopify_checkout.shop_continue_btn',
1747 + 'value' => 'on',
1748 + 'operator' => '==',
1749 + ],
1750 + ],
1751 + ],
1752 + ],
1753 + 'shop_return_btn' => [
1754 + 'id' => 'shop_return_btn',
1755 + 'type' => 'switch',
1756 + 'isPro' => ! rtsb()->has_pro(),
1757 + 'label' => esc_html__( 'Show Back Button', 'shopbuilder' ),
1758 + 'help' => esc_html__( 'Enable this option to display the \'Back\' button.', 'shopbuilder' ),
1759 + 'tab' => 'multi-step',
1760 + 'value' => 'on',
1761 + 'dependency' => [
1762 + 'rules' => [
1763 + [
1764 + 'item' => 'modules.shopify_checkout.enable_multi_step',
1765 + 'value' => 'on',
1766 + 'operator' => '==',
1767 + ],
1768 + ],
1769 + ],
1770 + ],
1771 + 'return_btn_text_for_billing' => [
1772 + 'id' => 'return_btn_text_for_billing',
1773 + 'type' => 'text',
1774 + 'isPro' => ! rtsb()->has_pro(),
1775 + 'label' => esc_html__( 'Back Button Label for Billing', 'shopbuilder' ),
1776 + 'value' => esc_html__( 'Prev', 'shopbuilder' ),
1777 + 'tab' => 'multi-step',
1778 + 'dependency' => [
1779 + 'rules' => [
1780 + [
1781 + 'item' => 'modules.shopify_checkout.enable_multi_step',
1782 + 'value' => 'on',
1783 + 'operator' => '==',
1784 + ],
1785 + [
1786 + 'item' => 'modules.shopify_checkout.shop_return_btn',
1787 + 'value' => 'on',
1788 + 'operator' => '==',
1789 + ],
1790 + ],
1791 + ],
1792 + ],
1793 +
1794 + 'return_btn_text_for_shipping' => [
1795 + 'id' => 'return_btn_text_for_shipping',
1796 + 'type' => 'text',
1797 + 'isPro' => ! rtsb()->has_pro(),
1798 + 'label' => esc_html__( 'Back Button Label for Shipping', 'shopbuilder' ),
1799 + 'value' => esc_html__( 'Prev', 'shopbuilder' ),
1800 + 'tab' => 'multi-step',
1801 + 'dependency' => [
1802 + 'rules' => [
1803 + [
1804 + 'item' => 'modules.shopify_checkout.enable_multi_step',
1805 + 'value' => 'on',
1806 + 'operator' => '==',
1807 + ],
1808 + [
1809 + 'item' => 'modules.shopify_checkout.shop_return_btn',
1810 + 'value' => 'on',
1811 + 'operator' => '==',
1812 + ],
1813 + ],
1814 + ],
1815 + ],
1816 +
1817 + 'return_btn_text_for_shipping_method' => [
1818 + 'id' => 'return_btn_text_for_shipping_method',
1819 + 'type' => 'text',
1820 + 'isPro' => ! rtsb()->has_pro(),
1821 + 'label' => esc_html__( 'Back Button Label for Shipping Method', 'shopbuilder' ),
1822 + 'value' => esc_html__( 'Prev', 'shopbuilder' ),
1823 + 'tab' => 'multi-step',
1824 + 'dependency' => [
1825 + 'rules' => [
1826 + [
1827 + 'item' => 'modules.shopify_checkout.enable_multi_step',
1828 + 'value' => 'on',
1829 + 'operator' => '==',
1830 + ],
1831 + [
1832 + 'item' => 'modules.shopify_checkout.shop_return_btn',
1833 + 'value' => 'on',
1834 + 'operator' => '==',
1835 + ],
1836 + ],
1837 + ],
1838 + ],
1839 +
1840 + 'order_review_settings' => [
1841 + 'id' => 'order_review_settings',
1842 + 'type' => 'title',
1843 + 'label' => esc_html__( 'Order Reviews', 'shopbuilder' ),
1844 + 'tab' => 'general',
1845 + ],
1846 + 'order_review_item_link' => [
1847 + 'id' => 'order_review_item_link',
1848 + 'type' => 'switch',
1849 + 'label' => esc_html__( 'Link Product Titles', 'shopbuilder' ),
1850 + 'help' => esc_html__( 'Enable to make product titles clickable, linking to their product pages.', 'shopbuilder' ),
1851 + 'value' => '',
1852 + 'tab' => 'general',
1853 + ],
1854 + 'extra_content' => [
1855 + 'id' => 'extra_content',
1856 + 'label' => esc_html__( 'Display Additional Data', 'shopbuilder' ),
1857 + 'help' => esc_html__( 'Enter custom text to display below the Order Review section. You can include custom HTML content. Shortcodes are also supported here.', 'shopbuilder' ),
1858 + 'type' => 'text_editor',
1859 + 'isPro' => ! rtsb()->has_pro(),
1860 + 'sanitize_fn' => 'pass_all',
1861 + 'tab' => 'general',
1862 + ],
1863 +
1864 + 'footer_settings' => [
1865 + 'id' => 'footer_settings',
1866 + 'type' => 'title',
1867 + 'label' => esc_html__( 'Footer', 'shopbuilder' ),
1868 + 'tab' => 'general',
1869 + ],
1870 +
1871 + 'footer_menu' => [
1872 + 'id' => 'footer_menu',
1873 + 'label' => esc_html__( 'Footer Menu', 'shopbuilder' ),
1874 + 'help' => esc_html__( 'Select a menu to display in the footer section of your checkout page.', 'shopbuilder' ),
1875 + 'type' => 'select',
1876 + 'value' => 'none',
1877 + 'options' => $this->get_all_menu(),
1878 + 'tab' => 'general',
1879 + ],
1880 +
1881 + 'footer_text' => [
1882 + 'id' => 'footer_text',
1883 + 'type' => 'text',
1884 + 'label' => esc_html__( 'Footer Text', 'shopbuilder' ),
1885 + 'help' => esc_html__( 'Enter custom text to display in the footer section of your checkout page. You can use {year} placeholder to display the current year.', 'shopbuilder' ),
1886 + 'value' => esc_html__( 'Copyright @{year} | All rights reserved', 'shopbuilder' ),
1887 + 'tab' => 'general',
1888 + ],
1889 +
1890 + // Place Order.
1891 + 'login_button_styles_settings' => [
1892 + 'id' => 'login_button_styles_settings',
1893 + 'type' => 'title',
1894 + 'tab' => 'btn-styles',
1895 + 'label' => esc_html__( 'Login Button Style', 'shopbuilder' ),
1896 + ],
1897 + 'login_button_height' => [
1898 + 'id' => 'login_button_height',
1899 + 'label' => esc_html__( 'Height (px)', 'shopbuilder' ),
1900 + 'type' => 'slider',
1901 + 'min' => 10,
1902 + 'max' => 100,
1903 + 'unit' => 'px',
1904 + 'value' => 50,
1905 + 'tab' => 'btn-styles',
1906 + ],
1907 + 'login_button_width' => [
1908 + 'id' => 'login_button_width',
1909 + 'label' => esc_html__( 'Width (px)', 'shopbuilder' ),
1910 + 'type' => 'slider',
1911 + 'min' => 10,
1912 + 'max' => 1000,
1913 + 'unit' => 'px',
1914 + 'tab' => 'btn-styles',
1915 + ],
1916 + 'login_button_font_size' => [
1917 + 'id' => 'login_button_font_size',
1918 + 'label' => esc_html__( 'Font Size (px)', 'shopbuilder' ),
1919 + 'type' => 'slider',
1920 + 'min' => 10,
1921 + 'max' => 50,
1922 + 'unit' => 'px',
1923 + 'value' => 15,
1924 + 'tab' => 'btn-styles',
1925 + ],
1926 + 'login_button_bg_color' => [
1927 + 'id' => 'login_button_bg_color',
1928 + 'label' => esc_html__( 'Background Color', 'shopbuilder' ),
1929 + 'tab' => 'btn-styles',
1930 + 'type' => 'color',
1931 + ],
1932 + 'login_button_hover_bg_color' => [
1933 + 'id' => 'login_button_hover_bg_color',
1934 + 'label' => esc_html__( 'Hover Background Color', 'shopbuilder' ),
1935 + 'tab' => 'btn-styles',
1936 + 'type' => 'color',
1937 + ],
1938 + 'login_button_color' => [
1939 + 'id' => 'login_button_color',
1940 + 'label' => esc_html__( 'Color', 'shopbuilder' ),
1941 + 'tab' => 'btn-styles',
1942 + 'type' => 'color',
1943 + ],
1944 + 'login_button_hover_color' => [
1945 + 'id' => 'login_button_hover_color',
1946 + 'label' => esc_html__( 'Hover Color', 'shopbuilder' ),
1947 + 'tab' => 'btn-styles',
1948 + 'type' => 'color',
1949 + ],
1950 + 'login_button_border_color' => [
1951 + 'id' => 'login_button_border_color',
1952 + 'label' => esc_html__( 'Border Color', 'shopbuilder' ),
1953 + 'tab' => 'btn-styles',
1954 + 'type' => 'color',
1955 + ],
1956 + 'login_button_hover_border_color' => [
1957 + 'id' => 'login_button_hover_border_color',
1958 + 'label' => esc_html__( 'Hover Border Color', 'shopbuilder' ),
1959 + 'tab' => 'btn-styles',
1960 + 'type' => 'color',
1961 + ],
1962 +
1963 + // Place Order.
1964 + 'place_order_button_styles_settings' => [
1965 + 'id' => 'place_order_button_styles_settings',
1966 + 'type' => 'title',
1967 + 'tab' => 'btn-styles',
1968 + 'label' => esc_html__( 'Place Order Button Style', 'shopbuilder' ),
1969 + ],
1970 + 'place_order_button_height' => [
1971 + 'id' => 'place_order_button_height',
1972 + 'label' => esc_html__( 'Height (px)', 'shopbuilder' ),
1973 + 'type' => 'slider',
1974 + 'min' => 10,
1975 + 'max' => 100,
1976 + 'unit' => 'px',
1977 + 'value' => 50,
1978 + 'tab' => 'btn-styles',
1979 + ],
1980 + 'place_order_button_width' => [
1981 + 'id' => 'place_order_button_width',
1982 + 'label' => esc_html__( 'Width (px)', 'shopbuilder' ),
1983 + 'type' => 'slider',
1984 + 'min' => 10,
1985 + 'max' => 1000,
1986 + 'unit' => 'px',
1987 + 'tab' => 'btn-styles',
1988 + ],
1989 + 'place_order_button_font_size' => [
1990 + 'id' => 'place_order_button_font_size',
1991 + 'label' => esc_html__( 'Font Size (px)', 'shopbuilder' ),
1992 + 'type' => 'slider',
1993 + 'min' => 10,
1994 + 'max' => 50,
1995 + 'unit' => 'px',
1996 + 'value' => 15,
1997 + 'tab' => 'btn-styles',
1998 + ],
1999 + 'place_order_button_bg_color' => [
2000 + 'id' => 'place_order_button_bg_color',
2001 + 'label' => esc_html__( 'Background Color', 'shopbuilder' ),
2002 + 'tab' => 'btn-styles',
2003 + 'type' => 'color',
2004 + ],
2005 + 'place_order_button_hover_bg_color' => [
2006 + 'id' => 'place_order_button_hover_bg_color',
2007 + 'label' => esc_html__( 'Hover Background Color', 'shopbuilder' ),
2008 + 'tab' => 'btn-styles',
2009 + 'type' => 'color',
2010 + ],
2011 + 'place_order_button_color' => [
2012 + 'id' => 'place_order_button_color',
2013 + 'label' => esc_html__( 'Color', 'shopbuilder' ),
2014 + 'tab' => 'btn-styles',
2015 + 'type' => 'color',
2016 + ],
2017 + 'place_order_button_hover_color' => [
2018 + 'id' => 'place_order_button_hover_color',
2019 + 'label' => esc_html__( 'Hover Color', 'shopbuilder' ),
2020 + 'tab' => 'btn-styles',
2021 + 'type' => 'color',
2022 + ],
2023 + 'place_order_button_border_color' => [
2024 + 'id' => 'place_order_button_border_color',
2025 + 'label' => esc_html__( 'Border Color', 'shopbuilder' ),
2026 + 'tab' => 'btn-styles',
2027 + 'type' => 'color',
2028 + ],
2029 + 'place_order_button_hover_border_color' => [
2030 + 'id' => 'place_order_button_hover_border_color',
2031 + 'label' => esc_html__( 'Hover Border Color', 'shopbuilder' ),
2032 + 'tab' => 'btn-styles',
2033 + 'type' => 'color',
2034 + ],
2035 +
2036 + // Next Button.
2037 + 'next_button_styles_settings' => [
2038 + 'id' => 'next_button_styles_settings',
2039 + 'type' => 'title',
2040 + 'tab' => 'btn-styles',
2041 + 'label' => esc_html__( 'Next Button Style', 'shopbuilder' ),
2042 + 'dependency' => [
2043 + 'rules' => [
2044 + [
2045 + 'item' => 'modules.shopify_checkout.enable_multi_step',
2046 + 'value' => 'on',
2047 + 'operator' => '==',
2048 + ],
2049 + [
2050 + 'item' => 'modules.shopify_checkout.shop_continue_btn',
2051 + 'value' => 'on',
2052 + 'operator' => '==',
2053 + ],
2054 + ],
2055 + ],
2056 + ],
2057 + 'next_button_height' => [
2058 + 'id' => 'next_button_height',
2059 + 'isPro' => ! rtsb()->has_pro(),
2060 + 'label' => esc_html__( 'Height (px)', 'shopbuilder' ),
2061 + 'type' => 'slider',
2062 + 'min' => 10,
2063 + 'max' => 100,
2064 + 'unit' => 'px',
2065 + 'value' => 50,
2066 + 'tab' => 'btn-styles',
2067 + 'dependency' => [
2068 + 'rules' => [
2069 + [
2070 + 'item' => 'modules.shopify_checkout.enable_multi_step',
2071 + 'value' => 'on',
2072 + 'operator' => '==',
2073 + ],
2074 + [
2075 + 'item' => 'modules.shopify_checkout.shop_continue_btn',
2076 + 'value' => 'on',
2077 + 'operator' => '==',
2078 + ],
2079 + ],
2080 + ],
2081 + ],
2082 + 'next_button_width' => [
2083 + 'id' => 'next_button_width',
2084 + 'label' => esc_html__( 'Width (px)', 'shopbuilder' ),
2085 + 'type' => 'slider',
2086 + 'min' => 10,
2087 + 'max' => 1000,
2088 + 'unit' => 'px',
2089 + 'tab' => 'btn-styles',
2090 + 'dependency' => [
2091 + 'rules' => [
2092 + [
2093 + 'item' => 'modules.shopify_checkout.enable_multi_step',
2094 + 'value' => 'on',
2095 + 'operator' => '==',
2096 + ],
2097 + [
2098 + 'item' => 'modules.shopify_checkout.shop_continue_btn',
2099 + 'value' => 'on',
2100 + 'operator' => '==',
2101 + ],
2102 + ],
2103 + ],
2104 + ],
2105 + 'next_button_font_size' => [
2106 + 'id' => 'next_button_font_size',
2107 + 'isPro' => ! rtsb()->has_pro(),
2108 + 'label' => esc_html__( 'Font Size (px)', 'shopbuilder' ),
2109 + 'type' => 'slider',
2110 + 'min' => 10,
2111 + 'max' => 50,
2112 + 'unit' => 'px',
2113 + 'value' => 15,
2114 + 'tab' => 'btn-styles',
2115 + 'dependency' => [
2116 + 'rules' => [
2117 + [
2118 + 'item' => 'modules.shopify_checkout.enable_multi_step',
2119 + 'value' => 'on',
2120 + 'operator' => '==',
2121 + ],
2122 + [
2123 + 'item' => 'modules.shopify_checkout.shop_continue_btn',
2124 + 'value' => 'on',
2125 + 'operator' => '==',
2126 + ],
2127 + ],
2128 + ],
2129 + ],
2130 + 'next_button_bg_color' => [
2131 + 'id' => 'next_button_bg_color',
2132 + 'isPro' => ! rtsb()->has_pro(),
2133 + 'label' => esc_html__( 'Background Color', 'shopbuilder' ),
2134 + 'tab' => 'btn-styles',
2135 + 'type' => 'color',
2136 + 'dependency' => [
2137 + 'rules' => [
2138 + [
2139 + 'item' => 'modules.shopify_checkout.enable_multi_step',
2140 + 'value' => 'on',
2141 + 'operator' => '==',
2142 + ],
2143 + [
2144 + 'item' => 'modules.shopify_checkout.shop_continue_btn',
2145 + 'value' => 'on',
2146 + 'operator' => '==',
2147 + ],
2148 + ],
2149 + ],
2150 + ],
2151 + 'next_button_hover_bg_color' => [
2152 + 'id' => 'next_button_hover_bg_color',
2153 + 'isPro' => ! rtsb()->has_pro(),
2154 + 'label' => esc_html__( 'Hover Background Color', 'shopbuilder' ),
2155 + 'tab' => 'btn-styles',
2156 + 'type' => 'color',
2157 + 'dependency' => [
2158 + 'rules' => [
2159 + [
2160 + 'item' => 'modules.shopify_checkout.enable_multi_step',
2161 + 'value' => 'on',
2162 + 'operator' => '==',
2163 + ],
2164 + [
2165 + 'item' => 'modules.shopify_checkout.shop_continue_btn',
2166 + 'value' => 'on',
2167 + 'operator' => '==',
2168 + ],
2169 + ],
2170 + ],
2171 + ],
2172 + 'next_button_color' => [
2173 + 'id' => 'next_button_color',
2174 + 'isPro' => ! rtsb()->has_pro(),
2175 + 'label' => esc_html__( 'Color', 'shopbuilder' ),
2176 + 'tab' => 'btn-styles',
2177 + 'type' => 'color',
2178 + 'dependency' => [
2179 + 'rules' => [
2180 + [
2181 + 'item' => 'modules.shopify_checkout.enable_multi_step',
2182 + 'value' => 'on',
2183 + 'operator' => '==',
2184 + ],
2185 + [
2186 + 'item' => 'modules.shopify_checkout.shop_continue_btn',
2187 + 'value' => 'on',
2188 + 'operator' => '==',
2189 + ],
2190 + ],
2191 + ],
2192 + ],
2193 + 'next_button_hover_color' => [
2194 + 'id' => 'next_button_hover_color',
2195 + 'isPro' => ! rtsb()->has_pro(),
2196 + 'label' => esc_html__( 'Hover Color', 'shopbuilder' ),
2197 + 'tab' => 'btn-styles',
2198 + 'type' => 'color',
2199 + 'dependency' => [
2200 + 'rules' => [
2201 + [
2202 + 'item' => 'modules.shopify_checkout.enable_multi_step',
2203 + 'value' => 'on',
2204 + 'operator' => '==',
2205 + ],
2206 + [
2207 + 'item' => 'modules.shopify_checkout.shop_continue_btn',
2208 + 'value' => 'on',
2209 + 'operator' => '==',
2210 + ],
2211 + ],
2212 + ],
2213 + ],
2214 + 'next_button_border_color' => [
2215 + 'id' => 'next_button_border_color',
2216 + 'isPro' => ! rtsb()->has_pro(),
2217 + 'label' => esc_html__( 'Border Color', 'shopbuilder' ),
2218 + 'tab' => 'btn-styles',
2219 + 'type' => 'color',
2220 + 'dependency' => [
2221 + 'rules' => [
2222 + [
2223 + 'item' => 'modules.shopify_checkout.enable_multi_step',
2224 + 'value' => 'on',
2225 + 'operator' => '==',
2226 + ],
2227 + [
2228 + 'item' => 'modules.shopify_checkout.shop_continue_btn',
2229 + 'value' => 'on',
2230 + 'operator' => '==',
2231 + ],
2232 + ],
2233 + ],
2234 + ],
2235 + 'next_button_hover_border_color' => [
2236 + 'id' => 'next_button_hover_border_color',
2237 + 'isPro' => ! rtsb()->has_pro(),
2238 + 'label' => esc_html__( 'Hover Border Color', 'shopbuilder' ),
2239 + 'tab' => 'btn-styles',
2240 + 'type' => 'color',
2241 + 'dependency' => [
2242 + 'rules' => [
2243 + [
2244 + 'item' => 'modules.shopify_checkout.enable_multi_step',
2245 + 'value' => 'on',
2246 + 'operator' => '==',
2247 + ],
2248 + [
2249 + 'item' => 'modules.shopify_checkout.shop_continue_btn',
2250 + 'value' => 'on',
2251 + 'operator' => '==',
2252 + ],
2253 + ],
2254 + ],
2255 + ],
2256 + 'prev_button_styles_settings' => [
2257 + 'id' => 'prev_button_styles_settings',
2258 + 'type' => 'title',
2259 + 'tab' => 'btn-styles',
2260 + 'label' => esc_html__( 'Prev Button Style', 'shopbuilder' ),
2261 + 'dependency' => [
2262 + 'rules' => [
2263 + [
2264 + 'item' => 'modules.shopify_checkout.enable_multi_step',
2265 + 'value' => 'on',
2266 + 'operator' => '==',
2267 + ],
2268 + [
2269 + 'item' => 'modules.shopify_checkout.shop_return_btn',
2270 + 'value' => 'on',
2271 + 'operator' => '==',
2272 + ],
2273 + ],
2274 + ],
2275 +
2276 + ],
2277 + 'prev_button_height' => [
2278 + 'id' => 'prev_button_height',
2279 + 'isPro' => ! rtsb()->has_pro(),
2280 + 'label' => esc_html__( 'Height (px)', 'shopbuilder' ),
2281 + 'type' => 'slider',
2282 + 'min' => 10,
2283 + 'max' => 100,
2284 + 'unit' => 'px',
2285 + 'value' => 50,
2286 + 'tab' => 'btn-styles',
2287 + 'dependency' => [
2288 + 'rules' => [
2289 + [
2290 + 'item' => 'modules.shopify_checkout.enable_multi_step',
2291 + 'value' => 'on',
2292 + 'operator' => '==',
2293 + ],
2294 + [
2295 + 'item' => 'modules.shopify_checkout.shop_return_btn',
2296 + 'value' => 'on',
2297 + 'operator' => '==',
2298 + ],
2299 + ],
2300 + ],
2301 + ],
2302 + 'prev_button_width' => [
2303 + 'id' => 'prev_button_width',
2304 + 'label' => esc_html__( 'Width (px)', 'shopbuilder' ),
2305 + 'type' => 'slider',
2306 + 'min' => 10,
2307 + 'max' => 1000,
2308 + 'unit' => 'px',
2309 + 'tab' => 'btn-styles',
2310 + 'dependency' => [
2311 + 'rules' => [
2312 + [
2313 + 'item' => 'modules.shopify_checkout.enable_multi_step',
2314 + 'value' => 'on',
2315 + 'operator' => '==',
2316 + ],
2317 + [
2318 + 'item' => 'modules.shopify_checkout.shop_return_btn',
2319 + 'value' => 'on',
2320 + 'operator' => '==',
2321 + ],
2322 + ],
2323 + ],
2324 + ],
2325 + 'prev_button_font_size' => [
2326 + 'id' => 'prev_button_font_size',
2327 + 'isPro' => ! rtsb()->has_pro(),
2328 + 'label' => esc_html__( 'Font Size (px)', 'shopbuilder' ),
2329 + 'type' => 'slider',
2330 + 'min' => 10,
2331 + 'max' => 50,
2332 + 'unit' => 'px',
2333 + 'value' => 15,
2334 + 'tab' => 'btn-styles',
2335 + 'dependency' => [
2336 + 'rules' => [
2337 + [
2338 + 'item' => 'modules.shopify_checkout.enable_multi_step',
2339 + 'value' => 'on',
2340 + 'operator' => '==',
2341 + ],
2342 + [
2343 + 'item' => 'modules.shopify_checkout.shop_return_btn',
2344 + 'value' => 'on',
2345 + 'operator' => '==',
2346 + ],
2347 + ],
2348 + ],
2349 + ],
2350 + 'prev_button_bg_color' => [
2351 + 'id' => 'prev_button_bg_color',
2352 + 'isPro' => ! rtsb()->has_pro(),
2353 + 'label' => esc_html__( 'Background Color', 'shopbuilder' ),
2354 + 'tab' => 'btn-styles',
2355 + 'type' => 'color',
2356 + 'dependency' => [
2357 + 'rules' => [
2358 + [
2359 + 'item' => 'modules.shopify_checkout.enable_multi_step',
2360 + 'value' => 'on',
2361 + 'operator' => '==',
2362 + ],
2363 + [
2364 + 'item' => 'modules.shopify_checkout.shop_return_btn',
2365 + 'value' => 'on',
2366 + 'operator' => '==',
2367 + ],
2368 + ],
2369 + ],
2370 + ],
2371 + 'prev_button_hover_bg_color' => [
2372 + 'id' => 'prev_button_hover_bg_color',
2373 + 'label' => esc_html__( 'Hover Background Color', 'shopbuilder' ),
2374 + 'isPro' => ! rtsb()->has_pro(),
2375 + 'tab' => 'btn-styles',
2376 + 'type' => 'color',
2377 + 'dependency' => [
2378 + 'rules' => [
2379 + [
2380 + 'item' => 'modules.shopify_checkout.enable_multi_step',
2381 + 'value' => 'on',
2382 + 'operator' => '==',
2383 + ],
2384 + [
2385 + 'item' => 'modules.shopify_checkout.shop_return_btn',
2386 + 'value' => 'on',
2387 + 'operator' => '==',
2388 + ],
2389 + ],
2390 + ],
2391 + ],
2392 + 'prev_button_color' => [
2393 + 'id' => 'prev_button_color',
2394 + 'label' => esc_html__( 'Color', 'shopbuilder' ),
2395 + 'isPro' => ! rtsb()->has_pro(),
2396 + 'tab' => 'btn-styles',
2397 + 'type' => 'color',
2398 + 'dependency' => [
2399 + 'rules' => [
2400 + [
2401 + 'item' => 'modules.shopify_checkout.enable_multi_step',
2402 + 'value' => 'on',
2403 + 'operator' => '==',
2404 + ],
2405 + [
2406 + 'item' => 'modules.shopify_checkout.shop_return_btn',
2407 + 'value' => 'on',
2408 + 'operator' => '==',
2409 + ],
2410 + ],
2411 + ],
2412 + ],
2413 + 'prev_button_hover_color' => [
2414 + 'id' => 'prev_button_hover_color',
2415 + 'label' => esc_html__( 'Hover Color', 'shopbuilder' ),
2416 + 'isPro' => ! rtsb()->has_pro(),
2417 + 'tab' => 'btn-styles',
2418 + 'type' => 'color',
2419 + 'dependency' => [
2420 + 'rules' => [
2421 + [
2422 + 'item' => 'modules.shopify_checkout.enable_multi_step',
2423 + 'value' => 'on',
2424 + 'operator' => '==',
2425 + ],
2426 + [
2427 + 'item' => 'modules.shopify_checkout.shop_return_btn',
2428 + 'value' => 'on',
2429 + 'operator' => '==',
2430 + ],
2431 + ],
2432 + ],
2433 + ],
2434 + 'prev_button_border_color' => [
2435 + 'id' => 'prev_button_border_color',
2436 + 'label' => esc_html__( 'Border Color', 'shopbuilder' ),
2437 + 'isPro' => ! rtsb()->has_pro(),
2438 + 'tab' => 'btn-styles',
2439 + 'type' => 'color',
2440 + 'dependency' => [
2441 + 'rules' => [
2442 + [
2443 + 'item' => 'modules.shopify_checkout.enable_multi_step',
2444 + 'value' => 'on',
2445 + 'operator' => '==',
2446 + ],
2447 + [
2448 + 'item' => 'modules.shopify_checkout.shop_return_btn',
2449 + 'value' => 'on',
2450 + 'operator' => '==',
2451 + ],
2452 + ],
2453 + ],
2454 + ],
2455 + 'prev_button_hover_border_color' => [
2456 + 'id' => 'prev_button_hover_border_color',
2457 + 'label' => esc_html__( 'Hover Border Color', 'shopbuilder' ),
2458 + 'isPro' => ! rtsb()->has_pro(),
2459 + 'tab' => 'btn-styles',
2460 + 'type' => 'color',
2461 + 'dependency' => [
2462 + 'rules' => [
2463 + [
2464 + 'item' => 'modules.shopify_checkout.enable_multi_step',
2465 + 'value' => 'on',
2466 + 'operator' => '==',
2467 + ],
2468 + [
2469 + 'item' => 'modules.shopify_checkout.shop_return_btn',
2470 + 'value' => 'on',
2471 + 'operator' => '==',
2472 + ],
2473 + ],
2474 + ],
2475 + ],
2476 + 'coupon_button_styles_settings' => [
2477 + 'id' => 'coupon_button_styles_settings',
2478 + 'type' => 'title',
2479 + 'tab' => 'btn-styles',
2480 + 'label' => esc_html__( 'Apply Coupon Button Style', 'shopbuilder' ),
2481 + ],
2482 + 'coupon_height' => [
2483 + 'id' => 'coupon_height',
2484 + 'label' => esc_html__( 'Coupon Field And Button Height (px)', 'shopbuilder' ),
2485 + 'type' => 'slider',
2486 + 'min' => 10,
2487 + 'max' => 100,
2488 + 'unit' => 'px',
2489 + 'value' => 50,
2490 + 'tab' => 'btn-styles',
2491 + ],
2492 + 'coupon_button_font_size' => [
2493 + 'id' => 'coupon_button_font_size',
2494 + 'label' => esc_html__( 'Font Size (px)', 'shopbuilder' ),
2495 + 'type' => 'slider',
2496 + 'min' => 10,
2497 + 'max' => 50,
2498 + 'unit' => 'px',
2499 + 'value' => 15,
2500 + 'tab' => 'btn-styles',
2501 + ],
2502 + 'coupon_button_bg_color' => [
2503 + 'id' => 'coupon_button_bg_color',
2504 + 'label' => esc_html__( 'Background Color', 'shopbuilder' ),
2505 + 'tab' => 'btn-styles',
2506 + 'type' => 'color',
2507 + ],
2508 + 'coupon_button_hover_bg_color' => [
2509 + 'id' => 'coupon_button_hover_bg_color',
2510 + 'label' => esc_html__( 'Hover Background Color', 'shopbuilder' ),
2511 + 'tab' => 'btn-styles',
2512 + 'type' => 'color',
2513 + ],
2514 + 'coupon_button_color' => [
2515 + 'id' => 'coupon_button_color',
2516 + 'label' => esc_html__( 'Color', 'shopbuilder' ),
2517 + 'tab' => 'btn-styles',
2518 + 'type' => 'color',
2519 + ],
2520 + 'coupon_button_hover_color' => [
2521 + 'id' => 'coupon_button_hover_color',
2522 + 'label' => esc_html__( 'Hover Color', 'shopbuilder' ),
2523 + 'tab' => 'btn-styles',
2524 + 'type' => 'color',
2525 + ],
2526 + 'coupon_button_border_color' => [
2527 + 'id' => 'coupon_button_border_color',
2528 + 'label' => esc_html__( 'Border Color', 'shopbuilder' ),
2529 + 'tab' => 'btn-styles',
2530 + 'type' => 'color',
2531 + ],
2532 + 'coupon_button_hover_border_color' => [
2533 + 'id' => 'coupon_button_hover_border_color',
2534 + 'label' => esc_html__( 'Hover Border Color', 'shopbuilder' ),
2535 + 'tab' => 'btn-styles',
2536 + 'type' => 'color',
2537 + ],
2538 +
2539 + 'header_cart_icon_styles' => [
2540 + 'id' => 'header_cart_icon_styles',
2541 + 'type' => 'title',
2542 + 'tab' => 'styles',
2543 + 'label' => esc_html__( 'Header Cart Icon Style', 'shopbuilder' ),
2544 + 'dependency' => [
2545 + 'rules' => [
2546 + [
2547 + 'item' => 'modules.shopify_checkout.cart_icon_source',
2548 + 'value' => 'none',
2549 + 'operator' => '!=',
2550 + ],
2551 + ],
2552 + ],
2553 + ],
2554 +
2555 + 'shopify_cart_icon_height' => [
2556 + 'id' => 'shopify_cart_icon_height',
2557 + 'label' => esc_html__( 'Cart Icon Height (px)', 'shopbuilder' ),
2558 + 'type' => 'slider',
2559 + 'min' => 10,
2560 + 'max' => 200,
2561 + 'unit' => 'px',
2562 + 'value' => 40,
2563 + 'tab' => 'styles',
2564 + 'dependency' => [
2565 + 'rules' => [
2566 + [
2567 + 'item' => 'modules.shopify_checkout.cart_icon_source',
2568 + 'value' => 'upload_icon',
2569 + 'operator' => '==',
2570 + ],
2571 + ],
2572 + ],
2573 + ],
2574 +
2575 + 'header_cart_icon_color' => [
2576 + 'id' => 'step_menu_color',
2577 + 'label' => esc_html__( 'Color', 'shopbuilder' ),
2578 + 'tab' => 'styles',
2579 + 'type' => 'color',
2580 + 'dependency' => [
2581 + 'rules' => [
2582 + [
2583 + 'item' => 'modules.shopify_checkout.cart_icon_source',
2584 + 'value' => 'select_icon',
2585 + 'operator' => '==',
2586 + ],
2587 + ],
2588 + ],
2589 + ],
2590 + 'header_cart_icon_hover_color' => [
2591 + 'id' => 'header_cart_icon_hover_color',
2592 + 'label' => esc_html__( 'Hover Color', 'shopbuilder' ),
2593 + 'tab' => 'styles',
2594 + 'type' => 'color',
2595 + 'dependency' => [
2596 + 'rules' => [
2597 + [
2598 + 'item' => 'modules.shopify_checkout.cart_icon_source',
2599 + 'value' => 'select_icon',
2600 + 'operator' => '==',
2601 + ],
2602 + ],
2603 + ],
2604 + ],
2605 + 'header_cart_icon_font_size' => [
2606 + 'id' => 'header_cart_icon_font_size',
2607 + 'label' => esc_html__( 'Font Size (px)', 'shopbuilder' ),
2608 + 'type' => 'slider',
2609 + 'min' => 10,
2610 + 'max' => 50,
2611 + 'unit' => 'px',
2612 + 'value' => 15,
2613 + 'tab' => 'styles',
2614 + 'dependency' => [
2615 + 'rules' => [
2616 + [
2617 + 'item' => 'modules.shopify_checkout.cart_icon_source',
2618 + 'value' => 'select_icon',
2619 + 'operator' => '==',
2620 + ],
2621 + ],
2622 + ],
2623 + ],
2624 + 'footer_menu_styles_settings' => [
2625 + 'id' => 'footer_menu_styles_settings',
2626 + 'type' => 'title',
2627 + 'tab' => 'styles',
2628 + 'label' => esc_html__( 'Footer Style', 'shopbuilder' ),
2629 + ],
2630 + 'footer_menu_color' => [
2631 + 'id' => 'footer_menu_color',
2632 + 'label' => esc_html__( 'Menu Color', 'shopbuilder' ),
2633 + 'tab' => 'styles',
2634 + 'type' => 'color',
2635 + ],
2636 + 'footer_menu_hover_color' => [
2637 + 'id' => 'footer_menu_hover_color',
2638 + 'label' => esc_html__( 'Menu Hover Color', 'shopbuilder' ),
2639 + 'tab' => 'styles',
2640 + 'type' => 'color',
2641 + ],
2642 + 'footer_menu_font_size' => [
2643 + 'id' => 'footer_menu_font_size',
2644 + 'label' => esc_html__( 'Menu Font Size (px)', 'shopbuilder' ),
2645 + 'type' => 'slider',
2646 + 'min' => 10,
2647 + 'max' => 50,
2648 + 'unit' => 'px',
2649 + 'value' => 15,
2650 + 'tab' => 'styles',
2651 + ],
2652 + 'footer_text_size' => [
2653 + 'id' => 'footer_text_size',
2654 + 'label' => esc_html__( 'Footer Text Font Size (px)', 'shopbuilder' ),
2655 + 'type' => 'slider',
2656 + 'min' => 10,
2657 + 'max' => 50,
2658 + 'unit' => 'px',
2659 + 'value' => 15,
2660 + 'tab' => 'styles',
2661 + ],
2662 + 'footer_text_color' => [
2663 + 'id' => 'footer_text_color',
2664 + 'label' => esc_html__( 'Footer Text Color', 'shopbuilder' ),
2665 + 'tab' => 'styles',
2666 + 'type' => 'color',
2667 + ],
2668 + 'step_menu_styles_settings' => [
2669 + 'id' => 'step_menu_styles_settings',
2670 + 'type' => 'title',
2671 + 'tab' => 'styles',
2672 + 'label' => esc_html__( 'Step Menu Style', 'shopbuilder' ),
2673 + 'dependency' => [
2674 + 'rules' => [
2675 + [
2676 + 'item' => 'modules.shopify_checkout.enable_multi_step',
2677 + 'value' => 'on',
2678 + 'operator' => '==',
2679 + ],
2680 + [
2681 + 'item' => 'modules.shopify_checkout.show_step_menu',
2682 + 'value' => 'on',
2683 + 'operator' => '==',
2684 + ],
2685 + ],
2686 + ],
2687 + ],
2688 + 'step_menu_color' => [
2689 + 'id' => 'step_menu_color',
2690 + 'label' => esc_html__( 'Color', 'shopbuilder' ),
2691 + 'isPro' => ! rtsb()->has_pro(),
2692 + 'tab' => 'styles',
2693 + 'type' => 'color',
2694 + 'dependency' => [
2695 + 'rules' => [
2696 + [
2697 + 'item' => 'modules.shopify_checkout.enable_multi_step',
2698 + 'value' => 'on',
2699 + 'operator' => '==',
2700 + ],
2701 + [
2702 + 'item' => 'modules.shopify_checkout.show_step_menu',
2703 + 'value' => 'on',
2704 + 'operator' => '==',
2705 + ],
2706 + ],
2707 + ],
2708 + ],
2709 + 'step_menu_hover_color' => [
2710 + 'id' => 'step_menu_hover_color',
2711 + 'label' => esc_html__( 'Hover Color', 'shopbuilder' ),
2712 + 'isPro' => ! rtsb()->has_pro(),
2713 + 'tab' => 'styles',
2714 + 'type' => 'color',
2715 + 'dependency' => [
2716 + 'rules' => [
2717 + [
2718 + 'item' => 'modules.shopify_checkout.enable_multi_step',
2719 + 'value' => 'on',
2720 + 'operator' => '==',
2721 + ],
2722 + [
2723 + 'item' => 'modules.shopify_checkout.show_step_menu',
2724 + 'value' => 'on',
2725 + 'operator' => '==',
2726 + ],
2727 + ],
2728 + ],
2729 + ],
2730 + 'step_menu_font_size' => [
2731 + 'id' => 'step_menu_font_size',
2732 + 'label' => esc_html__( 'Font Size (px)', 'shopbuilder' ),
2733 + 'isPro' => ! rtsb()->has_pro(),
2734 + 'type' => 'slider',
2735 + 'min' => 10,
2736 + 'max' => 50,
2737 + 'unit' => 'px',
2738 + 'value' => 15,
2739 + 'tab' => 'styles',
2740 + 'dependency' => [
2741 + 'rules' => [
2742 + [
2743 + 'item' => 'modules.shopify_checkout.enable_multi_step',
2744 + 'value' => 'on',
2745 + 'operator' => '==',
2746 + ],
2747 + [
2748 + 'item' => 'modules.shopify_checkout.show_step_menu',
2749 + 'value' => 'on',
2750 + 'operator' => '==',
2751 + ],
2752 + ],
2753 + ],
2754 + ],
2755 + ];
2756 + return $fields;
2757 + }
1311 2758 /**
1312 2759 * @return array
1313 2760 */
1314 2761 public function product_badges_fields() {