A
A
Alexander Ivanov2015-08-20 10:20:38
MODX
Alexander Ivanov, 2015-08-20 10:20:38

How to display additional fields in the shopping cart in Shopkeeper revo?

Shopping cart -

<input type="checkbox" id='check-basket'/>
        <article class='basket border-hide-elem'>
            <div class="shop-cart" data-shopcart="1">
                <div class="shop-cart-head"><b>Корзина</b></div>
                <div class="empty">
                    <div class="shop-cart-empty">Пусто</div>
                </div>
            </div>
        </article>  
            <!--tpl_separator-->
           
            <input type="checkbox" id='check-basket'/>
        <article class='basket border-hide-elem'> 
            <div class="shop-cart" data-shopcart="1">
              <section id='itog-basket'>
                <p>ИТОГО: <b id="bigprice"></b></p>
            </section>
            <section id='basket-plus'>
                <article>
                        
                </article>
                </section>
                <section>
                    <button class="butt-yelow" onclick="javascript: document.location.href = '../';"><div id="my-zakaz-icn" class="icons-png"></div>ОФОРМИТЬ ЗАКАЗ</button>
                </section>
            </div>
        </article>

Added Products -
<section class="cart-order">
                        <table>
                            <tr>
                                <td><div class='image-sm' id='tovar-basket1'></div>
                                <input class="shk-count" type="text" size="2" name="count[]" maxlength="3" title="изменить количество" value="" />
                                </td>
                                <td class="basket-tovar-desk"><a href="" style="color:black"> </a><br>
                                <b></b> 
                                </td>
                                <td class="basket-tovar-del">
                                <a href="" title="Удалить" class="shk-del"><b>x</b></a>
                                </td>
                            </tr>
                        </table>
                    </section>

- these are additional fields that I want to display in the shopping cart, but they are not displayed, if you specify *, then it displays only the pairs of a specific page.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stanislav Ezersky, 2015-09-07
@EzS

In the snippet parameters, you must specify before displaying in the chunk: savePurchasesFields

C
ChernovGV, 2015-08-21
@ChernovGV

The documentation says that you need to add the corresponding TV to the cartRowTpl template:

 - любой TV-параметр, например ;

 - любой доп. параметр, выбранный при добавлении товара в корзину (из ), например .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question