kyrena/openmage-shippingmax
Composer 安装命令:
composer require kyrena/openmage-shippingmax
包简介
A module to add new pick up shipping methods for OpenMage.
README 文档
README
Stop russian war. 🇺🇦 Free Ukraine!
shippingmax
A module to add new pick up shipping methods for OpenMage.
Composer dependencies:
Included dependencies:
- owebia/shipping (2.6.10-lite, without jquery/editor/phpparser/doc)
- leaflet (1.9.4)
External services:
- Nominatim: addresses geocoding (results are stored in database)
- DaData: addresses geocoding (results are stored in database, only for RU and KZ), account required
New configuration options
In System / Configuration / Delivery times, you can configure delivery times by country of delivery. You are seeing a * in section head? This is because all times are not yet configured.
In System / Configuration / Shipping Methods / General, you can hide and clear configuration for a custom selection of unused shipping methods. You are seeing a * in section head? This is a mark to inform you that the shipping method is available for the default country of the current store view.
In System / Configuration / Customer / Address Templates, templates are managed everywhere automatically with adamlc/address-format, phone numbers are formatted with giggsey/libphonenumber-for-php.
New shipping methods (pick up)
Shipping methods are available for a selection of countries, depending on order weight and amount. All details are displayed in shipping methods configuration (you can also read content of <default> tag in config.xml).
You will love debugging URLs for pick up shipping methods. You opened a link and you see the map while the shipping method is disabled but have a title? It's not a bug, it's a feature.
The lists of pick up points are retrieved regularly from internet (via a cron job) and saved in var/shippingmax/*.dat. When cron jobs are disabled, lists are retrieved on demand (when a customer open the map, if the cache file doesn't exist or if the cache file has expired).
The country of the customer shipping address is used on the map, and can't be changed on the map.
This module doesn't generate any labels.
Demo links may not work, don't panic, it's not a bug.
| Name | Logo/Link | Info |
|---|---|---|
| Chrono Relais | online demo: 42100, Saint-Étienne, FR api: account required |
|
| Colis Privé | online demo: 42100, Saint-Étienne, FR api: account required |
|
| Mondial Relay | online demo: 42100, Saint-Étienne, FR api: account required |
|
| DPD FR Relais | online demo: 38500, Voiron, FR api: free |
|
| InPost IT | online demo: 00121, Roma, IT api: free |
|
| InPost GB | online demo: KA1 2QA, Kilmarnock, GB api: free |
|
| InPost PL | online demo: 22-100, Chełm, PL api: free |
|
| Pocztex | online demo: 50-307, Wrocław, PL api: free |
|
| Packeta/Zásilkovna | online demo: 547 01, Náchod, CZ api: account required |
|
| Boxberry | don't work with this country, it's an enemy of your freedom online demo: 664003, Иркутск, RU api: free (demo token included with default configuration) |
|
| 5post | don't work with this country, it's an enemy of your freedom online demo: 127299, Москва, RU api: account required |
|
| PickPoint | don't work with this country, it's an enemy of your freedom online demo: 140000, Люберцы, RU api: account required |
|
| Shiptor | don't work with this country, it's an enemy of your freedom online demo: 454000, Челябинск, RU api: free |
|
| Store delivery | online demo: 07200, Aubenas, FR source of data: a TSV file |
|
| Store locator | online demo source of data: a TSV file |
Do you want more? Contact us, perhaps we can work together to add new methods! For example: Colissimo, Relais Colis, Swiss Post, GLS, UPS...
Customization
For one step checkout modules, you must edit your shipping methods template, for example with:
<?php foreach ($shippingRateGroups as $code => $rates): ?> [...] <?php foreach ($rates as $rate): ?> [...] <?php if ($this->helper('shippingmax')->isSpecial($code)): ?> <?php echo Mage::getBlockSingleton('shippingmax/selected') ->setTemplate('kyrena/shippingmax/selected.phtml') ->setData('code', $code) ->toHtml() ?> <?php else: ?> [...] <input type="radio" name="shipping_method" value="<?php echo $rate->getCode() ?>" ... [...] <?php endif ?> [...] <?php endforeach ?> <?php endforeach ?>
To display delivery times, you must edit your template with:
<?php $shippingDate = $this->helper('shippingmax')->getShippingDate($rate->getCode()) ?> <?php if (!empty($shippingDate)): ?> <?php echo $shippingDate ?> <?php endif ?>
Copyright and Credits
- Current version: 3.3.1 (16/06/2023)
- Compatibility: OpenMage 19.x / 20.x / 21.x, PHP 7.2 / 7.3 / 7.4 / 8.0 / 8.1 / 8.2
- Client compatibility: Firefox 36+, Chrome 32+, Opera 19+, Edge 16+, Safari 9+
- Translations: English (en), French (fr-FR/fr-CA), German (de), Italian (it), Portuguese (pt-PT/pt-BR), Spanish (es) / Chinese (zh), Czech (cs), Dutch (nl), Greek (el), Hungarian (hu), Japanese (ja), Polish (pl), Romanian (ro), Russian (ru), Slovak (sk), Turkish (tr), Ukrainian (uk)
- License: GNU GPL 2+
If you like, take some of your time to improve the translations, go to https://bit.ly/2HyCCEc.
Installation
With composer:
composer remove owebia/magento1-module-advanced-shipping- search and remove all owebia/shipping files and directories
composer require kyrena/openmage-shippingmax- clear cache
Without composer:
- search and remove all owebia/shipping files and directories
- download latest release and extract src/* directories
- here adamlc/address-format, giggsey/libphonenumber-for-php and azuyalabs/yasumi are not required and not used, so I suggest you remove
<customer>...</customer>block in our system.xml - clear cache
kyrena/openmage-shippingmax 适用场景与选型建议
kyrena/openmage-shippingmax 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 29 次下载、GitHub Stars 达 4, 最近一次更新时间为 2021 年 09 月 09 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「openmage-module」 「openmage」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 kyrena/openmage-shippingmax 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 kyrena/openmage-shippingmax 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 kyrena/openmage-shippingmax 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Free and open source ecommerce platform, created in 2024 on the M1 platform, PHP 8.3+
A Magento 1 extension to attach PDF documents to emails.
A queue module for OpenMage and Maho, built on Symfony Messenger. Backend-agnostic (Redis Streams in v3.0).
Translations for OpenMage from Magento 1/2 and old languages packs.
The vianetz AsyncQueue Magento 1 Extension.
Asynchronous Mage index event draining for OpenMage and Maho, using hirale/queue.
统计信息
- 总下载量: 29
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 1
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2021-09-09
