magento开发,magento建站,magento模板,magento二次开发,定制

我们是magento ucd开发团队

Magento2 技术支持 上门服务

  • Magento 2 Ask 哈哈哈 第三期

    Magento 2 Ask 哈哈哈 第三期

  • Magento2 REST API 测试

    Magento2 REST API 测试 http://devdocs.magento.com/guides/v2.0/rest/list.html更多API 配置骖考
    <?php
    $userData = array("username" => ", "password" => "");
    $ch = curl_init("http://127.0.0.1/ys/index.php/rest/V1/integration/admin/token");
    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
    curl_setopt($ch, CURLOPT_POSTFIELDS,  json_encode($userData));
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json", "Content-Lenght: " . strlen(json_encode($userData))));

    $token = curl_exec($ch);

    $ch = curl_init("http://127.0.0.1/ys/index.php/rest/V1/orders?searchCriteria");
    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json", "Authorization: Bearer " . json_decode($token)));

    $result = curl_exec($ch);

    print_r($result);
    ?>

  • Magento rest api v1 记录

    Magento rest api v1 记录

    rest/V1/categories/
    rest/V1/categories/3/products
    rest/V1/cmsPage/2
    rest/V1/cmsBlock/2
    rest/V1/categories/attributes
    rest/V1/products/aaa1232/media
    rest/V1/store/storeViews
    rest/V1/products/aaa1232
    rest-api

  • magento2 继续研究checkout

    magento2 继续研究checkout
    shipping-address/form.html
    checkout-3
    之前分析过如何排序,但今天我的想法是拆解

    达到高度自定义的结果
    如图:
    checkout-1
    参考了一下国外的相关论坛,这里我找到答案与大家分享,已演示,完美

    checkout-2

  • Magento2 checkout 页面 字段排序

    Magento2 checkout 页面 字段排序,之前在 shipping页面中我们是修改checkout_index_index.xml
    如:国家字段
    < item name="country_id" xsi:type="array" >
    < item name="sortOrder" xsi:type="string" >300< /item >
    < /item >
    sortOrder1
    今天发现支付页面,修改账单地址billing-address 发现这里又要改,经过好长时间发现,这里我们要对LayoutProcessor.php
    app\code\Magento\Checkout\Block\Checkout\LayoutProcessor.php

    做个调整,同时可以看到
    'country_id' => [
    'sortOrder' => 300,
    ],
    'region' => [
    'visible' => false,
    ]
    有个公司字段要去掉这里就需要'visible' => false,

  • nginx Magento 索引报错

    nginx Magento 索引报错
    Magento php -f indexer.php -- -reindex
    Syntax error or access violation: 1139 Got error 'this version of PCRE is not compiled with Unicode property suppo' from regexp in /home/wwwroot/default/lib/Zend/Db/Statement/Pdo.php:228
    这个报错 有个关键词 Unicode 这里说明字符编码出了问题,找了相关文章找了解决方式

    # pcretest -C
    20170423135649

    PCRE下载地址:https://sourceforge.net/projects/pcre/files/pcre/
    # tar zxvf pcre-8.38.tar.gz
    # cd pcre-8.38

    # ./configure --enable-utf8 --enable-unicode-properties
    # make
    # make install

    安装好后,看一下是否城功

    # pcretest -C
    PCRE version 8.38 2015-11-23
    Compiled with
    8-bit support
    UTF-8 support
    Unicode properties support
    No just-in-time compiler support
    Newline sequence is LF
    \R matches all Unicode newlines
    Internal link size = 2
    POSIX malloc threshold = 10
    Parentheses nest limit = 250
    Default match limit = 10000000
    Default recursion depth limit = 10000000
    Match recursion uses stack

项目 1 到 6 共 231个

页面:
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. ...
  7. 39
工作时间
周一至周六
9:00-18:00
相关咨询电话
400-850-1788
15360669780
侨海科技