Jump to content

thanhnga

Members
  • Posts

    12
  • Joined

  • Last visited

Profile Information

  • First Name
    Nga
  • Last Name
    Thanh

thanhnga's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Mình muốn thêm một block crossselling vào vị trí dưới sản phẩm thì phải làm thế nào? Vì block crossselling nó hiển thị bên trái dưới productscategory. Mình cần thêm như hình dưới
  2. Rất cảm ơn bạn. Đoạn: float: left; } .clearboth { clear: both; } Mình thay both thành none thì sản phẩm sẽ hiển thị ra hết. Tuy nhiên, mình muốn hiển thị nếu sản phẩm lớn hơn 6 thì hiện dấu mũi tên. Như vậy nó liên quan đến code nào? Vì mình không biết code nên cũng khó. Mong bạn gợi ý mình sẽ cố gắng tìm hiểu hoặc bạn gợi ý giùm code của prestashop.
  3. Cảm ơn các bạn. Nếu mình biết code thì mình tự làm rùi. Here's the relevant code for a 2x2 grid: HTML <div class="slider"> <!-- This will be considered one slide --> <div> <div class="grandchild"> <img src="" /> </div> <div class="grandchild"> <img src="" /> </div> <br class="clearboth"> <div class="grandchild"> <img src="" /> </div> <div class="grandchild"> <img src="" /> </div> </div> <!-- The second slide --> <div> <div class="grandchild"> <img src="" /> </div> ... </div> </div> CSS .grandchild { float: left; } .clearboth { clear: both; } JS $(document).ready(function() { $('.slider').slick({ slidesToShow: 1, slidesToScroll: 1 }); }); Mình xin hỏi 3 câu. 1. Để tạo 2 dòng như code trên mình phải chỉnh sửa đồng thời 3 file như trên phải phải không? hoặc một trong 3 file đó. 2. Hơn nữa đối với prestashop mình thấy file HTML nó nằm ở đâu? 3. Mình thấy file css của mình: float: left; clear: none!important; Nhưng theo hướng dẫn. .grandchild { float: left; } .clearboth { clear: both; } Vậy nó khác nhau chỗ nào? Mong các bạn giúp đở.
  4. Hi, mình muốn tạo: 3 sản phẩm cùng danh mục => hiển thị thành 1 dòng, 6 sản phẩm => 2 dòng và nếu lớn hơn 6 sản phẩm nó hiển thị dấu mũi tên "kế tiếp". ( Vì theo mặc định nó chỉ hiển thị sản phẩm trên 1 dòng và nếu lớn hơn 3 nó hiện mũi tên "kế tiếp" Mong bạn giúp đở.
  5. Cảm ơn bạn, Mình muốn TH2 như bạn nói đó. Và file productscategory.tpl của mình {if count($categoryProducts) > 0 && $categoryProducts !== false} <section class="page-product-box blockproductscategory"> {*}<h3 class="productscategory_h3 page-product-heading">{$categoryProducts|@count} {l s='Other products in the same category:' mod='ovicproductscategory'}</h3>{*} <h3 class="productscategory_h3 page-product-heading">{l s='Products In The Same Category' mod='productscategory'}</h3> <div id="productscategory_list" class="clearfix"> {include file="$tpl_dir./product-list.tpl" products=$categoryProducts id='productscategory_list_ul'} </div> {if count($categoryProducts) > 4}<a id="productscategory_scroll_right" class="next_slide navigation_btn" title="{l s='Next' mod='ovicproductscategory'}" href="javascript:{ldelim}{rdelim}">{l s='Next' mod='ovicproductscategory'}</a>{/if} {if count($categoryProducts) > 4}<a id="productscategory_scroll_left" class="prev_slide navigation_btn" title="{l s='Previous' mod='ovicproductscategory'}" href="javascript:{ldelim}{rdelim}">{l s='Previous' mod='ovicproductscategory'}</a>{/if} </section> {/if}
  6. Do site của mình chưa hoàn thiện nên không giám đưa lên ngại lắm. Mình đang dùng prestashop 1.6.1.4 và dùng cái themes này tương tự như site của mình. Link dưới đó bạn. http://kutethemes.com/demo/supershop/option1/en/women/48-gentle-silk-top.html
  7. Hi,Paul Nguyen Mình không biết code, bạn giúp giùm. File productscategory.js trong themes của mình nè, cần bỏ đoạn nào vậy bạn: /* * 2007-2014 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2014 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA */ function pc_serialScrollFixLock(event, targeted, scrolled, items, position) { var leftArrow = position == 0 ? true : false; var rightArrow = position + 4 >= $('#productscategory_list li:visible').length ? true : false; $('a#productscategory_scroll_left').css('cursor', leftArrow ? 'default' : 'pointer').fadeTo(0, leftArrow ? 0 : 1); $('a#productscategory_scroll_right').css('cursor', rightArrow ? 'default' : 'pointer').fadeTo(0, rightArrow ? 0 : 1).css('display', rightArrow ? 'none' : 'block'); return true; } function resizeProductitem() { var docWidth = $(document).width(); if ( docWidth <= 480 ) { var docItemWidth = $('#productscategory_list').width(); $('#productscategory_list_ul.product_list.grid li').css('width', docItemWidth); }else if ( docWidth <= 767 ) { var docItemWidth = Math.floor(($('#productscategory_list').width()-30)/2); $('#productscategory_list_ul.product_list.grid li').css('width', docItemWidth); }else if ( docWidth >= 768 ) { $('#productscategory_list_ul.product_list.grid li').removeAttr('style'); } } $(document).ready(function() { $('#productscategory_list').serialScroll({ items: 'li', prev: 'a#productscategory_scroll_left', next: 'a#productscategory_scroll_right', axis: 'x', offset: 0, stop: true, onBefore: pc_serialScrollFixLock, duration: 400, step: 1, lazy: true, lock: false, force: false, cycle: true }); $('#productscategory_list').trigger( 'goto', 0); $(window).load(resizeProductitem); $(window).resize(function(){ resizeProductitem(); $('#productscategory_list').trigger( 'goto', 0); } ); $(window).on( "orientationchange", function() { resizeProductitem(); }); });
  8. Trong modun productscategory, mình muốn tạo nhiều dòng "Sản phẩm cùng danh mục-Products In The Same Category " (Mặc định là 1 dòng) thì làm như thế nào? Mong được trợ giúp? Ví dụ mình muốn chuyển thành 2 dòng như sau
  9. I upgraded from 1.6.0.14 to 1.6.1 prestashop using modun 1-Click Upgrade - AutoUpgrade v1.6.4 - by PrestaShop. But once in index.php? Controller = AdminLogin & token = 4295eefbf2e12ed69eba737a054fbbaa is faulty white pages. Looking forward to help.
  10. Trong prestashop mình muốn tính tiền vận chuyển như thế này. + Nếu tổng sản phẩm có khối lượng từ 0 kg đến 1 kg thì số tiền vận chuyển là 10000 VNĐ. + Nếu tổng sản phẩm có khối lượng từ hơn 1 kg đến 2 kg thì số tiền vận chuyển là 15000 VNĐ. + Nếu tổng sản phẩm có khối lượng từ hơn 2 kg đến 3 kg thì số tiền vận chuyển là 20000 VNĐ. + Nếu tổng sản phẩm có khối lượng từ hơn 3 kg đến 4 kg thì số tiền vận chuyển là 24000 VNĐ. .................................................................. Như vậy tổng khối lượng của nhiều sản phẩm là m kg thì số tiền vận chuyển là n VNĐ. Vậy phải làm như thế nào để prestashop tính được số tiền vận chuyển trên. Mong các bạn giúp đở. Trân trọng cảm ơn
×
×
  • Create New...