Jump to content
Sign in to follow this  
empo

PC Pro Creator

Recommended Posts

There is an error when i want to disable some categories (ie. cooler).

when i disable it, the other categories has list from lower level. (ie. hard disk2 has list with products from graphic card).

 

2. Frank, this version works in ff and opera, list with products isn't clickable(list with products apear, but i can't select any product)

Why is that?

Can You help? it's inmportant to me.

 

my link is http://vico.pl/compbuild.php

Edited by duch

Share this post


Link to post
Share on other sites

Duch:

 

It's a javascript problem. Don't now why it doesn't work at the moment. On my server it works fine: www.fhs-ecommerce.nl/testshop/compbuild.php.

 

I'll look this evening what the problem is.

Share this post


Link to post
Share on other sites

This is an error I get:

http://sklep.vico.pl/prduct_list.php?row=0...=0&currency=PLN

Event thread: click

Error:

name: ReferenceError

message: Security error: attempted to read protected variable

 

This should be in this code I think (line 120 & 121 of prductlist.php):

document.write ("<tr onclick=\"parent.add_product('"+pnum+"','"+pdesc+"','"+pprice+"','"+precid+"','"+row+"');\" onmouseover=\"this.style.backgroundColor='#86A5D2';\" onmouseout=\"this.style.backgroundColor='';\">"

+"<td>"+pdesc2+"</td><td align='right' width=80> "+currency_left+" "+pprice+" "+currency_right+"</td></tr>");

 

Only can't find the solution....

 

Any javascript specialist in da house?

Share this post


Link to post
Share on other sites

Hey

 

I can't select products with "" quote marks in the description. Any ideas to allow there use? I can't take them out of the products.

Share this post


Link to post
Share on other sites

Hi, I'm having some problems. I have added 3 motherboards but only one is showing up in the dropdown menu. You can see here:http://webpagedesign.com.au/test/compbuild.php

 

Any help would be much appreciated.

Share this post


Link to post
Share on other sites

when i open mypage/compbuild.php i got

Fatal error: Cannot redeclare tep_show_category() (previously declared in /home/usr/public_html/includes/header.php:219) in /home/usr/public_html/includes/boxes/categories.php on line 13

.. i use template not regular os commerce.

Share this post


Link to post
Share on other sites
when i open mypage/compbuild.php i got
Fatal error: Cannot redeclare tep_show_category() (previously declared in /home/usr/public_html/includes/header.php:219) in /home/usr/public_html/includes/boxes/categories.php on line 13

.. i use template not regular os commerce.

ok i got this one, i removed header.php include .... now, when i select products in the "Total field" i got 0 E. why's that? problem with price

Share this post


Link to post
Share on other sites
There is an error when i want to disable some categories (ie. cooler).

when i disable it, the other categories has list from lower level. (ie. hard disk2 has list with products from graphic card).

 

anyone know how to do this?

Share this post


Link to post
Share on other sites
anyone know how to do this?

 

having just spent a few days figuring that out, i guess i can say i do :P

sorry to say though, its not easy.. you have to edit almost every php file in the contrib

to add / remove or change the catagory order.. even print.php and order.php..

 

to just remove the cooler, you'd have to remove its code from all the php files its in and re-number the array's ($ItemPrice[1] $ItemQuantity[1], ect, where 1 is the position in the array) for all the other catagories..

also you'd have to either rename the pictures (0.gif is cpu, 1.gif is mother board ect) or find where their referenced in the code and change it.

 

option 2 would be to just change it to something else, like fans or lights or something. just a bit of find/replace and your done, no actual coding :)

 

i think the reason its setup that way, is it was written for a personal store, and not originaly meant to be released. then was generously shared with us after it was complete :)

so shouldent get mad at the author for it being difficult to add catagories :P

 

im not a great php programmer, but after going through it all it dosnt seem like it would be too difficult to have a pc_catagories.php file that defines each catagory name, order and picture, and then re-write all the other php files to use loops that require the pc_catagories.php. then just by editing that file you can change the layout :)

(or have a way to set it all up in admin section!)

 

i'v already manually re-done my catagories, but if i make any significant progress on "dynamic" catagories, i'll be sure to post em.

 

while im at it, heres 2 unrelated minor fixes i did while going through everything:

 

1. code to install/uninstall compbuild box in column_left.php adds the code to the same line as the require catagories.php. it causes a problem if you have the catagories line commented out cause you dont want to sell parts :o

Solution : edit /admin/compbuild.php (added a \n (newline), it installs/removes compbuild box to its own line, independent of catagories.php line)

 
line 33: 
$filetemp=str_replace("include(DIR_WS_BOXES . 'categories.php');","include(DIR_WS_BOXES . 'categories.php');include(DIR_WS_BOXES . 'compbuild.php');",$filetemp);

 change to: 
$filetemp=str_replace("include(DIR_WS_BOXES . 'categories.php');","include(DIR_WS_BOXES . 'categories.php');\n include(DIR_WS_BOXES . 'compbuild.php');",$filetemp);

 line 64  : 
$filetemp=str_replace("include(DIR_WS_BOXES . 'compbuild.php');","",$filetemp);

 change to: 
$filetemp=str_replace("\n include(DIR_WS_BOXES . 'compbuild.php');","",$filetemp);

 

2. typo in order.php, "Assembly" missing the "M" on line : 668

 

 

i'll try to keep up with this thread and post any other changes / fixes i do :)

Share this post


Link to post
Share on other sites

Hi,

 

How can I make it to display sub-categories ? here is an example of my structure:

 

CPU

->AMD

-->Socket 754

--> Socket 939

--> Socket 462

-> Intel

--> Socket LGA 775

--> Socket LGA 775 - Dual Core

 

and so on.

 

When I select the main category (CPU in this case) it displays only the two catrgories inside it (Intel and AMD without the sub-categories and the products) and nothing else.

 

What can I do ?

Thanks.

Share this post


Link to post
Share on other sites
Hi,

 

How can I make it to display sub-categories ? here is an example of my structure:

 

CPU

->AMD

-->Socket 754

--> Socket 939

--> Socket 462

-> Intel

--> Socket LGA 775

--> Socket LGA 775 - Dual Core

 

and so on.

 

When I select the main category (CPU in this case) it displays only the two catrgories inside it (Intel and AMD without the sub-categories and the products) and nothing else.

 

What can I do ?

Thanks.

 

At the moment nothing. The current version does not allow for this. But I belive Frank is working on the new verison atm and this will probably be addressed then. There are other major bugs in the code that have to be fixed first.

Share this post


Link to post
Share on other sites
At the moment nothing. The current version does not allow for this. But I belive Frank is working on the new verison atm and this will probably be addressed then. There are other major bugs in the code that have to be fixed first.

Yeah that is a feature that I have previously asked for, and he has advised me that it will be in the next version.

 

Cheers,

Chris :)

Share this post


Link to post
Share on other sites
Yeah that is a feature that I have previously asked for, and he has advised me that it will be in the next version.

 

Cheers,

Chris :)

 

One question: How do I add more lines/windows to the configuration table. Now it has 26 options, Can I add more through modifying the code?

 

The reason to do that is: I want to use it for both laptop and desktop customization, I want to use the first 15 lines / windows for desktop, and another about 20 lines / windows for laptop. An alternative solution is to install 2 copies of this PC creator, one for laptop, one for dasktop, but how can I have 2 control panels?

Share this post


Link to post
Share on other sites

A few questions about PC Pro Creator:

 

I need to custom both laptop and desktop. I have a few questions here:

 

A. I already have PC Pro Creator runing well with my laptop custom work. Here is the screen shot.

 

lapbuild.JPG

 

The original compbuild has 26 drop-down windows, I just used the fist 12, and delete rest. Now I want to use the left over windows to customized desktop. That means I will save the compbuild as another name for desktop custom use. I need to delete / hide the first 12 windows(used for laptop) and keep the other 14 windows for desktop.

 

From the original code of compbuild, the code for first 3 windows are CPU, Mainboard and memory, they look different with the code starting from the 4th windows, I know how to delete the lower windows( from the 4th ) and still keep the program working fine( I meant the preview and make order function), but I don't know how to delete the first 3 windows and still keep the preview and make order function working, Can any one help with this? Please.

 

Here is the part of that code:

 

<script language="JavaScript">

var text_please_wait="<?php echo TEXT_LOADING_PLEASE_WAIT; ?>";

var note1=" <font color=#FF0000><b><?php echo TEXT_PLEASE_SELECT_CPU; ?></b></font>";

var note2=" <font color=#FF0000><b><?php echo TEXT_PLEASE_SELECT_MOTHER_BOARD; ?></b></font>";

var note3=" <font color=#FF0000><b><?php echo TEXT_PLEASE_SELECT_MOTHER_BOARD; ?></b></font>";

var text_no_items="<?php echo TEXT_NO_ITEMS; ?>";

var text_deselect_items="<?php echo TEXT_DESELECT_ITEM; ?>";

document.getElementById("loadstr").innerHTML="";

 

 

 

 

print_field('<?php //echo TEXT_CPU; ?>',0);

print_field('<?php //echo TEXT_MOTHERBOARD; ?>',1);

print_field('<?php //echo TEXT_MEMORY; ?>',2);

 

 

 

 

<?$c_java = 3; if ($cooler){?>

 

<? } if ($harddisk){?>

print_field('<?php echo TEXT_HARD_DISK1; ?>',<? echo $c_java;?>);

<?

$c_java++;

} if ($harddisk2){?>

print_field('<?php echo TEXT_HARD_DISK2; ?>',<? echo $c_java;?>);

<?

$c_java++;

} if ($videocard){?>

print_field('<?php echo TEXT_VIDEO_CARD; ?>',<? echo $c_java;?>);

<?

$c_java++;

} if ($soundcard){?>

print_field('<?php echo TEXT_SOUND_CARD; ?>',<? echo $c_java;?>);

<?

$c_java++;

} if ($floppy){?>

print_field('<?php echo TEXT_FLOPPY; ?>',<? echo $c_java;?>);

<?

$c_java++;

} if ($cddvdrom){?>

print_field('<?php echo TEXT_CD_DVD_ROM; ?>',<? echo $c_java;?>);

<?

$c_java++;

} if ($cdrw){?>

print_field('<?php echo TEXT_CD_DVD_RW; ?>',<? echo $c_java;?>);

<?

$c_java++;

} if ($modem){?>

print_field('<?php echo TEXT_MODEM; ?>',<? echo $c_java;?>);

<?

$c_java++;

} if ($ncard){?>

print_field('<?php echo TEXT_NETWORK_CARD; ?>',<? echo $c_java;?>);

<?

$c_java++;

} if ($networking){?>

print_field('<?php echo TEXT_NETWORKING; ?>',<? echo $c_java;?>);

<?

$c_java++;

} if ($monitor){?>

print_field('<?php echo TEXT_MONITOR; ?>',<? echo $c_java;?>);

<?

$c_java++;

} if ($keyboard){?>

print_field('<?php echo TEXT_KEYBOARD; ?>',<? echo $c_java;?>);

<?

$c_java++;

} if ($mouse){?>

print_field('<?php echo TEXT_MOUSE; ?>',<? echo $c_java;?>);

<?

$c_java++;

} if ($speakers){?>

print_field('<?php echo TEXT_SPEAKERS; ?>',<? echo $c_java;?>);

<?

$c_java++;

} if ($case){?>

print_field('<?php echo TEXT_CASE; ?>',<? echo $c_java;?>);

<?

$c_java++;

} if ($power){?>

print_field('<?php echo TEXT_POWER_SUPPLY; ?>',<? echo $c_java;?>);

<?

$c_java++;

} if ($printer){?>

print_field('<?php echo TEXT_PRINTER; ?>',<? echo $c_java;?>);

<?

$c_java++;

} if ($scanner){?>

print_field('<?php echo TEXT_SCANNER; ?>',<? echo $c_java;?>);

<?

$c_java++;

} if ($tvcard){?>

print_field('<?php echo TEXT_TV_CARD; ?>',<? echo $c_java;?>);

<?

$c_java++;

} if ($vecard){?>

print_field('<?php echo TEXT_VIDEO_EDITING_CARD; ?>',<? echo $c_java;?>);

<?

$c_java++;

} if ($videocam){?>

print_field('<?php echo TEXT_VIDEO_CAM; ?>',<? echo $c_java;?>);

<?

$c_java++;

} if ($controllers){?>

print_field('<?php echo TEXT_CONTROLLERS; ?>',<? echo $c_java;?>);

<?

$c_java++;

}?>

print_field('<?php echo TEXT_ASSEMBLY; ?>',<? echo $c_java;?>);

 

</script>

Share this post


Link to post
Share on other sites

If the previous solution cannot go through, what is another good contribution for PC customization I can use together with PC Pro creator without conflict for my desktop use?

 

Thanks

Share this post


Link to post
Share on other sites

BEST Configurator for OSC bar none! Frank and Empo EXCELLENT job!

 

Four things that would be nice for the next version

 

1. Ability to turn off certain category in admin.

2. Another video card section for SLI systems

3. Adding the Software section back to the default admin.

4. Being able to set a default assembly fee in admin.

 

I know these are probably not easy tasks. But from what I see and being a computer shop thats all it needs.

 

Long live OSC!

Share this post


Link to post
Share on other sites

One more thing :)

 

 

If possible,

 

Add the ability to sort options inside category by either price or name! That would be wicked!

Share this post


Link to post
Share on other sites
2->Ғяαпқ This is new version with new fast mechanism of sql queries.

and new dependence machnism.

but this version is not public... and i cant upload it...

 

Where can I get the new version?

Share this post


Link to post
Share on other sites
Where can I get the new version?

 

You cant get it unless you pay for it.

My suggestion is to wait for the new version that is put on OsCommerce as someone else has taken on the development here and is doing some great stuff.

So stay tuned and see what comes over the coming weeks (the sooner the better of course hehe).

 

Cheers,

Chris :)

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
Sign in to follow this  

×