简体   繁体   English

从非购物价格模块设置购买价格[Shopplugin]

[英]setting purchase price from not from shopp price module[Shopplugin]

I used to do this with Pricing & Product set to donation and price from non-shopp script is send to next steps as a donation amount, so user can't change quantity becouse it's combined with donation amount. 我以前是通过将定价和产品设置为捐赠来完成此操作的,非购物脚本中的价格会作为捐赠金额发送到后续步骤,因此用户无法更改数量,因为它与捐赠金额相结合。 it's probalbly this same var. 可能是这个相同的变量。 the next defect is that I can't set product shipping cost.i think that I chose the wrong way to this and the right way is set Pricing & Product to normal option "shipping". 下一个缺陷是我无法设置产品运输成本。我认为我选择了错误的方法,而正确的方法是将“定价和产品”设置为常规选项“运输”。 but if I choose this option I don't have clue how to set price from not shopp module. 但是,如果我选择此选项,我将不知道如何通过非购物模块设置价格。 I can't use bulid in pricing module becouse is too many variants, the configurator have 22 options.. 我不能在定价模块中使用bulid,因为变量太多,配置器有22个选项。

You could use shopp('product', 'input'); 您可以使用shopp('product', 'input'); . This works for products with variations that don't affect the price. 这适用于具有不影响价格的变化的产品。 For instance when a t-shirt comes in 22 colors and 4 sizes and all sell for the same price. 例如,一件T恤有22种颜色和4种尺寸,并且全部以相同的价格出售。

Variations can grow fast. 差异会快速增长。 When you have a product with 3 variations with each 4 options, you are actually adding 4x4x4 (=64) product(price)s. 当您的产品具有3个变体(每个4个选项)时,实际上是在添加4x4x4(= 64)产品(价格)。 Sometimes it is better to rethink the way you are creating products. 有时最好重新考虑您创建产品的方式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM