PDA

View Full Version : Quantity Discounters


rubino44
05-22-2003, 11:03 PM
http://216.234.168.27/USEastJewelsRegular.shtml

see how they have quantity discounters?? well i figured out how to copy their script... but im looking to add more? anyone know how to add more quantity discounters for like more items i want to add... basically.. i want to add more of them... and when i try... it doesnt close like its supposed to.. anyone know what im doing wrong? there must be sumthing extra i need to add that im not...

rubino44
05-24-2003, 07:38 PM
so.. basically i wanna know the basics.. how to add one... and to keep adding on... i can copy the html for say 4.. but if i wanted to add one more.. it gets funked up.. anyone know how to do this?

WA
05-24-2003, 09:31 PM
Hi;
Just so you know, such questions are generally discouraged here, since what you're asking involves lifting a script from another site (perhaps without their consent), and more fundamentally, the question has little to do with JavaScript Programming (but JavaScript request).

Good luck,

rubino44
05-26-2003, 04:57 AM
so anotherwords.. u cant do it urself? im using site as an example.. and asking u to generate a script because im a JS newb... can u do it or not?

scroots
05-26-2003, 08:11 PM
i could probably build one for you, but i would need to know the quantity discount rate e.g.
Buy 4 or more save 4%
Buy 6 or more save 6%
Buy 8 or more save 8%
Buy 10 or more save 10%

Or a fixed discount determined by the quatity.

Buy 4 or more save £4
Buy 6 or more save £6
Buy 8 or more save £8
Buy 10 or more save £10

which method would it be and what are your quantitiy discount rates like listed above.

rubino44
05-29-2003, 11:59 AM
Well.. dont do a rate.. just make up ur own price for now... and that i can always edit... but i just want to know.. how the thing works so i can add more?? like.... if uu copy and pste... does it have something to do with the ID number of the table??

basically i wanna learn how to add them myself... wat makes them unique to work? i can copy and paste it... but how do i get it working... where it only shows one choice at a time... and not 5:P ... anyone know?? do i need ot change the table ID... there a special javascript cod ei need to add or edit?? give me the basics..

scroots
05-29-2003, 06:22 PM
right there are two ways to do it.
1)If you by X amount you get X amout off
2)If you by X amount you get X% off

which do you prefer?

scroots

scroots
05-29-2003, 06:32 PM
someting like this:


<center>
<form name="saving">
Buy<select name="example" size="1" onChange="showsaving()">
<option value="£2">2</option>
<option value="£5">5</option>
<option value="£10">10</option>
</select>
<p>Of I Love codingforums.com stickers</p>
<p>Save: <input type="text" name="text" size="20"> <script language="javascript">
<!--
var shortcut=document.saving
function showsaving(){
document.saving.text.value=shortcut.example.options[shortcut.example.selectedIndex].value
}
//-->
</script>

</p>

</form>
</center>


scroots

rubino44
06-04-2003, 04:23 AM
looking better.. now.. have the code add a PAYPAL button, such as one on MY site does... IM ALLOWING YOU FULL COPYRIGHT TO MYSITE ONLY FOR THIS MATTER OF HELPING ME...


www.d2deals.com <----My Site...

www.d2deals.com/Armor.htm (http://www.d2deals.com/Armor.htm)

see how i have that?? exactly how i want it.. i can paste them in large quantityies but cant add one :X anyways.. i need it to have this layout.. with the button.. and nothing less... im hoping one of you pros.. can do this..

rubino44
06-04-2003, 04:28 AM
Also.. want a set amount.. like... Buy 1 For 2.00$
Buy 2 For 3.50$
Buy 5 For 8.00
Buy 10 for 15.00$

like that.. Dont Have it say Buy... Just have at the top the scroll down bar.. to pick quantity... then.. have a number below at a fixed price of automatically BUY 1.. andhave it show 2.00$... then.. once u change have the price change.. like on the site.. And you click the button.. ADD TO CART.. It adds it... i got all the way up to.. the part... and it wont minimize...

www.d2deals.com/Rammy.htm

scroll all the way down.. u will see all of them work but the bottom 2... im not understanding it too well..