mhauri / mhauri_sample-order
提供通过自定义属性配置的常规结账流程订购产品免费样品的解决方案。
v1.0.5
2015-04-01 11:07 UTC
Requires
This package is auto-updated.
Last update: 2024-09-16 03:02:01 UTC
README
这是我的第一个免费Magento扩展,它提供了一种解决方案,可以通过目录中任何产品的常规结账流程订购免费样品,该解决方案通过自定义属性进行配置。
它不提供前端适配。要使其工作,只需在您的模板文件中添加一个如 /sampleorder/add/product/id/{product_id} 的链接,或者使用以下示例代替
<?php if ($this->helper('sampleorder')->isSampleOrderAllowed($_product)) : ?> <?php $_sampleorderUrl = $this->helper('sampleorder')->getAddUrl($_product); ?> <a href="<?php echo $_sampleorderUrl ?>" class="link-sampleorder"><?php echo $this->helper('sampleorder')->__('Sample Order') ?></a> <?php endif; ?>
捐赠
此扩展完全免费使用,但如果您喜欢它,我将非常感激一点小捐赠。
变更日志
-
1.0.5
- 几个错误修复
- CE 1.9 兼容
- 修复控制器文件名
-
1.0.4
- 添加德语翻译
- 将属性类型从选择更改为布尔型
- PHP 编码标准