bastiaanh/magento-engraving-costs
Composer 安装命令:
composer require bastiaanh/magento-engraving-costs
包简介
Engraving Costs Module for Magento
README 文档
README
Description
Magento's custom product options can add a fixed price or a percentage to the total cost of a product. With this module you get a third one: a price Per Character. This means the option price is multiplied by the length of the text entered into the input field. This is useful for custom engravable products, where customers need to pay a surcharge per character they want engraved.
The product price is calculated on-the-fly by the JavaScript while the customer enters the text, and once more by the PHP code when the product is added to the cart.
Because the calculation itself hooks into Magento's core JavaScript code, multiple custom options can easily be combined. The module should be compatible with most custom front-end themes without any need for modifications.
Usage
- Login to the Magento Admin Panel and create or edit a product.
- Create or edit a custom option with input type Text Field or Text Area.
- Under price, enter the cost of one character, and select Per Character as price type.
- Save the product and try it out on the front-end.
Installation
Install the module files using one of the following three methods:
- Install files via composer
-
Install composer
-
Install magento composer installer
-
Use this command from your Magento installation folder:
composer require bastiaanh/magento-engraving-costs
- Install files via modman
-
Install modman
-
Use this command from your Magento installation folder:
modman clone https://github.com/bastiaanh/magento-engraving-costs/
- Install files manually
You can copy the files from the src/ folder of this repository to the same folders of your installation
Once the files are installed:
- Clear the cache, logout from the admin panel and then login again.
Uninstallation
-
Make sure there are no more custom options with price type 'perchar':
UPDATE catalog_product_option_price SET price_type = 'fixed' WHERE price_type = 'perchar'; -
Remove all extension files from your Magento installation.
-
Via composer:
composer remove bastiaanh/magento-engraving-costs -
Via modman:
modman remove BastiaanH_EngravingCosts
Requirements
- PHP >= 5.3.0
Compatibility
- Magento CE >= 1.6 and < 2.0
- Magento EE >= 1.11 and < 2.0
Support
If you have any issues with this extension, feel free to open an issue on GitHub.
Contribution
All contributions are highly appreciated. The best way to contribute code is to open a pull request on GitHub.
License
The project is licensed under the MIT license.
bastiaanh/magento-engraving-costs 适用场景与选型建议
bastiaanh/magento-engraving-costs 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 16 次下载、GitHub Stars 达 0, 最近一次更新时间为 2017 年 05 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 bastiaanh/magento-engraving-costs 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 bastiaanh/magento-engraving-costs 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-05-20

