【发布时间】:2015-11-24 06:20:09
【问题描述】:
当我将产品的<li> 元素拖到第一个位置或任何其他位置然后刷新页面时,它会恢复到以前的位置
这是我编辑的文件: magento/app/design/frontend/base/default/template/catalog/product/list.phtml
我刚刚将 ul 从 <ul class="products-grid"> 更改为
<ul id="sortable" class="products-grid">
现在它工作了,但只有一个 <ul>
<script>
$(function() {
$( "#sortable" ).sortable();
$( "#sortable" ).disableSelection();
});
</script>
这是我获取代码的链接:
【问题讨论】:
-
开始实施并询问您在编码时遇到的问题.. 否则没有人可以帮助您。
-
好的,巴巴克先生,谢谢!
-
我将开始实施
-
感谢 Babak T 先生编辑我的问题
标签: magento drag-and-drop categories