weixin_39610956
2020-12-02 02:43 阅读 0

variations and downloadable files

Create a product with variations. On the main product add a file as product download. When you order any of the variations for the product the downloadable is not available for download not matter what variations you purchase.

IF this is not a bug and its how its built then i think we should hide the product download box on the main product if the product has variations and display a message. Just like we do with the product price if it has variations:

https://dl.dropboxusercontent.com/u/16683640/Screenshots/2014-03-05_1513.png

just like that but for the Product download box.

该提问来源于开源项目:wp-e-commerce/WP-e-Commerce

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

8条回答 默认 最新

  • weixin_39935654 weixin_39935654 2020-12-02 02:43

    Yeah, this would be really great to fix, it's a pretty glaring bug, eh?

    点赞 评论 复制链接分享
  • weixin_39884832 weixin_39884832 2020-12-02 02:43

    Hm,

    Not sure this is a "bug". I've used this for ever as-is - although I could see how this might be confusing. I actually use the download on the main product for other purposes - although the original report is correct - that the main product file isn't used if the customer buys a variation.

    点赞 评论 复制链接分享
  • weixin_39935654 weixin_39935654 2020-12-02 02:43

    Yeah - seems like an area where the expectation would actually be for a fallback. e.g. if you set a download for the variant, that is used, otherwise, fallback to the main product download.

    点赞 评论 复制链接分享
  • weixin_39873741 weixin_39873741 2020-12-02 02:43

    If you want we can add a generic function wpsc_get_[META_TYPE]_meta_inherit that automatically follows the path from children to parents. That could work for all meta types attached to any post or taxonomy

    点赞 评论 复制链接分享
  • weixin_39935654 weixin_39935654 2020-12-02 02:43

    Not sure I want something like that quite yet - I don't even know that the fallback model is one to apply super broadly. But I do think, for this, it makes sense.

    点赞 评论 复制链接分享
  • weixin_39873741 weixin_39873741 2020-12-02 02:43

    If we can hold off to 3.9 I was planning to do the product meta enhancements at that time, this would fit in well.

    点赞 评论 复制链接分享
  • weixin_39873741 weixin_39873741 2020-12-02 02:43

    As long as it's a call distinct from wpsc_get_[META_TYPE]_meta the developer has to make the choice if an attribute should flow down under the given circumstance .

    点赞 评论 复制链接分享
  • weixin_39935654 weixin_39935654 2020-12-02 02:43

    Punting to a future release. Though hey, if we're gonna be honest, if someone is ONLY doing digital downloads, they're not going to use WPeC :)

    点赞 评论 复制链接分享

相关推荐