dtrpv60860 2013-09-03 14:42
浏览 541

在BigCommerce商店主页上显示类别

I'm trying to get a custom homepage set up for a BigCommerce store. The store has a handful of products, in two categories. The customer wants the products from both categories displayed on the homepage of the store. Unfortunately BigCommerce only provides panels to display "New" or "Featured" products on the homepage.

Does anyone know how to create a custom panel to display the contents of a chosen category? I have the RSS links for the categories, I was hoping for something like this:

<div class="Block Moveable Panel" id="HomePageCategories">
<h2>Category One</h2>
   <div class="BlockContent">
    <display the first six items from URL source="rss-url-category-1">
   </div>
  <h2>Category Two</h2>
   <div class="BlockContent">
   <display the first six items from URL source="rss-url-category-2">
   </div>
</div>

Anyone have any suggestions or hints to how to achieve this?

  • 写回答

1条回答 默认 最新

  • doushuangdui5419 2013-09-04 08:42
    关注

    I wound up just AJAXing in the contents of the respective content page's .ProductList ul's. Not ideal, but the best quick solution I found.

    I created a new panel called HomePageCategories.HTML and pasted the AJAX function in, like so:

    <div class="Block Moveable Panel" id="HomePageCategories">
    <h2>Category Title One</h2>
       <div class="BlockContent" id="magaziner"></div>
      <h2>Category Title Two</h2>
       <div class="BlockContent" id="buecher"></div>
    </div>
    
    <script type="text/javascript">
    
    var ajax_load = "path_to_loading_gif";
    
    var loadMagaziner = "/magaziner/";    
    $("#magaziner").html(ajax_load).load(loadMagaziner + " .ProductList");  
    
    var loadBuecher = "/buecher/";
    $("#buecher").html(ajax_load).load(loadBuecher + " .ProductList");
     </script>
    
    评论

报告相同问题?

悬赏问题

  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?