Carbon Posted March 20, 2006 Share Posted March 20, 2006 Hi All, Seeing as Xmedias is trying to update and improve the CCC contribution I let him have a sneaky peek at what I've done so far customising my own site and he has noticed a few things I've done that would be of interest/help to others so I'll try to explain what each mod does and how I achieved it. Here is a screenshot of a typical component cell using build.php... MOD1: REQUIREMENTS What this mod does is add either an "optional" or "required" button to each components depending on "required?" checkbox being ticked in the OSC/CCC admin page when you create the component sub-section (in this example that sub-section is "Processors"). This is done by finding this part of code in catalog/build.php near the top of the file... define('DROP_DOWN_REQUIRED', '<small><i><font color="red">??'.TEXT_REQUIRED.'</font></i></small>'); ... and in MY EXAMPLE (which will differ from your page), changing it to... define('DROP_DOWN_REQUIRED', '<td width="20">?</td><td width="150"><a href="requirements.html" hidefocus onClick="winBRopen(\'requirements.html\',\'FRAMES\',\'820\',\'360\',\'scroll true\');return false;"><img src="images/buttons/required.gif" align="absmiddle" border="0" alt="Click here to view a summary of system REQIREMENTS"></a></td>'); define('DROP_DOWN_OPTIONAL', '<td width="20">?</td><td width="150"><a href="requirements.html" hidefocus onClick="winBRopen(\'requirements.html\',\'FRAMES\',\'820\',\'360\',\'scroll true\');return false;"><img src="images/buttons/optional.gif" align="absmiddle" border="0" alt="Click here to view a summary of system REQIREMENTS"></a></td>'); You then need to find the code that generates the dropdown list and modify it so that the unmodified red text that says "Required" is displayed where you want the new dynamic button to be. On the above example page the button is in-line with the dropdown list with a 20px gap, so my dropdown code looks like this... <tr> <td width="379" valign="top"><div id="drop<?php echo $i;?>"><?php echo tep_get_parts_list('new'. $i, $count['cat_id'], ${'new' . $i}, $systype, $fsb);?></div></td> </tr> You can see that it is just a row in a table <tr> blah blah </tr> and the code that defines the "Optional" and "Required" button (see code above) just inserts a 20px space <td width="20"> then a 150px space for the button <td width="150"> Okay so you now can replace the original small red "Required" when the component category (eg: Processor) is required or no text when it's not required with either a "Required" button or an "Optional" button and have edited the code to reposition it to where you want. The next bit is to create the popup when the button is clicked, like this... On my popup the user can mouseover each item and the coresponding image turns from wireframe to solid (like the display in the screenshot) and a big yellow box displays the words "Optional" or "Required". Since the requirements are always the same for each system (ie: you have to have a case) you just need to make one page, mine is called "requirements.html" and if you skip back to the code above where the definitions of "Optional" and "Required" are you can see that it's just a simple hyperlink <a href="requirements.html"> followed by some code to open it in a popup window. Here is the javascript popup code which you insert into the <head> of build.php... <script type="text/JavaScript" language="javascript"> function winBRopen(theURL, Name, popW, popH, scroll) { // V 1.0 var winleft = (screen.width - popW) / 2; var winUp = (screen.height - popH) / 2; winProp = 'width='+popW+',height='+popH+',left='+winleft+',top='+winUp+',scrollbars='+scroll+',resizable' Win = window.open(theURL, Name, winProp) if (parseInt(navigator.appVersion) >= 4){ Win.window.focus(); } } </script> MOD2: STRETCHING THE DROPDOWN LIST This one is quite easy, basically the stylesheet.css contains the style definitions for OSC/CCC and so far in MY OSC/CCC development I've only modified one page that contains a dropdown list (build.php) so I just used a "Catch-all" style that will affect ALL dropdown lists in OSC/CCC UNLESS I define another class (which I probably will do when I come to modding things like the checkout)... select { background-color: #ffffff; color: #426384; font-family: arial; font-weight: bold; font-size: 12pt; width: 376; height: 21; border: 0; letter-spacing: -1; cursor:url(../hand.cur); align: middle; } MOD3: RECOMMEND BUTTON This button uses the same popup javascript (see above) to open a window to offer the customer some advice based on two things, one is the system that they are customising (eg: The Elite System) and the second is the component the are choosing (eg: Processor)... When build.php creates each component section it uses a string called $i and increments this string by 1 everytime it creates the next section, so for example "Processor" might be "1" then the next section, say "Motherboard" would be "2" and so on. When you set up your CCC categories (Processor, Motherboard, Graphics etc) in the admin page you can see the order they will be displayed, and this order doesn't change... we now have a way to check to see which component the code is dealing with so you could include in your html code something like this... <?php if ($i == 1){ ?> THIS ITEM IS A PROCESSOR <?php } ?> <?php if ($i == 2){ ?> THIS ITEM IS A MOTHERBOARD <?php } ?> <?php if ($i == 3){ ?> THIS ITEM IS A GRAPHICS CARD <?php } ?> The next addition to the above code is designed to find which system you are customising. What you have to do is find the "fsb" code for each system. It's been a while since I've done this and I know I've seen the fsb number somewhere in my browser's status bar when hovering over links but here's one way I just investigated for this post. Go to the CCC page in your OSC admin and find the page that actually lists the system (in my case the page has Elite, Power, Extreme and Ultimate systems) and when you hover the mouse over the yellow folder icon next to each entry your browser's status bar will tell you were that link will take you. What you want is the very last digit. This is what I see when I hover over the folder icon next to my "Elite System" entry... https://www.microbuild.com/..... blah blah ..../view_prod.php?cPath=7_7 ...so the "fsb ID" for the "Elite System" is 7 Let's modify the above code to include the fsb filter... <?php if ($i == 1){ ?> <?php if ($fsb == 7){ ?> THIS ITEM IS A PROCESSOR IN THE ELITE SYSTEM <?php } ?> <?php if ($fsb == 8){ ?> THIS ITEM IS A PROCESSOR IN THE POWER SYSTEM <?php } ?> <?php } ?> <?php if ($i == 2){ ?> <?php if ($fsb == 7){ ?> THIS ITEM IS A MOTHERBOARD IN THE ELITE SYSTEM <?php } ?> <?php if ($fsb == 8){ ?> THIS ITEM IS A MOTHERBOARD IN THE POWER SYSTEM <?php } ?> <?php } ?> <?php if ($i == 3){ ?> <?php if ($fsb == 7){ ?> THIS ITEM IS A GRAPHICS CARD IN THE ELITE SYSTEM <?php } ?> <?php if ($fsb == 8){ ?> THIS ITEM IS A GRAPHICS CARD IN THE POWER SYSTEM <?php } ?> <?php } ?> You can see that from this code foundation you can build sections that have system and component specific text/descriptions and, as is the case with this mod example, the ability to link to a specific popup depending on the system/component... and yes you will have to create a popup html page for every combination of system and component ;) MOD5: MORE INFO The "More Info" feature is already built into CCC and all it does is replicate the component desription you enter when creating an OSC entry for a new component. Because MY site doesn't sell individual components only complete or customised systems the customer never gets to see these entries (although if yours does you could create duplicate entries under a hidden sub-category like "Components used in System Builds"). So all I did was to create an html page for each item to be used as a popup and then cut and paste the code into the description box within the admin/configuration/catalog/components/ section from within the OSC admin page... easy eh? So instead of boring text, my "More Info" button opens a popup like this... I hope this helps you guys, and remember that I've written this from memory as I haven't done any CCC development for about four months due to other commitments so if there are any errors I'll edit this post with updates. Cheers guys Carbon Quote Link to comment Share on other sites More sharing options...
Carbon Posted March 20, 2006 Share Posted March 20, 2006 UPDATE1 (seeing as I can't find an "Edit" button on my post) :rolleyes: MOD1: REQUIREMENTS I suspected this mod was a little more complex than just amending the DEFINE statements in build.php so I had a quick snoop through my CCC files and found the missing bits... In Catalog/includes/function/custom_computer.php FIND... if ($need == "1") { $field .= DROP_DOWN_REQUIRED . "<input type=hidden name=required" . $reqn[1] . " value=" . tep_parse_input_field_data($name, array('"' => '"')) . ">"; } return $field; } and IN MY EXAMPLE change to... if ($need == "1") { $field .= DROP_DOWN_REQUIRED . "<input type=hidden name=required" . $reqn[1] . " value=" . tep_parse_input_field_data($name, array('"' => '"')) . ">"; } else{ $field .= DROP_DOWN_OPTIONAL . "<input type=hidden name=optional" . $reqn[1] . " value=" . tep_parse_input_field_data($name, array('"' => '"')) . ">"; } return $field; } MOD2: STRETCHING THE DROPDOWN LIST To change the width of the dropdown component list find in Catalog/includes/function/custom_computer.php... $field = '<select style="width:250;" name="' . tep_parse_input_field_data($name, array('"' => '"')) . '" id="' . tep_parse_input_field_data($name, array('"' => '"')) . '"'; ... and just edit the "width:250;" to whatever you want. Cheers Carbon Quote Link to comment Share on other sites More sharing options...
Guest Posted March 29, 2006 Share Posted March 29, 2006 Thanks carbon for all the help, here is the new to do list. [NEW TO DO] 1 - Enable radio check or drop down list via admin 2 - Enable the kit price to show quicker on start up when default parts are selected in admin 3 - Product description window not showing description description. You can go at www.xmedias.ca to see it in action... be aware that color and style are sometimes irrelevant since I am constantly working on it and oding tests... CHEERS' Ray Quote Link to comment Share on other sites More sharing options...
pickupman Posted March 29, 2006 Share Posted March 29, 2006 Here's a working /admin/pending.php pending.zip Also, please note the ccc javascript is broken in Firefox & Opera. Only functions in IE. Quote Link to comment Share on other sites More sharing options...
Guest Posted March 30, 2006 Share Posted March 30, 2006 Hi there i have just installed CCC 9.3 i like it alot and i would like to use it but i am having a problem with it, everything works ok until i get to custom_checkout.php it list the items like it should but when i click on continue it goes to shopping_cart.php but has nothing in the cart and says cart is empty if anyone could help me with this that would be great, thanks. Quote Link to comment Share on other sites More sharing options...
Guest Posted March 30, 2006 Share Posted March 30, 2006 What is the language number ID you are using, and are there more than one... Quote Link to comment Share on other sites More sharing options...
Guest Posted March 30, 2006 Share Posted March 30, 2006 Hi the language number id i am using is 1 and the is for 'en' i have three 'en' 'es' 'de' Quote Link to comment Share on other sites More sharing options...
Guest Posted March 31, 2006 Share Posted March 31, 2006 So, is it showing in EN? Quote Link to comment Share on other sites More sharing options...
danno91 Posted April 2, 2006 Share Posted April 2, 2006 Carbon, for your Mod #2 (stretching the drop-down list), is there a snippet of code that could be added to /includes/function/custom_computer.php, where on click, the drop-down box expands to the longest option. Because right now my store has a static width and the drop-down box is as wide as it can possibly get, but there are still options being cut off on the right side if they are longer than the drop-down width. I know that with Firefox, when you open the drop-down box, it automatically expands the drop-down box to the longest option, but is there some code that could be added to make that work with IE as well? Thanks Quote Link to comment Share on other sites More sharing options...
Carbon Posted April 6, 2006 Share Posted April 6, 2006 Hi Danno, I don't think it's possible to expand the combo-box on a mouseclick event, nor is it possible to have the drop down selection list wider than the unselected combo-box as this is hard coded into the browser. I reckon I could modify the code to stretch the combo-box to the widest option but it would be a lot easier and visually better looking to just have all your combo-boxes wide enough to accommodate the longest option. Personally myself I just edit the option descriptions to fit. Carbon Quote Link to comment Share on other sites More sharing options...
RRiTechnologies Posted April 9, 2006 Share Posted April 9, 2006 Hi, I'm manually updating my OSC installation as detailed here... hXXp://www.oscommerce.com/ext/update-20051113.html#_Toc119693706 The catalog/includes/classes/shopping_cart.php file needs updating but when you do CCC no longer transfers your custom computer to the shopping cart. Does anyone have a fix for this? Cheers Carbon Looking for a solution to this still myself.... anyone figure it out yet please? Thanks :) Quote Link to comment Share on other sites More sharing options...
Carbon Posted April 10, 2006 Share Posted April 10, 2006 Hi RRi, That post was from a while ago and I hate to say that I must of sorted that problem as I just did a quick test purchase just to make sure. I can't specifically recall what the exact problem was but I can guess that it was probably due to not following the update mod instructions to the letter... from past experience I know that it only takes one character out of place to screw things up so my advice would be to start the update again and take your time. Carbon Quote Link to comment Share on other sites More sharing options...
arisythila Posted April 26, 2006 Share Posted April 26, 2006 (edited) Hello, I am getting this error, Im really not sure how to fix it, I've looked over the code to try to mingle with it, but it all looks correct... Maybe something else is wrong. Warning: main(includes/languages/english/FILENAME_CCC): failed to open stream: No such file or directory in /var/www/skyline-computer.com/htdocs/build.php on line 14 Fatal error: main(): Failed opening required 'includes/languages/english/FILENAME_CCC' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/skyline-computer.com/htdocs/build.php on line 14 Every file has the SAME error. Any ideas? www.skyline-computer.com/build.php is the link. Any help would be awesome. ~Mike Edited April 26, 2006 by arisythila Quote Link to comment Share on other sites More sharing options...
arisythila Posted April 26, 2006 Share Posted April 26, 2006 Hi blueinfinity Johnson is helping me to put the complete contrib with fixes (thanx to stephen) together. In the meantime here is the complete SQL you need to add: Using phpmy admin or whatever you may use apply the following SQL: CREATE TABLE `ccc` ( `ccc_id` int(11) NOT NULL default '0', `ccc_category` varchar(45) NOT NULL default '', `ccc_cname` varchar(45) NOT NULL default '', `ccc_amd_hidden` char(1) NOT NULL default 'n', `ccc_amd_req` char(1) NOT NULL default 'n', `ccc_intel_req` char(1) NOT NULL default 'n', `ccc_intel_hidden` char(1) NOT NULL default 'n', `fsb_100` char(1) NOT NULL default 'n', `fsb_133` char(1) NOT NULL default 'n', `fsb_266` char(1) NOT NULL default 'n', `fsb_333` char(1) NOT NULL default 'n', `fsb_400` char(1) NOT NULL default 'n', `fsb_533` char(1) NOT NULL default 'n', `fsb_800` char(1) NOT NULL default 'n', `fsb_111` char(2) NOT NULL default 'n', `fsb_222` char(2) NOT NULL default 'n', KEY `ccc_id` (`ccc_id`) ) TYPE=MyISAM; INSERT INTO `ccc` VALUES (1, '1', 'Intel MotherBoards', 'y', 'n', 'y', 'n', 'n', 'n', 'y', 'y', 'y', 'y', 'y', 'n', 'n'); INSERT INTO `ccc` VALUES (2, '2', 'Intel Processors', 'y', 'n', 'y', 'n', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'n', 'n'); INSERT INTO `ccc` VALUES (3, '3', 'AMD MotherBoard', 'n', 'y', 'n', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'n', 'n'); INSERT INTO `ccc` VALUES (4, '4', 'AMD Processors', 'n', 'y', 'n', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'n', 'n'); INSERT INTO `ccc` VALUES (5, '5', 'DDR Memory', 'y', 'n', 'y', 'n', 'n', 'n', 'n', 'n', 'y', 'y', 'y', 'n', 'n'); INSERT INTO `ccc` VALUES (6, '6', 'Hard Drives', 'n', 'n', 'n', 'n', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'n', 'y'); INSERT INTO `ccc` VALUES (7, '7', 'Video Cards', 'n', 'n', 'n', 'n', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'n', 'n'); INSERT INTO `ccc` VALUES (8, '8', 'Computer Cases', 'n', 'n', 'n', 'n', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'n', 'n'); INSERT INTO `ccc` VALUES (9, '9', 'Operating Systems', 'y', 'n', 'n', 'n', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'n', 'n'); INSERT INTO `ccc` VALUES (10, '10', 'Sound Cards', 'n', 'n', 'n', 'n', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'n', 'n'); INSERT INTO `ccc` VALUES (11, '11', 'Modems', 'n', 'n', 'n', 'n', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'n', 'n'); INSERT INTO `ccc` VALUES (12, '12', 'Network Cards', 'n', 'n', 'n', 'n', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'n', 'n'); INSERT INTO `ccc` VALUES (13, '13', 'CD-ReWriters', 'n', 'n', 'n', 'n', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'n', 'n'); INSERT INTO `ccc` VALUES (14, '14', 'DVD Roms', 'n', 'n', 'n', 'n', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'n', 'n'); INSERT INTO `ccc` VALUES (15, '15', 'Processor Upgrade', 'y', 'n', 'n', 'y', 'y', 'y', 'n', 'n', 'n', 'n', 'n', 'y', 'y'); INSERT INTO `ccc` VALUES (16, '16', 'Firewire Card', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n'); CREATE TABLE `ccc_prebuilt` ( `description` longtext NOT NULL, `product_id` int(10) NOT NULL auto_increment, `sys` varchar(10) NOT NULL default '', `price` decimal(5,2) NOT NULL default '0.00', PRIMARY KEY (`product_id`) ) TYPE=MyISAM AUTO_INCREMENT=1; CREATE TABLE `ccc_prebuilt_templates` ( `sys` varchar(10) NOT NULL default '', `template` varchar(5) NOT NULL default '', `product1` varchar(30) NOT NULL default '', `product2` varchar(30) NOT NULL default '', `product3` varchar(30) NOT NULL default '', `product4` varchar(30) NOT NULL default '', `product5` varchar(30) NOT NULL default '', `product6` varchar(30) NOT NULL default '', `product_price1` decimal(4,2) NOT NULL default '0.00', `product_price2` decimal(4,2) NOT NULL default '0.00', `product_price3` decimal(4,2) NOT NULL default '0.00', `product_price4` decimal(4,2) NOT NULL default '0.00', `product_price5` decimal(4,2) NOT NULL default '0.00', `product_price6` decimal(4,2) NOT NULL default '0.00', `product_pic1` varchar(30) NOT NULL default '', `product_pic2` varchar(30) NOT NULL default '', `product_pic3` varchar(30) NOT NULL default '', `product_pic4` varchar(30) NOT NULL default '', `product_pic5` varchar(30) NOT NULL default '', `product_pic6` varchar(30) NOT NULL default '', `product_desc1` text NOT NULL, `product_desc2` text NOT NULL, `product_desc3` text NOT NULL, `product_desc4` text NOT NULL, `product_desc5` text NOT NULL, `product_desc6` text NOT NULL, `bigpic` varchar(50) NOT NULL default '', `product_count` varchar(5) NOT NULL default '', `product_name1` varchar(30) NOT NULL default '', `product_name2` varchar(30) NOT NULL default '', `product_name3` varchar(30) NOT NULL default '', `product_name4` varchar(30) NOT NULL default '', `product_name5` varchar(30) NOT NULL default '', `product_name6` varchar(30) NOT NULL default '' ) TYPE=MyISAM; INSERT INTO `ccc_prebuilt_templates` VALUES ('amd', '2', 'motherboard', 'processor', 'memory', 'harddrive', 'cd-rom', 'dvd-rw', '50.00', '99.00', '45.00', '83.00', '99.00', '190.00', '', '', '', '', '', '', 'testing description number one', 'testing description number two', 'bobby', 'testing description number four', 'testing description number five', 'testing description number six', '', '6', 'Motherboard', 'Processor', 'Memory', 'Hard Drive', 'Cd-Rom', 'Dvd-Rw'); INSERT INTO `ccc_prebuilt_templates` VALUES ('intel', '1', 'motherboard', 'processor', 'memory', 'harddrive', 'cd-rom', 'dvd-rw', '50.00', '99.00', '45.00', '83.00', '99.00', '190.00', '', '', '', '', '', '', 'testing description number one', 'testing description number two', 'testing description number three', 'testing description number four', 'testing description number five', 'testing description number six', '', '6', 'Motherboard', 'Processor', 'Memory', 'Hard Drive', 'Cd-Rom', 'Dvd-Rw'); CREATE TABLE `ccc_products` ( `products_id` int(5) NOT NULL auto_increment, `products_image` varchar(255) NOT NULL default '', `products_description` varchar(255) NOT NULL default '', `products_language` char(3) NOT NULL default '', `products_name` varchar(255) NOT NULL default '', `products_model` varchar(255) NOT NULL default '', `products_price` decimal(15,2) NOT NULL default '0.00', `fsb_100` char(1) NOT NULL default 'n', `fsb_133` char(1) NOT NULL default 'n', `fsb_266` char(1) NOT NULL default 'n', `fsb_333` char(1) NOT NULL default 'n', `fsb_400` char(1) NOT NULL default 'n', `fsb_533` char(1) NOT NULL default 'n', `fsb_800` char(1) NOT NULL default 'n', `intel` char(1) NOT NULL default 'n', `amd` char(1) NOT NULL default 'n', `cat_id` varchar(5) NOT NULL default '', `fsb_111` char(2) NOT NULL default 'n', `fsb_222` char(2) NOT NULL default 'n', PRIMARY KEY (`products_id`) ) TYPE=MyISAM AUTO_INCREMENT=1; CREATE TABLE `ccc_temp_products` ( `products_id` varchar(5) NOT NULL default '' ) TYPE=MyISAM; ALSO Carl make sure you also add to admin/includes/filenames.php: define('FILENAME_CCC', 'ccc.php'); define('FILENAME_ADD_MORE', 'add_more.php'); Regards Jiten I used this code, that was supplied to build the SQL database, but now I get this error. 1146 - Table 'skyline.ccc_config' doesn't exist select config_name, config_value from ccc_config [TEP STOP] Any ideas? Quote Link to comment Share on other sites More sharing options...
Guest Posted April 29, 2006 Share Posted April 29, 2006 Hello guys! I am back from business trip and it is just to tell that the VX package will be soon done... some minor stuf to correct! Thanks for all of your patience, in the mean time if somebody wants to try putting it in a sample dhop, just e-mail me and I will send the full package, this way we sort coming up problems before they end on the contib site Quote Link to comment Share on other sites More sharing options...
Guest Posted May 11, 2006 Share Posted May 11, 2006 Hi RRiTechnology & DFrance I was having difficulties with the CCC 9.3 not adding systems to my shopping cart as well. I saw you mention the following bug fix http://www.oscommerce.com/community/bugs,1617. This bug fixes seems to be causeing the problem. I used a file comparision program to revert back to an original before the fix. The shopping cart then works correctly. You have to edit 2 files catalog/includes/functions/general.php & catalog/includes/classes/shopping_cart.php. You do not have to remove much code and it means CCC 9.3 will work. Its quite unlikely that a customer will add a non existing product to there cart which is what the bug fixes Quote Link to comment Share on other sites More sharing options...
nigelt74 Posted May 16, 2006 Share Posted May 16, 2006 Hi all I don't need any of the fancier option, My client wants to sell some personalised greetings card (amongst 100s of other products) and i just need to be able to add a couple of text boxes to some products so i can get the customers name, sibling etcs the site i want it to look Like is this one, when i queried what contribution it was here I was told it was this one (CCC9) will the standard ccc9 do this, sorry most of the sites i have viewed related to this thread have radio box and selectors etc none of which i need, I think from what i have seen it will, but i am not 100% sure anyhelp would be appreciated Quote Link to comment Share on other sites More sharing options...
Guest Posted June 9, 2006 Share Posted June 9, 2006 Sorry guys, I know I was inactive for a while but Iam going through a move across prov/state, I should be back soon.. CIAO! In the mean time, if you any big trouble letme know ! Martin Quote Link to comment Share on other sites More sharing options...
Hangly Man Posted June 10, 2006 Share Posted June 10, 2006 Out of curiosity, how useful would CCC be for selling custom things that are not computers? Can I change the category names, etc? Quote Link to comment Share on other sites More sharing options...
Guest Posted June 18, 2006 Share Posted June 18, 2006 Out of curiosity, how useful would CCC be for selling custom things that are not computers? Can I change the category names, etc? PersonnalyI think you can sell whateveryou want with any name you want, it is just that the backbone will useit predestined names... which do not change anything in your case... Cheers! Ray Quote Link to comment Share on other sites More sharing options...
Carbon Posted June 18, 2006 Share Posted June 18, 2006 Hi, If you add a custom created computer to your order and then click the link to edit it the product images are no longer displayed. I have managed to make build.php display the default image (as if the select dropdown is on the "please select a component" choice) but would like the images to work as intended. Anyone know how it's done? Cheers Carbon Quote Link to comment Share on other sites More sharing options...
Xshare Posted June 28, 2006 Share Posted June 28, 2006 Well, I finally managed to pretty much get everything working on my installation of CCC. As soon as we get our stock delivered, I can use it in production! It works PERFECTLY. I'd love to get the radio buttons thing to work, but if not, I can deal. ;) Anyways, along the way, I hit SOOO many issues, but fiddling with code solved them all. One of them involved images/more info/pricing not showing up until you actually changed something. I managed to fix that by creating an alternate application_top just for build.php and pointing build.php to that one. Let me know if other people experience that issue and I'll post how I fixed it. --- One thing: First, thanks to the updated pending.php here, it finally shows the pending builds, but, when looking at the actual build, the drop-down box that should show "pending, building, built" works, but is not updatable. When trying to update it, the script thinks nothing has been changed, doesn't save the update, and doesn't send a new message to the customer. To get around this, I just added more options to the normal "pending, shipped, etc." drop-down using the default OSCommerce stuff. I'd rather not do that, but whatever. I can't wait to see what you guys do with the next version! let me know if you need help, over the past week, I've become something of an expert on this script and have fixed many issues on my own, post yours, I'll be around to help. P.S: I also made the prices on the dropdown much better looking. Instead of just "Item -93", I made it "Item [-] $93" To do this: in includes/functions/custom_computer.php on line 103-106, replace the code with whatever you need it to be! Quote Link to comment Share on other sites More sharing options...
Xshare Posted June 28, 2006 Share Posted June 28, 2006 I spoke too soon in my PS. I can't exactly figure out how to change the values in custom_computer.php to work! They just won't. It keeps adding the +s and -s to the same string, etc. I don't know. Maybe someone who knows more about PHP can look at that file to figure out how to change the code? Quote Link to comment Share on other sites More sharing options...
Xshare Posted June 28, 2006 Share Posted June 28, 2006 I managed to figure it out using Java.php! Quote Link to comment Share on other sites More sharing options...
jpweber Posted July 4, 2006 Share Posted July 4, 2006 I installed CCC, and I am almost positive I did it correctly, especially on the admin side of things, but I can't seem to add a product -- just categories from within my admin tool. J Quote Jason Simple 1-2-3 Intructions on how to get, install and configure SSL The Google Sandbox explained Simple to follow instructions on how to change the look of your OSC How To Make A Horrible OSC Website my toolbox: All things WordPress-related - All things Adobe-related - PHP Designer 2007 - Codecanyon Junkie - Crimson Editor - Winmerge - phpMyAdmin - WS_FTP my installed contributions: Category Banners, File Upload feature-.77, Header Tags, Sort_Product_Attributes_1, XSellv2.3, Price Break 1.11.2, wishlist 3.5, rollover_category_images_v1.2, Short_Description_v2.1, UPSXML_v1_2_3, quickbooks qbi_v2_10, allprods v4.4, Mouseover-effect for image-buttons 1.0, Ultimate_SEO, AAP 1.41, Auto Select State Value, Fast Easy Checkout, Dynamic SiteMap v2.0, Image Magic, Links Manager 1.14, Featured Products, Customer Testimonials, Article Manager, FAQ System, and I'm sure more ... Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.