BuyProductDialogOptionsList Wishlist/Email Problems

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
bladegrasp
Ensign (ENS)
Ensign (ENS)
Posts: 17
Joined: Wed Sep 29, 2010 1:34 am

BuyProductDialogOptionsList Wishlist/Email Problems

Post by bladegrasp » Wed Oct 06, 2010 1:19 pm

Hello AblePeople!

I have a question under BuyProductDialogOptionsList and I thought that if I would ask might as well do it here.

We manage 90% of our stock by variants, so Mazhar helped us figure out how to display only versions of items that are in stock and now when we have 0 stock of any variant of an item, we see a "This item is currently out of stock" message I programmed in which is exactly what we wanted~ Thank you Mazhar!.

However I just cannot find how to set up a wishlist and 'email when back in stock' buttons when the gridview is gone. The actual addtowishlist functions on this option list are all from the gridview itself, so I can't fathom how to add the functionality to a button. I've gotten it to the point where I can see the buttons only when we are out of stock, but they're not functional with any OnClick functions I attempt to build because as I said the wishlist functionalities are all inside the gridview and they're inside the VariantGrid_RowCommand function which I just cannot work around with my knowledge. Here's what I've got so far in terms of the buttons; No OnClick function yet since I'm unclear of how to get the right performance out of it.

I replaced this:

Code: Select all

<EmptyDataTemplate></EmptyDataTemplate>
With this:

Code: Select all

<EmptyDataTemplate>
                <asp:Label ID="NoOptionsMessage" runat="server" Text="This product is currently out of stock!"></asp:Label>
                <asp:Button ID="AddToWishlistButton" runat="server" Visible="true"  CommandName="AddToWish" Text="Add to Wishlist" EnableViewState="false" ValidationGroup="AddToBasket"></asp:Button>
</EmptyDataTemplate>
And obviously that's just a useless button and a message, but for me it's a start! I understand the logic of the VariantGrid_RowCommand function, but I cannot replicate it into an simple _Click function that lets me add either the father or the first variant to my wishlist. If the person could even pick the variant that would be amazing, but not vital. I should be able to figure the email one on my own as time goes by I believe.

I coded two additional buttons into the gridview that help us manage variants at the product view while logged as admin thanks to a post I read from AbleMods Thank you AbleMods!, so I can grasp the concept of the CommandName and a little bit of the .databind() used around this page.

As I said I just want to find the right direction, I'm not going to stop trying so you guys can do my coding~ But I only ask when I know I'm not at the level to take on the task I want to deliver to my clients.


Thank you in advance for your time and attention as always!
Bladegrasp~

bladegrasp
Ensign (ENS)
Ensign (ENS)
Posts: 17
Joined: Wed Sep 29, 2010 1:34 am

Re: BuyProductDialogOptionsList Wishlist/Email Problems

Post by bladegrasp » Wed Oct 13, 2010 7:35 am

Any ideas on this topic or viewtopic.php?f=42&t=14422 anyone?

Thanks much as always!
Bladegrasp~

Post Reply