Page MenuHomeIn-Portal Phabricator

modern-store
No OneTemporary

File Metadata

Created
Wed, Feb 12, 3:16 AM

modern-store

Index: branches/1.0.x/elements/content_boxes/products.elm.tpl
===================================================================
--- branches/1.0.x/elements/content_boxes/products.elm.tpl (revision 15025)
+++ branches/1.0.x/elements/content_boxes/products.elm.tpl (revision 15026)
@@ -1,54 +1,56 @@
<inp2:m_DefaultParam prefix="" list_name="" types="" parent_cat_id="" layout="list"/>
<inp2:m_if check="m_Get" name="ajax" equals_to="yes">
<inp2:m_NoDebug/>
<inp2:m_Get name="list_prefix" result_to_var="prefix"/>
<inp2:m_Get name="list_name" result_to_var="list_name"/>
<inp2:m_Get name="types" result_to_var="types"/>
<inp2:m_Get name="parent_cat_id" result_to_var="parent_cat_id"/>
<inp2:m_Get name="layout" result_to_var="layout"/>
</inp2:m_if>
<inp2:$prefix_InitList list_name="$list_name" types="$types" parent_cat_id="$parent_cat_id" main_list="1"/>
<inp2:m_Include template="elements/content_boxes.elm" strip_nl="2"/>
<inp2:m_Include template="elements/product_elements.elm" strip_nl="2"/>
<inp2:m_if check="{$prefix}_TotalRecords" list_name="$list_name">
<inp2:m_Include template="elements/sorting.elm" list_name="$list_name" prefix="$prefix" layout="$layout" ajax="1"/>
<div class="items <inp2:m_if check='m_Param' name='layout' equals_to='list'>border-radius<inp2:m_else/>items-alt</inp2:m_if>">
<ul class="display<inp2:m_if check='m_Param' name='layout' equals_to='grid'> thumb_view</inp2:m_if>">
<inp2:$prefix_ListProducts list_name="$list_name" render_as="product_list_element"/>
</ul>
<div class="clear"></div>
<inp2:m_Include template="elements/pagination.elm" list_name="$list_name" prefix="$prefix" ajax="1"/>
</div>
<script type="text/javascript">
$(document).ready(
function () {
$('.compare-checkbox').click(
function ($e) {
var $me = $(this);
compare_product($me.val(), $me.is(':checked'));
}
);
- $('.addtocart', '#products').click(add_to_cart_handler);
+ <inp2:m_if check="m_Get" name="ajax" equals_to="yes">
+ $('.addtocart', '#products').click(add_to_cart_handler);
+ </inp2:m_if>
}
);
</script>
<inp2:m_else/>
No Products
</inp2:m_if>
<inp2:m_if check="m_GetConfig" name="UpdateCountersOnFilterChange">
<inp2:m_include template="elements/filters.elm"/>
<script type="text/javascript">
<inp2:item-filter_PrintList render_as="filter_counters_element" list_name="$list_name" prefix="$prefix" is_list="1"/>
</script>
</inp2:m_if>
\ No newline at end of file

Event Timeline