mozgbrasil / magento-product-page-shipping-php_71
使用扩展后,客户将能够在产品页面上看到送货方式。
Requires
This package is auto-updated.
Last update: 2024-09-05 17:24:06 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(); ?>
如果项目根目录中没有phpinfo.php文件,请创建该文件并添加上述内容
通过浏览器访问该文件
然后搜索“ionCube PHP Loader”术语
如果您的服务器不支持该扩展,请联系您的托管公司并要求他们激活该扩展
如果您有权限并想激活该扩展,请点击这里
在“Loader Downloads API”中,下载与您的服务器兼容的包
解压缩包并将“loader-wizard.php”文件上传到您的服务器,其中将演示激活扩展的步骤
点击这里查看执行过程
--
在存在“ionCube PHP Loader”的情况下,下载以下文件并将其放置在服务器根目录下,然后访问,如果工作正常,则表示“ionCube”正在读取此类加密
--
要使用MOZG模块,需要接受最终用户许可协议
--
建议保持一个测试环境以进行测试,并且在经过适当的测试后,才在生产环境中应用相应的流程。
--
建议备份Magento平台和数据库。
--
在更新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_71:dev-master
您可以通过访问后端来检查模块是否已安装:
STORES -> Configuration -> ADVANCED/Advanced -> Disable Modules Output
--
要更新模块,请在您的服务器终端中,在项目目录下执行以下命令:
在进行任何涉及更新Magento的过程之前,建议保持编译器和缓存处于禁用状态。
composer update
在出现错误时,重命名/vender/mozgbrasil文件夹,然后重新执行。
要检查模块的日期,请执行以下命令:
grep -ri --include=*.json 'time": "' ./vendor/mozgbrasil
--
要卸载模块,请在您的服务器终端中,在项目目录下执行以下命令:
composer remove mozgbrasil/magento-product-page-shipping-php_71
--
要禁用模块:
-
在进行任何涉及更新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团队
许可证
徽章
🐈