Disable Gift Wrap on ShipMethod.aspx

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
jdarby
Commander (CMDR)
Commander (CMDR)
Posts: 151
Joined: Thu Sep 25, 2008 2:21 pm

Disable Gift Wrap on ShipMethod.aspx

Post by jdarby » Wed Jun 24, 2009 7:43 am

when using the Multi-Ship pages, is it possible to disable the "Is this a Gift?" graphic/option at the bottom of the page?

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Disable Gift Wrap on ShipMethod.aspx

Post by mazhar » Wed Jun 24, 2009 8:09 am

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;">

jdarby
Commander (CMDR)
Commander (CMDR)
Posts: 151
Joined: Thu Sep 25, 2008 2:21 pm

Re: Disable Gift Wrap on ShipMethod.aspx

Post by jdarby » Wed Jun 24, 2009 8:36 am

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.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Disable Gift Wrap on ShipMethod.aspx

Post by mazhar » Wed Jun 24, 2009 8:52 am

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>

Post Reply