Jump to content
thirty bees forum

Combinations with virtual product still not possible


Recommended Posts

Posted (edited)

Hi all,
Just installed the latest thirty bees (1.4.0) and when adding a product, making combinations and clicking "Virtual product (services, booking, downloadable products, etc.)"  I get: "You cannot use combinations with a virtual product."

Why is that? It's perfectly normal to have different variations for a downloadable product, say "home", professional", "server" or the like.

please advise.
Marc

virtualnono.png

Edited by grbfst
Posted

In 1.5 combinations for virtual products will be possible, @e-com submitted the PR for that recently. However, downloadable files will be still be possible on product level only -- all combinations will share the same file. It's better, but still not perfect

Posted

What would be an easy fix/hack? Presumably this can be overridden in the code, where should I look? Not afraid to do some PHP hacking.

  • grbfst changed the title to Combinations with virtual product still not possible
Posted
10 hours ago, grbfst said:

What would be an easy fix/hack? Presumably this can be overridden in the code, where should I look? Not afraid to do some PHP hacking.

Sure, go for it. You need to

  1. change database schema to support saving more than one files per product by removing unique key constraint and introducing new join table between product_download and combination table
  2. rewrite virtual product tab view - display list of files, support entry form for new items, and edit form for modification of existing files
  3. modify admin controller and implement saving of data passed from view to (modified) database tables
  4. modify object model for Product class and fix deletion of associated product downloads. Currently we delete only one file, we need to delete all of theme
  5. modify csv import to support importing with multiple downloadable products
  6. extend GetFile controller to support multiple files per order line. For backwards compatibility reasons, you should implement new view to select file to download (if combination id is not sent)
  7. modify email template to send multiple downloadable files
  8. modify theme templates to display multiple downloadable files
  9. review all usage of ProductDownload class in core to ensure nothing was forgotten 
  10. do this all in a way that's backwards compatible and doesn't break anything. Note that changes to core should work on third party themes (tricky one)
  11. create Pull Request of you change so others can benefit from it as well
10 hours ago, grbfst said:

Might I add I asked for this in 2019?

There are a lot of requests for enhancements. Some of them have higher priority than others. As always, I like to remind that this is open source project, and contributions are welcome. You can ask for new feature, but that is definitely not a guarantee that somebody will work on it.  

Posted

Sorry Datakick, I know it's open source. Me being a bit autistic here.

I only need to have the check removed on combinations<>virtual products since I will provide downloads through other means (custom video messages). So there will be no associated product downloads.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...