MAGENTO 插件2次 开发(简单的添加变量,并输出)

合作方式 项目制
预估日薪 500
预估总价 500元
预估工时 1天
发布位置 厦门
可参与范围 全国远程
职位ID 151125
发布方 青鸟
青鸟
投递职位 已有6人投递 ,发布人 点此登录 后查看。

需求描述

在源文件的基础上
修改变量 attribute的固定格式[]和[|]
并添加prefix,suffix为变量 固定格式为{A1|B2|...}
并随机获取各自的值,输出$prefix $ var $suffix


以下为源文件说明:
模版参数说明:

[attribute] — e.g. [name], [price], [manufacturer], [color] — will be replaced with the respective product attribute value or removed if value is not available

[attribute1|attribute2|...] — e.g. [manufacturer|brand] — if the first attribute value is not available for the product the second will be used and so on untill it finds a value

[prefix {attribute} suffix] or

[prefix {attribute1|attribute2|...} suffix] — e.g. [({color} color)] — if an attribute value is available it will be prepended with prefix and appended with suffix, either prefix or suffix can be used alone.

Additional variables available for Product Meta Description: [category], [categories], [store_name], [website_name]

Note: The variables [category] and [categories] should be used when categories are added in product path only to avoid duplicates in meta tags.

举例:
Buy [name][ by {manufacturer|brand}][ of {color} color][ for only {price}][ in {categories}] at[ {store_name},][ website_name]. [short_description]

将转换为:
Buy HTC Touch Diamond by HTC of Black color for only € 517.50 in Cell Phones - Electronics at Digital Store, Digital-Store.com. HTC Touch Diamond signals a giant leap forward in combining hi-tech prowess with intuitive usability and exhilarating design

发布方信用行为

发布项目 1
订单总数 0
退款单数 0

完善简历

工程师完善技术能力和项目经验,更易接到订单

完善人才简历

发布任务

企业点击发布任务,工程师会在任务下报名,招聘专员也会在 1 小时内与您联系确认。