电子商务购物车 T 恤生成器(过滤系统)
我正在创建一个 T 恤网站,我需要能够通过 wp-eCommerce 逐步(逐页)筛选出最适合您的 T 恤。
这就是它需要的布局方式: 第一步选择您想要衬衫的领型 -> 选择下一个 第二步选择您希望衬衫具有的袖扣类型 ->下一个 根据 T 恤的类别和/或标签过滤结果,并仅显示 T 恤构建器选择所要求的内容。
我的问题是如何在 php 或预制脚本中完成此操作? 谢谢!
I'm creating a tshirt website and I need to be able to have a step by step process (page by page) in filtering out what tshirt is best for you with wp-eCommerce.
this is how it need to be laid out:
step one choose what collar type you want your shirt to have once selected -> next
step two choose what cufflink type you want your shirt to have once selected -> next
filter results based on category and or tags of the tshirt and only display what is requested by the tshirt builder selections.
my question is how do I accomplish this in php or a pre-made script?
thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
1) 不会有预先构建的脚本
2) 您可以在 php 中执行此操作,但您必须了解 wp eCommerce 如何存储其数据,具体取决于您可以过滤数据的数据库结构
3 )您可能想使用某种标签系统来帮助过滤衬衫
1) There won't be a pre built script
2) You can do it in php but you are going to have to take a look at how wp eCommerce stores it's data, depending on the database structure you may be able to filter data
3) You might wanna use some sort of tag system to help filter the shirts
我不知道您如何期望这个问题得到合理的答案。您如何存储 T 恤数据?您如何管理会议?你到底想问什么???我的意思是,从表面上看,架构答案非常简单。在选择过程的每个阶段,将用户为此阶段选择的过滤器累积在会话变量或查询字符串中的数组中(&collar_type=turnover&cufflink=double_faced&tags[1]=humor&tags[2 ]=卡兰)。然后,在每个帖子中,使用累积的过滤器集合针对您的 T 恤数据生成新查询,以填充要在下一页上显示的结果。
根据所提供的信息,我不知道如何提供更好的答案。
I don't know how you expect a reasonable answer to this question as it stands. How are you storing tshirt data? How are you managing sessions? What are you really asking??? I mean, on the face of it, the architectural answer is pretty easy. At each stage of the selection process, accumulate the users' selected filter for this stage in an array in the session variable or in the query string (&collar_type=turnover&cufflink=double_faced&tags[1]=humor&tags[2]=carlan). Then, on each post, use the accumulated collection of filters to generate a new query against your tshirts data to populate the results to display on the next page.
With the information given, I don't know how a better answer can be provided.