www.uburst.com www.uburst.com

"affecting the ID number with variables"

Go back to the LobbyClick here to Go Back to Main ListingClick here to see helpClick here to Search the Forum

CGI Script Related Problems
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"affecting the ID number with variables"
Posted by Gary Torello on Feb-23-01 at 07:29 PM (EST)
Hi!

Is there any applet available or modification I can make to an applet to have the product ID (which happens to be the product number) change -- have a suffix added -- based on selecting an option such as color..

i.e a *black* walrus might be product ID HP234-01 and a *white* walrus would be product ID HP234-02

Also.. note that the suffixes have dashes, or "minuses".. is this possible or will it cause a price mod problem?

TIA!

Click to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents

 Table of Contents

RE: affecting the ID number with va..., Bill Weiner, Feb-24-01, (1)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "RE: affecting the ID number with variables"
Posted by Bill Weiner on Feb-24-01 at 07:55 AM (EST)
The only applets at this time that allow the product ID to change based on options selected are the uShopInput17, uShopInput18, and uShopInput19 applets... which basically allow you to list different products (with different descriptions) in a drop-down menu.

Or as another option, you may want to look into JavaScript Input Examples #3, #4, or #5. You may be able customize the logic of the "add" function call such that the product ID is first appended with the selected option's suffix.

For example:

var productID = "HP234-" + document.HP234.color.options[document.HP234.color.selectedIndex].value;

Of course this logic can also be worked into a custom Java Applet if you are familar with Java. (See the uShop Programmer's Guide for tips there).

And in regard to using a minus "-" sign in the product ID, no, that will not cause any price modification problems.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents


Archive This Thread: Admin and Moderator OnlyRemove This Thread: Admin and Moderator Only
Click here to goto Click here to goto the Lobby

 

 

 

 

 

 

 

 

 

 

 

 
Questions or problems regarding this bulletin board should be directed to Webmaster
©1997-1999 by DCScripts. All rights reserved.