ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - Assigning Payment types to specific customers.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Assigning Payment types to specific customers.

 Post Reply Post Reply
Author
Message
e4h View Drop Down
Groupie
Groupie


Joined: 22-June-2009
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote e4h Quote  Post ReplyReply Direct Link To This Post Topic: Assigning Payment types to specific customers.
    Posted: 02-July-2009 at 1:44pm
All my customers are wholesale.
I have 2 categories. Net30 & PrePay.

I want to be able to lock the selection, based on the customer type on the Checkout page (orderverify.asp)

So far, I have been able to have the drop down box for payment type display the SINGLE correct payment type for the specific customer.

However, where it says Payment Type: in text (not the drop down) it is still set to Net30 by default. Regardless of what the drop down says, when I click Continue to the payment page, it goes to net 30.

The code in the OnChange for the payment type drop down is:
 onchange="location.href=this[this.selectedIndex].value;"

It seems that this tidbit of code changes the payment type on the page to match whatever is selected.

Can I execute this code outside of the "onChange" and within my IF statement?

here is my code so far:

if int(pidPayment)=int(tempidPayment) then %>

    <% If session("customerCategory")="6" then %>
        <option value="OrderVerify.asp?idpchange=<%=tempidPayment%>&idDbSession=<%=pidDbSession%>&randomKey=<%=prandomKey%>&UseRewards=<%=session("pcSFUseRewards")%>&discountcode=<%=pDiscountShowCode%>" selected">
    <% end if %>

<% else %>

    <% If session("customerCategory")="5" then %>
        <option value="OrderVerify.asp?idpchange=<%=tempidPayment%>&idDbSession=<%=pidDbSession%>&randomKey=<%=prandomKey%>&UseRewards=<%=session("pcSFUseRewards")%>&discountcode=<%=pDiscountShowCode%>">
    <% end if %>

<% end if %>

This will perfectly display only one type in the drop down.
I just need it to "select" it after displaying it, using:
 onchange="location.href=this[this.selectedIndex].value;"

But i can not figure how to to execute this code outside of a <select> tag.




Edited by e4h - 02-July-2009 at 1:59pm
Back to Top
e4h View Drop Down
Groupie
Groupie


Joined: 22-June-2009
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote e4h Quote  Post ReplyReply Direct Link To This Post Posted: 02-July-2009 at 5:16pm
Another question that would solve this problem:

How any why does the checkout page default to one type of payment, regardless of what the box is selecting.
It seems it Chooses the payment type even before the drop down is populated.
Back to Top
e4h View Drop Down
Groupie
Groupie


Joined: 22-June-2009
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote e4h Quote  Post ReplyReply Direct Link To This Post Posted: 02-July-2009 at 5:52pm
Well, as a last resort, I tried putting a redirect script in the paymnta_c page (my net 30 checkout page) that would redirect you to the credit card payment if you were in the specific customer category.

works, except when i am re-directed to the credit card page, the card type drop down is blank, and the image and ccv2 thing are missing.

grrrr........
Back to Top
e4h View Drop Down
Groupie
Groupie


Joined: 22-June-2009
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote e4h Quote  Post ReplyReply Direct Link To This Post Posted: 03-July-2009 at 10:52am
bump. been at this for over a week. 
Back to Top
e4h View Drop Down
Groupie
Groupie


Joined: 22-June-2009
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote e4h Quote  Post ReplyReply Direct Link To This Post Posted: 07-July-2009 at 4:11pm
welp... still going at it.

i tried to use an if statement that would display a checkout button that would lead to the appropriate checkout page (either net30 or the cc page)

in firefox, this all works perfectly.
in IE, this gives me errors.

this is looking hopeless.
Back to Top
e4h View Drop Down
Groupie
Groupie


Joined: 22-June-2009
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote e4h Quote  Post ReplyReply Direct Link To This Post Posted: 10-July-2009 at 4:04pm
it finally works.
pm me for information regarding this modification.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.031 seconds.