Page 1 of 1

Disable Gift Wrap on ShipMethod.aspx

Posted: Wed Jun 24, 2009 7:43 am
by jdarby
when using the Multi-Ship pages, is it possible to disable the "Is this a Gift?" graphic/option at the bottom of the page?

Re: Disable Gift Wrap on ShipMethod.aspx

Posted: Wed Jun 24, 2009 8:09 am
by mazhar
Edit ConLib/ShipMethodPage.ascx file and locate following code

Code: Select all

<div class="addGiftOptions">
change it as below

Code: Select all

<div class="addGiftOptions" style="display:none;">

Re: Disable Gift Wrap on ShipMethod.aspx

Posted: Wed Jun 24, 2009 8:36 am
by jdarby
i didn't see the exact code you posted, i changed the following code:

Code: Select all

<asp:Panel ID="GiftOptionsPanel" runat="server" CssClass="addGiftOptions" style="display:none;">
    <h3><asp:Localize ID="GiftCaption" runat="server" Text="IS THIS A GIFT?"></asp:Localize></h3>
    <div class="content">
        <asp:CheckBox ID="ShowGiftOptions" runat="server" />
        <asp:Label ID="ShowGiftOptionsLabel" runat="server" Text="Check here to include a gift message or gift wrap."></asp:Label>
    </div>
however, this also killed the Continue button so the user is stuck at this screen.

Re: Disable Gift Wrap on ShipMethod.aspx

Posted: Wed Jun 24, 2009 8:52 am
by mazhar
Sorry I thought you are on 7.0.3. You can proceed with your fix just take out the Continue button code out side from panel you are trying to hide

Code: Select all

<asp:Panel ID="GiftOptionsPanel" runat="server" CssClass="addGiftOptions" Visible="false">
    <h3><asp:Localize ID="GiftCaption" runat="server" Text="IS THIS A GIFT?"></asp:Localize></h3>
    <div class="content">
        <asp:CheckBox ID="ShowGiftOptions" runat="server" />
        <asp:Label ID="ShowGiftOptionsLabel" runat="server" Text="Check here to include a gift message or gift wrap."></asp:Label>
    </div>
</asp:Panel>
    <div class="buttons">
        <asp:ImageButton ID="ContinueButton" runat="server" SkinID="Continue" AlternateText="Continue" OnClick="ContinueButton_Click" /><br />
        <asp:Label ID="InvalidShipMethodMessage" runat="server" Visible="false" Text="Invalid shipping method. Either you have not selected a shipping method or the selected method is not valid." SkinID="ErrorCondition" EnableViewState="false"></asp:Label>
    </div>