![]() |
Assigning Payment types to specific customers. |
Post Reply
|
| Author | |
e4h
Groupie
Joined: 22-June-2009 Status: Offline Points: 0 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
e4h
Groupie
Joined: 22-June-2009 Status: Offline Points: 0 |
Post Options
Thanks(0)
Quote Reply
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. |
|
![]() |
|
e4h
Groupie
Joined: 22-June-2009 Status: Offline Points: 0 |
Post Options
Thanks(0)
Quote Reply
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........ |
|
![]() |
|
e4h
Groupie
Joined: 22-June-2009 Status: Offline Points: 0 |
Post Options
Thanks(0)
Quote Reply
Posted: 03-July-2009 at 10:52am |
|
bump. been at this for over a week.
|
|
![]() |
|
e4h
Groupie
Joined: 22-June-2009 Status: Offline Points: 0 |
Post Options
Thanks(0)
Quote Reply
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. |
|
![]() |
|
e4h
Groupie
Joined: 22-June-2009 Status: Offline Points: 0 |
Post Options
Thanks(0)
Quote Reply
Posted: 10-July-2009 at 4:04pm |
|
it finally works.
pm me for information regarding this modification. |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |