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>
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>
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~