mozgbrasil/magento-product-page-shipping-php_56

使用此扩展,客户将能够在产品页面查看发货方式。

1.0.0 2018-03-01 14:27 UTC

This package is auto-updated.

Last update: 2024-09-05 16:51:15 UTC


README

valid XHTML

Mozg\ProductPageShipping

摘要

在产品页面展示配送方式。

动机

为了满足市场对 Magento 模块的需求,提供改进和优质的客户支持。

支持/疑问

要获得支持,请点击这里,尽可能详细地描述问题发生的原因,并附加屏幕截图以便我们理解。

价格

点击这里

技术特性

它显示在产品查看页面中,具体是在具有 "product.info.extrahint" 标识的块中,显示计算运费的表单,其中返回具有相应值的配送服务。

在 Heroku 上测试

我想展示我在 Heroku 平台上提供的应用程序。

只需点击一次,应用程序即可创建使用电子商务平台 Magento 的虚拟商店,并安装 MOZG 模块。

https://github.com/mozgbrasil/heroku-magento#descrição

安装 - 更新 - 卸载 - 禁用

--

建议打印出所有执行过程的屏幕截图。

如有任何困难,请将屏幕截图发给我们。

--

此模块旨在使用 Composer 安装。

在终端中运行以下命令,以查看 Composer 的存在及其版本:

composer --version

如果您环境中没有 Composer,建议阅读以下文章点击这里

--

服务器需要支持 ionCube PHP Loader 扩展。

要在名为 PHP CLI 的环境中查看该扩展的存在,请在终端中执行以下命令:

php -v

要查看该扩展是否在名为 PHP WEB 的服务器环境中激活:

请确保您的项目根目录中存在 phpinfo.php 文件。

<?php phpinfo(); ?>

如果项目根目录中没有 phpinfo.php 文件,请创建该文件并添加上述内容。

通过浏览器访问该文件。

然后搜索 "ionCube PHP Loader" 术语。

如果您的服务器不支持该扩展,请联系您的托管公司并要求他们激活该扩展。

如果拥有权限并且想要激活扩展,请点击这里

在 "Loader Downloads API" 中,下载与您的服务器兼容的包。

解压缩包并将 "loader-wizard.php" 文件上传到您的服务器,然后按照步骤激活扩展。

点击这里查看执行过程。

--

在存在 "ionCube PHP Loader" 的情况下,下载以下文件并将其放置在服务器根目录,然后访问它,如果工作正常,则表示 "ionCube" 正在读取这种加密类型。

https://raw.githubusercontent.com/mozgbrasil/heroku-magento/master/phpinfo-ioncube-encoder10-x86-64-php_56.php

--

要使用 MOZG 的模块,必须接受最终用户许可协议

--

建议保留一个测试环境以进行测试,并且仅在经过适当的测试后,才在生产环境中应用相应的程序。

--

建议备份Magento平台和数据库。

--

在更新Magento之前,始终保持编译器和缓存处于禁用状态。

--

请确认您的项目根目录下存在composer.json文件,并且其参数类似于以下JSON模型:

{
  "minimum-stability": "dev",
  "prefer-stable": true,
  "license": [
    "proprietary"
  ],
  "repositories": [
    {
      "type": "composer",
      "url": "https://packages.firegento.com"
    }
  ],
  "extra": {
    "magento-root-dir": "./",
    "magento-deploystrategy": "copy",
    "magento-force": true
  }
}

如果项目根目录下不存在composer.json文件,请创建该文件并添加上述内容。

要安装模块,请在服务器的终端中执行以下命令,进入您的项目目录:

composer require mozgbrasil/magento-product-page-shipping-php_56:dev-master

您可以通过访问后端来检查模块是否已安装

STORES -> Configuration -> ADVANCED/Advanced -> Disable Modules Output

--

要更新模块,请在服务器的终端中执行以下命令,进入您的项目目录:

在进行任何涉及更新Magento的过程之前,建议保持编译器和缓存处于禁用状态。

composer update

在发生错误时,请重命名/vendor/mozgbrasil文件夹,然后重新执行。

要检查模块的日期,请执行以下命令:

grep -ri --include=*.json 'time": "' ./vendor/mozgbrasil

--

卸载模块,请在服务器的终端中执行以下命令,进入您的项目目录:

composer remove mozgbrasil/magento-product-page-shipping-php_56

--

要禁用模块

  1. 在进行任何涉及更新Magento的过程之前,必须保持编译器和缓存处于禁用状态。

  2. 如果您想禁用MOZG模块,请重命名以下文件夹:app/code/local/Mozg

模块禁用可以用于检测特定事件是否与模块有关。

如何配置配送方式

要配置配送方式,请访问后端

STORES -> Configuration -> MOZG -> Geral -> Visualização dos métodos de entrega na página do produto

您将看到以下字段

启用

用于“启用”或“禁用”该配送方式

调试

启用它以查看块名称

块名称

插入块名称

常见问题解答 "FAQ"

通过GET进行模拟

http://127.0.0.1/public_html/application-dev38/magento/mozg_productpageshipping/process/estimate/id/339/?form_key=MYVfBGMmGlceAUlX&product=339&related_product=&estimate%5Bcountry_id%5D=BR&estimate%5Bregion_id%5D=508&estimate%5Bregion%5D=&estimate%5Bcity%5D=S%C3%A3o%20Paulo&estimate%5Bpostcode%5D=08215-430&qty=1

http://phpstack-48796-375559.cloudwaysapps.com/magento/mozg_productpageshipping/process/estimate/id/339/?form_key=MYVfBGMmGlceAUlX&product=339&related_product=&estimate[country_id]=BR&estimate[region_id]=508&estimate[region]=&estimate[city]=São Paulo&estimate[postcode]=08215-430&qty=1

http://www.estacaolingerie.com.br/ambienteste01/index.php/mozg_productpageshipping/process/estimate/id/5905/?form_key=B2vguZ9coKmxZHGi&estimate[country_id]=BR&estimate[region_id]=508&estimate[region]=&estimate[city]=São Paulo&estimate[postcode]=08215-430&super_attribute[92]=261&super_attribute[144]=370&qty=0&product=5905

功能已激活但未显示

更改资源的位置

在方法配置中启用调试

将显示多个带有其相应名称的资源内部块

选择您想要插入资源的块名称

在方法配置中更改为新块名称

如何更改资源的布局

您可以在产品页面的任何位置添加以下块,并根据需要自定义

<!-- MOZG -->
<script>
Event.observe(window, 'load', function() {
    $('block-shipping-form').remove();
});
</script>

<div class="block" style="width:300px">
    <div class="block-title">
        <strong><span><?php echo $this->__('Estimate Shipping') ?></span></strong>
    </div>
    <div class="block-content">
        <ul class="shipping-estimation-form" id="shipping-estimation-form">
           <li class="item odd" id="li-estimate-country">
              <label for="estimate_country">País</label>
              <div class="input-box">
                 <select name="estimate[country_id]" id="estimate_country" class="validate-select" title="País">
                    <option value=""> </option>
                    <option value="BR" selected="selected">Brasil</option>
                 </select>
              </div>
           </li>
           <li class="item even" id="li-estimate-region">
              <label for="estimate_region_id">Estado</label>
              <div class="input-box">
                 <input type="text" class="input-text" id="_estimate_region" name="estimate[region]" value="SP">
              </div>
           </li>
           <li class="item odd" id="li-estimate-city">
              <label for="city">Cidade</label>
              <div class="input-box">
                 <input class="input-text" id="estimate_city" name="estimate[city]" value="São Paulo" type="text">
              </div>
           </li>
           <li class="item last even" id="li-estimate-postcode">
              <label for="estimate_postcode">CEP</label>
              <div class="input-box">
                 <input class="input-text validate-postcode" id="estimate_postcode" name="estimate[postcode]" value="08250-580" type="text">
              </div>
           </li>
        </ul>
        <div class="actions">
            <div class="f-right">
                <button onclick="estimateProductShipping('new-shipping-estimate-results');" class="button " title="Ok" type="button"><span><span>Ok</span></span></button>
            </div>
        </div>
        <div id="new-shipping-estimate-results"></div>
    </div>
</div>
<!-- / MOZG -->

贡献者

Mozg团队

许可证

商业许可证

徽章

Join the chat at https://gitter.im/mozgbrasil Latest Stable Version Total Downloads Latest Unstable Version License Monthly Downloads Daily Downloads Reference Status Dependency Status

🐈