Jump to content
TENCENTS

Custom Product Builder

Recommended Posts

Good for you getting this thing installed!!!

 

On the other note, the one you chose is the NEWEST of all of the builders and still has some bugs to work out..

 

Sorry i cant really help you, I do not know this addon because I have never used it. I was still waiting for it to be more robust as a calender builder.. but until then, it doesnt work for me.

 

In the mean time, you might want to consider contacting TENENT. I know they he said he is very busy, but I have found that if you offer some money to help "support" the addon, you can get things done more quickly. I mean, you cant really expect someone to create an addon just because you need it NOW, but you can expect that if you are paying them. personally, i have already paid for a couple of contributions.. Even though everyone else can use them for free, i paid for it because i NEEDED it now, and the person who built it gave me a discount if i allowed him to post it as a community contribution.. You MIGHT have the same success with this one..

 

Well I'll consider it, thanks for the suggestion. Still hoping someone here can help me out though - I know the answer is ridiculously simple - I just can't see it.

 

Otherwise, you should just spend an hour reading through the 8 pages of posts.. Just consider yourself lucky that its only 8 pages

 

Lol - I already did read through all 8 pages (as I stated above), so I doubt reading through it again will help any. I saw people with similar problems, but they either weren't answered or weren't similar enough to help.

 

Thanks anyway. :)

 

-Age

Share this post


Link to post
Share on other sites

hi ,

 

first sorry for my bad english..

 

Great work with this contibutión ¡¡¡

 

I have a little problem with images because the contribution On The Fly Auto Thumbnailer modify htmloutput and cuase builder_main failed to find the product image.

 

the modify tep_image say this:

 

 

// The HTML image wrapper function

function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') {

// BOF - Modification: On The Fly Auto Thumbnailer

// if no file exists display the 'no image' file

if (!is_file($src)) {

$src = "images/no_image.jpg";

}

// Set default image variable and code

$image = '<img src="' . $src . '"';

 

// Don't calculate if the image is set to a "%" width

if (strstr($width,'%') == false || strstr($height,'%') == false) {

$dont_calculate = 0;

} else {

$dont_calculate = 1;

}

 

// Dont calculate if a pixel image is being passed (hope you dont have pixels for sale)

if (!strstr($image, 'pixel')) {

$dont_calculate = 0;

} else {

$dont_calculate = 1;

}

 

// Do we calculate the image size?

if (CONFIG_CALCULATE_IMAGE_SIZE && !$dont_calculate) {

 

// Get the image's information

if ($image_size = @getimagesize($src)) {

 

$ratio = $image_size[1] / $image_size[0];

 

// Set the width and height to the proper ratio

if (!$width && $height) {

$ratio = $height / $image_size[1];

$width = intval($image_size[0] * $ratio);

} elseif ($width && !$height) {

$ratio = $width / $image_size[0];

$height = intval($image_size[1] * $ratio);

} elseif (!$width && !$height) {

$width = $image_size[0];

$height = $image_size[1];

}

 

// Scale the image if not the original size

if ($image_size[0] != $width || $image_size[1] != $height) {

$rx = $image_size[0] / $width;

$ry = $image_size[1] / $height;

 

if ($rx < $ry) {

$width = intval($height / $ratio);

} else {

$height = intval($width * $ratio);

}

 

$image = '<img src="product_thumb.php?img=' . $src . '&w=' .

tep_output_string($width) . '&h=' . tep_output_string($height) . '"';

}

 

} elseif (IMAGE_REQUIRED == 'false') {

return '';

}

}

 

// Add remaining image parameters if they exist

if ($width) {

$image .= ' width="' . tep_output_string($width) . '"';

}

 

if ($height) {

$image .= ' height="' . tep_output_string($height) . '"';

}

 

if (tep_not_null($params)) $image .= ' ' . $params;

 

$image .= ' border="0" alt="' . tep_output_string($alt) . '"';

 

if (tep_not_null($alt)) {

$image .= ' title="' . tep_output_string($alt) . '"';

}

 

$image .= '>';

 

return $image;

}

// Original:

// if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) {

// return false;

// }

//

//// alt is added to the img tag even if it is null to prevent browsers from outputting

//// the image filename as default

// $image = '<img src="' . tep_output_string($src) . '" border="0" alt="' . tep_output_string($alt) . '"';

//

// if (tep_not_null($alt)) {

// $image .= ' title=" ' . tep_output_string($alt) . ' "';

// }

//

// if ( (CONFIG_CALCULATE_IMAGE_SIZE == 'true') && (empty($width) || empty($height)) ) {

// if ($image_size = @getimagesize($src)) {

// if (empty($width) && tep_not_null($height)) {

// $ratio = $height / $image_size[1];

// $width = intval($image_size[0] * $ratio);

// } elseif (tep_not_null($width) && empty($height)) {

// $ratio = $width / $image_size[0];

// $height = intval($image_size[1] * $ratio);

// } elseif (empty($width) && empty($height)) {

// $width = $image_size[0];

// $height = $image_size[1];

// }

// } elseif (IMAGE_REQUIRED == 'false') {

// return false;

// }

// }

//

// if (tep_not_null($width) && tep_not_null($height)) {

// $image .= ' width="' . tep_output_string($width) . '" height="' . tep_output_string($height) . '"';

// }

//

// if (tep_not_null($parameters)) $image .= ' ' . $parameters;

//

// $image .= '>';

//

// return $image;

// }

// EOF - Modification: On The Fly Auto Thumbnailer

 

 

can anybody help me with this ???

 

 

thanks

Share this post


Link to post
Share on other sites
I've got 2 problems with this

 

1. I can't add or rename category from admin menu (I've to add manually via phpmyadmin...)

 

2. I can't set all dependencies ;/ It's not switching pages with checkboxes (I can see only first page of 4)

I can't also get more rows per page (only standard 70)

 

What I've to do?

 

it's oscommerce 2.2RC2a + seo urls, header tags + some other stuff that really doesn't matter

 

 

I have the same problem with not being able to rename or add custom product categories. Any ideas?

Edited by rjennings

Share this post


Link to post
Share on other sites

First off I want to thank the creator of Custom Product Builder for offering this very useful contribution and then actually supporting it.

 

I have installed this on a site running CRE Loaded v6.2 B2B which is an upgraded version of OsCommerce. The admin side installed without a problem. I had to do a little tweaking to get the user part to display with CRE's template system. It now fits into the template but I'm having a bit of a problem.

 

I followed the install instructions and added a product to the Assembly Fees category before turning it on. I played with it with just the one product and was able to click on component 1 and add that product to the build list from the popup window. I then added the rest of my test products in 4 other categories. Now, none of the products I added after I activated the builder are selectable in the popup menu. I can see them and the rollover effect works but they don't get added to the build list.

 

Site Link: http://proedgewheels.com/builder_main.php?

 

Any thoughts?

Share this post


Link to post
Share on other sites
First off I want to thank the creator of Custom Product Builder for offering this very useful contribution and then actually supporting it.

 

I have installed this on a site running CRE Loaded v6.2 B2B which is an upgraded version of OsCommerce. The admin side installed without a problem. I had to do a little tweaking to get the user part to display with CRE's template system. It now fits into the template but I'm having a bit of a problem.

 

I followed the install instructions and added a product to the Assembly Fees category before turning it on. I played with it with just the one product and was able to click on component 1 and add that product to the build list from the popup window. I then added the rest of my test products in 4 other categories. Now, none of the products I added after I activated the builder are selectable in the popup menu. I can see them and the rollover effect works but they don't get added to the build list.

 

Site Link: http://proedgewheels.com/builder_main.php?

 

Any thoughts?

 

Additional info:

 

If I go ahead and build a product and click on the build button I get this error:

1054 - Unknown column 'products_options_name' in 'field list'

insert into products_options (products_options_id, products_options_name, language_id) values ('5', 'Component 1', '1')

TEP_DB_ERRORR

 

Site Link: http://proedgewheels.com/builder_main.php?

 

Any thoughts?

Share this post


Link to post
Share on other sites

it seems that I posted in the wrong place, click the new topic button, sorry

so I do it again here :

Bonjour

I installed the contrib which works fine I just don't understand the dependancies quite well but I don't think I need thhem for what I want to do

I would like it to work the way a restaurant menu works

that means :

 

In a restaurant people see prices for each dish, we call it eating "a la carte"

but there can choose a menu. that makes the all meal cheaper but you have less choice. it helps the restaurant sell more of some dishes

the menu has its own price and people have to choose 1 dish for each course between several dishes

for example

 

menu 20 €

choice between

4 entries

3 main dishes

5 desserts

they choose one of each. "A la carte", single pricing it would be entry 7€, dish 12€ dessert 7€ they pay 20 € instead of 26 €

 

I would like my builder to work this way

 

that means no matter the totalprice of the different components, I want the price of the menu(builder) to be charged in the cart

 

following the same example

My catalog has several main categories : drinks, salads, entries, icecreams, etc....

I would create a category called menu in which I would put sub-categories for the componants : entries, dishes and desserts

in those sub-categories I link-copy the choosen products among the main categories-products

the single products wil appear in the list but I want the price charged to be the 20€ and not the total of the componants.

 

An other thing If I put a certain number of componant offering for example in the upper case there are 3 componants , people have to make 3 choices. If they only choose 2 choices, the build is accepted.

In my case, As I want to have a fixed price for the all built, I would like to have an error message if people forget to choose a dessert. I want them to choose 3 products (or 4 , 5 ...it depends of how many choices of components are availaible)

 

Did domebody do the same ?

 

 

thanks for your help

 

Fran from france


The only thing I know is that I don't know anything.....

but I learn

Share this post


Link to post
Share on other sites
I'm having same problem with not being able to add or update components in the admin section. Did I mess up the install somewhere?

 

I am also having the same problem needing to go into phpmyadmin to create and edit categories. Also is it possible to set up a default product for each category has anyone thought of looking into this?

Share this post


Link to post
Share on other sites

Things are fine now, as i deleted all the default entries. I can change everything in the admin

 

I made lots of little changes in the script

I don't use the dependent functions

To get a fine menu-like build, I created a category with lots of subcategories called component 1, 2 3 et... in each subcategories I copylinked the different compenants

I changed the categorybox and the newproducts listing as I don't want the build category and what's in it ( client's builds and subcategories) to appear

 

I added a field for the fixed price of the build in the admin

 

The product build shows the different components choosen with their catalog price, but the total price disappears the price charged is the price of the build

 

the website is on line but not open to public yet. when its ok, if you are interested, i give you the url.

 

the only thing, if I use any contrib that needs a product listing, I have to work on the code so that this builder category doesn't appear (for ex the printable catalog)

 

Fran

Edited by frannyz

The only thing I know is that I don't know anything.....

but I learn

Share this post


Link to post
Share on other sites

Great Job!

 

Just 3 questions.

 

1) I install your contrib and averything goes OK, but when i click on a product the product_info.php page appears blank, any clue?

Repaired: I miss to remove the $product_check = tep_db_fetch_array($product_check_query); in line 25 of my product_info.php

2) Is it posible to add a "product_model" column to the builder_print_preview.php result page?

3) Is possible to customizate it , cahnge colors, background, add a logo image, etc. (sorry for my english)

 

Thank You again for your work!

Edited by tranqui69

Share this post


Link to post
Share on other sites

:angry:

 

Same problem.

 

1. I can't add or rename category from admin menu!!!

 

2. When i push the info button it goes to the index page, not the product info page.

 

P.D: How can I add a category from phpmyadmin???

Share this post


Link to post
Share on other sites

Now I have problems with cpb:

 

I´m addding Enable_Disable_Categories_1.6.5 but the problem is that it changed some files, f.e:

 

/catalog/includes/application_top.php

 

***FIND:
     $categories_query = tep_db_query("select categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . (int)$cPath_array[$i] . "' and language_id = '" . (int)$languages_id . "'");

***REPLACE WITH:
     // BOF Enable & Disable Categories
     $categories_query = tep_db_query("select categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " cd left join " . TABLE_CATEGORIES . " c on cd.categories_id = c.categories_id where c.categories_status = '1' and cd.categories_id = '" . (int)$cPath_array[$i] . "' and cd.language_id = '" . (int)$languages_id . "'");
     // EOF Enable & Disable Categories

 

Where Custom Product Builder aplication_top.php is:

// BUILDER INTERVENTION - THE CART SHOULD DISABLE THE PRODUCT BY ITSELF, BUT WE DO IT INCASE STOCK > 1
                               if ($_POST['disable_build'] == '1') {
                                 tep_db_query("update " . TABLE_PRODUCTS . " set products_status = '0' where products_id = '" . $_POST['products_id'] . "'");
                               }
                             // BUILDER INTERVENTION ENDS

 

How can i integrate both codes???

Share this post


Link to post
Share on other sites

Does anyone have an example of this running on their site? Before I go through the time of integrating it, I'd like to see it implemented.

 

I'm looking for something that shows drop down number one, they make a selection, then drop down number 2 gets populated with the options available based on the selection in number one.

 

It sounds like this is it, but just need an example.

 

There is one in the begining of the posts here, but it doesnt work anymore.

 

Thanks!

 

-Bryan

Share this post


Link to post
Share on other sites
Custom Product Builder for osCommerce 2.2 MS2 and RC2a.

 

Download available at:

http://addons.oscommerce.com/info/6328

 

Enjoy!

Hi Mike,

 

Installed v1.1.0 full 12 Dec 2008 plus updates in v1.1.1 on a default 060817 shop with only contri Register_globals being contri 2097.

Deleted all default products and made new categories for printers and cartridges.

Not able to get it to work in the shop...

If I click on (click here) then I only see this:

 

Deselect current item

printers - click to select

No items available

 

So, the printers are not listed here...

 

What am I forgetting?

 

shop

admin

 

Kind regards,

Edze

Share this post


Link to post
Share on other sites

Does anyone know what the secret is for adding a new category? In the Categories section of Admin is says "Add new category" but nothing changes when I update. I also tried "Rename category" as well and that doesn't change anything either.

 

there is component 1 - 5 in the dropdown image selection which seemed to indicate that you could have more than 3 categories.

 

Other than that everything seems to be pretty straight forward and working well.

Thanks.

Share this post


Link to post
Share on other sites
Hi Mike,

 

Installed v1.1.0 full 12 Dec 2008 plus updates in v1.1.1 on a default 060817 shop with only contri Register_globals being contri 2097.

Deleted all default products and made new categories for printers and cartridges.

Not able to get it to work in the shop...

If I click on (click here) then I only see this:

 

Deselect current item

printers - click to select

No items available

 

So, the printers are not listed here...

 

What am I forgetting?

 

shop

admin

 

Kind regards,

Edze

Hi,

 

A few days ago I saw the light....

If there is no stock, printers are not visible.

Solution is not to check the stock or just make sure that there is enough of all articles in stock.

 

Regards,

Edze

Share this post


Link to post
Share on other sites
Does anyone know what the secret is for adding a new category?

 

The secret is phpMyAdmin.

 

select the builder_categories table on the left and click the browse tab at the top of the main window.

 

click insert new row at the bottom of the main window and in the new window under the value column enter your new information. I just followed the same format of the other 3 categories. Below is an example of the information that you will enter.

 

Field 	                      	Type		Function	Null	[b]Value[/b]
cpb_category_id 	       	int(11) 		  	        [b]40[/b]
cpb_depends_category_id 	int(11) 		  	        [b]30[/b]
cpb_category_name 	       	varchar(32) 		  		[b]Component 4[/b]    <--- Edit category name here
cpb_category_image 	       	varchar(32) 		  		[b]component4.gif[/b]
osc_category_id 	      	int(11) 		  	        [b]33[/b]

 

Click the Go button and your new row should now show up in the table.

 

You can now return to the the osCommerce admin and your new category will be listed in the Custom Products > Categories section.

Share this post


Link to post
Share on other sites
Hi,

 

A few days ago I saw the light....

If there is no stock, printers are not visible.

Solution is not to check the stock or just make sure that there is enough of all articles in stock.

 

Regards,

Edze

Hi,

 

Got a message from my webhoster.....

The website with this contribution, built on a clean 060817 version of osCommerce, had been hacked.

This happened 5 days ago and this hacker generated over 15.000 dollars of bandwidth usage in 5 days!!!!!

First the web hoster blocked the website and later today I agreed to delete the complete website.

 

I have built over 30 webshops and this is the first time that a webshop got hacked.

Hope this is not a contribution problem???

 

Regards,

Edze

Share this post


Link to post
Share on other sites

Hi all,

 

This contribution seems to be exactly what im looking for to use with my Custom Design Shirt website.

 

I installed the mod and the admin side of things seems to be working fine, i can add new categories etc. but the catalog side of the site is just coming up as a blank page when i go to the builder_main.php page.

 

Anyone got any ideas why its just coming up blank or am i missing something?

 

Here's the page that wont display: http://heronblu.com/catalog/builder_main.php

 

Thanks in advance.

Share this post


Link to post
Share on other sites

Finally I give away with the Enable-Disable Categories.

 

I have 2 minor probles.

 

When I select a product and click on Info Button it goes to de index.php page and not load de information page of the product (builder_component_info.php).

Im looking for change the code:

//----------------- Show Description ---------------
function show_desc(row){
       row++;
       if (recid[row])
               window.open ("<?php echo FILENAME_BUILDER_COMPONENT_INFO; ?>?products_id="+recid[row]+"&osCsid=<?php echo $osCsid;?>",'','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,re
sizable=yes,copyhistory=no,width=600,height=600,screenX=150,screenY=150,top=150,l
eft=150');return(false);
}
</script>

 

or this one??

 

document.write ('<?php echo tep_image(DIR_WS_IMAGES . "scroll.gif", '', 20, 18, 'align=absmiddle');?>');
document.write ("</th>");
document.write ("<th onClick=\"oFrame.style.display='none'\" valign=center><input type=\"button\" value=\"info\" style=\"border: #C4B0AB 1px solid; background-color: #F1F1F1; color: #5C5C5C; font-weight: bold\" onclick='show_desc("+indx+")'></th>"

 

 

 

The other problem are the dependences, they work OK, but looking very weird. I tried with IE but the same thing.

 

Other day the dependences looked Ok in IE with the red/green colors. But nothing now. why??

 

 

Can anyone help me????

Share this post


Link to post
Share on other sites

I hope you can help i have two problemes. Contribution looks great i just want to use it?

 

1 Dependences as you can see Not Good

 

2 Not sitting on the admin bar if you look top left

 

cpbCapture.JPG

 

 

 

 

 

 

Please help

Share this post


Link to post
Share on other sites

:blush:

How do i get custom produt builder to sit on my admin bar right now its top left. as below

 

cpbCapture.JPG

 

 

 

 

 

 

Please help

 

Thank You

 

Frank

Share this post


Link to post
Share on other sites

I can access the admin side of the Custom Product Builder but my Depencies page has SQL errors (from having no rows yet...)

 

I can't seem to access the front side page though, it just comes up as blank:

 

http://heronblu.com/catalog/builder_main.php

 

When i try to manually load other pages from the mod such as builder product list, that seems to work:

 

http://heronblu.com/catalog/builder_product_list.php

 

The component info page brings up the template but with no content:

 

http://heronblu.com/catalog/builder_component_info.php

 

How do i get the Builder_Main.php file to work properly? Im not using the column_left.php file so the code reference for builder.php is not being used anywhere. Should i copy the column_left.php builder code to another file?

 

I really need urgent help with this mod, been messing with it for weeks now and i just can't get the front side of it working at all :(

 

Thank you.

Edited by sonictrip.net

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×