commerce_product_clone, inline_entity_form duplicate uuid problem, whem clone commerce product variant

There are 2 modules allow us to copy commerce product variant.

  1. commerce_product_clone

  2. inline_entity_form

For commerce_product_clone, you can use it in and individual commerce product variant page. But mostly we will prefer to copy with inline form, when we edit commerce product display, clone a variant and attache to current product display.

Unfortunately, both module release versions have not fix uuid duplicate problem.


/products?search_api_views_fulltext= 简化

Tags:

适用于 commerce kickstart 7.x-2.48

在首页,或者其他有显示搜索框的地方,编辑搜索的 views.

image.png

编辑fulltext search (exposed),红框中的部分改为自己需要的即可

image.png

uuid 取代 guid 作为产品的feeds导入唯一标志

Tags:

drush en uuid -y
drush en commerce_uuid -y

cd sites/all/modules/uuid/

wget https://www.drupal.org/files/issues/include_uuid_mapper_for-1800730-23.p...

patch -p1 < include_uuid_mapper_for-1800730-23.patch


note: patch 让feeds 支持添加 uuid 的map


commerce address 添加 phone 字段 addressfield_phone

Tags:

    if (!$settings || isset($settings['phone'])) {

      $format['phone_block']['phone_number']['phone_number'] = array(

        '#title' => t('Contact Phone'),

        '#size' => 15,

        '#attributes' => array('class' => array('phone-number')),

        '#type' => 'textfield',

让drupal支持邮件和用户名登录

Tags:

https://www.drupal.org/project/login_emailusername

无需设置,开启后即支持邮件和用户名登录. 有D7 D8 版本

Drush 用户与权限问题

Tags: Drush

通过 drush 安装了一个 vbo_export 模块。但是在导出文件的时候提示没有文件权限,无法拷贝。

查看系统 log,发现

WSL 配置 apache2 php mysql 环境

apt-get install  php5 mysql-server mysql-client

apt-get install php5-mysql php5-gd php5-curl

 

image