Disable Gift Wrap on ShipMethod.aspx
Disable Gift Wrap on ShipMethod.aspx
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
Edit ConLib/ShipMethodPage.ascx file and locate following code
change it as below
Code: Select all
<div class="addGiftOptions">
Code: Select all
<div class="addGiftOptions" style="display:none;">
Re: Disable Gift Wrap on ShipMethod.aspx
i didn't see the exact code you posted, i changed the following code:
however, this also killed the Continue button so the user is stuck at this screen.
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>
Re: Disable Gift Wrap on ShipMethod.aspx
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>