如何在opencart产品中设置自定义价格? [英] How to set custom price in opencart products?

查看:369
本文介绍了如何在opencart产品中设置自定义价格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经下载了最新版本的opencart(3.0.2.0). 我产品的价格取决于各种选择,即. 大小,颜色,数量.

I have downloaded the latest version of opencart (3.0.2.0). The pricing of my product depends on various options viz. size, color , quantity.

对于数量,默认情况下是否有任何功能来设置价格范围,例如1-500件的一个价格,从501-1000打折的价格?我的产品是腕带,因此我根据要打印的文本腕带尺寸,数量范围来计算价格.默认情况下,opencart具有选项功能,但我的选项具有子选项(从属选项).

For quantity, is there any feature by default to set price range, like for 1-500 pieces one price, from 501-1000 discounted price? My products are wristbands, so I calculate price based on text they want to print, size of the band, quantity range. By default opencart has feature for options but my options have sub options (dependent options).

我在社区中阅读了关于相关选项的其他答案,但找不到可行的解决方案,也无法通过自定义价格.如何编辑核心文件,以使自定义定价有效?

I read other answers on the community for dependent options but could not find a working solution and same for passing custom price. How can I edit the core files so that custom pricing works?

产品数据保存在数据库中,价格也保存在数据库中.但是当用户定制产品时,我想更改价格.价格变化应反映在购物车中,并在整个结帐期间保持不变.如何在opencart中创建子选项?用价格创建子选项也可以解决我的自定义定价问题.

Product data is saved on database and so is the price. But as users customize the product I want to change the price. The price change should reflect in shopping cart and should remain same through out the checkout. How to create sub options in opencart? Creating sub options with prices would solve my custom pricing issue too.

推荐答案

您可以使用opencart提供的默认折扣功能设置不同的价格范围:-

You can set different price range by using the default discount functionality provided by opencart :-

在管理部分中,单击您要设置不同价格范围的某些产品的编辑;然后转到折扣"标签并填写以下条目:

In admin section click on edit for some product you want to set different price range to; then go to discount tab and fill entries as below:

quantity  priority  price
   6         0        50
   11        0        45
   16        0        40

假设产品价格为$ 100. 基于以上折扣情况,将是:-

Let say product price is $100. Based on above discount scenario will be like:-

qty <= 5 price will be $100/unit; 
qty > 5 price will be $50/unit; 
qty > 10 price will be $45/unit; 
qty > 15 price will be $40/unit;

此外,您可以使用正常方式的选项.客户根据该价格选择的任何选项都将添加/订阅.

Alongside you can use option in normal way. Whichever option selected by customer based on that prices will add/sub.

无需设置子选项来管理不同的价格范围.

There is no need to set sub option to manage different price range.

这篇关于如何在opencart产品中设置自定义价格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆