{"id":30091,"date":"2025-01-03T00:51:42","date_gmt":"2025-01-03T00:51:42","guid":{"rendered":"https:\/\/www.s-sols.com\/?post_type=doc&#038;p=30091"},"modified":"2025-01-03T11:10:33","modified_gmt":"2025-01-03T11:10:33","slug":"kb-accel","status":"publish","type":"doc","link":"https:\/\/www.s-sols.com\/ru\/docs\/wordpress\/accelerator\/kb-accel","title":{"rendered":"\u0411\u0430\u0437\u0430 \u0437\u043d\u0430\u043d\u0438\u0439 \u0410\u043a\u0441\u0435\u043b\u0435\u0440\u0430\u0442\u043e\u0440 \u0434\u043b\u044f WordPress"},"content":{"rendered":"<h2><a id=\"ultimate_addons_for_gutenberg\"><\/a>Spectra<br \/>\n<\/h2>\n<p style=\"text-align:justify\">\n  \u041f\u043b\u0430\u0433\u0438\u043d \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c<span style=\"font-size:12pt\"> <\/span><a href=\"https:\/\/wordpress.org\/plugins\/ultimate-addons-for-gutenberg\/\" rel=\"nofollow noopener\" target=\"_blank\">\u0437\u0434\u0435\u0441\u044c<\/a>. \u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432 \u0430\u0441\u0441\u0435\u0442\u043e\u0432 \u0432 \u0432\u0438\u0434\u0435 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0430.\n<\/p>\n<h2><a id=\"woocommerce_currency_switcher\"><\/a>FOX &#8211; Currency Switcher Professional for WooCommerce<br \/>\n<\/h2>\n<p style=\"text-align:justify\">\n  \u041f\u043b\u0430\u0433\u0438\u043d \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c<span style=\"font-size:12pt\"> <\/span><a href=\"https:\/\/wordpress.org\/plugins\/woocommerce-currency-switcher\/\" rel=\"nofollow noopener\" target=\"_blank\">\u0437\u0434\u0435\u0441\u044c<\/a>.\n<\/p>\n<p style=\"text-align:justify\">\n  \u0427\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f:\n<\/p>\n<ul>\n<li style=\"text-align:justify\">\n    \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u00abSettings\u00bb -&gt; \u00abOptions\u00bb -&gt; \u00abCurrency storage\u00bb \u043d\u0430 \u00abTransient\u00bb (\u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u00abFOX Session\u00bb \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442).\n  <\/li>\n<li style=\"text-align:justify\">\n    \u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435<span style=\"font-size:12pt\"> <\/span><code>@^wccs_changed_currency$@<\/code><span style=\"font-size:12pt\"> <\/span>\u0432 <a href=\".\/settings-users-accel#dep_grp_cookies\">\u0447\u0430\u0441\u0442\u044c cookie \u0432 \u0433\u0440\u0443\u043f\u043f\u0435 \u043a\u044d\u0448\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f<\/a> \u0441 \u0438\u043c\u0435\u043d\u0435\u043c \u00abWooCommerce\u00bb.\n  <\/li>\n<li style=\"text-align:justify\">\n    \u0412\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 HTML-\u043a\u043e\u0434 \u0432\u043d\u0438\u0437\u0443 \u0432\u043d\u0443\u0442\u0440\u0438 \u0442\u0435\u0433\u0430<span style=\"font-size:12pt\"> <\/span><code>body<\/code><span style=\"font-size:12pt\"> <\/span>\u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043b\u044e\u0431\u043e\u0433\u043e \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u043e\u0432 \u043a\u043e\u0434\u0430 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440,<span style=\"font-size:12pt\"> <\/span><a href=\"https:\/\/wordpress.org\/plugins\/code-snippets\/\" rel=\"nofollow noopener\" target=\"_blank\">Code Snippets<\/a>):\n  <\/li>\n<\/ul>\n<p><code class=\"p\">&lt;script seraph-accel-crit=\"1\"&gt;<br \/>(<br \/>\tfunction( d )<br \/>\t{<br \/>\t\tfunction _getCookie( name )<br \/>\t\t{<br \/>\t\t\tvar m = d.cookie.match( new RegExp( '(^| )' + name + '=([^;]+)' ) );<br \/>\t\t\treturn ( m ? m[2] : \"\" );<br \/>\t\t}<br \/><span style=\"display:inline-block;height:1em\"><span style=\"display:none\">.<\/span><\/span><br \/>\t\tfunction _setCookie( name, v )<br \/>\t\t{<br \/>\t\t\t\/\/ Set the cookie with a path to make it accessible site-wide<br \/>\t\t\tvar expires = new Date();<br \/>\t\t\texpires.setTime( expires.getTime() + 365 * 24 * 60 * 60 * 1000 ); \/\/ 1 year expiration<br \/>\t\t\td.cookie = name + '=' + v + ';path=\/;SameSite=Lax;expires=' + expires.toUTCString();<br \/>\t\t}<br \/><span style=\"display:inline-block;height:1em\"><span style=\"display:none\">.<\/span><\/span><br \/>\t\t\/\/ Implementation for '.woocommerce-currency-switcher' control<br \/>\t\td.querySelectorAll( \"select[name=\\\"woocommerce-currency-switcher\\\"]\" ).forEach(<br \/>\t\t\tfunction( e )<br \/>\t\t\t{<br \/>\t\t\t\te.addEventListener( \"change\",<br \/>\t\t\t\t\tfunction()<br \/>\t\t\t\t\t{<br \/>\t\t\t\t\t\t_setCookie( \"wccs_changed_currency\", _getCookie( \"wccs_init_currency\" ) == this.value ? \"\" : this.value );<br \/>\t\t\t\t\t}<br \/>\t\t\t\t);<br \/><span style=\"display:inline-block;height:1em\"><span style=\"display:none\">.<\/span><\/span><br \/>\t\t\t\tif( !_getCookie( \"wccs_init_currency\" ) )<br \/>\t\t\t\t\t_setCookie( \"wccs_init_currency\", e.value );<br \/>\t\t\t}<br \/>\t\t);<br \/><span style=\"display:inline-block;height:1em\"><span style=\"display:none\">.<\/span><\/span><br \/>\t\t\/\/ Implementation for '.woocs-style-1-dropdown' control<br \/>\t\td.querySelectorAll( \".woocs-style-1-dropdown\" ).forEach(<br \/>\t\t\tfunction( e )<br \/>\t\t\t{<br \/>\t\t\t\tvar curValText = e.querySelector( \".woocs-style-1-select &gt; span\" );<br \/>\t\t\t\tif( curValText )<br \/>\t\t\t\t\tcurValText = curValText.textContent;<br \/><span style=\"display:inline-block;height:1em\"><span style=\"display:none\">.<\/span><\/span><br \/>\t\t\t\te.querySelectorAll( \".woocs-style-1-dropdown-menu li\" ).forEach(<br \/>\t\t\t\t\tfunction( eItem )<br \/>\t\t\t\t\t{<br \/>\t\t\t\t\t\tif( eItem.textContent == curValText &amp;&amp; !_getCookie( \"wccs_init_currency\" ) )<br \/>\t\t\t\t\t\t\t_setCookie( \"wccs_init_currency\", eItem.getAttribute( \"data-currency\" ) );<br \/><span style=\"display:inline-block;height:1em\"><span style=\"display:none\">.<\/span><\/span><br \/>\t\t\t\t\t\teItem.addEventListener( \"click\",<br \/>\t\t\t\t\t\t\tfunction()<br \/>\t\t\t\t\t\t\t{<br \/>\t\t\t\t\t\t\t\tvar vCur = this.getAttribute( \"data-currency\" );<br \/>\t\t\t\t\t\t\t\t_setCookie( \"wccs_changed_currency\", _getCookie( \"wccs_init_currency\" ) == vCur ? \"\" : vCur );<br \/>\t\t\t\t\t\t\t}<br \/>\t\t\t\t\t\t);<br \/>\t\t\t\t\t}<br \/>\t\t\t\t);<br \/>\t\t\t}<br \/>\t\t);<br \/>\t}<br \/>)( document );<br \/>&lt;\/script&gt;<\/code>\n<\/p>\n<p style=\"text-align:justify\"><strong>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435:<\/strong><span style=\"font-size:12pt\"> <\/span>\u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0438\u043b\u0438 \u0432 \u043e\u0431\u043b\u0430\u043a\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u043e, \u0435\u0441\u043b\u0438 \u0444\u0430\u0439\u043b cookie \u00abwccs_changed_currency\u00bb \u043d\u0435 \u043f\u0443\u0441\u0442\u043e\u0439.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Spectra \u041f\u043b\u0430\u0433\u0438\u043d \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0437\u0434\u0435\u0441\u044c. \u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432 \u0430\u0441\u0441\u0435\u0442\u043e\u0432 \u0432 \u0432\u0438\u0434\u0435 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0430. FOX &#8211; Currency Switcher Professional for WooCommerce \u041f\u043b\u0430\u0433\u0438\u043d \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0437\u0434\u0435\u0441\u044c. \u0427\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f: \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u00abSettings\u00bb -&gt; \u00abOptions\u00bb -&gt; \u00abCurrency storage\u00bb \u043d\u0430 \u00abTransient\u00bb (\u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u00abFOX Session\u00bb \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442). \u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 @^wccs_changed_currency$@ \u0432 \u0447\u0430\u0441\u0442\u044c cookie \u0432 \u0433\u0440\u0443\u043f\u043f\u0435 \u043a\u044d\u0448\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0441&#8230;<\/p>\n","protected":false},"author":18,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"rank_math_lock_modified_date":false},"categories":[817],"tags":[917,833,612,610],"class_list":["post-30091","doc","type-doc","status-publish","hentry","category-accelerator","tag-kb-ru","tag-wordpress-ru","tag-baza-znanij","tag-podderzhka"],"_links":{"self":[{"href":"https:\/\/www.s-sols.com\/ru\/api\/wp\/v2\/doc\/30091","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.s-sols.com\/ru\/api\/wp\/v2\/doc"}],"about":[{"href":"https:\/\/www.s-sols.com\/ru\/api\/wp\/v2\/types\/doc"}],"author":[{"embeddable":true,"href":"https:\/\/www.s-sols.com\/ru\/api\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.s-sols.com\/ru\/api\/wp\/v2\/comments?post=30091"}],"wp:attachment":[{"href":"https:\/\/www.s-sols.com\/ru\/api\/wp\/v2\/media?parent=30091"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.s-sols.com\/ru\/api\/wp\/v2\/categories?post=30091"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.s-sols.com\/ru\/api\/wp\/v2\/tags?post=30091"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}