Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 5 of 5

Thread: WholesaleOnlySite

  1. #1
    virtualtap is offline Senior Member
    Join Date
    May 2007
    Posts
    171

    Default WholesaleOnlySite

    I set WholesaleOnlySite to true, it hides the pricing etc. but it does not hide it on the details page for kitproducts, Is this a bug or am I missing something?
    MSX

  2. #2
    ASPAlfred is offline Senior Member
    Join Date
    Nov 2007
    Posts
    2,244

    Default

    Looks like a defect in kitproduct.aspx(cs), I was able to verify it on a stock install. I'll log this into our bug tracking system. Thanks for posting this.

    BTW, can you tell us your 4-digit version you're on, please?
    Last edited by ASPAlfred; 01-25-2011 at 05:57 AM.

  3. #3
    virtualtap is offline Senior Member
    Join Date
    May 2007
    Posts
    171

    Default

    It is 9.0.1.3
    Just an FYI if I recall correctly I had the problem in v8 but I was able to overcome it using an an xmlpackage but this is set up different.
    Thanks
    MSX

  4. #4
    virtualtap is offline Senior Member
    Join Date
    May 2007
    Posts
    171

    Default

    Any update on this, we are ready to go live but we cant with this issue.
    Thanks
    MSX

  5. #5
    virtualtap is offline Senior Member
    Join Date
    May 2007
    Posts
    171

    Default Resolved

    I had this issue again on the new ML version 9101

    I added this to kitproduct.aspx.cs

    at line 128 I added
    Code:
     IfWholesale();
    at line 489
    Code:
            public void IfWholesale()
            {
                // only show pricing if user is logged in or is not a wholesale site
                if (AppLogic.AppConfigBool("WholesaleOnlySite"))
                {
                    if (HttpContext.Current.User.Identity.IsAuthenticated)
                    {
                        kittable.Visible = true;
                    }
                    else {kittable.Visible = false;}
                }
                else { kittable.Visible = true; }
            }
    and on kitproduct.aspx I added

    Code:
     <asp:Panel ID="kittable" runat="server">   </asp:Panel>
    Around the table with the class kit_table BTW that table is missing a closing td tag.
    MSX