add out of stock items to wishlist

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
compunerdy
Admiral (ADM)
Admiral (ADM)
Posts: 1283
Joined: Sun Nov 18, 2007 3:55 pm

add out of stock items to wishlist

Post by compunerdy » Wed Aug 19, 2009 11:51 am

was this a option someplace that I cant seem to find now?

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: add out of stock items to wishlist

Post by mazhar » Thu Aug 20, 2009 4:44 am

no application doesn't allow out of stock items to be added to whishlist.

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: add out of stock items to wishlist

Post by AbleMods » Thu Aug 20, 2009 7:40 am

mazhar wrote:no application doesn't allow out of stock items to be added to whishlist.
Mine does.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: add out of stock items to wishlist

Post by mazhar » Thu Aug 20, 2009 7:56 am

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?

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: add out of stock items to wishlist

Post by AbleMods » Thu Aug 20, 2009 8:02 am

7.0.3
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: add out of stock items to wishlist

Post by mazhar » Thu Aug 20, 2009 8:05 am

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?

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: add out of stock items to wishlist

Post by AbleMods » Thu Aug 20, 2009 8:28 am

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.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: add out of stock items to wishlist

Post by AbleMods » Thu Aug 20, 2009 8:43 am

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.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: add out of stock items to wishlist

Post by mazhar » Thu Aug 20, 2009 8:53 am

Thanks for clarification, we have already logged it
http://bugs.ablecommerce.com/show_bug.cgi?id=8325

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: add out of stock items to wishlist

Post by AbleMods » Thu Aug 20, 2009 9:04 am

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 :)
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: add out of stock items to wishlist

Post by mazhar » Thu Aug 20, 2009 9:22 am

Nice work Joe :D

User avatar
compunerdy
Admiral (ADM)
Admiral (ADM)
Posts: 1283
Joined: Sun Nov 18, 2007 3:55 pm

Re: add out of stock items to wishlist

Post by compunerdy » Thu Aug 20, 2009 10:29 am

Thanks Joe!!

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: add out of stock items to wishlist

Post by AbleMods » Thu Aug 20, 2009 11:09 am

Glad to help. Sad as it may sound, the BuyProductDialog control is my home-away-from-home :)
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

Post Reply