Jump to content

TENCENTS

Members
  • Content count

    179
  • Joined

  • Last visited

Everything posted by TENCENTS

  1. TENCENTS

    Custom Product Builder

    Nice, sorry I wasn't around to help. Looks okay to me - it works! The last edit was a bit confusing - until I understood what you were trying to say in the (repeated) EDIT:... message about tags and java-script.
  2. TENCENTS

    Custom Product Builder

    Sorry folks, I've been away for a bit.
  3. TENCENTS

    Custom Product Builder

    After playing around with the Java settings in IE and FF I can safely say that the 'return to index page' issue is not related to this. In fact, if you disable Java then the builder will load but it will not show any component categories and you will see a 'Loading - please wait' message (forever). The saga continues - the information Mat has provided proves that the builder does not even attempt to re-enter itself after clicking the 'build' button - it just heads straight for the index page. Grrrr!!! :angry:
  4. TENCENTS

    Custom Product Builder

    Thanks Mat, this gives me a pretty good idea of where it's going wrong - I'll spend a bit of time with it tonight.
  5. TENCENTS

    Custom Product Builder

    I have posted an update in the downloads, version 1.0.1. - it's not a full install, just a handful of altered builder files which you can copy into your catalog. Please be aware of any mods you may have already done to the builder files yourself, in which case use Compare & Merge or something like it. I think I've nailed all the PHP5 / MYSQL5 and RC2 compatibility issues. Also sorted out a few other minor things - instructions and notes are included. If anyone wants me to do a code-level upgrade instruction list for this then just shout (here on the forum) or PM me, I'll be more than happy to do this but the changes are so slight I'm sure nobody will run into problems.
  6. TENCENTS

    Custom Product Builder

    Wow! and especially wierd because the test site is working perfectly (well for me anyway (and others I suspect) - I've tried it on 5 different machines on my side). I'm not too familiar with the innards of FF - does it have a javascript on/off switch? (it must be on) - it's the only thing I can think of right now that might be causing so much 'trouble' on your side. Other than that I'm stumped! Haven't given up but definitely stumped.
  7. TENCENTS

    Custom Product Builder

    Awesome!! Thank you John.
  8. TENCENTS

    Custom Product Builder

    A WORD OF CAUTION - for those installing a HIDE / UNHIDE CATEGORIES contrib. I haven't done it yet so I don't speak from experience, but I would imagine that if the shopping cart isn't allowed to have hidden-category products then we have a problem. So, my cautioning would be aimed at any modifications to the shopping_cart files, if any.
  9. TENCENTS

    Custom Product Builder

    Thank you. You seem to have gotten your head around this one quite nicely. It's easy now for me to look in from the outside and already I see a number of options that could be removed. Be that as it may, I too run a heavily modded development platform and the things you mention are exactly why it ended up being so 'tailorable'. Thanks for your feedback on the Google Checkout - nice to know that that works.
  10. TENCENTS

    Custom Product Builder

    I doubt it - even though I have it working on both I have specifically tested it with PHP 5.1.2 without any difference. FYI: I've run it with MySQL 5.0.19 and picked up some minor issues.
  11. TENCENTS

    Custom Product Builder

    I'll admit that the code handling the prices is very grey (more like a shambles really), I'll be going through that tonight. This has stumped me - only because I can't duplicate it. I'm desperate to get my hands on a print_r() of $_POST as the builder re-enters itself after clicking 'Build Product'. What really is confusing is that even in it's simplest mode (Bundle) it still misbehaves. This is how you could get the print_r() for me. Edit /catalog/builder_main.php FIND: require('includes/application_top.php'); REPLACE WITH: require('includes/application_top.php'); echo "POST:"; echo print_r($_POST); echo "<br>GET:"; echo print_r($_GET); Save it and then go into the builder frontend, select a few components and then hit the 'Build Product' or 'Add to Cart' button - you should just get a blank page with a bunch of text at the top - please cut and paste this into a reply. This will definately get us heading in the right direction - even if it does nothing and just goes back to the index - I'll know where to start looking. Remember to undo this 'debug' code after you're done. This is correct, it's just a copy of the product_info.php, slightly modified. You should see the (new) product name the price and one image just below that, and to the left a list of components. This file is builder_product_info.php and you could really go mad modding it, images, etc... It's hard-coded :blush: In /catalog/includes/modules/builder_main.php you will find this piece of code (near the top): // IF AN OPTION IS NOT SET YET THEN THE MESSAGE IS HELD IN VARIABLE default_line (BELOW) var default_line = '<?php echo " " . tep_image(DIR_WS_IMAGES . "no_select.gif", '', 17, 17, 'align=absmiddle') . " " . TEXT_COMPONENT_NOT_SELECTED;?>'; and if you wanted to remove that image then you would replace it with this: // IF AN OPTION IS NOT SET YET THEN THE MESSAGE IS HELD IN VARIABLE default_line (BELOW) var default_line = '<?php echo " " . TEXT_COMPONENT_NOT_SELECTED;?>'; Points 5 and 6 as per JFrancis suggestions.
  12. TENCENTS

    Custom Product Builder

    You might have discovered already that this one does have the dependency thing to limit subsequent component selections. I think it'll be a perfect fit for what you want to do. The only thing it doesn't have is ability to support different types of built products which I think the CCC has an initial template (or chassis) that you can start off with.
  13. TENCENTS

    Custom Product Builder

    Still very strange this is. I have not been able to duplicate this 'redirect back to the index page' - I've only seen it live once and I have no idea what is causing it. I've tried with a multitude of setups; PHP4/5 MYSQL4/5 IE6/FF3 localhost/LAN(intranet)/live - just can't seem to get it to fall over. Admittedly something did come out of testing it on MYSQL5 but these were minor 'legality' issues as opposed to bugs. I will publish these as soon as I've finished testing thoroughly on 5. As for not choosing a setup fee, I doubt that this is the problem. In development testing I built thousands of builds, partial and complete, with all sorts of combinations. The only thing I did notice with the calendar setup (on the demo site) is that if you choose, say, Jan and Feb and then a Setup Fee, then when you hit 'Build Product' the Setup Fee becomes the March choice - this is a bug, albeit minor. To confirm, the builder does create a new product. If you want to hide these away then I would suggest installing a 'HIDE / UNHIDE CATEGORIES' contribution. Then you could hide the built products, the assembly/setup fees, and even the components (products) that are allocated to the builder. I have included some housekeeping options - if you look right at the end of the list of builder options you can set a time limit to disable and/or delete builds automatically. And then there is also another option just above those two to disable a build as it goes to cart.
  14. TENCENTS

    Custom Product Builder

    The builder is only designed to build one type of product, as per your admin settings. Multiple build definitions/templates will be available as this contrib evolves. It'll be an exciting addition to this, but it's not gonna happen really soon. To disable the build after the customer has added to cart you'll need to set the builder option 'Disable build after going to cart' to 'Yes' (third option up from the bottom). If the customer removes a build from the cart by mistake then they'll have to build another.
  15. TENCENTS

    PC Pro Creator

    Thanks enio, I have fixed this but still need to test it properly - I will send you a PM when its ready.
  16. TENCENTS

    Custom Product Builder

    That is totally wierd, I've tested it with the latest FF 303 and IE6 (I loath to touch 7). Anyway, I've tested everything top to bottom and I'm quite pleased. After clicking 'Build Product' do you get the preview page? And if you do then what happens after clicking 'Add to Cart'? FYI: If you click on the 'What's New' infobox (the little arrow) the product you built should be at the top of the list. If it is then experiment with it - click on it and then try to add it to the cart. The builder uses a fair amount of javascript. I'm not sure if that might have something to do with this. Also, I know of at least one 'Register Globals' patch for MS2 that stops the builder working - dramatically - this is subtle.
  17. TENCENTS

    Custom Product Builder

    Yes, but I don't like the way I've coded it - very clumsy and completely incorrect. In testing, I found an intermittent problem with it and so even though it may appear to be working fine I'd rather say don't use it, not until I (or someone else) releases a patch for it. I seem to be picking up a certain tone in your question... er.. has it trashed your site?
  18. TENCENTS

    Custom Product Builder

    Okay, so you're basically running it on a plain vanilla osC install. RC2a or MS2? I'd like to duplicate what you have, from there it'll be easy to find the problem. I'll try the virutal machine - sounds interesting. Oh, and what browser are you using?
  19. TENCENTS

    Custom Product Builder

    Hi Lindsay. I haven't been ignoring you. If you have a look at the demo site now you'll see that I have changed it for the way I think you need it to work. If you look on the admin side you'll see that all the builder categories point to the same osCommerce category (pictures). I have also changed the options for no dependence. Getting to your questions (this and your previous posts): The builder can build in two different ways - singles or bundles. The old PC Pro Creator only did it in bundles - i.e. simply dumping all the components into the cart. For your needs this was totally useless because by the time the components got to the cart they lost their 'builder category identity' so you would have no idea which product went where. The cool thing about the single builds is that the builder category id follows the component because it's an attribute, so you know exactly which goes where and also, being single products it doesn't matter how many builds you throw into the cart - they are self contained products. The builder categories are 'component containers' - each builder category can only point to one osCommerce product category, all products within that product category (including subcategories) will be made available as components, for that particular builder category. Builder categories are totally flexible, they can (if you wish) all point to the same category or subcategories within each others main categories. Visitors using the builder are presented with the list of builder categories (component containers) you have defined and these are basically a list of options that make up the final built product. Each builder category will be limited to the products in the osC product category you have pointed it to, the visitor can only choose one component in each builder category. The FireFox issue is more noticeable in the admin dependence editor (which you will not need anyway). I am not aware of any other FF issues, but I will make sure I have the latest version. 'Selections above first' means the you have priority building on - you'll need to go to admin (builder options) and select 'No' for Enforce 'top-to-bottom' Priority Building and do the same for the Auto-Clear list too (two options further down). I hope this helps. The options may seem complicated but it's purely for the sake of flexibility. I doubt there will be many people who use all the options.
  20. TENCENTS

    Custom Product Builder

    Hi. This is odd, a few people have reported this. Do you have an address so I can have a look.
  21. TENCENTS

    Custom Product Builder

    I was playing around with it this morning. I had to set the decimal point, and also the number of decimal places to 2 - then it worked perfectly. The builder can operate in two modes; building a single product, or building a bundle. A single product build creates a new product in your catalog - when the visitor clicks 'Build Product' it will create the product and then show a preview of it, the visitor must then click 'Add to Cart' (exactly the way osCommerce does it when a product has attributes). You can set the builder to add to the cart automatically but I don't like the way this has been coded, it's only 99.9% reliable. In bundle mode the 'Build Product' button changes to 'Add to Cart', when the visitor clicks this the component products are simply added to the cart - individually (as a bundle). There is a problem with this though as two builds in a cart could be quite confusing - that's why I have included an option to clear the cart before dumping a bundle. (FYI: Running in bundle mode and setting the clear cart option is exactly how the old builder used to work).
  22. TENCENTS

    Custom Product Builder

    I noticed this too. It's not serious - the category you are choosing is being saved peoperly, it's just not being reloaded and displayed correctly (you're probably running RC2a). Here is the fix for this: ##### Edit /catalog/admin/builder_options.php ## FIND: <?php echo tep_draw_pull_down_menu('cpb_build_osccat', tep_get_category_tree(0, '', '0', '', false));?> ## REPLACE WITH: <?php echo tep_draw_pull_down_menu('cpb_build_osccat', tep_get_category_tree(0, '', '0', '', false), $cpb_build_osccat);?> ##### Done!
  23. TENCENTS

    Custom Product Builder

    Hi Mat, Something I meant to include in the installation instructions... I would recommend installing a contrib like 'Hide and Unhide Categories' - a very simple mod but quite a mission really because you need to modify every php file that touches the products file, if you exclude the builder php files in this mod then only the builder will be able to see the hidden categories. Or you could tell the builder (in admin) to allow disabled products in the build (and popup!) - then you would need to disable all your component products - the builder would see them but the catalog wouldn't. I'm not sure how well this would work because I really haven't tested it like that, but I have provided the controls for this purpose. It would be much simpler if it worked at category level though, i.e. first suggestion. The neckline story.. that's what the dependence is for, but if you wanted the builder to have, let's say, parameters that it could intelligently select the right options then that's way beyond this one. In fact when I started out with this contrib I had to decide whether to use 'parametric dependence' or 'pre-defined dependence'. The latter was a much easier development path but the former would have made this a truly awesome contrib. Just a quick note about dependency. The builder categories screen in admin has a 'Dependence Category' field or each builder category - this tells the builder which category it is dependent on. That's not enough to limit the choices though, you need to get into the 'Dependency editor' to define the individual product/component relationships. When you're in the dependency editor the products at the top represent the visitors current (selected) choice for a previous category, the products down the left represent the options that are available for the current category. I hope this makes sense. If the dependency editor is showing every product in your catalog then please make sure you have selected an osCommerce product category for each of your builder component categories, out of the box these are not set so you need to change them (even if they appear correct) - then make sure you hit the 'update' button. On a sidenote.. I kicked myself for not mentioning the update button anywhere in step 14 (install doc). If the pricing is screwy then please make sure your currency has a decimal point defined - I'm sure it has but I'm hoping it hasn't - I admit I messed a bit with this just before release - I'm sure I tested it properly. I'll check again. Thanks.. compliments appreciated!
  24. TENCENTS

    Custom Product Builder

    Hi Lindsay, Yes the demo site is still running and is up to date. Click here to see the catalog Click here to see the admin side Username: admin Password: admin :)
×