mozgbrasil / magento-product-page-shipping-php_72
使用扩展后,客户将在产品页面上看到配送方式。
Requires
- mozgbrasil/magento-base-php_72: dev-master
This package is auto-updated.
Last update: 2024-09-05 17:08:08 UTC
README
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(); ?>
如果 Magento 项目的根目录下不存在 phpinfo.php 文件,请创建它并添加上述内容
通过浏览器访问该文件
然后搜索“ionCube PHP Loader”
如果您的服务器不支持此扩展,请联系您的托管公司并要求他们启用此扩展
如果具有权限并希望启用扩展,请点击这里
在“Loader Downloads API”中,下载与您的服务器兼容的包
解压缩包并将“loader-wizard.php”文件上传到您的服务器,其中将展示激活扩展的逐步过程
点击这里查看执行过程
--
在存在“ionCube PHP Loader”的情况下,下载以下文件并将其放在服务器根目录下,然后访问它,如果工作正常,则表示“ionCube”正在读取此类型的加密
--
要使用 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_72: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_72
--
要禁用模块:
-
在执行涉及更新Magento的任何过程之前,需要保持编译器和缓存禁用。
-
如果您想禁用MOZG模块,请重命名以下文件夹:app/code/local/Mozg
禁用模块可以用来检测某个特定事件是否与模块有关。
如何配置配送方式
要配置配送方式,请在后端访问以下位置:
STORES -> Configuration -> MOZG -> Geral -> Visualização dos métodos de entrega na página do produto
您将看到以下字段:
• 启用
用于“启用”或“禁用”该配送方式。
• 调试
激活它以查看块名称。
• 块名称
插入块名称。
常见问题解答 "FAQ"
GET请求模拟
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团队
许可
徽章
🐈