I am using Product Cart. I am attempting a rather simple modification to their code, yet I am suck and their tech support won't help with modifications-
Here is the scenario.
In my storefront, i have 1 type of customer, and I have 2 categories under that. Net30 & PrePay.
Normally, On the checkout page, there is a dropdown box that is populated with the two options. Net30 and Prepay.
When you select one or the other, it uses an OnChange command to change some text on the page, and then change where the "NEXT STEP" button takes you.
I am trying to disable this drop down. I want the customers payment type to be selected based on what category he falls under.
I have pulled this part off. Basically, I took the code that populated the drop down box and added an IF statement before each one. Simple as cake. Here is that code:
Code:
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 box.
However, is has not selected this payment type. The button for the next step still defaults to Net30 Payment type, regardless if the drop down is displaying prepaid.
The problem is, now i need to find a way to execute the "onchange" section of the code.
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.
Any help would be greatly appricated. Our storefront has been held up for a week because of this snag.