fecyo安装及自定义手记

技术分享 · jqonline · 于 3年前 发布 · 1531 次阅读

1 安装fecmall

  • 1.1 下载zip包,解压
  • 1.2 init
  • 1.3 配置站点,设置启动目录,绑定必须域名(appfront、appadmin、appimage),建立数据库
  • 1.4 install //如果有错误代码出现,返回重新提交即可
  • 1.5 设置appfront store

2 安装fecyo

  • 2.1 加长php超时时间
  • 2.2 安装(下载)fecyo并激活,改回php超时时间
  • 2.3 设置store
  • 2.4 添加静态块

3 分类、产品属性、产品添加

以上部分请参考Fecmall官方安装手册即可

4 自定义

  • 4.1 复制addons/...theme/fecyo至appfront/theme/my,并添加至store中本地开发模板路径,后期所有修改均在my目录完成
  • 4.2 首页大图高度不适配:channal.css
    .home-page .slide-container //删除 position: absolute; 删除 height
    .home-page .slide-thumb-container //删除height
    
  • 4.3 菜单产品分类二级页行数 n=分类总数/4 menu.php
    $i%9 //替换为 $i%n
    
  • 4.4 产品页 小图变形
    • 4.4.1 product.css
      .product-detail-page .main .thumb //删除height
      .product-detail-page .main .thumb.active //颜色改为#CCC
      
    • 4.4.2 image.php
      height=58 //删除
      
  • 4.5 产品列表开新页问题 index.php
    target="_blank" //删除
    
  • 4.6 显示产品计价单位
    • 4.6.1 产品属性添加自定义的字段unit
    • 4.6.2 赋值unit:克、千克、粒,此处的unit不参与商品运费计算,计重以原weight为准
    • 4.6.3 调用 index.php
      <?php if(isset($groupAttrArr["unit"]) && $groupAttrArr["unit"]): ?>
      js代码
      <?php endif; ?>
      
    • 4.6.4 js代码

      引入jquery/1.10.2/jquery.min.js

      $("span[class='price']").after("<span>元/<?= $groupAttrArr["unit"]; ?></span>");
      $("span[class='ac-type']").after("<span class=\"ac-unit\"><?= $groupAttrArr["unit"]; ?></span>");
      
    • 4.6.5 product.css
      .product-detail-page .main .ac-unit //增加 
      .product-detail-page .main .ac-des //删除width行
      
    • 4.6.6 tier_price.php
      <?= Yii::$service->page->translate->__('item') ?>:<a target="_blank" href="" rel="nofollow"><?= Yii::$service->product->price->formatSamplePrice($tier_price_item); ?></a>
      

      替换为

      <?= Yii::$service->product->price->formatSamplePrice($tier_price_item); ?>
      
  • 4.7 产品详情居中问题 product.css
    .product-detail-page .details //删除 text-align: center;
    .product-detail-page .details-html //删除 text-align: center;
    
  • 4.8 cms详情页图片撑破页面问题 base.css
    cms-content img { //新增
    max-width:100%;
    }
    
  • 4.9 首页大图效果 index.php
    captions: true, //包括图像标题。标题来自图像的标题属性
    auto: true, //幻灯片将自动过渡
    
  • 4.10 h5端产品简短描述 block层index.php description上面添加
    'short_description' => Yii::$service->store->getStoreAttrVal($this->_product['short_description'], 'short_description'),
    

    本文由 jqonline 创作,采用 知识共享署名 3.0 中国大陆许可协议 进行许可。 可自由转载、引用,但需署名作者且注明文章出处。

共收到 0 条回复 技术分享
没有找到数据。
添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics