简体   繁体   English

是否可以使用 Ubercart 2 和 Drupal 6 创建价格过滤器?

[英]Is it possible to create a price filter with Ubercart 2 and Drupal 6?

I'm currently building an e-commerce site with Drupal 6.21, Ubercart 6.x-2.4, and Views 6.x-2.12 as the main components.我目前正在构建一个以 Drupal 6.21、Ubercart 6.x-2.4 和 Views 6.x-2.12 作为主要组件的电子商务网站。 I've been asked to create a "Narrow by price" section for each product category within ubercart, however I can't seem to figure out how to do this.我被要求为 ubercart 中的每个产品类别创建一个“按价格缩小”部分,但我似乎无法弄清楚如何做到这一点。

For instance the filters could be (Teddies is the main product category) -例如,过滤器可以是(泰迪熊是主要产品类别)-

All teddies, Teddies between £0 - £10, Teddies between £10 - £50, Teddies between £50 - £100, Over £100.所有泰迪熊,泰迪熊介于 0 英镑 - 10 英镑之间,泰迪熊介于 10 英镑 - 50 英镑之间,泰迪熊介于 50 英镑 - 100 英镑之间,超过 100 英镑。

There are different sub categories under Teddies such as bears, elephants, etc which is working as expected, however I can't figure out how to filter as above.泰迪熊下有不同的子类别,如熊、大象等,它们按预期工作,但我不知道如何按上述方式过滤。

I'm using Ubercart Advanced Catalog 6.x-1.x-dev to get better Views integration however this doesn't seem to help with the problem as I thought it might.我正在使用 Ubercart Advanced Catalog 6.x-1.x-dev 来获得更好的视图集成,但这似乎对解决问题没有帮助,因为我认为它可能。

Thanks for any help you can give, and if you need more info please ask:-) Adam.感谢您提供的任何帮助,如果您需要更多信息,请询问:-) Adam。

I think you should try http://drupal.org/project/uc_views , I don't have experience with ubercart advanced Catalog, but that's a great module to expose a lot information to views, some of which are the product prices, so you should be able to build any listing you want.我认为您应该尝试http://drupal.org/project/uc_views ,我没有使用 ubercart 高级目录的经验,但这是一个很好的模块,可以向视图公开很多信息,其中一些是产品价格,所以你应该能够建立任何你想要的列表。

I am assuming you know how to work with views.我假设您知道如何使用视图。

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

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