Closed (fixed)
Project:
UC Wish List
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
28 Feb 2010 at 20:45 UTC
Updated:
18 Dec 2014 at 11:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
razorback commentedsihlist = wishlist
Comment #2
BigMike commentedrazorback,
I realize you posted this almost two years ago, but I am wondering if you found a solution to this yet. We are using UC Wish List 6.x-1.x-dev (from Feb 24, 2011) and from time to time we've had this problem where a product that was originally added to a wish list that has since become out of stock, is able to then be added to a new cart and be processed through checkout.
I've know this problem but have just been ignoring it. Today it came up again (it really hasn't happened all that often) and I decided I would search to see for a solution.
I am going to take a look at the module and see if I can figure out how to patch it to prevent this from happening.
I'll keep this updated-
Thanks
Mike
Comment #3
BigMike commentedOkay,
This was so damn easy I don't know why I never did this sooner.
File: uc_wishlist.pages.inc
Search for (at or near line 298):
Replace with:
Now uc_wishlist will replace the 'Add to cart' button with the text "Currently Out Of Stock" whenever the item is out of stock (as per /node/####/edit/stock) regardless of when the item was added to the user's Wish List. The moment the item is back in stock, either by disabling the Stock feature of the node or giving the node some positive stock level, the 'Add to cart' button returns.
BigMike
Comment #4
BigMike commentedComment #5
Anonymous (not verified) commentedHi all,
The #3 code also works fine.But the attached patch remove the Add to Wishlist button from the product that are Out of stock.Using this there is no need to use the #3 code.The attached patch provide the option to enable this at Admin Settings page.http://sitename.com/admin/store/settings/wishlist .You can also see the admin settings in the attached screenshot.
Comment #6
Anonymous (not verified) commentedI have added some more changes in #5 patch. If the Stock module is not enabled then it does not provide the option on the admin page. Use the attached patch below rather than #5 patch.
Comment #7
tparc commentedAs I'm not an expert at porting code to D7, I am wondering if the maintainer(s) are looking into patching this issue in that version. Also Tie in to Product Kits: https://drupal.org/node/1327562 .
Could be very useful.
Comment #8
jaykainthola commentedHi,
I had some personal problem, due to this I was not able to work since last 2 months. So, I could not check the issue list. But, I will look into this issue list and will implement patches into module.
Thanks
Comment #9
naveenvalechaHI jaykainthola,
if you are facing problems then you can also get the help of another developer by seeking co-maintainer of the module.I think by doing this the process will become fast.What do you think ?
Comment #10
jaykainthola commentedHi naveenvalecha,
Thanks for your suggestion and If someone be interested into co-maintainer of this project, he will most welcome.
Thanks
Comment #11
naveenvalechaHi jaykainthola,
I am interested to help you to maintain this to make the process fast.what do you think ?
Comment #12
jaykainthola commentedHi naveenvalecha,
I have provide permission to you. Please check.
Thanks
Comment #13
naveenvalechaHi jaykainthola,
I got the permission.Please let me know when you will be available on IRC to discuss the module to do list( if you have made) and other things.So that we can go further into this.
Comment #14
tparc commentedHello, maintainers, I notice that there hasn't been much progress on some of these issues. Understandable if you are busy. Just wanted to follow up my request from #7 above if you find some time. Thanks
Comment #15
BigMike commentednick_daffodil,
I just saw this and your reply with patch at #5.
"the attached patch remove the Add to Wishlist button from the product that are Out of stock."
Just because something is out of stock doesn't mean one no longer yearns for it. Why not keep the Add to Wishlist button available so that once the part does return to stock, they can simply push their Wishlist through and receive your product?
-BigMike
Comment #16
jaykainthola commentednick_daffodil,
I am totally agree with BigMike. If a product is out of stock, then we need to allow user to add product in wishlist section. We need to prevent user to purchase product which is out of stock.
Thanks,
Jayendra Kumar
Comment #17
naveenvalechaHi Jayendra
I think there is two possiblities either not to show the Wishlist button OR Not to purchase product from wishlist.I think we should consider both cases before going to update on this issue.
Thanks
Naveen Valecha
Comment #18
jaykainthola commented@naveenvalecha, we should user to prevent user to purchase product if its out of stock. If I like something, then I can add this into my wishlist so that when its will be in stock, I can purchase the product.
I have already updated the module with same concept.
Thanks,
Jayendra Kumar
Comment #19
tparc commentedPerhaps the best route would be to
1) disable the add to cart button on a user's wishlist page when the product is out of stock, and
2) give the administrator the option to allow/disallow users to add items to their wishlist if they're out of stock.
As websites' needs are different, it would be good to appease both needs.
3) Also Tie in to Product Kits: https://drupal.org/node/1327562 would be good to commit to D7. Will post there.
Thanks.
Comment #20
naveenvalecha@jaykainthola
The way that @tparc suggested in #19 is good to implement.What do you think?
Thanks
Naveen Valecha
Comment #21
jaykainthola commented@naveenvalecha
Yes, its good to implement. I will look into the same and will update the module accordingly.
Comment #22
BigMike commentedGood work people. My code from #3 satisfies tparc's condition (1). We've been using this alteration for more than a year without any issues.
Regards,
BigMike
Comment #23
jaykainthola commented@BigMike,
Mostly patch is related to Drupal 6, so we can not commit patch into Drupal 7 version.
Thanks,
Jayendra Kumar
Comment #24
naveenvalechaHi Folks
I am taking this one.Will provide the patch soon for 7.
Thanks
Naveen Valecha
Comment #25
jaykainthola commentedHi tparc,
I have implemented your suggestion.
@Naveen, I have already worked on the same. Thanks for considering this issue.
Thanks,
Jayendra kumar
Comment #26
jaykainthola commentedImplement suggestion by tparc. We need to review this.
Thanks,
Jayendra Kumar
Comment #27
tparc commentedThanks for implementing. There seems to be a problem where all items are disabled from being added to the wishlist when 'Allow users to add out of stock item into wishlist.' is unchecked. Can you duplicate?
Comment #28
tparc commentedAnother issue found that prevents any items with attributes being added to the cart from the wishlist. This seems to be a major issue. Can it be looked into?
Comment #29
jaykainthola commented@tparc, Thanks for sharing this. I will look into this and will update you as soon as possible.
Could you share an example of "There seems to be a problem where all items are disabled from being added to the wishlist when 'Allow users to add out of stock item into wishlist.' is unchecked.", so I have clear view of this.
Comment #30
jaykainthola commented@tparc, I have checked and if any item has stock value, then item with attribute is being added to cart. If you are using any other thing, please let me know.
Comment #31
tparc commentedI apologize, I realized that this only affects items with UC Attribute Stock (https://drupal.org/project/ubercart_attribute_stock) enabled. This module allows a stock level for each product attribute. Is there any way to accommodate this? I'm not familiar with the inner workings of this module.
Thanks again.
Comment #32
jaykainthola commented@tparc, I will look into this and will update you as soon as possible.
Thanks,
Comment #33
tparc commentedHi jaykainthola, have you had a chance to look into this yet? Thanks.
Comment #34
jaykainthola commentedHi Tprac,
I will update you soon.
Thanks,
Jayendra Kumar
Comment #35
jaykainthola commented@Tprac,
I have checked the UC Attribute Stock and I found that stock level is not decreasing when we purchase the product. I think, there is still some issue in the module, so we need to wait some time to implement this module in Ubercart wishlist.
Thanks,
Jayendra Kumar
Comment #36
naveenvalechaUpdating the issue summary.
Need your opinion on this @Jayendar Kumar
Thanks
Naveen Valecha
Comment #37
berenddeboer commentedThe following patch, against the dev version implements the right behaviour I think:
Only if the stock is less or equal to zero do we prevent the "Add to wishlist" button to be shown.
Comment #38
berenddeboer commentedRerolled patch against head.
Comment #39
naveenvalechaAssigning to myself will review it later today.
Comment #40
naveenvalechaPatch not applied successfully.Needs Reroll
Comment #41
naveenvalechaComment #42
rpayanmrerolling...
Comment #43
berenddeboer commentedI think this has been committed right? I think we can close this. Have set status to fixed.
Comment #44
berenddeboer commentedOops, my mistake this patch hasn't been committed, was confused.
Comment #45
naveenvalecha@jaykainthola,
Would U take this a look and Make this issue a final touch.
Comment #46
berenddeboer commentedHave rerolled patch.
Comment #47
berenddeboer commentedSlight change to patch so #2091331: Notify Admin Order Contains Wishlist Item can be applied more cleanly on top of this.
Comment #48
naveenvalechaThanks!
Applied the patch with minor nutpick and committed to dev branch.Also updated the documentation at several places.
Would you test it on local dev box with the latest branch.
Comment #49
naveenvalechaComment #50
naveenvalechaCommited f89843a & fixed.