Jump to content

Easiest way to change products available based on other products purchased.


kpedana

Recommended Posts

So I have two scenarios I'd like to accomplish and am somewhat stopped dead in my tracks with the implementation since I would need var's from certain templates, on other templates to implement it as far as I would know how to do.

 

I have Product A, Product B and Product C. All are recurring subscritpions, all require customfields.

 

Problem 1: I'm looking to only show Product B if a customer has Product A on their account.

 

Problem 2: I'm also looking to have Product C be price X if they have Product A, but price Y if they have no other products.

 

Can anyone throw any ideas off me for how I could best accomplish this?

 

For problem 1, I'm not looking to have Product A replaced with Product B, in the sense of just having B, be the upgrade for A. So if someone had Product B, they would also have (need to have) Product A on their account as well.

Edited by kpedana
Link to comment
Share on other sites

So I have two scenarios I'd like to accomplish and am somewhat stopped dead in my tracks with the implementation since I would need var's from certain templates, on other templates to implement it as far as I would know how to do.

I have Product A, Product B and Product C. All are recurring subscriptions, all require custom fields.

Problem 1: I'm looking to only show Product B if a customer has Product A on their account.

you could make Product B a hidden product - that way no one will see it as an available option in the cart... it could only be accessed via a direct link.

i'm not sure how you want to show Product B's availability to the client, but you could, for example, write an action hook that would show a link to order B on the homepage - *only* if they already have Product A.

it's worth mentioning that, in theory, anyone without Product A could still use the URL if they found it - but if it's hidden product and you're only showing the link to those with A, then it shouldn't become public unless one of them shared it. :roll:

 

Problem 2: I'm also looking to have Product C be price X if they have Product A, but price Y if they have no other products.

you could use a hook for this, but probably a simpler solution would be to use a promotion code - and specifically the Prerequisite option.

 

http://docs.whmcs.com/Promotions

 

By selecting products from the "Requires" menu it is possible to stipulate which products/services the client must also have in their shopping cart before the discount will be applied. This can be used to offer "buy x get y half price" style promotions. The "Also allow existing products in account to qualify for promotion" option means that the products the client already owns will be included in the promotion criteria.

 

For example if the client already owns product x they would be able to use the promo code when ordering product y. With this option disabled the client would need to order both products x and y at the same time to qualify.

so anyone not using the promotion code with C will be charged full price (X); using the code, it can be discounted to (Y).

 

you could even use this solution for Problem 1 - set the price of B insanely high so that no one in their right mind would buy it alone, and then setup a promotion code that discounts the price to its "normal" value and make it a requisite that they already have Product A... if they do, they get the discounted price... if they don't, then they'd be charged at the higher price... you could add the Promotion code to the link to buy Product B.

 

as I said, you could code it more thoroughly using an action hook, but I guess whether you want to do that depends on how important it is to you that they can't buy B without having A first.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated