Posted by associate on September 5, 2009 at 2:37am
Hi
I have a view setup, listing all my available products. What I want to happen is, when a customer has ordered a product, that specific product ordered will be removed from the view for that particular customer but still be visible to other customers.
I've played around with different setting but haven't had any luck, so I don't know if this is possible altering just the settings.
I using Ubercart 6.x-2-0-rc5 and Ubercart views(uc_views) 6.x-3.x-dev.
Please send me your quotes, though I assume it's not a big job.
Regards,
Comments
If you have inventory control
If you have inventory control turned on and each product has an inventory of one, I would think you could filter your View on the inventory field to only show products with an inventory of greater than zero. When a product is purchased, the inventory of 1 should go to zero for that product. As far as I know.
--
CiviHosting - Drupal Hosting Specialists -- 100% Satisfaction Guaranteed
Thanks for the response but
Thanks for the response but wouldn't it then display from view for all customers? It needs to show the product to all customers other then the ones that have purchased it.
Oh, sorry--I didn't read your
Oh, sorry--I didn't read your original post closely. You are correct. I believe you would need a bit of custom PHP code to achieve what you want.
--
CiviHosting - Drupal Hosting Specialists -- 100% Satisfaction Guaranteed
Should that product disappear
Should that product disappear as long as it is only in the cart of the customer or "forever"?
Basically the products are
Basically the products are actually leads. So only a customer will only need to buy the information once and I need to make sure they don't try and purchase it again by mistake. Other customers will be able to buy that lead until a total of 5 have been purchased and then the lead will be removed from that view forever.
So that would mean it does
So that would mean it does not only affect the view, but the whole product node, as the visitor could have bookmarked it, see it in this url cache or press reorder, right?
or really just the view?
i will do some research and either show you a module (there might be one) or offer you a quote in case i can do it.
I have it setup so when a
I have it setup so when a customer has the lead it appears on a view called 'purchased leads' so they can access these nodes always.
In an ideal world, once a customer buys the product it disappears from view for that customer and also the add to cart button is removed also for that customer. Also when the available number of leads have been bought the lead with only be available to the customers who've purchased it but this extra functionality is all dependant on cost.