Limit a product to only be purchasable w/ another

  • Posts: 90
  • Thank you received: 1
11 years 7 months ago #96257

I have a software add-on that requires its own serial generator, so I don't want to add it as an option to another product. It does however require the other product to be installed, so I am curious if I can enforce a limit that will check the cart to make sure they are buying both?

Thanks


:) — Josh

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 7 months ago #96321

Hi,

You can add it as an option, but an option with one variant. By this way it force the option when buying the product.
And you can edit the view "product / cart" to remove the possibility of removing the option in the cart.

Please Log in or Create an account to join the conversation.

  • Posts: 90
  • Thank you received: 1
11 years 7 months ago #96359

I'm sorry this doesn't make sense to me.

I need this product to have its own serial generated, so I don't think I can include it as an option on any of the products that are required because they themselves need a serial generated too. Am I missing something?


:) — Josh
Last edit: 11 years 7 months ago by btbjosh.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 7 months ago #96438

Hi,

By creating many option product (one by generator) and assigning them to each software, allow the softwares to have their own generator.
But if it's only an option, it can be added or not. To avoid this problem, you can create a characteristic, for example "generator" and add it to the option product.
By this way, the option is automatically added in the cart with the product. So the generator with the software.

You can too create a custom field, like "generator" and in the software product page set the value to "softwarename" and in the generator set the value of "softwarename_gen".
Then create a plugin which will check if the product has the custom field "generator" filled, check if the generator is present in the cart. If it is not, display a custom error message.

Please Log in or Create an account to join the conversation.

Time to create page: 0.071 seconds
Powered by Kunena Forum