Grinse Posted December 30, 2007 Share Posted December 30, 2007 I customised my site by installing a default OSC and getting it working, then adding CCC and checking that everything worked as intended. Only then did I begin to modify files. That's the way I do. But ccc is the most worst contribution to modify I have ever seen until now. Unfortunately, my site is sooooo bespoke that it would be impossible to wrap it all up and offer it as a mod as I've almost changed every single file! Is it? I thought you implemented these "help me to decide" button. I saw it one time in this thread and the users post was about his new implementations for ccc. I think I can't offer my changes also but normaly I try to post the changes in the contribution threads (because I make a documentation on what I have changed) and sometimes when I did a lot I also upload the contribution (I make a manual for installation and include also the changed files so you can override the default oscommerce 2.2 rc1 files to see the changes). Quote Link to comment Share on other sites More sharing options...
Grinse Posted January 15, 2008 Share Posted January 15, 2008 (edited) Sorry for the late answer, but I was in hospital from middle of november to middle of december (six weeks).  Grinse, try this instead... echo "var _n" . $j . " = \"<img src='images/image_enlarge.gif' title='".TEXT_ENLARGE_IMAGE."' onclick=java script:ccc_popup(\'ccc_image.php?image=\"\n"; Perfect thanks!! But there are two small corrections needed: You can't seperate "javascript" and also you must specify the cursor type because if not there is the default one (and the user doesn't know that this is a link). So here's the correct line (you must replace it in java.php): echo "var _n" . $j . " = \"<img src='images/image_enlarge.gif' title='".TEXT_ENLARGE_IMAGE."' style='cursor:pointer' onclick=java script:ccc_popup(\'ccc_image.php?image=\"\n"; Now I have to implement the $language variable within java.php or another way to access the language specific directory, so the image can be language specific.  ... by using the <input type="image"> it was acting like a submit button and posting the form. Is it? I didn't know.  You searched people for testing your site? I wanna have a look on your ccc implementations - if still possible.   Edit: Ok here's the final line with multilanguage support: echo "var _n" . $j . " = \"<img src='" . DIR_WS_LANGUAGES . $language . "/images/buttons/image_enlarge.gif' title='".TEXT_ENLARGE_IMAGE."' style='cursor:pointer' onclick=java script:ccc_popup(\'ccc_image.php?image=\"\n"; Edited January 15, 2008 by Grinse Quote Link to comment Share on other sites More sharing options...
Carbon Posted January 16, 2008 Share Posted January 16, 2008 You searched people for testing your site? I wanna have a look on your ccc implementations - if still possible.  Hi Grinse,  I'm currently working on the "Design a System" section (last out of three, Select, Customise and Design) which allows the user to specify ANY component they want and request a quote. I should have it done towards the end of this week.  If you want to have a look around just click here.  Cheers  Carbon Quote Link to comment Share on other sites More sharing options...
Grinse Posted January 18, 2008 Share Posted January 18, 2008 Hi Grinse, I'm currently working on the "Design a System" section (last out of three, Select, Customise and Design) which allows the user to specify ANY component they want and request a quote. I should have it done towards the end of this week.  If you want to have a look around just click here.  Cheers  Carbon  What the hell... great work. It was difficult to "find" ccc working because it's such customized! Excelent work! Are you using STS for the theme? If, how did you manage the ccc_more_info.php to show the right way? Because if I activate sts and click on ccc_image.php or ccc_more_info.php I only get a new window (the php file selected) but it's showing me just the layout of the index.php from the selected template (no content, and the placeholder names left and right (in the way i selected them in my theme).  Also funy: when sts is active the selected components images are not showen. I have to select another option first to see an image.  Quote Link to comment Share on other sites More sharing options...
Carbon Posted January 18, 2008 Share Posted January 18, 2008 What the hell... great work. It was difficult to "find" ccc working because it's such customized!Excelent work! Are you using STS for the theme? If, how did you manage the ccc_more_info.php to show the right way? Because if I activate sts and click on ccc_image.php or ccc_more_info.php I only get a new window (the php file selected) but it's showing me just the layout of the index.php from the selected template (no content, and the placeholder names left and right (in the way i selected them in my theme). Â Also funy: when sts is active the selected components images are not showen. I have to select another option first to see an image. Â Â Hi Grinse, Â Thanks for the compliments. Â I don't use any templates or themes and all coding is done by hand in NotePad2. I rewrote ccc_more_info.php because (IIRC) it only displays the description text entered into a catalog item and I wanted more, however it wouldn't work for someone else because it loads (and then includes) small files ascociated with each product that I use in the main part of the site (the showroom) which contain variables like product name, image, manufacturer, specs etc etc so instead of entering a description into my products (in OSC) I just enter the path to the relevant product file. Â Carbon Quote Link to comment Share on other sites More sharing options...
Grinse Posted January 21, 2008 Share Posted January 21, 2008 I have a problem: Â At the moment i'm changing syntax so i could enable lightbox for images (and in the next step integrate more pics). But my problem now it to convert a "onclick=javascript[...]" to "<a href'[...]". Â The line that has to be changed is: echo "var _p" . $j . " = \"<input type='button' value='".TEXT_ENLARGE_IMAGE."' onclick=java script:ccc_popup(\'ccc_image.php?image=\" + document.builds.new" . $j . ".options[document.builds.new" . $j . ".options.selectedIndex].getAttribute(\"model\") + '\')>'\n"; You'll find it in java.php but within these file its splitted (around line 143 - 146). Â I tried first: echo "var _p" . $j . " = \"<a href='' onclick=java script:ccc_popup(\'ccc_image.php?image=\" + document.builds.new" . $j . ".options[document.builds.new" . $j . ".options.selectedIndex].getAttribute(\"model\") + '\')>".TEXT_ENLARGE_IMAGE."</a>'\n"; The result: I get a new window with the image but I also get a white blank new window. Â Second try was: echo "var _p" . $j . " = \"<a href='\'ccc_image.php?image=\" + document.builds.new" . $j . ".options[document.builds.new" . $j . ".options.selectedIndex].getAttribute(\"model\") + '\'' target='_blank' >".TEXT_ENLARGE_IMAGE."</a>'\n"; But the result here: Something must be wrong because I don't even get a normal image with the click to enlarge button / text. Â Does someone know what I should do to succeed? Quote Link to comment Share on other sites More sharing options...
Carbon Posted January 21, 2008 Share Posted January 21, 2008 Hi Grinse, Â Had a quick look and hashed this code up. It's untested so if it doesn't work let me know the error and I'll take a look... Â echo "var _p" . $j . " = \"<a href='java script: ccc_popup(\'ccc_image.php?image=\" + document.builds.new" . $j . ".options[document.builds.new" . $j . ".options.selectedIndex].getAttribute(\"model\") + '\')>'" .TEXT_ENLARGE_IMAGE. "</a>\n"; Â Carbon Quote Link to comment Share on other sites More sharing options...
Grinse Posted January 21, 2008 Share Posted January 21, 2008 Hi Grinse, Had a quick look and hashed this code up. It's untested so if it doesn't work let me know the error and I'll take a look...  echo "var _p" . $j . " = \"<a href='java script: ccc_popup(\'ccc_image.php?image=\" + document.builds.new" . $j . ".options[document.builds.new" . $j . ".options.selectedIndex].getAttribute(\"model\") + '\')>'" .TEXT_ENLARGE_IMAGE. "</a>\n";  Carbon  Hi Carbon, There's no error message, but it's not working. It's the same as it was with my second try: The "click to enlarge" field is not showing and the image also not aviable (just a red cross for a broken image link if you test it for example with ms internet explorer). Quote Link to comment Share on other sites More sharing options...
Carbon Posted January 22, 2008 Share Posted January 22, 2008 Hi Carbon,There's no error message, but it's not working. It's the same as it was with my second try: The "click to enlarge" field is not showing and the image also not aviable (just a red cross for a broken image link if you test it for example with ms internet explorer). Â Hi Grinse, Â Here's another go. Unfortunately because I don't use this feature (all my pics are big enough by default) and I have rewritten ccc_more_info.php I'm unable to test this code... Â <?php echo "var_p" . $j . "='<a href=\"java script: ccc_popup(\'ccc_image.php?image=\" + document.builds.new" . $j . ".options[document.builds.new" . $j . ".options.selectedIndex].getAttribute(\"model\") + \"\')\">" . TEXT_ENLARGE_IMAGE . "</a>'\n"; ?> Â I've included the enclosing php tags just to emphasize that the code is php. Â Fingers crossed ;) Â Carbon Quote Link to comment Share on other sites More sharing options...
Grinse Posted January 22, 2008 Share Posted January 22, 2008 Hi Grinse, Here's another go. Unfortunately because I don't use this feature (all my pics are big enough by default) and I have rewritten ccc_more_info.php I'm unable to test this code...  <?php echo "var_p" . $j . "='<a href=\"java script: ccc_popup(\'ccc_image.php?image=\" + document.builds.new" . $j . ".options[document.builds.new" . $j . ".options.selectedIndex].getAttribute(\"model\") + \"\')\">" . TEXT_ENLARGE_IMAGE . "</a>'\n"; ?>  I've included the enclosing php tags just to emphasize that the code is php.  Fingers crossed ;)  Carbon  The code is php but the tags are already there. Quote Link to comment Share on other sites More sharing options...
upgrade Posted January 27, 2008 Share Posted January 27, 2008 Does anybody solved the problem with adding custom builds to db with a product_id and automatically added to new products page? I don't want the customers to see the custom builds as new products. In admin interface, the default status it's set to 0 to prevent the custom computers from showing up in the store, but when set to 0 it prevents the computer from showing up in the cart. Â I think this is the most important bug of this great contribution. Quote Link to comment Share on other sites More sharing options...
upgrade Posted January 27, 2008 Share Posted January 27, 2008 While clicking submit on my last post, I'm thinking of someth: if it's not possible to resolve this bug, maybe there is a workaround for this:  1. Setting to inactive status automatically this products (custom builds) when added into the db with a product_id, therefore, the custom builds not appearing anymore in the new products module.  or  2. The custom builds that are inserted into the db are not belonging to any category and they are not appearing in admin catalog, so, we can write a code (or modify) in products_new.php to select only products that belongs to a category. Like that, the custom builds are not appearing anymore in the new products module.  I'm not a programmer, so, if it's someone who could help us in this matter, we don't mind. :D Quote Link to comment Share on other sites More sharing options...
Grinse Posted January 28, 2008 Share Posted January 28, 2008 I'm not sure what you want? Â If you don't want to add new created systems into the db this one's for you: In includes/classes/shopping_cart: Replace: if (($check_product !== false) && ($check_product['products_status'] == '1')) { With: if (($check_product !== false)) { Â It's mentioned somewhere here already. Quote Link to comment Share on other sites More sharing options...
edstasy Posted January 28, 2008 Share Posted January 28, 2008 (edited) Maybe a stupid question: is CCC only usable for configurating Computers? I would like to use this system for other products that can be created. Is this possible? Edited January 28, 2008 by edstasy Quote Link to comment Share on other sites More sharing options...
Grinse Posted January 28, 2008 Share Posted January 28, 2008 Maybe a stupid question: is CCC only usable for configurating Computers? I would like to use this system for other products that can be created. Is this possible? Of course its possible. CCC jsut createst a top-group (in the example data itel or amd computers). Within these topgroups subgroups (in the example for amd socket 939) and then group based items taken from your local store (in the example mainboard). Quote Link to comment Share on other sites More sharing options...
Bullseye Posted January 30, 2008 Share Posted January 30, 2008 Dependant Dropdowns, anyone? Â I've been using the CCC for a while, and it seems like it is soooo close to being useful. Â My main problem is that i sell over 80 custom systems, and i need more flexibility from CCC. Why do i have to manually enter the same categories for every fsb over and over again? It would be smarter to create the categories once and then select them from a drop down. Why have 80 different instances of the category, Motherboard? Â Ideally, dependant dropdowns seem to be what i need. Each subsequent dropdown would narrow depending on the previous selection. I have many options that, if kept linear, would help create a custom system. Then i just add the rest of the options as one-ofs, independant of the dependant dropdowns. Â Top Level: Choose your System Type (ie Rackmount, Walmount, Mini-PC, etc.) Level 2: Choose your System Size (1U, 2U, 4U if applicable) Level 3: Choose your Chassis (Narrowed from above choices) Level 4: Choose your Mainboard (that works with the selected Chassis) Level 5: Choose which version of Mainboard (each board has optional configs, CPUs, etc.) Â Then they can freeform request Backplane, Memory, etc. Â This would REALLY simplify things for the user. Of course, i have to make all the relationships, but it seems that the CCC touches on that, but you need to make a good tree structure for dependencies. Â Has anybody considered this approach at all? It could also replace product attributes for complex products, and even give a stuctured alaternative to search for systems. Â I know some PHP, and mySQL, and i've tinkered quite a bit with my base osCommerce build, but seems like i would need to look at AJAX for this. Â Any suggestions? Quote I never miss... Link to comment Share on other sites More sharing options...
Grinse Posted January 31, 2008 Share Posted January 31, 2008 Hi there I've another problem with this contribution: Sometimes the prices are rounded wrong. I only want to have 2 numbers after the comma but sometimes I get 15! I checked the two addons to correct these problem but that doesn't fix it. Quote Link to comment Share on other sites More sharing options...
CKENT00369 Posted February 11, 2008 Share Posted February 11, 2008 Hey I would like to install this contrib on my site. The one thing is that I have installed the fancier invoice and packing slip v6.1. I know a lot of the files that this contrib needs to modify have already been modified by the fancier invoice like the first 4. So where it says to change something, it doesnt even exist. I tried a different version of some pc creator and talk about confusing.. I installed it like it said to a "T" but it didnt work. I like this one better anyway. if anyone has any info that would help with installing this on a site moded with the facier invoice it will be greatly appreciated. Quote Link to comment Share on other sites More sharing options...
CKENT00369 Posted February 11, 2008 Share Posted February 11, 2008 Hey I would like to install this contrib on my site. The one thing is that I have installed the fancier invoice and packing slip v6.1. I know a lot of the files that this contrib needs to modify have already been modified by the fancier invoice like the first 4. So where it says to change something, it doesnt even exist. I tried a different version of some pc creator and talk about confusing.. I installed it like it said to a "T" but it didnt work. I like this one better anyway. if anyone has any info that would help with installing this on a site moded with the facier invoice it will be greatly appreciated. Â Another question is are there product dependencies... for example you cant select and intel motherboard when an AMD processor is selected etc. Quote Link to comment Share on other sites More sharing options...
CKENT00369 Posted February 11, 2008 Share Posted February 11, 2008 OK I went through all the files, a lot of the stuff is in different places but at least it is there. Â The only one that I can see that is completely different is the Catalog/Account_History_Info.php. Mine doesn't contain anything that the instructions say that it should because I have the fancier invoice and packing slip. If someone could help me with this one file and figuring it out I will be greatly appreciative. Â (Another thing is I actually had to mod the fancier invoice to work on my site. I copied some files from the admin side to the catalog side because emails were not working etc. I think it was because of permissions but I would rather not allow permissions to the admin side. But if I can figure this one file out then the rest shouldnt be a problem for me. ) Quote Link to comment Share on other sites More sharing options...
robertz68 Posted February 11, 2008 Share Posted February 11, 2008 Hi, I have the problem from ccc 9.3.1. Computer creator work correctly but he does not send the order to the administrator modules and visible orders are not on the side shopping_cart.php. Additionally as file product_info.php this will update he does not display me goods. The message "product not found" receives. This is my configuration: - oscommerce 2.2ms2, - star products, - featured product,  this site is Polish www.adi.pl    Best Regards Robert  Sorry for my english Quote Link to comment Share on other sites More sharing options...
iamthesuperman Posted February 11, 2008 Share Posted February 11, 2008 (edited) I have a same question. Â Which version of OSCommerce the CCC 9.3.1 works well on? Â I have OSCommerce v2 Release Candidate 2 downloaded and installed, then I added CCC v9 on it. Everything shows over there but I could not add any built system into my shopping cart. Please help me. Thanks Edited February 11, 2008 by iamthesuperman Quote Link to comment Share on other sites More sharing options...
iamthesuperman Posted February 11, 2008 Share Posted February 11, 2008 Never mind my problem, I just found out the fix from previous posts.  I had to do was to make"Default Status of Custom Computers" option in the admin as 1.  But I still have small problem with CCC, when I select No picture option on ccc.php the page refreshed but the selection was set up back to Yes. Any advices?  I have a same question. Which version of OSCommerce the CCC 9.3.1 works well on?  I have OSCommerce v2 Release Candidate 2 downloaded and installed, then I added CCC v9 on it. Everything shows over there but I could not add any built system into my shopping cart. Please help me. Thanks Quote Link to comment Share on other sites More sharing options...
CKENT00369 Posted February 15, 2008 Share Posted February 15, 2008 OK I went through all the files, a lot of the stuff is in different places but at least it is there. Â The only one that I can see that is completely different is the Catalog/Account_History_Info.php. Mine doesn't contain anything that the instructions say that it should because I have the fancier invoice and packing slip. If someone could help me with this one file and figuring it out I will be greatly appreciative. Â (Another thing is I actually had to mod the fancier invoice to work on my site. I copied some files from the admin side to the catalog side because emails were not working etc. I think it was because of permissions but I would rather not allow permissions to the admin side. But if I can figure this one file out then the rest shouldnt be a problem for me. ) Â can anyone help me with this? Quote Link to comment Share on other sites More sharing options...
CKENT00369 Posted February 18, 2008 Share Posted February 18, 2008 can anyone help me with this? Â Is anyone supporting this contrib? Quote 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.