促销代码未被应用(可能是由于缓存?) [英] Promo codes not being applied (maybe due to caching?)

查看:99
本文介绍了促销代码未被应用(可能是由于缓存?)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好!

我们在开发和登台环境中有成功的折扣。但是,我们的生产环境存在问题。当我们尝试应用有效的促销代码时,促销代码会作为有效的促销代码添加到购物篮中,但不会将
应用于购物篮。但是,如果您等待几个小时并返回购物篮,则会应用折扣。我已经检查了生产代码的web.config,它与登台web.config相同(连接字符串除外。)是否有
其他地方可以设置缓存的缓存吗?还有其他人遇到过这个问题吗?

We have discounts working successfully in our development and staging environments. However we are having issues in our production environment. When we try to apply a valid promo code, the promo code is added to the basket as a valid promo code but it is not applied to the basket. However if you wait a couple of hours and return to your basket the discount will be applied. I've checked the web.config of the production code and it is identical to the staging web.config (except for connection strings.) Is there anywhere else that caching can be set for discounts? Has anyone else experienced this issue?

 

谢谢!

推荐答案

这很奇怪。您是否在添加促销后运行篮子管道?

that is strange. Are you running the basket pipeline after you have added the promo?

此外,您应该在运行管道后调用save()方法。

Also you should call the save() method after running the pipeline.


这篇关于促销代码未被应用(可能是由于缓存?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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