Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.



Recommended Posts

it added to the cart when i tried it, i think its working a whole lot better then what it used to though

Don't die with the music in you!!!


Failure is just another boundary to sucess!!! But that doesn't mean your getting somewhere...

Link to comment
Share on other sites

  • Replies 305
  • Created
  • Last Reply

Top Posters In This Topic

I have just sat here for 20 mins testing all different vareties of configs, and I get no errors.


Excellent job mate.


One of the only things I see being an issue is the weight factor on checkout.

As weights increase so does shipping cost in a lot of cases.

This isnt taken into account on the PC config system, therefore shipping maybe the same for a full PC as it would be for a mouse mat.


P.S. You do have a javascript error on your signup page, but that has nothing to do with the config system. ;)

Link to comment
Share on other sites

He just got the normall attributes of oscommerce but putted some kind of script into it, that when you select a new attribute the subtotal box auto calculates again on the prices of the attributes + the basic price of the system.


This is really where i was looking for for 2 weeks now.


I hope somebody knows how this works (im a very newb to php and mysql)


Can anyone help?


Or the shop creater :blink:

He just uses the options for products that are standard in OSC.

I mean the calculation that's not standard in Oscommerce, and i also n00b in Javascript (i only html)

Edited by Frank_NL
Link to comment
Share on other sites

This is the story:

I want to have the same calculation system as the following webpage:


But i heard this have to be done with a javascript, but i don't know how, and i think there have to be more to edit then only that javascript.

So can please someone tell me exactly what i have to do? im n00b in everything else the Html so don't expect me to know alot :blink:


ps. I want it according to that webpage that calculation.


Regards, Frank

Link to comment
Share on other sites

I installed it and everything seemd tobe fine except when I uploaded the new shoping_cart.php file, and I did some test on shoping some Items and when I click on "add to cart" button I get the following message:


Fatal error: Cannot instantiate non-existent class: productlistingbox in /home/**********/public_html/shop/shopping_cart.php on line 161


also another bug when I try to enable the image in custom computer creator its not working at all, it always shows as no images selected.!!!


can you tell me what I did wrong??


Thanks for your support

Link to comment
Share on other sites

This is the story:

I want to have the same calculation system as the following webpage:


But i heard this have to be done with a javascript, but i don't know how, and i think there have to be more to edit then only that javascript.

So can please someone tell me exactly what i have to do? im n00b in everything else the Html so don't expect me to know alot  :blink:


ps. I want it according to that webpage that calculation.


Regards, Frank

Heres the code that automatically updates the price when the various options are chosen from the drop down menu's - copy & paste it in between the <body> & </body> when viewing the design code in frontpage or dreamweaver to see it in action - just need to somehow find out how it gets added to the shopping cart :blink:

<script language="javascript">
  function FormatNumber(num)
    if(isNaN(num)) { num = "0"; }
    sign = (num == (num = Math.abs(num)));
    num = Math.floor(num*100+0.50000000001);
    cents = num%100;
    num = Math.floor(num/100).toString();
    if(cents<10) { cents = "0" + cents; }
    for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++)
      num = num.substring(0,num.length-(4*i+3))+','+ num.substring(num.length-(4*i+3));
    return (((sign)?'':'-') + num + '.' + cents);
 function showPrice(form)
   var myTotalPrice = 0;
   var showUP = 0;
   var myMathProblem = "";
   myItemPrice = parseFloat(form.nuPrice.value);
   for (var i = 0; i < form.elements.length; i++)
     var e = form.elements[i];
     if ( e.type == 'select-one' )
       showUP = 1;
       Item = e.selectedIndex;
       myPrice = e.options[Item].text;
       myDollarSign = myPrice.indexOf("?",0)
       if ( myDollarSign != "-1" )
         myParSign = myPrice.indexOf(")", myDollarSign);
         myAttributeString = myPrice.substring(myDollarSign+1, myParSign);
         myAttributeString = myAttributeString.replace(/,/,"");
         myAttributePrice = parseFloat(myAttributeString);
         myMathProblem = myPrice.charAt(myDollarSign - 1);
       } else { myAttributePrice = 0; }
         if (myMathProblem == "-")
           myTotalPrice = myTotalPrice - myAttributePrice;
         } else {
           myTotalPrice = myTotalPrice + myAttributePrice;
   if ( showUP )
       myTotalPrice = FormatNumber(myTotalPrice + myItemPrice);
       document.getElementById("productNEWprice").value = "System Price with Selected Options ?" + myTotalPrice;

<script language="JavaScript" type="text/JavaScript">
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
 if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
   document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
 else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();

</tr>  </table></td>

   <td width="97%" valign="top"> 
     <form name="cart_quantity" method="post" action="http://www.vantagedirect.co.uk/online/product_info.php/products_id/537/action/add_product">
                   <input type="hidden" name="products_id" value="537">
                                       <input name="products_id2" type="hidden" id="products_id" value="537">
                                       <input type="hidden" name="products_id" value="537">
                   <input type="hidden" name="nuPrice" value="214.9500">
       <table border="0" width="100%" cellspacing="0" cellpadding="0">
           <td height="27"> <table width="100%">
	 <table border="0" cellpadding="0" cellspacing"0"><tr><td class="main">
<select name="id[1]" onChange="showPrice(this.form)"><option value="238">Monarch 
White/Charcoal As Standard</option><option value="239">Monarch All Black Case 
(+?2.50)</option><option value="240">Monarch Black/Silver Case (+?2.50)</option><option value="245">
V880 Side Window Case (+ Blue Neon) (+?15.25)</option><option value="242">V770 
Side Window Case (+ Blue Neon) (+?15.25)</option><option value="256">Silver 
Radiance X Case (+?21.95)</option><option value="255">Silver Quartz Case + Front 
LCD (+?21.95)</option><option value="271">Mirage Neon Front Window Case (+ Blue 
Neon) (+?23.95)</option><option value="241">Jeantech Black Hydraulic Door Case 
(+?26.95)</option><option value="260">V770 Side Window Rainbow Case (+Blue Neon) 
(+?28.95)</option><option value="250">Coolermaster Centurion Case (+?40.50)</option><option value="249">
Jeantech Aluminium Case (+?42.50)</option><option value="259">Saturn Aluminium 
Window Case (+Blue Neon) (+?51.25)</option><option value="258">Matrix Aluminium 
Case - Hydraulic Door - LCD (+?56.50)</option><option value="257">Lian-Li PC7 
Elegant Aluminium Case (+?57.95)</option></select></td></tr><tr><td class="main">
  	 Case Upgrades:</td><td>
<select name="id[2]" onChange="showPrice(this.form)"><option value="289">No 
Upgrade Required</option><option value="272">80mm Case Fan (+?1.45)</option><option value="273">
2x 80mm Case Fan (+?2.90)</option><option value="274">Blue LED Fan (+?2.95)</option><option value="275">
Blue/Red LED Fan (+?2.95)</option><option value="276">Tri-Colour LED Fan 
(+?2.95)</option><option value="281">Red LED Fan (+?2.95)</option><option value="277">
Upgrade Blue Neon to Tri-Colour Sound neon (+?4.25)</option><option value="278">
Upgrade Blue Neon to Purple Sound neon (+?4.25)</option><option value="279">
Upgrade Blue Neon to UltraViolet Sound neon (+?4.25)</option><option value="280">
Upgrade Blue Neon to Blue Sound neon (+?4.25)</option></select></td></tr><tr><td class="main">
  	 PSU Upgrades:</td><td>
<select name="id[4]" onChange="showPrice(this.form)"><option value="294">300W 
PSU As Standard</option><option value="290">Upgrade to 350W (+?1.50)</option><option value="291">
Upgrade to 400W (+?3.50)</option><option value="292">Upgrade to 450W QTEC Twin 
Fan (+?12.95)</option><option value="293">Upgrade to 550W QTEC Twin Fan 
(+?18.25)</option></select></td></tr><tr><td class="main">Processor & Fan:</td><td>
<select name="id[5]" onChange="showPrice(this.form)"><option value="556">AMD 
Duron 1.4 Ghz</option><option value="296">AMD Athlon 1800XP (+?19.95)</option><option value="297">
AMD Athlon 2000XP (+?24.95)</option><option value="298">AMD Athlon 2200XP 
(+?31.95)</option><option value="299">AMD Athlon 2400XP (+?39.95)</option><option value="300">
AMD Athlon 2600XP (+?58.95)</option><option value="301">AMD Athlon 2700XP 
(+?85.95)</option><option value="302">AMD Athlon 2800XP (+?119.95)</option><option value="303">
AMD Athlon 3000XP (+?199.95)</option></select></td></tr><tr><td class="main">
<select name="id[6]" onChange="showPrice(this.form)"><option value="329">256Mb 
DDR333 PC2700</option><option value="330">512Mb DDR333 PC2700 (+?34.50)</option><option value="331">
1024Mb DDR333 PC2700 (+?101.95)</option></select></td></tr><tr><td class="main">
  	 Hard Disk Drive:</td><td>
<select name="id[7]" onChange="showPrice(this.form)"><option value="345">40Gb 
7200rpm ATA133</option><option value="346">60Gb 7200rpm ATA133 (+?14.25)</option><option value="347">
80Gb 7200rpm ATA133 (+?16.95)</option><option value="348">120Gb 7200rpm ATA133 
(+?36.95)</option><option value="349">160Gb 7200rpm ATA133 (+?72.95)</option><option value="350">
200Gb 7200rpm ATA133 (+?139.95)</option></select></td></tr><tr><td class="main">
  	 Floppy Disk Drive:</td><td>
<select name="id[8]" onChange="showPrice(this.form)"><option value="360">White 
Floppy Drive</option><option value="361">Black Floppy Drive (+?1.50)</option><option value="362">
Silver Floppy Drive (+?3.50)</option><option value="367">White Floppy & Multi 
Card Reader (+?20.50)</option><option value="363">White Floppy & 250Mb ZIP Drive 
(+?58.50)</option><option value="364">Black Floppy & 250Mb ZIP Drive (+?58.50)</option></select></td></tr><tr><td class="main">
  	 CD Device:</td><td>
<select name="id[9]" onChange="showPrice(this.form)"><option value="527">54x CD</option><option value="371">
52x CD BLACK (+?2.50)</option><option value="375">16x DVD (+?10.95)</option><option value="377">
16x DVD SILVER (+?12.95)</option><option value="376">16x DVD BLACK (+?12.95)</option><option value="372">
52x32x52 CD-RW (+?14.75)</option><option value="374">52x32x52 CD-RW SILVER 
(+?16.75)</option><option value="373">52x32x52 CD-RW BLACK (+?16.75)</option><option value="548">
4x + DVD-RW (+?52.95)</option><option value="378">4x +/- DVD-RW (+?78.50)</option><option value="379">
4x +/- DVD-RW BLACK (+?85.95)</option></select></td></tr><tr><td class="main">
  	 Second CD Device:</td><td>
<select name="id[10]" onChange="showPrice(this.form)"><option value="396">No CD 
Device Required</option><option value="528">54x CD (+?12.35)</option><option value="384">
52x CD BLACK (+?13.95)</option><option value="388">16x DVD (+?22.95)</option><option value="390">
16x DVD SILVER (+?24.95)</option><option value="389">16x DVD BLACK (+?24.95)</option><option value="385">
52x32x52 CD-RW (+?26.95)</option><option value="387">52x32x52 CD-RW SILVER 
(+?28.95)</option><option value="386">52x32x52 CD-RW BLACK (+?28.95)</option><option value="550">
4x + DVD-RW (+?73.95)</option><option value="391">4x +/- DVD-RW (+?96.95)</option><option value="392">
4x +/- DVD-RW BLACK (+?128.95)</option></select></td></tr><tr><td class="main">
  	 Graphics Card:</td><td>
<select name="id[11]" onChange="showPrice(this.form)"><option value="397">
Onboard</option><option value="398">GeForce2 MX400 64Mb SDRAM (+?27.75)</option><option value="399">
GeForce2 MX400 64Mb SDRAM + TV (+?29.95)</option><option value="400">Radeon 7000 
64Mb DDR + 2VGA/TV (+?32.50)</option><option value="547">GeForce4 MX440 64Mb DDR 
+ TV (+?33.95)</option><option value="401">Radeon 7500 64Mb DDR + DVI/TV 
(+?37.95)</option><option value="546">GeForce FX5200 128Mb DDR + TV (+?51.50)</option><option value="404">
GeForce FX5200 128Mb DDR + DVI/TV (+?52.95)</option><option value="403">Radeon 
9200 128Mb DDR + DVI/TV (+?53.95)</option><option value="408">GeForce FX5600 
128Mb DDR + DVI/TV (+?88.95)</option><option value="413">Radeon 9600 256Mb DDR + 
DVI/TV (+?101.95)</option><option value="410">GeForce FX5600 256Mb DDR + DVI/TV 
(+?109.95)</option><option value="409">Radeon 9600 PRO 128Mb DDR + DVI/TV 
(+?141.95)</option><option value="419">GeForce FX5900 128Mb DDR + DVI/TV 
(+?249.95)</option><option value="416">Radeon 9800 PRO 128Mb DDR + DVI/TV 
(+?289.95)</option><option value="420">GeForce FX5900 256Mb DDR + DVI/TV 
(+?337.95)</option></select></td></tr><tr><td class="main">Sound Card:</td><td>
<select name="id[12]" onChange="showPrice(this.form)"><option value="421">
Onboard</option><option value="422">SoundBlaster 4.1 Digital (+?11.95)</option><option value="423">
SoundBlaster 5.1 Live! (+?23.95)</option><option value="424">SoundBlaster 5.1 
Digital (+?26.95)</option><option value="425">SoundBlaster Audigy (+?31.95)</option><option value="426">
SoundBlaster Audigy 2 (+?54.95)</option><option value="427">SoundBlaster Audigy 
Platinum (+?88.95)</option><option value="432">SoundBlaster Extigy (+?124.95)</option><option value="552">
SoundBlaster Audigy2 ZS Platinum Pro (+?158.95)</option></select></td></tr><tr><td class="main">
  	 PCI Device 2:</td><td>
<select name="id[13]" onChange="showPrice(this.form)"><option value="433">56K 
Modem</option><option value="435">USB1.1 2 Port Card (+?1.25)</option><option value="436">
USB2.0 4 Port Card (+?2.50)</option><option value="437">Firewire 1394 3 Port 
Card (+?7.85)</option><option value="440">TV Card (Teletext/Remote) (+?21.95)</option><option value="439">
ADSL PCI Modem (+?22.50)</option></select></td></tr><tr><td class="main">PCI 
  	 Device 3:</td><td>
<select name="id[14]" onChange="showPrice(this.form)"><option value="452">No 
Device Required</option><option value="445">USB1.1 2 Port Card (+?6.95)</option><option value="446">
USB2.0 4 Port Card (+?9.95)</option><option value="447">Firewire 1394 3 Port 
Card (+?11.95)</option><option value="450">TV Card (Teletext/Remote) (+?27.95)</option><option value="449">
ADSL PCI Modem (+?28.40)</option></select></td></tr><tr><td class="main">
  	 Keyboard & Mouse:</td><td>
<select name="id[18]" onChange="showPrice(this.form)"><option value="486">No KB 
& MS Required</option><option value="473">Mercury KB & Scroll MS (+?4.95)</option><option value="477">
Genius Easytouch KB & Netscroll MS (+?8.45)</option><option value="474">Mercury 
Wireless MultiMedia KB & MS (+?16.95)</option><option value="484">Microsoft 
MultiMedia KB & Opt MS (+?20.45)</option><option value="475">Mercury Wireless MM 
KB & MS - BLACK (+?21.95)</option><option value="549">Microsoft Black MultiMedia 
KB & Opt MS (+?22.95)</option><option value="479">Memorex Wireless KB & MS in 
Chrome (+?22.95)</option><option value="482">Microsoft Natural MM KB & Opt MS 
(+?23.95)</option><option value="485">Microsoft Wireless MultiMedia KB & Opt MS 
(+?45.25)</option></select></td></tr><tr><td class="main">Speakers:</td><td>
<select name="id[19]" onChange="showPrice(this.form)"><option value="526">No 
Speakers Required</option><option value="487">Tsunami 280W (+?3.95)</option><option value="490">
JNC 680W 2.1 Set (+?8.95)</option><option value="492">Creative 4.1 4400 
(+?31.95)</option><option value="497">Ozaki VA303 2.1 Set (+?36.95)</option><option value="493">
Creative 5.1 5100 (+?42.95)</option><option value="495">Creative 6.1 6700 
(+?62.95)</option><option value="496">Creative Itrigue 2.1 3300 (+?79.95)</option><option value="500">
Ozaki HM030 5.1 + Remote (+?89.95)</option><option value="553">Creative 7.1 
T7700 (+?96.95)</option></select></td></tr><tr><td class="main">Monitor:</td><td>
<select name="id[20]" onChange="showPrice(this.form)"><option value="516">No 
Monitor Required</option><option value="501">15" CRT Relisys (+?67.95)</option><option value="502">
17" CRT DiFusion (+?73.95)</option><option value="503">17" CRT BLACK Relisys 
(+?80.95)</option><option value="529">19" CRT DiFusion (+?107.95)</option><option value="555">
14" TFT BLACK GNR (+?161.95)</option><option value="510">15" TFT Relisys MM 
BLACK (+?214.95)</option><option value="511">15" TFT Relisys MM SILVER 
(+?214.95)</option><option value="509">15" TFT AOC (Sil/Blk) (+?219.95)</option><option value="514">
17" TFT Samsung Xiod SILVER (+?274.95)</option><option value="513">17" TFT AOC 
(Sil/Blk) (+?279.95)</option><option value="515">19" TFT AOC (Sil/Blk) 
(+?399.95)</option></select></td></tr><tr><td class="main">Operating System:</td><td>
<select name="id[21]" onChange="showPrice(this.form)"><option value="517">No 
Operating System Required</option><option value="518">Win XP Home (+?59.95)</option><option value="519">
Win XP Professional (+?99.95)</option></select></td></tr><tr><td class="main">
<select name="id[22]" onChange="showPrice(this.form)"><option value="521">4 
Years RTB (1st Yr Parts & Labour & 3 Yrs Labour)</option><option value="522">1st 
Yr Collect/Return & 3 Yrs Labour Only (+?26.95)</option></select></td></tr><tr><td class="main">
  	 Additional Software:</td><td>
<select name="id[23]" onChange="showPrice(this.form)"><option value="568">No 
Additional Software Required</option><option value="557">Norton AntiVirus 2003 
(+1 yr updates) (+?12.95)</option><option value="558">Norton Internet Security 
2003 (+1 yr updates) (+?15.95)</option><option value="559">Norton SystemWorks 
Pro 2003 (+1 yr updates) (+?16.95)</option><option value="565">Microsoft Works 
v7.0 (+?17.95)</option><option value="567">Microsoft WorkSuite 2003 (+?46.95)</option><option value="569">
Microsoft Office 2003 Basic (+?141.95)</option><option value="561">Microsoft 
Office XP SmallBusiness (+?149.95)</option><option value="570">Microsoft Office 
2003 SmallBusiness (+?184.95)</option><option value="560">Microsoft Office XP 
Pro (+?231.95)</option><option value="571">Microsoft Office 2003 Pro (+?231.95)</option></select></td></tr><tr><td class="main" colspan="2"><br><input name="productNEWprice" type="text" id="productNEWprice" size="50" readonly></td></tr></table>

Link to comment
Share on other sites

hey, that looks pretty cool,

i like the option for adding your own prebuilt systems,


any idea of when you will release the mod, how many bugs do you still have to fix?

Don't die with the music in you!!!


Failure is just another boundary to sucess!!! But that doesn't mean your getting somewhere...

Link to comment
Share on other sites

havent seen many if any bugs right now, just have a few things i haven't put in yet, and i need to write a how to on this contribution, because it has gotten to be much larger with more options than i thought it ever would.

Link to comment
Share on other sites

hi there...


does anyone know how i can include this excellent contribution in the STS 1.8 (Simple Template System)? I have managed to install it (Custom Computer Creator (Reloaded)), made the changes from the CCC_errata.txt, but i am unable to find a way to add it as a block or link to the site itself... :(


any ideas? i 'd love to have the CCC either as a link or as a block in the site, but i don't know how to add it... is there a value that i should put in the theme? here's my current theme's template index page, where the right & left blocks and the content is loaded:


<table width="764" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111">
   <td width="160" valign="top" background="images/globeone/leftbl_bg.gif"> 
   <td valign="top">
   <td width="160" valign="top" align="right" background="images/globeone/rightbl_bg.gif"> 


i can't find of any way to add CCC to it... is anyone using STS 1.8 and CCC together? if not, is there a function that i can include (with <?php echo ?> perhaps?) so it will appear? or a link that would load the CCC in the content area once clicked?


thank you very much for your time and i am sorry for the long post :)

Link to comment
Share on other sites

Looks bloody good mate!

Have tested plenty and no apparent bugs as far as I can see.


What else needs implementing?


Is there anything you are worried about that needs testing etc?


Good job ;)

Link to comment
Share on other sites

I can't wait to get this up and running when it is release. It looks great. I have a few questions. I didn't see this anywhere in the admin area, but I am a newbie so sorry if I missed it.


After the computer is configured by the customer and shows up in the admin area for building, are part numbers there for the items somewhere or am I missing them?

Link to comment
Share on other sites

This module still does not work in mozilla?

Also how does one add products to the ccc? The same as the 09/29/03 release of CCC?

What I do/did not like about CCC rel 09.29.03 is the addition of products to it. I have frequent price changes in my store and over 300 products to choose in the combo (ccc), so updating both product database and ccc database is too much time. I remember a CCC you release in 2002 or the begining of this year that used the osc product database instead of creating its own (that needds to be double updated with main prod database). From memory you could also add a whole category to a custom module, eg If you had a category AMD CPU, just click and it added all products. Is this feature implemented in the new CCC you are developing ?

Or does one have to depliate product detail and price in the CCC?



Link to comment
Share on other sites

i took out the option to add full categories and to use the osc database as it was creating problems for most people, now you can edit the prices and products in the ccc database but it doesn't update from changes to products in osc's database. maybe in a later release.

Link to comment
Share on other sites

Sorry sw45859,


There's still a major bug in there,

cause if the site is loaded in german, there is nothing shown within the cart.


I wonder why this happens, cause if the site is set to english then it works properly.


Is there a solution for this problem??


Thanx in advance!

---Freakstyler in the Hood!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...