an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Forums > Support > Using DotShoppingCart > Add 3% processing fees when payment method is C...
Last Post 9/28/2009 12:46:04 PM By bansal_db. 20 replies.
Page 2 of 2 (21 posts) << First < Prev 1 2 Next > Last >> 
9/25/2009 11:09:43 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Add 3% processing fees when payment method is Credit Card
Ah, Google Checkout is kind of tricky. Check method PostCart in Google Checkout payment provider. I suggest you add an addtion line item saying 3% processing fee.
DotShoppingCart Staff
9/25/2009 11:16:54 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Add 3% processing fees when payment method is Credit Card
You can add a javascript to the Tab control so that when tab is changed (payment method is changed) just call the existing javascript method "ShippingAddressChanged" which will refresh the ordertotals.
DotShoppingCart Staff
9/25/2009 12:07:29 PM
bansal_db
Posts: 181
Joined: 4/13/2009
Re: Add 3% processing fees when payment method is Credit Card
Luke,
 
I am not sure where to call this javascript method from.
 
addresschangedjavacriptcallback="ShippingAddressChanged"
 
 
Should i call it from OnePageCheckout....somewhere here?
 
<fieldset>
                <legend><asp:Image id="imgPaymentOption1" runat="server" skinid="step3" visible="false" /><asp:Image id="imgPaymentOption2" runat="server" skinid="step4" /> <asp:Literal runat="server" text="<%$ Resources:Common,PaymentOptions %>" /></legend>
                <div>
                    <asp:UpdatePanel id="updPaymentOptions" runat="server" updatemode="Conditional" childrenastriggers="false" >
                        <ContentTemplate>
                            <dsc:SelectPaymentOption id="paymentOption" runat="server"   validationgroup="checkout"/>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
            </fieldset>
 
 
or from Store\SelectPaymentOption
 

ajaxc:TabContainer id="tbcPaymentOptions" runat="server" onclientactivetabchanged="ActiveTabChanged" >
            <ajaxc:TabPanel id="tbpCreditCard" runat="server" headertext="<%$ Resources:Common,CreditCard %>" tooltip="<%$ Resources:Common,ChooseCreditCardPayment %>">
                <ContentTemplate>
                    <dsc:SelectCreditCardPaymentMethod id="selectCreditCardPaymentMethod" runat="server" validationgroup="creditcardCheckout" />
                </ContentTemplate>
            </ajaxc:TabPanel>
            <ajaxc:TabPanel id="tbpPayPalStandard" runat="server"  headertext="<%$ Resources:Common,PayPal %>" tooltip="<%$ Resources:Common,CheckoutViaPayPal %>">
                <ContentTemplate>
                    <div style="font-weight:bold;"><asp:Literal runat="server" text="<%$ Resources:Common,PayPalIsSaferWayToPay %>" /></div>
                    <ul style="margin-top:4px; margin-left:18px;">
                        <li><asp:Literal runat="server" text="<%$ Resources:Common,NeverExposeCreditCard %>" /></li>
                        <li><asp:Literal runat="server" text="<%$ Resources:Common,PayPalSpeedyCheckout %>" /></li>
                    </ul>
                    <div>
                        <div style="font-weight:bold;"><asp:Literal runat="server" text="<%$ Resources:Common,NoticeInput %>" /></div>
                        <asp:Literal runat="server" text="<%$ Resources:Common,PayPalRedirectNotice %>" />
                    </div>

                </ContentTemplate>
 
somewhere here?
9/28/2009 6:30:47 AM
bansal_db
Posts: 181
Joined: 4/13/2009
Re: Add 3% processing fees when payment method is Credit Card
Luke Anything on this?
9/28/2009 10:11:07 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Add 3% processing fees when payment method is Credit Card
You can change it in SelectPaymentOption.ascx. There is javascript method ActiveTabChanged already. Just add the call inside.
DotShoppingCart Staff
9/28/2009 11:59:34 AM
bansal_db
Posts: 181
Joined: 4/13/2009
Re: Add 3% processing fees when payment method is Credit Card
I am trying to add the call to
 
<ContentTemplate>
                    <dsc:SelectCreditCardPaymentMethod id="selectCreditCardPaymentMethod"  runat="server" validationgroup="creditcardCheckout" />
                </ContentTemplate>
 
 
I did this
 
<ContentTemplate>
                    <dsc:SelectCreditCardPaymentMethod id="selectCreditCardPaymentMethod" onActiveTabChanged="ActiveTabChanged"  runat="server" validationgroup="creditcardCheckout" />
                </ContentTemplate>
 
 
But that didn't work. I am not getting any error but the cart totals doesn't refesh.
9/28/2009 12:23:08 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Add 3% processing fees when payment method is Credit Card
Only TabContainer control has that attribute "onActiveTabChanged". And it's there already. You just need to do what I said in the previous post.
 
<ajaxc:TabContainer id="tbcPaymentOptions" runat="server" onclientactivetabchanged="ActiveTabChanged">
DotShoppingCart Staff
9/28/2009 12:36:20 PM
bansal_db
Posts: 181
Joined: 4/13/2009
Re: Add 3% processing fees when payment method is Credit Card
So i need to do this?
 
You can add a javascript to the Tab control so that when tab is changed (payment method is changed) just call the existing javascript method "ShippingAddressChanged" which will refresh the ordertotals?
 
<fieldset>
                <legend><asp:Image id="imgPaymentOption1" runat="server" skinid="step3" visible="false" /><asp:Image id="imgPaymentOption2" runat="server" skinid="step4" /> <asp:Literal runat="server" text="<%$ Resources:Common,PaymentOptions %>" /></legend>
                <div>
                    <asp:UpdatePanel id="updPaymentOptions" runat="server" updatemode="Conditional"  childrenastriggers="false" >
                        <ContentTemplate>
                            <dsc:SelectPaymentOption id="paymentOption" runat="server"  validationgroup="checkout"/>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
            </fieldset>
 
 
What should i change this to?
 
 
9/28/2009 12:42:18 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Add 3% processing fees when payment method is Credit Card
Didn't I tell you to change the javascript method ActiveTabChanged?
 
    <script type="text/javascript">
        function ActiveTabChanged(sender, e) {
            var activeTab = $get('<%=hidActiveTab.ClientID%>');
            activeTab.value = sender.get_activeTabIndex();
            ShippingAddressChanged();
        }
    </script>
DotShoppingCart Staff
9/28/2009 12:46:04 PM
bansal_db
Posts: 181
Joined: 4/13/2009
Re: Add 3% processing fees when payment method is Credit Card
oh.....that worked....sorry i misunderstood you the first time....thanks for all the help.
Page 2 of 2 (21 posts) << First < Prev 1 2 Next > Last >>