<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Форум ReadyScript &mdash; Обновление блока при оформлении заказа]]></title>
		<link>https://forum.readyscript.ru/topic/2268/obnovlenie-bloka-pri-oformlenii-zakaza/</link>
		<atom:link href="https://forum.readyscript.ru/feed/rss/topic/2268/" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Обновление блока при оформлении заказа».]]></description>
		<lastBuildDate>Thu, 23 Mar 2023 18:10:10 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Обновление блока при оформлении заказа]]></title>
			<link>https://forum.readyscript.ru/post/11893/#p11893</link>
			<description><![CDATA[<p>Добрый день. Добавляю радио кнопки в address_block.tpl. Все ок, кнопки работают и данные передаются, вывел куда надо (админка, лк и т.д.).<br /></p><div class="codebox"><pre><code>&lt;div class=&quot;mb-4&quot;&gt;
                    &lt;div class=&quot;fs-3&quot;&gt;{t}Дата получения{/t}&lt;/div&gt;
                &lt;/div&gt;
                    &lt;div class=&quot;row row-cols-1 g-3 delivery-date&quot;&gt;
                    {$numChecked = 0}
                        {section name=foo start=1 loop=5 step=1}
                            {$delivery_dayOfTheMonth = &quot; +{$smarty.section.foo.index} days&quot;|date_format:&quot;%e&quot;}
                            {$delivery_dayOfTheWeek = &quot; +{$smarty.section.foo.index} days&quot;|date_format:&quot;%A&quot;}
                                &lt;div class=&quot;delivery-date-day&quot;&gt;
                                    &lt;div class=&quot;checkout-radio&quot;&gt;
                                        &lt;input type=&quot;radio&quot; name=&quot;delivery_extra[hours]&quot; value=&quot;{&quot; +{$smarty.section.foo.index} days&quot;|date_format:&quot;%A, %e.%m.%Y&quot;}&quot;
                                             id=&quot;dlv_time{$smarty.section.foo.index}&quot; 
                                                                 {if $delivery_dayOfTheWeek == &quot;Суббота&quot; || $delivery_dayOfTheWeek == &quot;Воскресенье&quot;}
                                                                     disabled
                                                                 {else}
                                                                     checked
                                                                  {/if}
                                                        &gt;
                                        &lt;label for=&quot;dlv_time{$smarty.section.foo.index}&quot; 
                                                                  {if $delivery_dayOfTheWeek == &quot;Суббота&quot; || $delivery_dayOfTheWeek == &quot;Воскресенье&quot;}
                                                                     class=&quot;holidaysDisabled&quot;
                                                                  {/if}
                                                                &gt;
                                            &lt;span class=&quot;delivery-date-title&quot;&gt;
                                                &lt;span class=&quot;d-flex align-items-center delivery_day&quot;&gt;
                                                    {$delivery_dayOfTheMonth}
                                                &lt;/span&gt;
                                                                        &lt;span class=&quot;d-flex align-items-center delivery_day&quot;&gt;
                                                                                    {$delivery_dayOfTheWeek}
                                                &lt;/span&gt;
                                            &lt;/span&gt;
                                        &lt;/label&gt;
                                    &lt;/div&gt;
                                &lt;/div&gt;
                        {/section}
                    &lt;/div&gt;</code></pre></div><p>Но есть проблема с тем что блоки обновляются, на них висит класс rs-checkout_triggerUpdate. Например </p><div class="codebox"><pre><code>&lt;input type=&quot;radio&quot; name=&quot;payment&quot; value=&quot;1&quot; class=&quot;rs-checkout_triggerUpdate&quot; id=&quot;pay_1&quot;&gt;</code></pre></div><p>После этого обновления моя радиокнопка слетает на дефолт и соответственно при оформлении заказа передаются неверные данные. Подскажите пжл как обойти это обновление или другие варианты.</p>]]></description>
			<author><![CDATA[null@example.com (Андрей)]]></author>
			<pubDate>Thu, 23 Mar 2023 18:10:10 +0000</pubDate>
			<guid>https://forum.readyscript.ru/post/11893/#p11893</guid>
		</item>
	</channel>
</rss>
