mozgbrasil/magento-product-page-shipping-php_54

使用扩展后,客户将能够在产品页面上看到配送方式。

1.0.0 2018-03-01 14:27 UTC

This package is auto-updated.

Last update: 2024-09-05 17:02: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 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_54.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_54: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_54

--

要禁用模块:

  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[country_id]=BR&estimate[region_id]=508&estimate[region]=&estimate[city]=São%20Paulo&estimate[postcode]=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%20Paulo&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%20Paulo&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

🐈