ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old July 3rd, 2009, 12:23 PM
e4h e4h is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2009
Posts: 1 e4h User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 18 sec
Reputation Power: 0
Help with setting up my storefront. Simple customizing.

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.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > Help with setting up my storefront. Simple customizing.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump





 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
Stay green...Green IT