/
robokassa
/
cms-wordpress
Обзор
Документация
Войти
/
robokassa
/
cms-wordpress
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
1.7.3
payment-widget.php
848 строк
126 KB
draxon
feat: добавлен выбор признака предмета расчёта для доставки, обновлены логотипы, мелкие правки
23 июн 2025, 22:48
23 июн 2025, 22:48
d580627
Код
Авторство
О чём код?
<?php add_filter('woocommerce_available_payment_gateways', 'select_payment_method'); add_action('woocommerce_single_product_summary', 'payment_product_widget', 25); add_action('woocommerce_proceed_to_checkout', 'payment_cart_widget'); function payment_product_widget() { global $product; $price = $product->get_price(); $product_id = $product->get_id(); $podeli_2w_date = wp_date('d M', strtotime('+2 weeks')); $podeli_4w_date = wp_date('d M', strtotime('+4 weeks')); $podeli_6w_date = wp_date('d M', strtotime('+6 weeks')); if (get_option('robokassa_payment_podeli_widget_onoff') === 'true' && $price > 300 && $price < 35000) { if (get_option('robokassa_podeli_widget_style') == 0) { echo ' <div class="wiget-block-v3"> <button class="podeli-action-button"> <div class="podeli-action-button__icons podeli-action-button__icons_v2"> <svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <rect width="24" height="24" rx="12" fill="white"/> <g transform="translate(3, 6) scale(0.12)"> <path d="M74.2524 0.5L0.985107 100.5H88.1138L160.985 0.5H74.2524Z" fill="black"/> </g> </svg> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <rect width="24" height="24" rx="12" fill="#EE3124"/> <path d="M12 4C7.57233 4 4 7.5891 4 12C4 16.4109 7.5891 20 12 20C16.4277 20 20 16.4109 20 12C20 7.5891 16.4109 4 12 4ZM12 18.0042C8.69602 18.0042 5.99581 15.3208 5.99581 12C5.99581 8.67925 8.67924 5.99581 12 5.99581C15.3208 5.99581 18.0042 8.67925 18.0042 12C18.0042 15.3208 15.304 18.0042 12 18.0042Z" fill="white"/> <path d="M11.9414 4.99924C11.9414 5.48561 12.2936 5.92167 12.7968 5.98876C15.4299 6.35773 17.5095 8.43739 17.8785 11.0705C17.9456 11.5569 18.3817 11.9259 18.868 11.9259C19.4718 11.9259 19.9414 11.3892 19.8575 10.7854C19.3544 7.28016 16.5703 4.49609 13.0651 4.00972C12.4613 3.92586 11.9414 4.39546 11.9414 4.99924Z" fill="#1D2939"/> </svg> </div> <span class="podeli-action-button__text"> Оплатить по частям </span> </button> <div class="podeli-wrapper"> <div class="rb-modal"> <button id="closeModal" class="rb-modal__close close-modal"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M16.6472 8.70065C17.0342 8.30659 17.0284 7.67345 16.6344 7.2865C16.2403 6.89954 15.6072 6.90529 15.2202 7.29935L11.9897 10.5891L8.70065 7.35935C8.30659 6.97239 7.67345 6.97815 7.28649 7.37221C6.89954 7.76627 6.90529 8.3994 7.29935 8.78636L10.5884 12.0161L7.36015 15.3036C6.97319 15.6977 6.97894 16.3308 7.373 16.7178C7.76706 17.1047 8.4002 17.099 8.78716 16.7049L12.0154 13.4174L15.3036 16.6464C15.6977 17.0334 16.3308 17.0276 16.7178 16.6336C17.1047 16.2395 17.099 15.6064 16.7049 15.2194L13.4167 11.9904L16.6472 8.70065Z" fill="#8F95AE" /> </svg> </button> <div class="rb-modal-logotypes"> <div class="robokassa-logo"> <svg width="120" height="18" viewBox="0 0 2008 300" fill="none" xmlns="http://www.w3.org/2000/svg"> <g clip-path="url(#clip0_1326_12)"> <path d="M275.069 246.767C239.296 246.767 217.546 220.741 217.546 186.672C217.546 152.603 239.296 126.932 275.069 126.932C310.842 126.932 332.591 151.656 332.591 186.672C332.591 221.688 310.842 246.767 275.069 246.767ZM275.069 73.6987C206.969 73.6987 161.213 120.071 161.213 186.672C161.213 253.273 208.157 300 275.069 300C341.98 300 388.568 252.326 388.568 186.672C388.568 121.017 343.168 73.6987 275.069 73.6987Z" fill="black"/> <path d="M55.6759 78.6672H0.292969V295.032H55.6759V78.6672Z" fill="black"/> <path d="M116.407 78.6672L59.479 156.506H127.222L184.15 78.6672H116.407Z" fill="black"/> <path d="M1873.21 250.67C1856.34 250.67 1844.57 240.497 1844.57 228.667C1844.57 217.547 1852.06 209.74 1867.03 209.74H1925.15C1918.85 233.754 1897.69 250.67 1873.33 250.67M1978.15 243.691V153.549C1978.15 112.263 1944.52 78.7855 1903.04 78.7855H1806.3V130.008H1899.83C1913.5 130.008 1924.67 141.128 1924.67 154.732V166.207H1866.2C1814.14 166.207 1790.85 196.017 1790.85 228.312C1790.85 268.178 1820.56 297.043 1868.34 297.043C1897.69 297.043 1920.04 283.675 1933.47 262.855C1938.46 284.148 1958.19 295.15 1977.8 295.15H2008.1V243.691H1978.27H1978.15Z" fill="black"/> <path d="M1491.12 167.863C1480.78 166.798 1447.74 163.959 1435.26 162.303C1419.57 160.173 1413.51 152.721 1413.51 144.677C1413.51 133.793 1422.19 123.147 1451.18 123.147C1483.39 123.147 1494.44 138.407 1496.58 153.431H1546.62C1546.62 116.049 1513.46 75.1183 1450.71 75.1183C1392 75.1183 1359.79 107.413 1359.79 145.505C1359.79 177.918 1381.42 202.287 1416.12 206.664C1438.71 209.385 1455.82 211.159 1475.55 213.17C1492.31 214.826 1497.3 220.741 1497.3 228.667C1497.3 239.905 1487.2 250.67 1454.87 250.67C1422.54 250.67 1408.76 237.539 1406.5 221.451H1356.46C1356.46 265.812 1395.8 298.817 1455.23 298.817C1514.65 298.817 1551.14 267.114 1551.14 227.011C1551.14 195.544 1531.88 171.885 1491.12 167.863Z" fill="black"/> <path d="M1708.25 167.863C1697.91 166.798 1664.87 163.959 1652.39 162.303C1636.71 160.173 1630.64 152.721 1630.64 144.677C1630.64 133.793 1639.32 123.147 1668.32 123.147C1700.53 123.147 1711.58 138.407 1713.72 153.431H1763.75C1763.75 116.049 1730.59 75.1183 1667.84 75.1183C1609.13 75.1183 1576.93 107.413 1576.93 145.505C1576.93 177.918 1598.56 202.287 1633.26 206.664C1655.84 209.385 1672.95 211.159 1692.68 213.17C1709.44 214.826 1714.43 220.741 1714.43 228.667C1714.43 239.905 1704.33 250.67 1672 250.67C1639.68 250.67 1625.89 237.539 1623.63 221.451H1573.6C1573.6 265.812 1612.94 298.817 1672.36 298.817C1731.78 298.817 1768.27 267.114 1768.27 227.011C1768.27 195.544 1749.02 171.885 1708.25 167.863Z" fill="black"/> <path d="M1204.58 250.789C1187.7 250.789 1175.93 240.615 1175.93 228.785C1175.93 217.666 1183.54 209.858 1198.4 209.858H1256.51C1250.21 233.872 1229.06 250.789 1204.69 250.789M1309.52 153.549C1309.52 112.263 1275.88 78.7855 1234.41 78.7855H1137.66V130.008H1231.2C1244.87 130.008 1256.04 141.128 1256.04 154.732V166.207H1197.56C1145.51 166.207 1122.21 196.017 1122.21 228.312C1122.21 268.178 1151.93 297.043 1199.7 297.043C1229.06 297.043 1251.4 283.675 1264.83 262.855C1269.82 284.148 1289.55 295.15 1309.16 295.15H1339.47V243.691H1309.64V153.549H1309.52Z" fill="black"/> <path d="M767.573 246.767C731.8 246.767 710.051 220.741 710.051 186.672C710.051 152.603 731.8 126.932 767.573 126.932C803.346 126.932 825.095 151.656 825.095 186.672C825.095 221.688 803.346 246.767 767.573 246.767ZM767.573 73.6987C699.473 73.6987 653.717 120.071 653.717 186.672C653.717 253.273 700.662 300 767.573 300C834.484 300 881.073 252.326 881.073 186.672C881.073 121.017 835.673 73.6987 767.573 73.6987Z" fill="black"/> <path d="M1110.92 78.6672H1042.82L964.741 185.252L1046.15 295.032H1114.49L1032.84 184.661L1110.92 78.6672Z" fill="black"/> <path d="M959.512 0H904.129V295.15H959.512V0Z" fill="black"/> <path d="M522.272 247.003C486.498 247.003 464.631 220.978 464.631 186.909C464.631 152.839 486.38 127.05 522.272 127.05C558.164 127.05 579.913 151.893 579.913 186.909C579.913 221.924 558.164 247.003 522.272 247.003ZM527.263 73.6987C501.473 73.6987 479.249 82.6893 464.393 96.6483V0H408.653V184.069C408.653 254.456 453.221 300 522.866 300C588.232 300 635.652 251.972 635.652 186.199C635.652 120.426 593.937 73.6987 527.263 73.6987Z" fill="black"/> </g> <defs> <clipPath id="clip0_1326_12"> <rect width="2007.69" height="300" fill="white" transform="translate(0.292969)"/> </clipPath> </defs> </svg> </div> <span class="separate-logo"></span> <div class="podeli-logo"> <svg width="120" height="30" viewBox="0 0 72 12" fill="none" xmlns="http://www.w3.org/2000/svg"> <g clip-path="url(#clip0_19_387)"> <path d="M9.49492 11.6981C9.49492 7.87421 9.49492 4.08804 9.49492 0.30188C6.31734 0.30188 3.15236 0.30188 0 0.30188C0 4.1132 0 7.89936 0 11.6981C0.516988 11.6981 1.02137 11.6981 1.56357 11.6981C1.56357 8.35219 1.56357 5.03144 1.56357 1.69811C3.70718 1.69811 5.82557 1.69811 7.96918 1.69811C7.96918 5.04402 7.96918 8.36477 7.96918 11.6981C8.48617 11.6981 8.97793 11.6981 9.49492 11.6981Z" fill="#EE3124" /> <path d="M49.0382 6.56604C49.0508 6.37736 49.0634 6.18868 49.0634 6C49.0634 5.69811 49.0382 5.4088 49.0004 5.1195C48.5716 2.22642 46.075 0 43.0487 0C39.7324 0 37.034 2.69182 37.034 6C37.034 9.30818 39.7324 12 43.0487 12C45.6715 12 47.8907 10.327 48.723 8H47.0837C46.3524 9.48428 44.814 10.4906 43.0487 10.4906C40.7538 10.4906 38.8498 8.77987 38.5723 6.55346L49.0382 6.56604ZM43.0487 1.50943C45.2301 1.50943 47.0585 3.06918 47.4746 5.13207H38.6354C39.0389 3.0566 40.8547 1.50943 43.0487 1.50943Z" fill="#EE3124" /> <path d="M35.6469 10.2767L31.5362 1.06918C31.3345 0.603767 30.8679 0.30188 30.351 0.30188C29.834 0.30188 29.3674 0.603767 29.1657 1.06918L25.055 10.2767H23.6553V11.6981H37.0592V10.2767H35.6469ZM30.351 2.01257L33.9573 10.2767H26.7447L30.351 2.01257Z" fill="#EE3124" /> <path d="M60.538 11.6981L56.049 1.08175C55.8473 0.61634 55.3933 0.314453 54.8763 0.314453C54.372 0.314453 53.9054 0.61634 53.7037 1.08175L49.2021 11.6981H50.8918L54.8637 2.10062L58.8483 11.6981H60.538Z" fill="#EE3124" /> <path d="M70.4617 0.30188H70.4364L63.6273 9.53458V0.30188H62.089V11.6101V11.6981H63.6273L70.4617 2.44024V11.6981H72V0.364773V0.30188H70.4617Z" fill="#EE3124" /> <path d="M17.5776 0C14.2487 0 11.5629 2.69182 11.5629 6C11.5629 9.30818 14.2613 12 17.5776 12C20.9065 12 23.5923 9.30818 23.5923 6C23.5923 2.69182 20.8939 0 17.5776 0ZM17.5776 10.5031C15.0935 10.5031 13.0634 8.49057 13.0634 6C13.0634 3.50943 15.0809 1.49686 17.5776 1.49686C20.0743 1.49686 22.0918 3.50943 22.0918 6C22.0918 8.49057 20.0616 10.5031 17.5776 10.5031Z" fill="#EE3124" /> <path d="M17.5776 0.805092C17.5776 1.16987 17.8424 1.49692 18.2207 1.54723C20.2003 1.82396 21.7639 3.38371 22.0413 5.35855C22.0918 5.72333 22.4196 6.00006 22.7853 6.00006C23.2392 6.00006 23.5923 5.59755 23.5292 5.14472C23.151 2.51578 21.0578 0.427734 18.4224 0.062954C17.9685 6.08936e-05 17.5776 0.352262 17.5776 0.805092Z" fill="#263238" /> </g> <defs> <clipPath id="clip0_19_387"> <rect width="72" height="12" fill="white" /> </clipPath> </defs> </svg> </div> </div> <div class="rb-modal-content"> <p class="rb-modal-content__title"> 25% сегодня, остальное – потом </p> <p class="rb-modal-content__text"> Оплатите сегодня 25% стоимости покупки, а остальное — тремя платежами раз в две недели. </p> <div class="rb-modal-content__info"> <div class="rb-modal-content__info-item"> <span class="info-item-icon"> <svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M21.2242 11.1112L21.2241 11.1112L21.2304 11.1207C21.4048 11.3822 21.5 11.6975 21.5 12.0221C21.5 12.3405 21.4063 12.6568 21.2315 12.9262L20.2871 14.3121L20.279 14.3241L20.271 14.3362C19.971 14.7905 19.771 15.2878 19.6643 15.7969L19.6627 15.8043L19.3136 17.5014L19.3136 17.5014L19.3119 17.5098C19.2477 17.8286 19.0926 18.1152 18.8702 18.3358C18.6306 18.5732 18.3389 18.728 18.0318 18.7898L18.0318 18.7898L18.0234 18.7915L16.3264 19.1407L16.3264 19.1406L16.319 19.1422C15.8099 19.2489 15.3125 19.4489 14.8583 19.7489L14.8581 19.749L13.4129 20.7036L13.4009 20.7116L13.3889 20.7197C13.1239 20.9003 12.816 20.9968 12.4939 21C12.1665 20.9988 11.8545 20.9035 11.596 20.7317L11.5941 20.7304L10.1758 19.779L10.1698 19.775L10.1638 19.771C9.7095 19.471 9.21213 19.271 8.7031 19.1643L8.69568 19.1628L6.99861 18.8136L6.99862 18.8136L6.9902 18.8119C6.6714 18.7478 6.38476 18.5927 6.16422 18.3702C5.92673 18.1306 5.77195 17.8389 5.71016 17.5319L5.71018 17.5319L5.70845 17.5235L5.36031 15.8313L5.35974 15.8285C5.24886 15.2846 5.02969 14.7708 4.72079 14.3173L3.77496 12.9073C3.59739 12.6372 3.50439 12.3249 3.50439 12C3.50439 11.6714 3.59938 11.3546 3.77172 11.0909L4.72096 9.67583L4.72499 9.66983L4.72897 9.66379C5.02896 9.20953 5.22894 8.71215 5.33567 8.20312L5.33569 8.20312L5.33721 8.19571L5.68635 6.49864L5.68867 6.48736L5.69086 6.47605C5.75221 6.1594 5.90628 5.8701 6.13155 5.64483C6.36492 5.41146 6.65979 5.2524 6.97851 5.18596L6.97993 5.18567L8.66869 4.83824L8.67146 4.83767C9.17928 4.73419 9.68526 4.53922 10.1494 4.23837L10.1567 4.23365L10.164 4.22886L11.6091 3.27426L11.6105 3.27333C11.8816 3.09396 12.1955 3 12.5221 3C12.8486 3 13.1636 3.09383 13.4263 3.26416L14.8121 4.20843L14.8241 4.21659L14.8362 4.22457C15.2904 4.52456 15.7878 4.72455 16.2969 4.83128L16.3004 4.83202L18.0019 5.18557L18.0019 5.18561L18.0142 5.18809C18.333 5.25225 18.6196 5.40733 18.8401 5.6298C19.0776 5.86937 19.2324 6.16111 19.2942 6.46813L19.2942 6.46813L19.2959 6.47654L19.6441 8.16871L19.6446 8.17137C19.7548 8.7121 19.972 9.22299 20.278 9.67451L21.2242 11.1112ZM21.9399 15.4383L22.8945 14.0374C23.2878 13.4407 23.5 12.738 23.5 12.0221C23.5 11.3106 23.2923 10.6079 22.8945 10.0112L21.9399 8.56167C21.7764 8.32302 21.6615 8.05344 21.604 7.77059L21.2549 6.07352C21.1135 5.37083 20.7643 4.73001 20.2605 4.22178C19.7567 3.71354 19.1115 3.36882 18.4088 3.2274L16.7073 2.87385C16.4333 2.81639 16.1725 2.71033 15.9383 2.55564L14.5373 1.60104C13.9407 1.20771 13.238 1 12.5221 1C11.8061 1 11.1079 1.20771 10.5068 1.60546L9.06165 2.56006C8.823 2.71474 8.55341 2.82081 8.27057 2.87826L6.5735 3.2274C5.87081 3.37324 5.22557 3.72238 4.71733 4.23061C4.2091 4.73885 3.86438 5.38851 3.72738 6.09562L3.37824 7.79269C3.32079 8.06669 3.21472 8.32744 3.06004 8.56167L2.10544 9.98473C1.71211 10.5814 1.50439 11.284 1.50439 12C1.50439 12.716 1.71211 13.4142 2.10986 14.0153L3.06446 15.4383C3.22798 15.677 3.34288 15.9466 3.40034 16.2294L3.74947 17.9265C3.8909 18.6292 4.24003 19.27 4.74385 19.7782C5.24767 20.2865 5.8929 20.6312 6.5956 20.7726L8.29266 21.1217C8.56667 21.1792 8.82742 21.2853 9.06165 21.4399L10.4847 22.3945C11.0813 22.7923 11.784 23 12.5 23C13.2203 22.9956 13.9186 22.779 14.5152 22.3724L15.9604 21.4178C16.1946 21.2632 16.4554 21.1571 16.7294 21.0996L18.4265 20.7505C19.1291 20.6091 19.77 20.2599 20.2782 19.7561C20.7864 19.2523 21.1312 18.6071 21.2726 17.9044L21.6217 16.2073C21.6792 15.9333 21.7852 15.6726 21.9399 15.4383ZM10.3023 9.79787C10.9097 9.79787 11.4021 9.30548 11.4021 8.69809C11.4021 8.0907 10.9097 7.59831 10.3023 7.59831C9.69489 7.59831 9.2025 8.0907 9.2025 8.69809C9.2025 9.30548 9.69489 9.79787 10.3023 9.79787ZM15.8012 15.2968C16.4086 15.2968 16.901 14.8044 16.901 14.197C16.901 13.5896 16.4086 13.0972 15.8012 13.0972C15.1938 13.0972 14.7014 13.5896 14.7014 14.197C14.7014 14.8044 15.1938 15.2968 15.8012 15.2968ZM14.0577 8.88689C14.4872 8.4574 15.1836 8.4574 15.6131 8.88689C16.0425 9.31638 16.0425 10.0127 15.6131 10.4422L10.9471 15.1082C10.5176 15.5377 9.82125 15.5377 9.39176 15.1082C8.96227 14.6787 8.96227 13.9823 9.39176 13.5529L14.0577 8.88689Z" fill="#455A64" /> </svg> </span> <span class="info-item-text"> Без процентов и комиссий </span> </div> <div class="rb-modal-content__info-item"> <span class="info-item-icon"> <svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M2.5 7C2.5 5.34315 3.84315 4 5.5 4H19.5C21.1569 4 22.5 5.34315 22.5 7V17C22.5 18.6569 21.1569 20 19.5 20H5.5C3.84315 20 2.5 18.6569 2.5 17V7ZM5.5 6C4.94772 6 4.5 6.44772 4.5 7V9H17.5C18.0523 9 18.5 9.44772 18.5 10C18.5 10.5523 18.0523 11 17.5 11H4.5V17C4.5 17.5523 4.94772 18 5.5 18H19.5C20.0523 18 20.5 17.5523 20.5 17V7C20.5 6.44772 20.0523 6 19.5 6H5.5ZM15.5 14C14.9477 14 14.5 14.4477 14.5 15C14.5 15.5523 14.9477 16 15.5 16H17.5C18.0523 16 18.5 15.5523 18.5 15C18.5 14.4477 18.0523 14 17.5 14H15.5Z" fill="#455A64" /> </svg> </span> <span class="info-item-text"> Быстро и удобно как обычная оплата картой </span> </div> </div> <div class="wiget-block-split"> <div class="wiget-block-split__item"> <p class="split-item-day">Сегодня</p> <p class="split-item-payment">' . $price / 4 . ' ₽</p> </div> <div class="wiget-block-split__item wiget-block-split__item_disable"> <p class="split-item-day">' . $podeli_2w_date . '</p> <p class="split-item-payment">' . $price / 4 . ' ₽</p> </div> <div class="wiget-block-split__item wiget-block-split__item_disable"> <p class="split-item-day">' . $podeli_4w_date . '</p> <p class="split-item-payment">' . $price / 4 . ' ₽</p> </div> <div class="wiget-block-split__item wiget-block-split__item_disable"> <p class="split-item-day">' . $podeli_6w_date . '</p> <p class="split-item-payment">' . $price / 4 . ' ₽</p> </div> </div> </div> <a href="/checkout/?add-to-cart=' . $product_id . '&source=podeli_widget" class="rb-modal-link"> оформить покупку в 4 платежа </a> </div> </div> </div> '; } else { echo ' <div class="wiget-block-wrapper"> <div class="wiget-block-v2"> <button class="podeli-action-button2" style="all: initial;"> <div class="wiget-head-v2"> <div class="wiget-head-v2__text"> <span class="text__payment"> ' . $price / 4 . ' ₽ </span> <span class="text__payment-length"> х 4 платежа </span> </div> <div class="wiget-head-v2__button"> Оплатить 25% </div> </div> <div class="wiget-block-split"> <div class="wiget-block-split__item"> <p class="split-item-day">Сегодня</p> <p class="split-item-payment">' . $price / 4 . ' ₽</p> </div> <div class="wiget-block-split__item wiget-block-split__item_disable"> <p class="split-item-day">' . $podeli_2w_date . '</p> <p class="split-item-payment">' . $price / 4 . ' ₽</p> </div> <div class="wiget-block-split__item wiget-block-split__item_disable"> <p class="split-item-day">' . $podeli_4w_date . '</p> <p class="split-item-payment">' . $price / 4 . ' ₽</p> </div> <div class="wiget-block-split__item wiget-block-split__item_disable"> <p class="split-item-day">' . $podeli_6w_date . '</p> <p class="split-item-payment">' . $price / 4 . ' ₽</p> </div> </div> </button> <div class="podeli-wrapper"> <div class="rb-modal"> <button id="closeModal" class="rb-modal__close close-modal"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M16.6472 8.70065C17.0342 8.30659 17.0284 7.67345 16.6344 7.2865C16.2403 6.89954 15.6072 6.90529 15.2202 7.29935L11.9897 10.5891L8.70065 7.35935C8.30659 6.97239 7.67345 6.97815 7.28649 7.37221C6.89954 7.76627 6.90529 8.3994 7.29935 8.78636L10.5884 12.0161L7.36015 15.3036C6.97319 15.6977 6.97894 16.3308 7.373 16.7178C7.76706 17.1047 8.4002 17.099 8.78716 16.7049L12.0154 13.4174L15.3036 16.6464C15.6977 17.0334 16.3308 17.0276 16.7178 16.6336C17.1047 16.2395 17.099 15.6064 16.7049 15.2194L13.4167 11.9904L16.6472 8.70065Z" fill="#8F95AE" /> </svg> </button> <div class="rb-modal-logotypes"> <div class="robokassa-logo"> <svg width="120" height="18" viewBox="0 0 2008 300" fill="none" xmlns="http://www.w3.org/2000/svg"> <g clip-path="url(#clip0_1326_12)"> <path d="M275.069 246.767C239.296 246.767 217.546 220.741 217.546 186.672C217.546 152.603 239.296 126.932 275.069 126.932C310.842 126.932 332.591 151.656 332.591 186.672C332.591 221.688 310.842 246.767 275.069 246.767ZM275.069 73.6987C206.969 73.6987 161.213 120.071 161.213 186.672C161.213 253.273 208.157 300 275.069 300C341.98 300 388.568 252.326 388.568 186.672C388.568 121.017 343.168 73.6987 275.069 73.6987Z" fill="black"/> <path d="M55.6759 78.6672H0.292969V295.032H55.6759V78.6672Z" fill="black"/> <path d="M116.407 78.6672L59.479 156.506H127.222L184.15 78.6672H116.407Z" fill="black"/> <path d="M1873.21 250.67C1856.34 250.67 1844.57 240.497 1844.57 228.667C1844.57 217.547 1852.06 209.74 1867.03 209.74H1925.15C1918.85 233.754 1897.69 250.67 1873.33 250.67M1978.15 243.691V153.549C1978.15 112.263 1944.52 78.7855 1903.04 78.7855H1806.3V130.008H1899.83C1913.5 130.008 1924.67 141.128 1924.67 154.732V166.207H1866.2C1814.14 166.207 1790.85 196.017 1790.85 228.312C1790.85 268.178 1820.56 297.043 1868.34 297.043C1897.69 297.043 1920.04 283.675 1933.47 262.855C1938.46 284.148 1958.19 295.15 1977.8 295.15H2008.1V243.691H1978.27H1978.15Z" fill="black"/> <path d="M1491.12 167.863C1480.78 166.798 1447.74 163.959 1435.26 162.303C1419.57 160.173 1413.51 152.721 1413.51 144.677C1413.51 133.793 1422.19 123.147 1451.18 123.147C1483.39 123.147 1494.44 138.407 1496.58 153.431H1546.62C1546.62 116.049 1513.46 75.1183 1450.71 75.1183C1392 75.1183 1359.79 107.413 1359.79 145.505C1359.79 177.918 1381.42 202.287 1416.12 206.664C1438.71 209.385 1455.82 211.159 1475.55 213.17C1492.31 214.826 1497.3 220.741 1497.3 228.667C1497.3 239.905 1487.2 250.67 1454.87 250.67C1422.54 250.67 1408.76 237.539 1406.5 221.451H1356.46C1356.46 265.812 1395.8 298.817 1455.23 298.817C1514.65 298.817 1551.14 267.114 1551.14 227.011C1551.14 195.544 1531.88 171.885 1491.12 167.863Z" fill="black"/> <path d="M1708.25 167.863C1697.91 166.798 1664.87 163.959 1652.39 162.303C1636.71 160.173 1630.64 152.721 1630.64 144.677C1630.64 133.793 1639.32 123.147 1668.32 123.147C1700.53 123.147 1711.58 138.407 1713.72 153.431H1763.75C1763.75 116.049 1730.59 75.1183 1667.84 75.1183C1609.13 75.1183 1576.93 107.413 1576.93 145.505C1576.93 177.918 1598.56 202.287 1633.26 206.664C1655.84 209.385 1672.95 211.159 1692.68 213.17C1709.44 214.826 1714.43 220.741 1714.43 228.667C1714.43 239.905 1704.33 250.67 1672 250.67C1639.68 250.67 1625.89 237.539 1623.63 221.451H1573.6C1573.6 265.812 1612.94 298.817 1672.36 298.817C1731.78 298.817 1768.27 267.114 1768.27 227.011C1768.27 195.544 1749.02 171.885 1708.25 167.863Z" fill="black"/> <path d="M1204.58 250.789C1187.7 250.789 1175.93 240.615 1175.93 228.785C1175.93 217.666 1183.54 209.858 1198.4 209.858H1256.51C1250.21 233.872 1229.06 250.789 1204.69 250.789M1309.52 153.549C1309.52 112.263 1275.88 78.7855 1234.41 78.7855H1137.66V130.008H1231.2C1244.87 130.008 1256.04 141.128 1256.04 154.732V166.207H1197.56C1145.51 166.207 1122.21 196.017 1122.21 228.312C1122.21 268.178 1151.93 297.043 1199.7 297.043C1229.06 297.043 1251.4 283.675 1264.83 262.855C1269.82 284.148 1289.55 295.15 1309.16 295.15H1339.47V243.691H1309.64V153.549H1309.52Z" fill="black"/> <path d="M767.573 246.767C731.8 246.767 710.051 220.741 710.051 186.672C710.051 152.603 731.8 126.932 767.573 126.932C803.346 126.932 825.095 151.656 825.095 186.672C825.095 221.688 803.346 246.767 767.573 246.767ZM767.573 73.6987C699.473 73.6987 653.717 120.071 653.717 186.672C653.717 253.273 700.662 300 767.573 300C834.484 300 881.073 252.326 881.073 186.672C881.073 121.017 835.673 73.6987 767.573 73.6987Z" fill="black"/> <path d="M1110.92 78.6672H1042.82L964.741 185.252L1046.15 295.032H1114.49L1032.84 184.661L1110.92 78.6672Z" fill="black"/> <path d="M959.512 0H904.129V295.15H959.512V0Z" fill="black"/> <path d="M522.272 247.003C486.498 247.003 464.631 220.978 464.631 186.909C464.631 152.839 486.38 127.05 522.272 127.05C558.164 127.05 579.913 151.893 579.913 186.909C579.913 221.924 558.164 247.003 522.272 247.003ZM527.263 73.6987C501.473 73.6987 479.249 82.6893 464.393 96.6483V0H408.653V184.069C408.653 254.456 453.221 300 522.866 300C588.232 300 635.652 251.972 635.652 186.199C635.652 120.426 593.937 73.6987 527.263 73.6987Z" fill="black"/> </g> <defs> <clipPath id="clip0_1326_12"> <rect width="2007.69" height="300" fill="white" transform="translate(0.292969)"/> </clipPath> </defs> </svg> </div> <span class="separate-logo"></span> <div class="podeli-logo"> <svg width="120" height="30" viewBox="0 0 72 12" fill="none" xmlns="http://www.w3.org/2000/svg"> <g clip-path="url(#clip0_19_387)"> <path d="M9.49492 11.6981C9.49492 7.87421 9.49492 4.08804 9.49492 0.30188C6.31734 0.30188 3.15236 0.30188 0 0.30188C0 4.1132 0 7.89936 0 11.6981C0.516988 11.6981 1.02137 11.6981 1.56357 11.6981C1.56357 8.35219 1.56357 5.03144 1.56357 1.69811C3.70718 1.69811 5.82557 1.69811 7.96918 1.69811C7.96918 5.04402 7.96918 8.36477 7.96918 11.6981C8.48617 11.6981 8.97793 11.6981 9.49492 11.6981Z" fill="#EE3124" /> <path d="M49.0382 6.56604C49.0508 6.37736 49.0634 6.18868 49.0634 6C49.0634 5.69811 49.0382 5.4088 49.0004 5.1195C48.5716 2.22642 46.075 0 43.0487 0C39.7324 0 37.034 2.69182 37.034 6C37.034 9.30818 39.7324 12 43.0487 12C45.6715 12 47.8907 10.327 48.723 8H47.0837C46.3524 9.48428 44.814 10.4906 43.0487 10.4906C40.7538 10.4906 38.8498 8.77987 38.5723 6.55346L49.0382 6.56604ZM43.0487 1.50943C45.2301 1.50943 47.0585 3.06918 47.4746 5.13207H38.6354C39.0389 3.0566 40.8547 1.50943 43.0487 1.50943Z" fill="#EE3124" /> <path d="M35.6469 10.2767L31.5362 1.06918C31.3345 0.603767 30.8679 0.30188 30.351 0.30188C29.834 0.30188 29.3674 0.603767 29.1657 1.06918L25.055 10.2767H23.6553V11.6981H37.0592V10.2767H35.6469ZM30.351 2.01257L33.9573 10.2767H26.7447L30.351 2.01257Z" fill="#EE3124" /> <path d="M60.538 11.6981L56.049 1.08175C55.8473 0.61634 55.3933 0.314453 54.8763 0.314453C54.372 0.314453 53.9054 0.61634 53.7037 1.08175L49.2021 11.6981H50.8918L54.8637 2.10062L58.8483 11.6981H60.538Z" fill="#EE3124" /> <path d="M70.4617 0.30188H70.4364L63.6273 9.53458V0.30188H62.089V11.6101V11.6981H63.6273L70.4617 2.44024V11.6981H72V0.364773V0.30188H70.4617Z" fill="#EE3124" /> <path d="M17.5776 0C14.2487 0 11.5629 2.69182 11.5629 6C11.5629 9.30818 14.2613 12 17.5776 12C20.9065 12 23.5923 9.30818 23.5923 6C23.5923 2.69182 20.8939 0 17.5776 0ZM17.5776 10.5031C15.0935 10.5031 13.0634 8.49057 13.0634 6C13.0634 3.50943 15.0809 1.49686 17.5776 1.49686C20.0743 1.49686 22.0918 3.50943 22.0918 6C22.0918 8.49057 20.0616 10.5031 17.5776 10.5031Z" fill="#EE3124" /> <path d="M17.5776 0.805092C17.5776 1.16987 17.8424 1.49692 18.2207 1.54723C20.2003 1.82396 21.7639 3.38371 22.0413 5.35855C22.0918 5.72333 22.4196 6.00006 22.7853 6.00006C23.2392 6.00006 23.5923 5.59755 23.5292 5.14472C23.151 2.51578 21.0578 0.427734 18.4224 0.062954C17.9685 6.08936e-05 17.5776 0.352262 17.5776 0.805092Z" fill="#263238" /> </g> <defs> <clipPath id="clip0_19_387"> <rect width="72" height="12" fill="white" /> </clipPath> </defs> </svg> </div> </div> <div class="rb-modal-content"> <p class="rb-modal-content__title"> 25% сегодня, остальное – потом </p> <p class="rb-modal-content__text"> Оплатите сегодня 25% стоимости покупки, а остальное — тремя платежами раз в две недели. </p> <div class="rb-modal-content__info"> <div class="rb-modal-content__info-item"> <span class="info-item-icon"> <svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M21.2242 11.1112L21.2241 11.1112L21.2304 11.1207C21.4048 11.3822 21.5 11.6975 21.5 12.0221C21.5 12.3405 21.4063 12.6568 21.2315 12.9262L20.2871 14.3121L20.279 14.3241L20.271 14.3362C19.971 14.7905 19.771 15.2878 19.6643 15.7969L19.6627 15.8043L19.3136 17.5014L19.3136 17.5014L19.3119 17.5098C19.2477 17.8286 19.0926 18.1152 18.8702 18.3358C18.6306 18.5732 18.3389 18.728 18.0318 18.7898L18.0318 18.7898L18.0234 18.7915L16.3264 19.1407L16.3264 19.1406L16.319 19.1422C15.8099 19.2489 15.3125 19.4489 14.8583 19.7489L14.8581 19.749L13.4129 20.7036L13.4009 20.7116L13.3889 20.7197C13.1239 20.9003 12.816 20.9968 12.4939 21C12.1665 20.9988 11.8545 20.9035 11.596 20.7317L11.5941 20.7304L10.1758 19.779L10.1698 19.775L10.1638 19.771C9.7095 19.471 9.21213 19.271 8.7031 19.1643L8.69568 19.1628L6.99861 18.8136L6.99862 18.8136L6.9902 18.8119C6.6714 18.7478 6.38476 18.5927 6.16422 18.3702C5.92673 18.1306 5.77195 17.8389 5.71016 17.5319L5.71018 17.5319L5.70845 17.5235L5.36031 15.8313L5.35974 15.8285C5.24886 15.2846 5.02969 14.7708 4.72079 14.3173L3.77496 12.9073C3.59739 12.6372 3.50439 12.3249 3.50439 12C3.50439 11.6714 3.59938 11.3546 3.77172 11.0909L4.72096 9.67583L4.72499 9.66983L4.72897 9.66379C5.02896 9.20953 5.22894 8.71215 5.33567 8.20312L5.33569 8.20312L5.33721 8.19571L5.68635 6.49864L5.68867 6.48736L5.69086 6.47605C5.75221 6.1594 5.90628 5.8701 6.13155 5.64483C6.36492 5.41146 6.65979 5.2524 6.97851 5.18596L6.97993 5.18567L8.66869 4.83824L8.67146 4.83767C9.17928 4.73419 9.68526 4.53922 10.1494 4.23837L10.1567 4.23365L10.164 4.22886L11.6091 3.27426L11.6105 3.27333C11.8816 3.09396 12.1955 3 12.5221 3C12.8486 3 13.1636 3.09383 13.4263 3.26416L14.8121 4.20843L14.8241 4.21659L14.8362 4.22457C15.2904 4.52456 15.7878 4.72455 16.2969 4.83128L16.3004 4.83202L18.0019 5.18557L18.0019 5.18561L18.0142 5.18809C18.333 5.25225 18.6196 5.40733 18.8401 5.6298C19.0776 5.86937 19.2324 6.16111 19.2942 6.46813L19.2942 6.46813L19.2959 6.47654L19.6441 8.16871L19.6446 8.17137C19.7548 8.7121 19.972 9.22299 20.278 9.67451L21.2242 11.1112ZM21.9399 15.4383L22.8945 14.0374C23.2878 13.4407 23.5 12.738 23.5 12.0221C23.5 11.3106 23.2923 10.6079 22.8945 10.0112L21.9399 8.56167C21.7764 8.32302 21.6615 8.05344 21.604 7.77059L21.2549 6.07352C21.1135 5.37083 20.7643 4.73001 20.2605 4.22178C19.7567 3.71354 19.1115 3.36882 18.4088 3.2274L16.7073 2.87385C16.4333 2.81639 16.1725 2.71033 15.9383 2.55564L14.5373 1.60104C13.9407 1.20771 13.238 1 12.5221 1C11.8061 1 11.1079 1.20771 10.5068 1.60546L9.06165 2.56006C8.823 2.71474 8.55341 2.82081 8.27057 2.87826L6.5735 3.2274C5.87081 3.37324 5.22557 3.72238 4.71733 4.23061C4.2091 4.73885 3.86438 5.38851 3.72738 6.09562L3.37824 7.79269C3.32079 8.06669 3.21472 8.32744 3.06004 8.56167L2.10544 9.98473C1.71211 10.5814 1.50439 11.284 1.50439 12C1.50439 12.716 1.71211 13.4142 2.10986 14.0153L3.06446 15.4383C3.22798 15.677 3.34288 15.9466 3.40034 16.2294L3.74947 17.9265C3.8909 18.6292 4.24003 19.27 4.74385 19.7782C5.24767 20.2865 5.8929 20.6312 6.5956 20.7726L8.29266 21.1217C8.56667 21.1792 8.82742 21.2853 9.06165 21.4399L10.4847 22.3945C11.0813 22.7923 11.784 23 12.5 23C13.2203 22.9956 13.9186 22.779 14.5152 22.3724L15.9604 21.4178C16.1946 21.2632 16.4554 21.1571 16.7294 21.0996L18.4265 20.7505C19.1291 20.6091 19.77 20.2599 20.2782 19.7561C20.7864 19.2523 21.1312 18.6071 21.2726 17.9044L21.6217 16.2073C21.6792 15.9333 21.7852 15.6726 21.9399 15.4383ZM10.3023 9.79787C10.9097 9.79787 11.4021 9.30548 11.4021 8.69809C11.4021 8.0907 10.9097 7.59831 10.3023 7.59831C9.69489 7.59831 9.2025 8.0907 9.2025 8.69809C9.2025 9.30548 9.69489 9.79787 10.3023 9.79787ZM15.8012 15.2968C16.4086 15.2968 16.901 14.8044 16.901 14.197C16.901 13.5896 16.4086 13.0972 15.8012 13.0972C15.1938 13.0972 14.7014 13.5896 14.7014 14.197C14.7014 14.8044 15.1938 15.2968 15.8012 15.2968ZM14.0577 8.88689C14.4872 8.4574 15.1836 8.4574 15.6131 8.88689C16.0425 9.31638 16.0425 10.0127 15.6131 10.4422L10.9471 15.1082C10.5176 15.5377 9.82125 15.5377 9.39176 15.1082C8.96227 14.6787 8.96227 13.9823 9.39176 13.5529L14.0577 8.88689Z" fill="#455A64" /> </svg> </span> <span class="info-item-text"> Без процентов и комиссий </span> </div> <div class="rb-modal-content__info-item"> <span class="info-item-icon"> <svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M2.5 7C2.5 5.34315 3.84315 4 5.5 4H19.5C21.1569 4 22.5 5.34315 22.5 7V17C22.5 18.6569 21.1569 20 19.5 20H5.5C3.84315 20 2.5 18.6569 2.5 17V7ZM5.5 6C4.94772 6 4.5 6.44772 4.5 7V9H17.5C18.0523 9 18.5 9.44772 18.5 10C18.5 10.5523 18.0523 11 17.5 11H4.5V17C4.5 17.5523 4.94772 18 5.5 18H19.5C20.0523 18 20.5 17.5523 20.5 17V7C20.5 6.44772 20.0523 6 19.5 6H5.5ZM15.5 14C14.9477 14 14.5 14.4477 14.5 15C14.5 15.5523 14.9477 16 15.5 16H17.5C18.0523 16 18.5 15.5523 18.5 15C18.5 14.4477 18.0523 14 17.5 14H15.5Z" fill="#455A64" /> </svg> </span> <span class="info-item-text"> Быстро и удобно как обычная оплата картой </span> </div> </div> <div class="wiget-block-split"> <div class="wiget-block-split__item"> <p class="split-item-day">Сегодня</p> <p class="split-item-payment">' . $price / 4 . ' ₽</p> </div> <div class="wiget-block-split__item wiget-block-split__item_disable"> <p class="split-item-day">' . $podeli_2w_date . '</p> <p class="split-item-payment">' . $price / 4 . ' ₽</p> </div> <div class="wiget-block-split__item wiget-block-split__item_disable"> <p class="split-item-day">' . $podeli_4w_date . '</p> <p class="split-item-payment">' . $price / 4 . ' ₽</p> </div> <div class="wiget-block-split__item wiget-block-split__item_disable"> <p class="split-item-day">' . $podeli_6w_date . '</p> <p class="split-item-payment">' . $price / 4 . ' ₽</p> </div> </div> </div> <a href="/checkout/?add-to-cart=' . $product_id . '&source=podeli_widget" class="rb-modal-link"> оформить покупку в 4 платежа </a> </div> </div> </div> </div> '; } } if (get_option('robokassa_payment_credit_selected_method') === 'credit' && get_option('robokassa_payment_credit_widget_onoff') === 'true' && $price > 1500 && $price < 500000) { $monthlyInterestRate = 0.02333; // Месячная процентная ставка (2,333% в десятичной форме) $months = 23; // Количество месяцев $monthlyPayment = ($price * $monthlyInterestRate * pow(1 + $monthlyInterestRate, $months)) / (pow(1 + $monthlyInterestRate, $months) - 1); $monthlyPayment = ceil($monthlyPayment * 100) / 100; $monthlyPayment = round($monthlyPayment); echo ' <div class="wiget-block-v3"> <button class="wiget-action-button"> <div class="wiget-action-button__icons podeli-action-button__icons_v2"> <svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <rect width="24" height="24" rx="12" fill="white"></rect> <g transform="translate(3, 6) scale(0.12)"> <path d="M74.2524 0.5L0.985107 100.5H88.1138L160.985 0.5H74.2524Z" fill="black"></path> </g> </svg> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <rect width="24" height="24" rx="12" fill="#CDFC68"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M4 12C4 7.61042 7.55556 4.09876 12 4.09876V6.9276C9.1358 6.9276 6.8642 9.17116 6.8642 12C6.8642 14.8288 9.1358 17.0724 12 17.0724C14.7654 17.0724 17.1358 14.8288 17.1358 12H20C20 16.3896 16.4444 19.9012 12 19.9012C7.55556 19.9012 4 16.3896 4 12Z" fill="#222222"/> <path d="M8.44446 12C8.44446 10.049 10.0247 8.4883 12 8.4883C13.9753 8.4883 15.5556 10.049 15.5556 12C15.5556 13.9509 13.9753 15.5116 12 15.5116C10.0247 15.5116 8.44446 13.9509 8.44446 12Z" fill="#222222"/> <path d="M14.4692 7.51297C14.4692 6.43996 15.3581 5.4645 16.5433 5.4645C17.6297 5.4645 18.6173 6.34242 18.6173 7.51297C18.6173 8.58598 17.7284 9.56144 16.5433 9.56144C15.3581 9.56144 14.4692 8.68352 14.4692 7.51297Z" fill="#222222"/> </svg> </div> <span class="wiget-action-button__text"> в кредит от ' . floor($monthlyPayment) . ' ₽/Мес </span> </button> <div class="rb-modal-wrapper"> <div class="rb-modal modal-v2"> <button class="rb-modal__close close-modal"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M16.6472 8.70065C17.0342 8.30659 17.0284 7.67345 16.6344 7.2865C16.2403 6.89954 15.6072 6.90529 15.2202 7.29935L11.9897 10.5891L8.70065 7.35935C8.30659 6.97239 7.67345 6.97815 7.28649 7.37221C6.89954 7.76627 6.90529 8.3994 7.29935 8.78636L10.5884 12.0161L7.36015 15.3036C6.97319 15.6977 6.97894 16.3308 7.373 16.7178C7.76706 17.1047 8.4002 17.099 8.78716 16.7049L12.0154 13.4174L15.3036 16.6464C15.6977 17.0334 16.3308 17.0276 16.7178 16.6336C17.1047 16.2395 17.099 15.6064 16.7049 15.2194L13.4167 11.9904L16.6472 8.70065Z" fill="#8F95AE"/> </svg> </button> <div class="rb-modal-logotypes"> <div class="robokassa-logo"> <svg width="120" height="18" viewBox="0 0 2008 300" fill="none" xmlns="http://www.w3.org/2000/svg"> <g clip-path="url(#clip0_1326_12)"> <path d="M275.069 246.767C239.296 246.767 217.546 220.741 217.546 186.672C217.546 152.603 239.296 126.932 275.069 126.932C310.842 126.932 332.591 151.656 332.591 186.672C332.591 221.688 310.842 246.767 275.069 246.767ZM275.069 73.6987C206.969 73.6987 161.213 120.071 161.213 186.672C161.213 253.273 208.157 300 275.069 300C341.98 300 388.568 252.326 388.568 186.672C388.568 121.017 343.168 73.6987 275.069 73.6987Z" fill="black"/> <path d="M55.6759 78.6672H0.292969V295.032H55.6759V78.6672Z" fill="black"/> <path d="M116.407 78.6672L59.479 156.506H127.222L184.15 78.6672H116.407Z" fill="black"/> <path d="M1873.21 250.67C1856.34 250.67 1844.57 240.497 1844.57 228.667C1844.57 217.547 1852.06 209.74 1867.03 209.74H1925.15C1918.85 233.754 1897.69 250.67 1873.33 250.67M1978.15 243.691V153.549C1978.15 112.263 1944.52 78.7855 1903.04 78.7855H1806.3V130.008H1899.83C1913.5 130.008 1924.67 141.128 1924.67 154.732V166.207H1866.2C1814.14 166.207 1790.85 196.017 1790.85 228.312C1790.85 268.178 1820.56 297.043 1868.34 297.043C1897.69 297.043 1920.04 283.675 1933.47 262.855C1938.46 284.148 1958.19 295.15 1977.8 295.15H2008.1V243.691H1978.27H1978.15Z" fill="black"/> <path d="M1491.12 167.863C1480.78 166.798 1447.74 163.959 1435.26 162.303C1419.57 160.173 1413.51 152.721 1413.51 144.677C1413.51 133.793 1422.19 123.147 1451.18 123.147C1483.39 123.147 1494.44 138.407 1496.58 153.431H1546.62C1546.62 116.049 1513.46 75.1183 1450.71 75.1183C1392 75.1183 1359.79 107.413 1359.79 145.505C1359.79 177.918 1381.42 202.287 1416.12 206.664C1438.71 209.385 1455.82 211.159 1475.55 213.17C1492.31 214.826 1497.3 220.741 1497.3 228.667C1497.3 239.905 1487.2 250.67 1454.87 250.67C1422.54 250.67 1408.76 237.539 1406.5 221.451H1356.46C1356.46 265.812 1395.8 298.817 1455.23 298.817C1514.65 298.817 1551.14 267.114 1551.14 227.011C1551.14 195.544 1531.88 171.885 1491.12 167.863Z" fill="black"/> <path d="M1708.25 167.863C1697.91 166.798 1664.87 163.959 1652.39 162.303C1636.71 160.173 1630.64 152.721 1630.64 144.677C1630.64 133.793 1639.32 123.147 1668.32 123.147C1700.53 123.147 1711.58 138.407 1713.72 153.431H1763.75C1763.75 116.049 1730.59 75.1183 1667.84 75.1183C1609.13 75.1183 1576.93 107.413 1576.93 145.505C1576.93 177.918 1598.56 202.287 1633.26 206.664C1655.84 209.385 1672.95 211.159 1692.68 213.17C1709.44 214.826 1714.43 220.741 1714.43 228.667C1714.43 239.905 1704.33 250.67 1672 250.67C1639.68 250.67 1625.89 237.539 1623.63 221.451H1573.6C1573.6 265.812 1612.94 298.817 1672.36 298.817C1731.78 298.817 1768.27 267.114 1768.27 227.011C1768.27 195.544 1749.02 171.885 1708.25 167.863Z" fill="black"/> <path d="M1204.58 250.789C1187.7 250.789 1175.93 240.615 1175.93 228.785C1175.93 217.666 1183.54 209.858 1198.4 209.858H1256.51C1250.21 233.872 1229.06 250.789 1204.69 250.789M1309.52 153.549C1309.52 112.263 1275.88 78.7855 1234.41 78.7855H1137.66V130.008H1231.2C1244.87 130.008 1256.04 141.128 1256.04 154.732V166.207H1197.56C1145.51 166.207 1122.21 196.017 1122.21 228.312C1122.21 268.178 1151.93 297.043 1199.7 297.043C1229.06 297.043 1251.4 283.675 1264.83 262.855C1269.82 284.148 1289.55 295.15 1309.16 295.15H1339.47V243.691H1309.64V153.549H1309.52Z" fill="black"/> <path d="M767.573 246.767C731.8 246.767 710.051 220.741 710.051 186.672C710.051 152.603 731.8 126.932 767.573 126.932C803.346 126.932 825.095 151.656 825.095 186.672C825.095 221.688 803.346 246.767 767.573 246.767ZM767.573 73.6987C699.473 73.6987 653.717 120.071 653.717 186.672C653.717 253.273 700.662 300 767.573 300C834.484 300 881.073 252.326 881.073 186.672C881.073 121.017 835.673 73.6987 767.573 73.6987Z" fill="black"/> <path d="M1110.92 78.6672H1042.82L964.741 185.252L1046.15 295.032H1114.49L1032.84 184.661L1110.92 78.6672Z" fill="black"/> <path d="M959.512 0H904.129V295.15H959.512V0Z" fill="black"/> <path d="M522.272 247.003C486.498 247.003 464.631 220.978 464.631 186.909C464.631 152.839 486.38 127.05 522.272 127.05C558.164 127.05 579.913 151.893 579.913 186.909C579.913 221.924 558.164 247.003 522.272 247.003ZM527.263 73.6987C501.473 73.6987 479.249 82.6893 464.393 96.6483V0H408.653V184.069C408.653 254.456 453.221 300 522.866 300C588.232 300 635.652 251.972 635.652 186.199C635.652 120.426 593.937 73.6987 527.263 73.6987Z" fill="black"/> </g> <defs> <clipPath id="clip0_1326_12"> <rect width="2007.69" height="300" fill="white" transform="translate(0.292969)"/> </clipPath> </defs> </svg> </div> <span class="separate-logo"></span> <div class="credit-logo"> <svg width="95" height="28" viewBox="0 0 95 28" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <rect x="0.579956" width="94.3529" height="28" fill="url(#pattern0_547_1184)"/> <defs> <pattern id="pattern0_547_1184" patternContentUnits="objectBoundingBox" width="1" height="1"> <use xlink:href="#image0_547_1184" transform="scale(0.00249377 0.00840336)"/> </pattern> <image id="image0_547_1184" width="401" height="119" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZEAAAB3CAYAAADCS318AAAMP2lDQ1BJQ0MgUHJvZmlsZQAASImVVwdYU8kWnltSSWgBBKSE3gSRGkBKCC2A9CLYC … [Строка слишком длинная. Вы можете скачать файл] </defs> </svg> </div> </div> <div class="rb-modal-content"> <h5 class="rb-modal-content__title"> ОТ ' . floor($monthlyPayment) . ' ₽ В МЕСЯЦ </h5> <h5 class="rb-modal-content__title"> Индивидуальные условия для покупки<br>товаров в кредит, чтобы не откладывать<br>покупку </h5> <p class="rb-modal-content__text"> Всего 10 минут на оформление документов, без визита в банк. </p> <div class="rb-modal-content__info"> <div class="rb-modal-content__info-item"> <span class="info-item-icon"> <!-- Иконка Кредита --> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M12.4472 2.10557C12.1657 1.96481 11.8343 1.96481 11.5528 2.10557L3.55279 6.10557C3.214 6.27496 3 6.62123 3 7V11C3 11.2652 3.10536 11.5196 3.29289 11.7071C3.48043 11.8946 3.73478 12 4 12H20C20.5523 12 21 11.5523 21 11V7C21 6.62123 20.786 6.27496 20.4472 6.10557L12.4472 2.10557ZM5 10V7.61803L12 4.11803L19 7.61803V10H5ZM4 20C3.44772 20 3 20.4477 3 21C3 21.5523 3.44772 22 4 22H20C20.5523 22 21 21.5523 21 21C21 20.4477 20.5523 20 20 20H19V15C19 14.4477 18.5523 14 18 14C17.4477 14 17 14.4477 17 15V20H15V15C15 14.4477 14.5523 14 14 14C13.4477 14 13 14.4477 13 15V20H11V15C11 14.4477 10.5523 14 10 14C9.44772 14 9 14.4477 9 15V20H7V15C7 14.4477 6.55228 14 6 14C5.44772 14 5 14.4477 5 15V20H4Z" fill="#455A64"/> </svg> <!-- Иконка Рассрочка --> <!-- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M20.5478 11.223C20.8184 10.9571 20.9791 10.5991 20.9981 10.2202C21.0172 9.84133 20.8931 9.46902 20.6507 9.17734C20.4083 8.88565 20.0651 8.6958 19.6893 8.64563L15.6192 8.01846C15.4109 7.981 15.2326 7.84706 15.1384 7.65754L13.3609 3.8687C13.2007 3.52112 12.9132 3.24828 12.5579 3.10641C12.2024 2.96453 11.8063 2.96453 11.4508 3.10641C11.0955 3.24829 10.8079 3.5211 10.6478 3.8687L8.86173 7.69187C8.7674 7.88139 8.58922 8.01518 8.38094 8.05279L4.31087 8.67996C3.93504 8.7303 3.59185 8.92012 3.34929 9.21182C3.10687 9.50352 2.98289 9.8757 3.0019 10.2546C3.02092 10.6336 3.18173 10.9914 3.45215 11.2574L6.45728 14.3503C6.60372 14.5001 6.6708 14.7105 6.63771 14.9174L5.93367 19.2131C5.85491 19.6556 5.97604 20.1104 6.26428 20.4551C6.55251 20.7998 6.97836 20.9994 7.42772 21C7.68062 20.982 7.92527 20.9025 8.14031 20.7681L11.6865 18.7921C11.8795 18.6882 12.1117 18.6882 12.3047 18.7921L15.8681 20.7681C16.1124 20.9052 16.3906 20.9699 16.6705 20.9546C16.9502 20.9395 17.2199 20.8449 17.4479 20.6821C17.6827 20.5197 17.8664 20.2934 17.9773 20.0302C18.0884 19.767 18.1221 19.4775 18.0747 19.1958L17.3706 14.9002C17.3362 14.6956 17.4034 14.4872 17.5509 14.3418L20.5478 11.223Z" stroke="#455A64" stroke-width="2"/> </svg> --> </span> <span class="info-item-text"> Кредит на выгодных условиях </span> </div> <div class="rb-modal-content__info-item"> <span class="info-item-icon"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M14.9298 9C14.9298 10.6569 13.5867 12 11.9298 12C10.273 12 8.92982 10.6569 8.92982 9C8.92982 7.34315 10.273 6 11.9298 6C13.5867 6 14.9298 7.34315 14.9298 9ZM15.2641 12.726C16.2865 11.8105 16.9298 10.4804 16.9298 9C16.9298 6.23858 14.6912 4 11.9298 4C9.16839 4 6.92982 6.23858 6.92982 9C6.92982 10.4802 7.57301 11.8102 8.59516 12.7257C6.17226 13.838 4.40114 16.1253 4.0102 18.8584C3.932 19.4051 4.31181 19.9117 4.85853 19.9899C5.40525 20.0681 5.91185 19.6883 5.99005 19.1416C6.40583 16.2349 8.90741 14 11.9292 14C14.9511 14 17.4526 16.2349 17.8684 19.1416C17.9466 19.6883 18.4532 20.0681 18.9999 19.9899C19.5467 19.9117 19.9265 19.4051 19.8483 18.8584C19.4574 16.1256 17.6866 13.8385 15.2641 12.726Z" fill="#455A64"/> </svg> </span> <span class="info-item-text"> Для граждан РФ от 18 лет </span> </div> </div> <a href="/checkout/?add-to-cart=' . $product_id . '&source=credit_widget" class="rb-modal-link"> Оформить заказ </a> </div> </div> </div> </div> '; } if (get_option('robokassa_payment_credit_selected_method') === 'installment' && get_option('robokassa_payment_credit_widget_onoff') === 'true' && $price > 1500 && $price < 500000) { echo ' <div class="wiget-block-v3"> <button class="wiget-action-button"> <div class="wiget-action-button__icons podeli-action-button__icons_v2"> <svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <rect width="24" height="24" rx="12" fill="white"></rect> <g transform="translate(3, 6) scale(0.12)"> <path d="M74.2524 0.5L0.985107 100.5H88.1138L160.985 0.5H74.2524Z" fill="black"></path> </g> </svg> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <rect width="24" height="24" rx="12" fill="#CDFC68"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M4 12C4 7.61042 7.55556 4.09876 12 4.09876V6.9276C9.1358 6.9276 6.8642 9.17116 6.8642 12C6.8642 14.8288 9.1358 17.0724 12 17.0724C14.7654 17.0724 17.1358 14.8288 17.1358 12H20C20 16.3896 16.4444 19.9012 12 19.9012C7.55556 19.9012 4 16.3896 4 12Z" fill="#222222"/> <path d="M8.44446 12C8.44446 10.049 10.0247 8.4883 12 8.4883C13.9753 8.4883 15.5556 10.049 15.5556 12C15.5556 13.9509 13.9753 15.5116 12 15.5116C10.0247 15.5116 8.44446 13.9509 8.44446 12Z" fill="#222222"/> <path d="M14.4692 7.51297C14.4692 6.43996 15.3581 5.4645 16.5433 5.4645C17.6297 5.4645 18.6173 6.34242 18.6173 7.51297C18.6173 8.58598 17.7284 9.56144 16.5433 9.56144C15.3581 9.56144 14.4692 8.68352 14.4692 7.51297Z" fill="#222222"/> </svg> </div> <span class="wiget-action-button__text"> рассрочка от ' . floor($price / 24) . ' ₽/Мес </span> </button> <div class="rb-modal-wrapper"> <div class="rb-modal modal-v2"> <button class="rb-modal__close close-modal"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M16.6472 8.70065C17.0342 8.30659 17.0284 7.67345 16.6344 7.2865C16.2403 6.89954 15.6072 6.90529 15.2202 7.29935L11.9897 10.5891L8.70065 7.35935C8.30659 6.97239 7.67345 6.97815 7.28649 7.37221C6.89954 7.76627 6.90529 8.3994 7.29935 8.78636L10.5884 12.0161L7.36015 15.3036C6.97319 15.6977 6.97894 16.3308 7.373 16.7178C7.76706 17.1047 8.4002 17.099 8.78716 16.7049L12.0154 13.4174L15.3036 16.6464C15.6977 17.0334 16.3308 17.0276 16.7178 16.6336C17.1047 16.2395 17.099 15.6064 16.7049 15.2194L13.4167 11.9904L16.6472 8.70065Z" fill="#8F95AE"/> </svg> </button> <div class="rb-modal-logotypes"> <div class="robokassa-logo"> <svg width="120" height="18" viewBox="0 0 2008 300" fill="none" xmlns="http://www.w3.org/2000/svg"> <g clip-path="url(#clip0_1326_12)"> <path d="M275.069 246.767C239.296 246.767 217.546 220.741 217.546 186.672C217.546 152.603 239.296 126.932 275.069 126.932C310.842 126.932 332.591 151.656 332.591 186.672C332.591 221.688 310.842 246.767 275.069 246.767ZM275.069 73.6987C206.969 73.6987 161.213 120.071 161.213 186.672C161.213 253.273 208.157 300 275.069 300C341.98 300 388.568 252.326 388.568 186.672C388.568 121.017 343.168 73.6987 275.069 73.6987Z" fill="black"/> <path d="M55.6759 78.6672H0.292969V295.032H55.6759V78.6672Z" fill="black"/> <path d="M116.407 78.6672L59.479 156.506H127.222L184.15 78.6672H116.407Z" fill="black"/> <path d="M1873.21 250.67C1856.34 250.67 1844.57 240.497 1844.57 228.667C1844.57 217.547 1852.06 209.74 1867.03 209.74H1925.15C1918.85 233.754 1897.69 250.67 1873.33 250.67M1978.15 243.691V153.549C1978.15 112.263 1944.52 78.7855 1903.04 78.7855H1806.3V130.008H1899.83C1913.5 130.008 1924.67 141.128 1924.67 154.732V166.207H1866.2C1814.14 166.207 1790.85 196.017 1790.85 228.312C1790.85 268.178 1820.56 297.043 1868.34 297.043C1897.69 297.043 1920.04 283.675 1933.47 262.855C1938.46 284.148 1958.19 295.15 1977.8 295.15H2008.1V243.691H1978.27H1978.15Z" fill="black"/> <path d="M1491.12 167.863C1480.78 166.798 1447.74 163.959 1435.26 162.303C1419.57 160.173 1413.51 152.721 1413.51 144.677C1413.51 133.793 1422.19 123.147 1451.18 123.147C1483.39 123.147 1494.44 138.407 1496.58 153.431H1546.62C1546.62 116.049 1513.46 75.1183 1450.71 75.1183C1392 75.1183 1359.79 107.413 1359.79 145.505C1359.79 177.918 1381.42 202.287 1416.12 206.664C1438.71 209.385 1455.82 211.159 1475.55 213.17C1492.31 214.826 1497.3 220.741 1497.3 228.667C1497.3 239.905 1487.2 250.67 1454.87 250.67C1422.54 250.67 1408.76 237.539 1406.5 221.451H1356.46C1356.46 265.812 1395.8 298.817 1455.23 298.817C1514.65 298.817 1551.14 267.114 1551.14 227.011C1551.14 195.544 1531.88 171.885 1491.12 167.863Z" fill="black"/> <path d="M1708.25 167.863C1697.91 166.798 1664.87 163.959 1652.39 162.303C1636.71 160.173 1630.64 152.721 1630.64 144.677C1630.64 133.793 1639.32 123.147 1668.32 123.147C1700.53 123.147 1711.58 138.407 1713.72 153.431H1763.75C1763.75 116.049 1730.59 75.1183 1667.84 75.1183C1609.13 75.1183 1576.93 107.413 1576.93 145.505C1576.93 177.918 1598.56 202.287 1633.26 206.664C1655.84 209.385 1672.95 211.159 1692.68 213.17C1709.44 214.826 1714.43 220.741 1714.43 228.667C1714.43 239.905 1704.33 250.67 1672 250.67C1639.68 250.67 1625.89 237.539 1623.63 221.451H1573.6C1573.6 265.812 1612.94 298.817 1672.36 298.817C1731.78 298.817 1768.27 267.114 1768.27 227.011C1768.27 195.544 1749.02 171.885 1708.25 167.863Z" fill="black"/> <path d="M1204.58 250.789C1187.7 250.789 1175.93 240.615 1175.93 228.785C1175.93 217.666 1183.54 209.858 1198.4 209.858H1256.51C1250.21 233.872 1229.06 250.789 1204.69 250.789M1309.52 153.549C1309.52 112.263 1275.88 78.7855 1234.41 78.7855H1137.66V130.008H1231.2C1244.87 130.008 1256.04 141.128 1256.04 154.732V166.207H1197.56C1145.51 166.207 1122.21 196.017 1122.21 228.312C1122.21 268.178 1151.93 297.043 1199.7 297.043C1229.06 297.043 1251.4 283.675 1264.83 262.855C1269.82 284.148 1289.55 295.15 1309.16 295.15H1339.47V243.691H1309.64V153.549H1309.52Z" fill="black"/> <path d="M767.573 246.767C731.8 246.767 710.051 220.741 710.051 186.672C710.051 152.603 731.8 126.932 767.573 126.932C803.346 126.932 825.095 151.656 825.095 186.672C825.095 221.688 803.346 246.767 767.573 246.767ZM767.573 73.6987C699.473 73.6987 653.717 120.071 653.717 186.672C653.717 253.273 700.662 300 767.573 300C834.484 300 881.073 252.326 881.073 186.672C881.073 121.017 835.673 73.6987 767.573 73.6987Z" fill="black"/> <path d="M1110.92 78.6672H1042.82L964.741 185.252L1046.15 295.032H1114.49L1032.84 184.661L1110.92 78.6672Z" fill="black"/> <path d="M959.512 0H904.129V295.15H959.512V0Z" fill="black"/> <path d="M522.272 247.003C486.498 247.003 464.631 220.978 464.631 186.909C464.631 152.839 486.38 127.05 522.272 127.05C558.164 127.05 579.913 151.893 579.913 186.909C579.913 221.924 558.164 247.003 522.272 247.003ZM527.263 73.6987C501.473 73.6987 479.249 82.6893 464.393 96.6483V0H408.653V184.069C408.653 254.456 453.221 300 522.866 300C588.232 300 635.652 251.972 635.652 186.199C635.652 120.426 593.937 73.6987 527.263 73.6987Z" fill="black"/> </g> <defs> <clipPath id="clip0_1326_12"> <rect width="2007.69" height="300" fill="white" transform="translate(0.292969)"/> </clipPath> </defs> </svg> </div> <span class="separate-logo"></span> <div class="credit-logo"> <svg width="95" height="28" viewBox="0 0 95 28" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <rect x="0.579956" width="94.3529" height="28" fill="url(#pattern0_547_1184)"/> <defs> <pattern id="pattern0_547_1184" patternContentUnits="objectBoundingBox" width="1" height="1"> <use xlink:href="#image0_547_1184" transform="scale(0.00249377 0.00840336)"/> </pattern> <image id="image0_547_1184" width="401" height="119" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZEAAAB3CAYAAADCS318AAAMP2lDQ1BJQ0MgUHJvZmlsZQAASImVVwdYU8kWnltSSWgBBKSE3gSRGkBKCC2A9CLYC … [Строка слишком длинная. Вы можете скачать файл] </defs> </svg> </div> </div> <div class="rb-modal-content"> <h5 class="rb-modal-content__title"> ОТ ' . floor($price / 24) . ' ₽ В МЕСЯЦ </h5> <h5 class="rb-modal-content__title"> Индивидуальные условия для покупки<br>товаров в рассрочку, чтобы не откладывать<br>покупку </h5> <p class="rb-modal-content__text"> Всего 10 минут на оформление документов, без визита в банк. </p> <div class="rb-modal-content__info"> <div class="rb-modal-content__info-item"> <span class="info-item-icon"> <!-- Иконка Кредита --> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M12.4472 2.10557C12.1657 1.96481 11.8343 1.96481 11.5528 2.10557L3.55279 6.10557C3.214 6.27496 3 6.62123 3 7V11C3 11.2652 3.10536 11.5196 3.29289 11.7071C3.48043 11.8946 3.73478 12 4 12H20C20.5523 12 21 11.5523 21 11V7C21 6.62123 20.786 6.27496 20.4472 6.10557L12.4472 2.10557ZM5 10V7.61803L12 4.11803L19 7.61803V10H5ZM4 20C3.44772 20 3 20.4477 3 21C3 21.5523 3.44772 22 4 22H20C20.5523 22 21 21.5523 21 21C21 20.4477 20.5523 20 20 20H19V15C19 14.4477 18.5523 14 18 14C17.4477 14 17 14.4477 17 15V20H15V15C15 14.4477 14.5523 14 14 14C13.4477 14 13 14.4477 13 15V20H11V15C11 14.4477 10.5523 14 10 14C9.44772 14 9 14.4477 9 15V20H7V15C7 14.4477 6.55228 14 6 14C5.44772 14 5 14.4477 5 15V20H4Z" fill="#455A64"/> </svg> <!-- Иконка Рассрочка --> <!-- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M20.5478 11.223C20.8184 10.9571 20.9791 10.5991 20.9981 10.2202C21.0172 9.84133 20.8931 9.46902 20.6507 9.17734C20.4083 8.88565 20.0651 8.6958 19.6893 8.64563L15.6192 8.01846C15.4109 7.981 15.2326 7.84706 15.1384 7.65754L13.3609 3.8687C13.2007 3.52112 12.9132 3.24828 12.5579 3.10641C12.2024 2.96453 11.8063 2.96453 11.4508 3.10641C11.0955 3.24829 10.8079 3.5211 10.6478 3.8687L8.86173 7.69187C8.7674 7.88139 8.58922 8.01518 8.38094 8.05279L4.31087 8.67996C3.93504 8.7303 3.59185 8.92012 3.34929 9.21182C3.10687 9.50352 2.98289 9.8757 3.0019 10.2546C3.02092 10.6336 3.18173 10.9914 3.45215 11.2574L6.45728 14.3503C6.60372 14.5001 6.6708 14.7105 6.63771 14.9174L5.93367 19.2131C5.85491 19.6556 5.97604 20.1104 6.26428 20.4551C6.55251 20.7998 6.97836 20.9994 7.42772 21C7.68062 20.982 7.92527 20.9025 8.14031 20.7681L11.6865 18.7921C11.8795 18.6882 12.1117 18.6882 12.3047 18.7921L15.8681 20.7681C16.1124 20.9052 16.3906 20.9699 16.6705 20.9546C16.9502 20.9395 17.2199 20.8449 17.4479 20.6821C17.6827 20.5197 17.8664 20.2934 17.9773 20.0302C18.0884 19.767 18.1221 19.4775 18.0747 19.1958L17.3706 14.9002C17.3362 14.6956 17.4034 14.4872 17.5509 14.3418L20.5478 11.223Z" stroke="#455A64" stroke-width="2"/> </svg> --> </span> <span class="info-item-text"> Кредит на выгодных условиях </span> </div> <div class="rb-modal-content__info-item"> <span class="info-item-icon"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M14.9298 9C14.9298 10.6569 13.5867 12 11.9298 12C10.273 12 8.92982 10.6569 8.92982 9C8.92982 7.34315 10.273 6 11.9298 6C13.5867 6 14.9298 7.34315 14.9298 9ZM15.2641 12.726C16.2865 11.8105 16.9298 10.4804 16.9298 9C16.9298 6.23858 14.6912 4 11.9298 4C9.16839 4 6.92982 6.23858 6.92982 9C6.92982 10.4802 7.57301 11.8102 8.59516 12.7257C6.17226 13.838 4.40114 16.1253 4.0102 18.8584C3.932 19.4051 4.31181 19.9117 4.85853 19.9899C5.40525 20.0681 5.91185 19.6883 5.99005 19.1416C6.40583 16.2349 8.90741 14 11.9292 14C14.9511 14 17.4526 16.2349 17.8684 19.1416C17.9466 19.6883 18.4532 20.0681 18.9999 19.9899C19.5467 19.9117 19.9265 19.4051 19.8483 18.8584C19.4574 16.1256 17.6866 13.8385 15.2641 12.726Z" fill="#455A64"/> </svg> </span> <span class="info-item-text"> Для граждан РФ от 18 лет </span> </div> </div> <a href="/checkout/?add-to-cart=' . $product_id . '&source=credit_widget" class="rb-modal-link"> Оформить заказ </a> </div> </div> </div> </div> '; } if (get_option('robokassa_payment_credit_selected_method') === 'all_methods' && get_option('robokassa_payment_credit_widget_onoff') === 'true' && $price > 1500 && $price < 500000) { $monthlyInterestRate = 0.02333; // Месячная процентная ставка (2,333% в десятичной форме) $months = 23; // Количество месяцев $monthlyPayment = ($price * $monthlyInterestRate * pow(1 + $monthlyInterestRate, $months)) / (pow(1 + $monthlyInterestRate, $months) - 1); $monthlyPayment = ceil($monthlyPayment * 100) / 100; $monthlyPayment = round($monthlyPayment); echo ' <div class="wiget-block-v3"> <button class="wiget-action-button"> <div class="wiget-action-button__icons podeli-action-button__icons_v2"> <svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <rect width="24" height="24" rx="12" fill="white"></rect> <g transform="translate(3, 6) scale(0.12)"> <path d="M74.2524 0.5L0.985107 100.5H88.1138L160.985 0.5H74.2524Z" fill="black"></path> </g> </svg> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <rect width="24" height="24" rx="12" fill="#CDFC68"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M4 12C4 7.61042 7.55556 4.09876 12 4.09876V6.9276C9.1358 6.9276 6.8642 9.17116 6.8642 12C6.8642 14.8288 9.1358 17.0724 12 17.0724C14.7654 17.0724 17.1358 14.8288 17.1358 12H20C20 16.3896 16.4444 19.9012 12 19.9012C7.55556 19.9012 4 16.3896 4 12Z" fill="#222222"/> <path d="M8.44446 12C8.44446 10.049 10.0247 8.4883 12 8.4883C13.9753 8.4883 15.5556 10.049 15.5556 12C15.5556 13.9509 13.9753 15.5116 12 15.5116C10.0247 15.5116 8.44446 13.9509 8.44446 12Z" fill="#222222"/> <path d="M14.4692 7.51297C14.4692 6.43996 15.3581 5.4645 16.5433 5.4645C17.6297 5.4645 18.6173 6.34242 18.6173 7.51297C18.6173 8.58598 17.7284 9.56144 16.5433 9.56144C15.3581 9.56144 14.4692 8.68352 14.4692 7.51297Z" fill="#222222"/> </svg> </div> <span class="wiget-action-button__text"> Оформить рассрочку </span> </button> <div class="rb-modal-wrapper"> <div class="rb-modal modal-v2"> <button class="rb-modal__close close-modal"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M16.6472 8.70065C17.0342 8.30659 17.0284 7.67345 16.6344 7.2865C16.2403 6.89954 15.6072 6.90529 15.2202 7.29935L11.9897 10.5891L8.70065 7.35935C8.30659 6.97239 7.67345 6.97815 7.28649 7.37221C6.89954 7.76627 6.90529 8.3994 7.29935 8.78636L10.5884 12.0161L7.36015 15.3036C6.97319 15.6977 6.97894 16.3308 7.373 16.7178C7.76706 17.1047 8.4002 17.099 8.78716 16.7049L12.0154 13.4174L15.3036 16.6464C15.6977 17.0334 16.3308 17.0276 16.7178 16.6336C17.1047 16.2395 17.099 15.6064 16.7049 15.2194L13.4167 11.9904L16.6472 8.70065Z" fill="#8F95AE"/> </svg> </button> <div class="rb-modal-logotypes"> <div class="robokassa-logo"> <svg width="120" height="18" viewBox="0 0 2008 300" fill="none" xmlns="http://www.w3.org/2000/svg"> <g clip-path="url(#clip0_1326_12)"> <path d="M275.069 246.767C239.296 246.767 217.546 220.741 217.546 186.672C217.546 152.603 239.296 126.932 275.069 126.932C310.842 126.932 332.591 151.656 332.591 186.672C332.591 221.688 310.842 246.767 275.069 246.767ZM275.069 73.6987C206.969 73.6987 161.213 120.071 161.213 186.672C161.213 253.273 208.157 300 275.069 300C341.98 300 388.568 252.326 388.568 186.672C388.568 121.017 343.168 73.6987 275.069 73.6987Z" fill="black"/> <path d="M55.6759 78.6672H0.292969V295.032H55.6759V78.6672Z" fill="black"/> <path d="M116.407 78.6672L59.479 156.506H127.222L184.15 78.6672H116.407Z" fill="black"/> <path d="M1873.21 250.67C1856.34 250.67 1844.57 240.497 1844.57 228.667C1844.57 217.547 1852.06 209.74 1867.03 209.74H1925.15C1918.85 233.754 1897.69 250.67 1873.33 250.67M1978.15 243.691V153.549C1978.15 112.263 1944.52 78.7855 1903.04 78.7855H1806.3V130.008H1899.83C1913.5 130.008 1924.67 141.128 1924.67 154.732V166.207H1866.2C1814.14 166.207 1790.85 196.017 1790.85 228.312C1790.85 268.178 1820.56 297.043 1868.34 297.043C1897.69 297.043 1920.04 283.675 1933.47 262.855C1938.46 284.148 1958.19 295.15 1977.8 295.15H2008.1V243.691H1978.27H1978.15Z" fill="black"/> <path d="M1491.12 167.863C1480.78 166.798 1447.74 163.959 1435.26 162.303C1419.57 160.173 1413.51 152.721 1413.51 144.677C1413.51 133.793 1422.19 123.147 1451.18 123.147C1483.39 123.147 1494.44 138.407 1496.58 153.431H1546.62C1546.62 116.049 1513.46 75.1183 1450.71 75.1183C1392 75.1183 1359.79 107.413 1359.79 145.505C1359.79 177.918 1381.42 202.287 1416.12 206.664C1438.71 209.385 1455.82 211.159 1475.55 213.17C1492.31 214.826 1497.3 220.741 1497.3 228.667C1497.3 239.905 1487.2 250.67 1454.87 250.67C1422.54 250.67 1408.76 237.539 1406.5 221.451H1356.46C1356.46 265.812 1395.8 298.817 1455.23 298.817C1514.65 298.817 1551.14 267.114 1551.14 227.011C1551.14 195.544 1531.88 171.885 1491.12 167.863Z" fill="black"/> <path d="M1708.25 167.863C1697.91 166.798 1664.87 163.959 1652.39 162.303C1636.71 160.173 1630.64 152.721 1630.64 144.677C1630.64 133.793 1639.32 123.147 1668.32 123.147C1700.53 123.147 1711.58 138.407 1713.72 153.431H1763.75C1763.75 116.049 1730.59 75.1183 1667.84 75.1183C1609.13 75.1183 1576.93 107.413 1576.93 145.505C1576.93 177.918 1598.56 202.287 1633.26 206.664C1655.84 209.385 1672.95 211.159 1692.68 213.17C1709.44 214.826 1714.43 220.741 1714.43 228.667C1714.43 239.905 1704.33 250.67 1672 250.67C1639.68 250.67 1625.89 237.539 1623.63 221.451H1573.6C1573.6 265.812 1612.94 298.817 1672.36 298.817C1731.78 298.817 1768.27 267.114 1768.27 227.011C1768.27 195.544 1749.02 171.885 1708.25 167.863Z" fill="black"/> <path d="M1204.58 250.789C1187.7 250.789 1175.93 240.615 1175.93 228.785C1175.93 217.666 1183.54 209.858 1198.4 209.858H1256.51C1250.21 233.872 1229.06 250.789 1204.69 250.789M1309.52 153.549C1309.52 112.263 1275.88 78.7855 1234.41 78.7855H1137.66V130.008H1231.2C1244.87 130.008 1256.04 141.128 1256.04 154.732V166.207H1197.56C1145.51 166.207 1122.21 196.017 1122.21 228.312C1122.21 268.178 1151.93 297.043 1199.7 297.043C1229.06 297.043 1251.4 283.675 1264.83 262.855C1269.82 284.148 1289.55 295.15 1309.16 295.15H1339.47V243.691H1309.64V153.549H1309.52Z" fill="black"/> <path d="M767.573 246.767C731.8 246.767 710.051 220.741 710.051 186.672C710.051 152.603 731.8 126.932 767.573 126.932C803.346 126.932 825.095 151.656 825.095 186.672C825.095 221.688 803.346 246.767 767.573 246.767ZM767.573 73.6987C699.473 73.6987 653.717 120.071 653.717 186.672C653.717 253.273 700.662 300 767.573 300C834.484 300 881.073 252.326 881.073 186.672C881.073 121.017 835.673 73.6987 767.573 73.6987Z" fill="black"/> <path d="M1110.92 78.6672H1042.82L964.741 185.252L1046.15 295.032H1114.49L1032.84 184.661L1110.92 78.6672Z" fill="black"/> <path d="M959.512 0H904.129V295.15H959.512V0Z" fill="black"/> <path d="M522.272 247.003C486.498 247.003 464.631 220.978 464.631 186.909C464.631 152.839 486.38 127.05 522.272 127.05C558.164 127.05 579.913 151.893 579.913 186.909C579.913 221.924 558.164 247.003 522.272 247.003ZM527.263 73.6987C501.473 73.6987 479.249 82.6893 464.393 96.6483V0H408.653V184.069C408.653 254.456 453.221 300 522.866 300C588.232 300 635.652 251.972 635.652 186.199C635.652 120.426 593.937 73.6987 527.263 73.6987Z" fill="black"/> </g> <defs> <clipPath id="clip0_1326_12"> <rect width="2007.69" height="300" fill="white" transform="translate(0.292969)"/> </clipPath> </defs> </svg> </div> <span class="separate-logo"></span> <div class="credit-logo"> <svg width="95" height="28" viewBox="0 0 95 28" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <rect x="0.579956" width="94.3529" height="28" fill="url(#pattern0_547_1184)"/> <defs> <pattern id="pattern0_547_1184" patternContentUnits="objectBoundingBox" width="1" height="1"> <use xlink:href="#image0_547_1184" transform="scale(0.00249377 0.00840336)"/> </pattern> <image id="image0_547_1184" width="401" height="119" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZEAAAB3CAYAAADCS318AAAMP2lDQ1BJQ0MgUHJvZmlsZQAASImVVwdYU8kWnltSSWgBBKSE3gSRGkBKCC2A9CLYC … [Строка слишком длинная. Вы можете скачать файл] </defs> </svg> </div> </div> <div class="rb-modal-content"> <h5 class="rb-modal-content__title"> ОТ ' . floor($monthlyPayment) . ' ₽ В МЕСЯЦ </h5> <h5 class="rb-modal-content__title"> Индивидуальные условия для покупки<br>товаров в кредит или рассрочку, чтобы не откладывать<br>покупку </h5> <p class="rb-modal-content__text"> Всего 10 минут на оформление документов, без визита в банк. </p> <div class="rb-modal-content__info"> <div class="rb-modal-content__info-item"> <span class="info-item-icon"> <!-- Иконка Кредита --> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M12.4472 2.10557C12.1657 1.96481 11.8343 1.96481 11.5528 2.10557L3.55279 6.10557C3.214 6.27496 3 6.62123 3 7V11C3 11.2652 3.10536 11.5196 3.29289 11.7071C3.48043 11.8946 3.73478 12 4 12H20C20.5523 12 21 11.5523 21 11V7C21 6.62123 20.786 6.27496 20.4472 6.10557L12.4472 2.10557ZM5 10V7.61803L12 4.11803L19 7.61803V10H5ZM4 20C3.44772 20 3 20.4477 3 21C3 21.5523 3.44772 22 4 22H20C20.5523 22 21 21.5523 21 21C21 20.4477 20.5523 20 20 20H19V15C19 14.4477 18.5523 14 18 14C17.4477 14 17 14.4477 17 15V20H15V15C15 14.4477 14.5523 14 14 14C13.4477 14 13 14.4477 13 15V20H11V15C11 14.4477 10.5523 14 10 14C9.44772 14 9 14.4477 9 15V20H7V15C7 14.4477 6.55228 14 6 14C5.44772 14 5 14.4477 5 15V20H4Z" fill="#455A64"/> </svg> <!-- Иконка Рассрочка --> <!-- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M20.5478 11.223C20.8184 10.9571 20.9791 10.5991 20.9981 10.2202C21.0172 9.84133 20.8931 9.46902 20.6507 9.17734C20.4083 8.88565 20.0651 8.6958 19.6893 8.64563L15.6192 8.01846C15.4109 7.981 15.2326 7.84706 15.1384 7.65754L13.3609 3.8687C13.2007 3.52112 12.9132 3.24828 12.5579 3.10641C12.2024 2.96453 11.8063 2.96453 11.4508 3.10641C11.0955 3.24829 10.8079 3.5211 10.6478 3.8687L8.86173 7.69187C8.7674 7.88139 8.58922 8.01518 8.38094 8.05279L4.31087 8.67996C3.93504 8.7303 3.59185 8.92012 3.34929 9.21182C3.10687 9.50352 2.98289 9.8757 3.0019 10.2546C3.02092 10.6336 3.18173 10.9914 3.45215 11.2574L6.45728 14.3503C6.60372 14.5001 6.6708 14.7105 6.63771 14.9174L5.93367 19.2131C5.85491 19.6556 5.97604 20.1104 6.26428 20.4551C6.55251 20.7998 6.97836 20.9994 7.42772 21C7.68062 20.982 7.92527 20.9025 8.14031 20.7681L11.6865 18.7921C11.8795 18.6882 12.1117 18.6882 12.3047 18.7921L15.8681 20.7681C16.1124 20.9052 16.3906 20.9699 16.6705 20.9546C16.9502 20.9395 17.2199 20.8449 17.4479 20.6821C17.6827 20.5197 17.8664 20.2934 17.9773 20.0302C18.0884 19.767 18.1221 19.4775 18.0747 19.1958L17.3706 14.9002C17.3362 14.6956 17.4034 14.4872 17.5509 14.3418L20.5478 11.223Z" stroke="#455A64" stroke-width="2"/> </svg> --> </span> <span class="info-item-text"> Кредит на выгодных условиях </span> </div> <div class="rb-modal-content__info-item"> <span class="info-item-icon"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M14.9298 9C14.9298 10.6569 13.5867 12 11.9298 12C10.273 12 8.92982 10.6569 8.92982 9C8.92982 7.34315 10.273 6 11.9298 6C13.5867 6 14.9298 7.34315 14.9298 9ZM15.2641 12.726C16.2865 11.8105 16.9298 10.4804 16.9298 9C16.9298 6.23858 14.6912 4 11.9298 4C9.16839 4 6.92982 6.23858 6.92982 9C6.92982 10.4802 7.57301 11.8102 8.59516 12.7257C6.17226 13.838 4.40114 16.1253 4.0102 18.8584C3.932 19.4051 4.31181 19.9117 4.85853 19.9899C5.40525 20.0681 5.91185 19.6883 5.99005 19.1416C6.40583 16.2349 8.90741 14 11.9292 14C14.9511 14 17.4526 16.2349 17.8684 19.1416C17.9466 19.6883 18.4532 20.0681 18.9999 19.9899C19.5467 19.9117 19.9265 19.4051 19.8483 18.8584C19.4574 16.1256 17.6866 13.8385 15.2641 12.726Z" fill="#455A64"/> </svg> </span> <span class="info-item-text"> Для граждан РФ от 18 лет </span> </div> </div> <a href="/checkout/?add-to-cart=' . $product_id . '&source=credit_widget" class="rb-modal-link"> Оформить заказ </a> </div> </div> </div> </div> '; } } function payment_cart_widget() { if (!is_cart() && !is_checkout()) { return; } $cart = WC()->cart; if (empty($cart) || $cart->get_total() <= 0) { return; } $price = $cart->get_total(); $price = preg_replace('/[^\d.,]/', '', $price); $price = number_format(floatval(str_replace(',', '.', $price)), 2, '.', ''); if (get_option('robokassa_payment_podeli_widget_onoff') === 'true' && $price > 300 && $price < 35000) { echo ' <div class="wiget-block-wrapper"> <div class="wiget-block"> <div class="wiget-block__content"> <div class="wiget-block__logotypes"> <div class="wiget-block__logotype"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" style="enable-background:new 0 0 24 24;" xml:space="preserve"> <style type="text/css"> .st0 { fill: #023D5E; } .st1 { fill: #FF5722; } .st2 { fill: #FFFFFF; } .st3 { opacity: 0.7; fill: #FFFFFF; } .st4 { fill: #FFE3BF; } .st5 { fill: #FF0001; stroke: #FF0001; stroke-width: 0.2; } .st6 { stroke: #000000; stroke-width: 0.2; } </style> <circle class="st2" cx="12" cy="12" r="12" /> <g> <path d="M6,6v12h12L6,6z" fill="#55788E" /> <path class="st0" d="M18,6H6v12L18,6z" /> </g> </svg> </div> <div class="wiget-block__logotype"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <rect width="24" height="24" rx="12" fill="#EE3124" /> <path d="M12 4C7.57233 4 4 7.5891 4 12C4 16.4109 7.5891 20 12 20C16.4277 20 20 16.4109 20 12C20 7.5891 16.4109 4 12 4ZM12 18.0042C8.69602 18.0042 5.99581 15.3208 5.99581 12C5.99581 8.67925 8.67924 5.99581 12 5.99581C15.3208 5.99581 18.0042 8.67925 18.0042 12C18.0042 15.3208 15.304 18.0042 12 18.0042Z" fill="white" /> <path d="M11.9414 4.99924C11.9414 5.48561 12.2936 5.92167 12.7968 5.98876C15.4299 6.35773 17.5095 8.43739 17.8785 11.0705C17.9456 11.5569 18.3817 11.9259 18.868 11.9259C19.4718 11.9259 19.9414 11.3892 19.8575 10.7854C19.3544 7.28016 16.5703 4.49609 13.0651 4.00972C12.4613 3.92586 11.9414 4.39546 11.9414 4.99924Z" fill="#1D2939" /> </svg> </div> </div> <div class="wiget-block__title-subtitle"> <h5 class="wiget-block__title"> <span class="wiget-block__months">4</span> платежа по <span class="wiget-block__payment">' . round($price / 4) . '</span> ₽ </h5> <p class="wiget-block__subtitle"> Без комиссий и переплат </p> </div> </div> </div> </div> '; } } function select_payment_method($available_gateways) { // Проверяем, является ли текущая страница страницей оформления покупки if (is_checkout()) { if (isset($_GET['source']) && $_GET['source'] === 'podeli_widget') { // Устанавливаем метод оплаты "wc_payment_method payment_method_Podeli" как выбранный WC()->session->set('chosen_payment_method', 'Podeli'); } } if (is_checkout()) { if (isset($_GET['source']) && $_GET['source'] === 'credit_widget') { // Устанавливаем метод оплаты "wc_payment_method payment_method_Credit" как выбранный WC()->session->set('chosen_payment_method', 'Credit'); } } return $available_gateways; } function podeli_checkout_widget() { if (!is_cart() && !is_checkout()) { return; } $cart = WC()->cart; if (empty($cart) || $cart->get_total() <= 0) { return; } $price = $cart->get_total(); $price = preg_replace('/[^\d.,]/', '', $price); $price = number_format(floatval(str_replace(',', '.', $price)), 2, '.', ''); $podeli_2w_date = wp_date('%d %b', strtotime('+2 weeks')); $podeli_4w_date = wp_date('%d %b', strtotime('+4 weeks')); $podeli_6w_date = wp_date('%d %b', strtotime('+6 weeks')); if (get_option('robokassa_payment_podeli_widget_onoff') === 'true' && $price > 300 && $price < 35000) { echo ' <div class="wiget-block__prompt"> <div class="wiget-block__content"> <div class="wiget-block__title-checkout_subtitle"> <h5 class="wiget-block__title"> <span class="wiget-block__months">4</span> платежа по <span class="wiget-block__payment">' . $price / 4 . '</span> ₽ </h5> <p class="wiget-block__subtitle"> Без комиссий и переплат </p> </div> <div class="wiget-block__checkout_logotypes"> <div class="wiget-block__logotype"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <rect width="24" height="24" rx="12" fill="FFFFFF"/> <path d="M6,6v12h12L6,6z" fill="#55788E"/> <path d="M18 6H6V18L18 6Z" fill="#023D5E"/> </svg> </div> <div class="wiget-block__logotype"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <rect width="24" height="24" rx="12" fill="#EE3124" /> <path d="M12 4C7.57233 4 4 7.5891 4 12C4 16.4109 7.5891 20 12 20C16.4277 20 20 16.4109 20 12C20 7.5891 16.4109 4 12 4ZM12 18.0042C8.69602 18.0042 5.99581 15.3208 5.99581 12C5.99581 8.67925 8.67924 5.99581 12 5.99581C15.3208 5.99581 18.0042 8.67925 18.0042 12C18.0042 15.3208 15.304 18.0042 12 18.0042Z" fill="white" /> <path d="M11.9414 4.99924C11.9414 5.48561 12.2936 5.92167 12.7968 5.98876C15.4299 6.35773 17.5095 8.43739 17.8785 11.0705C17.9456 11.5569 18.3817 11.9259 18.868 11.9259C19.4718 11.9259 19.9414 11.3892 19.8575 10.7854C19.3544 7.28016 16.5703 4.49609 13.0651 4.00972C12.4613 3.92586 11.9414 4.39546 11.9414 4.99924Z" fill="#1D2939" /> </svg> </div> </div> </div> <div class="wiget-block-split"> <div class="wiget-block-split__item"> <p class="split-item-day">Сегодня</p> <p class="split-item-payment">' . $price / 4 . ' ₽</p> </div> <div class="wiget-block-split__item wiget-block-split__item_disable"> <p class="split-item-day">' . $podeli_2w_date . '</p> <p class="split-item-payment">' . $price / 4 . ' ₽</p> </div> <div class="wiget-block-split__item wiget-block-split__item_disable"> <p class="split-item-day">' . $podeli_4w_date . '</p> <p class="split-item-payment">' . $price / 4 . ' ₽</p> </div> <div class="wiget-block-split__item wiget-block-split__item_disable"> <p class="split-item-day">' . $podeli_6w_date . '</p> <p class="split-item-payment">' . $price / 4 . ' ₽</p> </div> </div> </div> '; } } function credit_checkout_widget() { if (!is_cart() && !is_checkout()) { return; } $cart = WC()->cart; if (empty($cart) || $cart->get_total() <= 0) { return; } $price = $cart->get_total(); $price = preg_replace('/[^\d.,]/', '', $price); $price = number_format(floatval(str_replace(',', '.', $price)), 2, '.', ''); $monthlyInterestRate = 0.02333; // Месячная процентная ставка (2,333% в десятичной форме) $months = 23; // Количество месяцев $monthlyPayment = ($price * $monthlyInterestRate * pow(1 + $monthlyInterestRate, $months)) / (pow(1 + $monthlyInterestRate, $months) - 1); $monthlyPayment = ceil($monthlyPayment * 100) / 100; $monthlyPayment = round($monthlyPayment); if (get_option('robokassa_payment_podeli_widget_onoff') === 'true' && $price > 300 && $price < 35000) { ?> <div class="wiget-block" style="margin-bottom: 0px"> <div class="wiget-block__content"> <div class="wiget-action-button__icons podeli-action-button__icons_v2"> <svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <rect width="24" height="24" rx="12" fill="white"/> <g transform="translate(3, 6) scale(0.12)"> <path d="M74.2524 0.5L0.985107 100.5H88.1138L160.985 0.5H74.2524Z" fill="black"/> </g> </svg> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <rect width="24" height="24" rx="12" fill="#CDFC68"></rect> <path fill-rule="evenodd" clip-rule="evenodd" d="M4 12C4 7.61042 7.55556 4.09876 12 4.09876V6.9276C9.1358 6.9276 6.8642 9.17116 6.8642 12C6.8642 14.8288 9.1358 17.0724 12 17.0724C14.7654 17.0724 17.1358 14.8288 17.1358 12H20C20 16.3896 16.4444 19.9012 12 19.9012C7.55556 19.9012 4 16.3896 4 12Z" fill="#222222"></path> <path d="M8.44446 12C8.44446 10.049 10.0247 8.4883 12 8.4883C13.9753 8.4883 15.5556 10.049 15.5556 12C15.5556 13.9509 13.9753 15.5116 12 15.5116C10.0247 15.5116 8.44446 13.9509 8.44446 12Z" fill="#222222"></path> <path d="M14.4692 7.51297C14.4692 6.43996 15.3581 5.4645 16.5433 5.4645C17.6297 5.4645 18.6173 6.34242 18.6173 7.51297C18.6173 8.58598 17.7284 9.56144 16.5433 9.56144C15.3581 9.56144 14.4692 8.68352 14.4692 7.51297Z" fill="#222222"></path> </svg> </div> <div class="wiget-block__title-subtitle"> <h5 class="wiget-block__title"> <span class="wiget-block__months">Кредит или рассрочка от </span><span class="wiget-block__payment">' . $monthlyPayment . '</span> ₽/мес </h5> <p class="wiget-block__subtitle"> Индивидуальные условия по кредиту<br>или рассрочке для вас </p> </div> </div> </div> <?php } }