篮子管道总是设定价格 [英] Basket pipeline always sets placed price

查看:90
本文介绍了篮子管道总是设定价格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对订单项的定价存在问题。我设置了一个定价(161,5)和一个不同的定价(249),然后我运行了Basket管道。然后将它设置的定价设置为与定价相同的价格,即使文件
为'RequiredItemAdjustPriceCy指出只有当它为空时才设置放置价格。

I have a problem with the placed price on the line item. I set a list price (161,5) and a different placed price (249), and then I run the Basket pipeline. Afterwards the placed price it set to the same price as list price, even though the documentation for RequiredItemAdjustPriceCy states that placed price only get set when it is empty.

 

RootObject: ReadValue
VT_DISPATCH
PV = [0x436cda0] VT_EMPTY
__ empty __

RootObject: ReadValue Items VT_DISPATCH PV=[0x436cda0] VT_EMPTY __empty__

ReadValue
_cy_iadjust_currentprice VT_NULL
__ null __ VT_EMPTY
__ empty __

: ReadValue _cy_iadjust_currentprice VT_NULL __null__ VT_EMPTY __empty__

R eadValue
_cy_iadjust_regularprice VT_CY
161,5 VT_EMPTY
__ empty__

: ReadValue _cy_iadjust_regularprice VT_CY 161,5 VT_EMPTY __empty__

WriteValue
_cy_iadjust_currentprice VT_NULL
__ null __ VT_CY
161,5

: WriteValue _cy_iadjust_currentprice VT_NULL __null__ VT_CY 161,5

ReadValue
cy_placed_price VT_CY
249 VT_EMPTY
__ empty __

: ReadValue cy_placed_price VT_CY 249 VT_EMPTY __empty__

WriteValue
cy_placed_price VT_CY
249 VT_CY
161,5

: WriteValue cy_placed_price VT_CY 249 VT_CY 161,5

RootObject: ReadValue
_Basket_Errors VT_DISPATCH
PV = [0x436cea0] VT_EMPTY
__ empty __

RootObject: ReadValue _Basket_Errors VT_DISPATCH PV=[0x436cea0] VT_EMPTY __empty__


推荐答案

有同样的问题并以与您相同的方式解释定价。

Had the same issue and interpreted the placed price the same way as you did.

因此,为了解决这个问题,我在lineitem中添加了一个名为overrideprice的每周类型属性。我想要一个单独的属性,所以我可以确信没有其他预先构建的管道组件会改变该值。此属性总是设置为listprice的
或更高或更低的价格。

So to get around it I added a weekly typed property called overrideprice to the lineitem. I wanted a separate property so I could be confident that no other pre-built pipeline component would be changing the value. This property always gets set to either the listprice or a price that is higher or lower.

然后我在RequiredItemAdjustPriceCy之前插入一个管道组件,它接受覆盖价格值和将其设置为订单项属性_cy_iadjust_currentprice,现在我的定价是 我希望它是什么。

Then I inserted a pipeline component prior to RequiredItemAdjustPriceCy, that takes the override price value and sets it to the line item property _cy_iadjust_currentprice, and now my placed price is  what I expect it to be.

 

John


这篇关于篮子管道总是设定价格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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