воскресенье, 30 марта 2014 г.

Переделываем Есть вопросы? в форму быстрого заказа

Вид на сайте:

Письмо на почту:

Чтобы получить
1) меняем содержимое файла /published/SC/html/scripts/templates/frontend/product_details_request.html на:

{if !$CPT_CONSTRUCTOR_MODE}
{if $PAGE_VIEW ne 'printable'}
<div class="pageSeparator"></div>
<a name="product-request"></a>

<p>
    <a name="inquiry"></a>
    {if $sent eq NULL}

    <h2>{"feedback_title_productpage"|translate|replace:"[product_name]":"`$product_info.name`"|escape:'html'}</h2>

<!--    <p>{"feedback_description_general_2"|translate}</p> -->

    {$MessageBlock__prd_request}

    <input name="message_subject" value="{"b_zakaz"|translate}{$product_info.name|escape:'html'}" type="hidden" >
    <input name="productID" value="{$product_info.productID}" type="hidden" >
   
{"str_your_name"|translate}, {"str_your_tel"|translate}<br />
    <input name="customer_name"  value="{$prd_request.customer_name|escape:'html'}" type="text" size="40"><br />

    {"usr_custinfo_email"|translate}<br />
    <input name="customer_email" value="{$prd_request.customer_email|escape:'html'}" type="text" size="40" >


    <p>{"feedback_description_productpage"|translate}<br>
    <textarea name="message_text" cols="100" rows="4">{$product_info.name|escape:'html'} {$product_info.product_code|escape:'html'}
{"str_price"|translate}: {if $product_info.Price <= 0} n/a {else}{$product_info.PriceWithUnit}{/if}</textarea>
</p>
   
    {if $smarty.const.CONF_ENABLE_CONFIRMATION_CODE}
<br />
        <table cellpadding="6" cellspacing="0">
        <tr class="background1">
            <td colspan="2">{"str_enter_ccode"|translate}</td>
        </tr>
<!--        {if $PAGE_VIEW eq 'mobile'} mobile view -->
        <tr class="background1">
            <td colspan="2" align="center">
                <img src="{$smarty.const.URL_ROOT}/imgval.php" alt="code" />
                <br />
                <input name="fConfirmationCode" value="" type="text" >
            </td>
        </tr>
<!--        {else} generic view -->
        <tr class="background1">
            <td align="right">
                <img src="{$smarty.const.URL_ROOT}/imgval.php" alt="code" align="right" />
            </td>
            <td>
                <input name="fConfirmationCode" value="" type="text" style="width:200px;" >
            </td>
        </tr>
<!--        {/if} -->
        </table>
    {/if}

    <p>
    <input type="submit" name="request_information" value="OK">
    </p>

    {else}

    <p><span class=faq style="color: blue; font-weight: bold;">{"feedback_msg_sent_successfully"|translate}</span></p>

    {/if}
{/if}
{else}
    <h2>{"feedback_title_productpage"|translate|replace:"[product_name]":"`$product_info.name`"|escape:'html'}</h2>

    <p>{"feedback_description_general_2"|translate}</p>
   
    ...
{/if}

2) создаем локализацию str_your_tel - контактный телефон
    и меняем значение у feedback_description_productpage - Дополнительно можете указать время и адрес доставки.
    а еще можно добавить слова БЫСТРЫЙ ЗАКАЗ до названия товара в тему письма, чтобы можно было легко их найти. Это локализация b_zakaz - БЫСТРЫЙ ЗАКАЗ

Комментариев нет:

Отправить комментарий