检查产品清单以获得折扣的最佳或首选方式是什么? [英] What is the best or preferred way of checking a list of products for discounts?

查看:95
本文介绍了检查产品清单以获得折扣的最佳或首选方式是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个页面,显示给定类别中的Commerce Server产品列表(有时是几十个)。我需要使我的页面有条件,以便它显示一个营销标记,指示给定CS产品列表中的哪些产品具有适用的折扣。我的问题是,最好的方法是什么?以下是我作为实现这一目标的潜在方法的两个初步想法,任何建议都将不胜感激。

1。创建一个爬虫应用程序,在每个产品上运行篮子管道,如果折扣适用于易于查询的表格,则预先存储。创建一个临时购物车并添加将要为CS类别显示的每个产品,并在此临时购物车上运行购物篮pipline。我不确定如果你有很多像50-100这样的产品会有多好用,这会慢吗?

I have a page that shows a list of Commerce Server products (sometimes dozens) that are in a given category. I need to make my page conditional so that it displays a marketing tout that indicates which products within a given CS product list have discounts that apply. My question is what is the best way to do this? Below are two initial thoughts I had as potential ways to accomplish this, any advice would be much appreciated.

1. Create a crawler application that runs the basket pipeline on every product and pre-stores if discounts apply in a table that is easily queryable.
2. Create a temporary cart and add every product that is going to be displayed for the CS category and run the basket pipline on this temp cart. I'm not sure how well this would work if you had a lot of products like 50-100, would this be slow?

推荐答案

您希望向应用程序用户显示哪些折扣?

What discounts you would like to show to the application user?


  • 如果您想显示特定产品的简单折扣,那么您是否尝试过搜索简单的折扣使用"DiscountCriteriaFilter"的特定产品的"类。请查看以下链接以获取更多详细信息。
    http://msdn.microsoft.com/en-us /library/bb219243.aspx

  • 如果您想显示目标折扣,那么选项2就可以了(创建临时购物车和运行篮子管道)。

  • 选项1适用于少数情况。不要忘记我们生活在非常活跃的市场中,这种方法将限制我们不要动态创建或删除折扣。

希望这有助于。

关心,
-Ravi Kanth Koppala

Regards,
-Ravi Kanth Koppala


这篇关于检查产品清单以获得折扣的最佳或首选方式是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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