Page 1 of 1
add out of stock items to wishlist
Posted: Wed Aug 19, 2009 11:51 am
by compunerdy
was this a option someplace that I cant seem to find now?
Re: add out of stock items to wishlist
Posted: Thu Aug 20, 2009 4:44 am
by mazhar
no application doesn't allow out of stock items to be added to whishlist.
Re: add out of stock items to wishlist
Posted: Thu Aug 20, 2009 7:40 am
by AbleMods
mazhar wrote:no application doesn't allow out of stock items to be added to whishlist.
Mine does.
Re: add out of stock items to wishlist
Posted: Thu Aug 20, 2009 7:56 am
by mazhar
AbleMods wrote:mazhar wrote:no application doesn't allow out of stock items to be added to whishlist.
Mine does.
What is your application version?
Re: add out of stock items to wishlist
Posted: Thu Aug 20, 2009 8:02 am
by AbleMods
7.0.3
Re: add out of stock items to wishlist
Posted: Thu Aug 20, 2009 8:05 am
by mazhar
Well I checked functionality on same build but for me If product is out of stock no add to cart or wishlist button appears on product details. Could you explain how you setup product for test?
Re: add out of stock items to wishlist
Posted: Thu Aug 20, 2009 8:28 am
by AbleMods
Fresh AC 7.0.3 install with sample store data. Inventory Management enabled in admin side. Inventory tracking set to product on some, disabled on others. Add to Wishlist works fine on all of them. Even variants.
I found something else interesting...
When inventory is turned on for a product and allow backorder is enabled, the out-of-stock message is not displayed when stock level is set to 0. The item is out of stock and so the out-of-stock message should show on the product page.
Re: add out of stock items to wishlist
Posted: Thu Aug 20, 2009 8:43 am
by AbleMods
It's the allow backorder checkbox on the edit product page. If backorders aren't allowed, BOTH buttons are hidden from view.
Technically, only the add-to-cart should be removed, wishlists have nothing to do with inventory levels or product availability.
Re: add out of stock items to wishlist
Posted: Thu Aug 20, 2009 8:53 am
by mazhar
Thanks for clarification, we have already logged it
http://bugs.ablecommerce.com/show_bug.cgi?id=8325
Re: add out of stock items to wishlist
Posted: Thu Aug 20, 2009 9:04 am
by AbleMods
Easy workaround.
Modify the BuyProductDialog.ascx.cs file. Find this section of code:
Code: Select all
private void HideAddToBasket()
{
AddToBasketButton.Visible = false;
AddToWishlistButton.Visible = false;
rowQuantity.Visible = false;
}
and comment out the reference to add to wishlistbutton like this:
Code: Select all
private void HideAddToBasket()
{
AddToBasketButton.Visible = false;
//AddToWishlistButton.Visible = false;
rowQuantity.Visible = false;
}
Now the add-to-wishlist will show regardless whether the add-to-basket button is visible

Re: add out of stock items to wishlist
Posted: Thu Aug 20, 2009 9:22 am
by mazhar
Nice work Joe

Re: add out of stock items to wishlist
Posted: Thu Aug 20, 2009 10:29 am
by compunerdy
Thanks Joe!!
Re: add out of stock items to wishlist
Posted: Thu Aug 20, 2009 11:09 am
by AbleMods
Glad to help. Sad as it may sound, the BuyProductDialog control is my home-away-from-home
