-
Re: PC Configurator For Zen Cart
Hi,
Thank you - I have now uploaded this file.
I will be researching into the AJAX, but I just need to know a few things;
1). How do you change the look of the pc configurator (and which files).
2). Which file are the drop-down boxes in (I might change them to radio).
If I find any useful AJAX, I will upload it :).
Regards,
CJ
-
Re: PC Configurator For Zen Cart
I found something that was the perfect example of my problem... this might be of help to you (I am not that good at reading other people's scripts).
######################################################################__
I noticed a lot of new comers asking this question: I want a select box to be updated using ajax when I change the current item in another select box .
So this is a quick tutorial on how to do exactly that.
Here is the scenario: We have a select box filled with categories, when we select a category, another select box is updated with article titles. Fair enough ?
First thing to do is create the DB tables:
PHP Code:
CREATE TABLE categories (
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY ,
name VARCHAR( 30 ) NOT NULL
);
CREATE TABLE articles (
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY ,
title VARCHAR( 30 ) NOT NULL ,
category_id INT UNSIGNED NOT NULL ,
INDEX ( category_id )
);
Ok next create the models, put them in app/models of course.
PHP Code:
<?php
// category.php
class Category extends AppModel {
var $name = ‘Category’;
}
?>
<?php
// article.php
class Article extends AppModel {
var $name = ‘Article’;
var $belongsTo = array(‘Category’);
}
?>
now comes the articles’ controller, we’ll have an action index where we’ll display the select boxes.
PHP Code:
<?php
// app/controllers/articles_controller.php
class ArticlesController extends AppController {
var $name = ‘Articles’;
var $helpers = array(‘Html’,‘Form’,‘Javascript’,‘Ajax’);
var $components = array(‘RequestHandler’);
function index() {
$this->set(‘categories’, $this->Article->Category->generateList());
}
}
?>
Nothing fancy for the moment, we add the Javascript and Ajax helpers to the list of helpers that will be available in the view domain ( layout + views ).
We use the RequestHandler component, it will detect ajax requests and set proper header and layout for us, sweet isn’t it!
Our next step is to create a layout, we could just use the default layout but we need to include the prototype and scriptaculous libraries. make sure you downloaded the files and put them in webroot/js
Add these two lines in the head section of your layout:
HTML Code:
echo $javascript->link(‘prototype’);
echo $javascript->link(’scriptaculous’);
If you’re using 1.2 ( not sure it’s available in 1.1 ) you can write it in one line of code:
HTML Code:
echo $javascript->link(array(‘prototype’,’scriptaculous’));
To be honest, you don’t need scriptaculous here, we’re not going to use it, just include prototype.
All right, all this above was basically just preparation, now here’s the view file of the index action. Create a folder named articles under app/views. Create a file in it, name it index.ctp if you’re using 1.2 or index.thtml if you’re using 1.1 (thtml works in 1.2 too but it’s depreciated).
Here is its content:
PHP Code:
<?php
// app/views/articles/index.(thtml|ctp)
echo $html->selectTag(‘Category/id’, $categories, null, array(‘id’ => ‘categories’));
echo $html->selectTag(‘Article/id’,array(), null,array(‘id’ =>‘articles’));
$options = array(‘url’ => ‘update_select’,‘update’ => ‘articles’);
echo $ajax->observeField(‘categories’,$options);
?>
In 1.2, selectTag() is depreciated, change it to select().
echo $form->select(‘Category.id’, array(‘options’=>$categories), null, array(‘id’ => ‘categories’));
echo $form->select(‘Article.id’,array(), null, array(‘id’ =>‘articles’));
All right, nothing fancy either, we create two select boxes, we populate one with category names set from the action. We give both selects an id and we call observeField. This method of the ajax helper basically observes a DOM element for a change, if it occurs, it calls an url and updates a DOM element with the content returned from that url.
Let’s move on to create the action that we’ll be requested by observeField.
In the ArticlesController add this code:
PHP Code:
function update_select() {
if(!empty($this->data[‘Category’][‘id’])) {
$cat_id = (int)$this->data[‘Category’][‘id’];
$options = $this->Article->generateList(array(‘category_id’=>$cat_id));
$this->set(‘options’,$options);
}
}
and it’s view..
PHP Code:
<?php
// update_select.(ctp|thtml)
if(!empty($options)) {
foreach($options as $k => $v) {
echo "<option value=’$k’>$v</option>";
}
}
?>
Fun fun..now populate the db tables with some dummy data and test it out.
This was just one way of doing it, we could return JSON, XML or a script that’ll get executed.
########################################___
or some code in here might help:
########################################____-
The Prototype Ajax.Updater object makes an out of band browser HTTP request. The request can be either synchronous or asynchronous – almost all calls are asynchronous. //todo: another example using POST method.
Syntax
new Ajax.Updater(container, url, options);
// make a HTTP request to the specified URL and update the 'container' element.
Note: to evaluate javascript responses set the ‘evalScripts’ option to ‘true’.
Note: to only update a div on success, you may optionally substitute a property list for a simply element id (ie {success:’div_name’} instead of ‘div_name’)
Options
Option Default value Description
asynchronous true Type of request
evalScripts false When true scripts in requested url are evaluated
method ‘post’ Lets you decide whether to use Get or Post for the request to the server
contentType ‘application/x-www-form-urlencoded’ Allows you to set the content-type sent to the server
encoding ‘UTF-8’ Allows you to determine the encoding type information given to the server
parameters ’’ Allows you to attach parameters to your AJAX request. Most common: parameters:Form.serialize(this)
postBody ’’ Specify data to post. Something like: postBody:’thisvar=true&thatvar=Howdy’ How does this differ from parameters?
username ’’
password ’’
requestHeaders ’’
onComplete ’’ Function to call on completion of request
onSuccess ’’ Function to call on successful completion of request
onFailure ’’ Function to call on failed request
onException ’’ Function to call on failed request (e.g. attempted cross-site request)
on + Status Code ’’ on404 etc. raise an event when given status code is encountered.
insertion None Instead of inserting the response in the existing content (possibly overwriting it) you can pass a valid Insertion object, such as Insertion.Top, Insertion.Bottom, Insertion.Before or Insertion.After.
Hint: If you have set evalScripts:true the script you call (the url parameter) must return a header of ‘Content-Type: text/javascript’ else the browser will not execute it.
(Can someone with more knowledge fill this up more? Please and thank you?)
Examples
Basic usage:
new Ajax.Updater('mydiv', '/foo/bar', {asynchronous:true});
// places result text in the browser object with the id 'mydiv': <div id='mydiv'></div>
Usage with options:
new Ajax.Updater('mydiv', '/foo/bar', {onComplete:function(){ new Effect.Highlight('mydiv');},asynchronous:true, evalScripts:true});
// this will evaluate any scripts in <script></script> blocks. Also it will hightlight mydiv on complete.
[...edit me and add more examples...]
Usage with server-side script:
Put this in the same directory as your HTML, and configure your server to run x.cgi scripts:
date.cgi:
#!/bin/bash
echo 'Content-type: text/plain'
echo ''
date
Create this HTML page:
date.html:
<script src="/scripts/prototype.js" type="text/javascript"></script>
<script>
var ajax = new Ajax.Updater(
'datestr', // DIV id (XXX: doesnt work?)
'date.cgi', // URL
{ // options
method:'get',
onComplete: showResponse
});
function showResponse(req)
{
$('datestr').innerHTML = req.responseText;
}
</script>
date is now: <div id="datestr">n/a</div>
Or like this :
date2.html:
<script src="/scripts/prototype.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript">
var ajax;
function mydate() {
ajax = new Ajax.Updater(
'datestr', // DIV id must be declared before the method was called
'date.cgi', // URL
{ // options
method:'get'
});
}
</script>
date is now: <div id="datestr">n/a</div>
<script language="JavaScript" type="text/javascript">
mydate();
</script>
Usage as out-of-band form submit:
Ajax.Updater can be used to submit a form and insert the results into the page, all without a refresh. This works for all form elements except files.
<form action="/action/here" method="post" onsubmit="new Ajax.Updater('div_to_be_updated', '/action/here', {asynchronous:true, parameters:Form.serialize(this)}); return false;">
See Ajax.Request for Ajax calls that don’t expect to return rendered data.
Alternative out-of-band form submit:
Instead of using the onSubmit property of the form itself, use a simple button’s onClick value, and have the form’s onSubmit return false. This will stop users from being able to hit return and submit the form, but if you are trying to combine effects or functions (like resetting the form after the Updater finishes, as in the example) this may provide a working solution. Combining certain functions inside the onSubmit seems to create a few problems.
<form id="myform" action="/action/here" method="post" onsubmit="return false;">
<input type="text" name="myinput" />
<input type="button" value="Submit!" onclick="$('changeme').innerHTML = 'Refreshing...'; new Ajax.Updater('changeme', 'processmyform.php', {asynchronous:true, parameters:Form.serialize('myform')});$('myform').reset();$('myinput').activate( );return false;"
</form>
<div id="changeme">
</div>
Note for response containing javascript function declaration
When you have some javascript contained in the server side response, you have to use the evalScripts:true option of the Ajax object.
If you have some function declared in the response be warned that they wont be accessible at all unless you assign them to variables.
The reason for this is that the script is not appended to the page but evaluated, and this won’t create the function at all.
Invalid function definition response example :
<script>
//this won't work You MUST assign the function to a variable
function myresponsefunc(){
..do something..
}
</script>
<a href="javascript:myresponsefunc()">do my func</a>
working function definition response example:
<script>
//this one should work properly.
myresponsefunc = function(){
..do something..
}
</script>
<a href="javascript:myresponsefunc()">do my func</a>
Simple AJAX Form Validation Example
Hi, i try to do this code with Ajax.Request but maybe my XP restricts some request, don’t know but it wasn’t work . So,
i realize the example with Ajax.Update that let me post here my work ;-)
The script is divide in two files : in client-side => ‘NICOWEB.verifPseudo Get?.html’ , one server-side ‘get.verifierPseudo Scriptaculous?.php’ .
Another Example of Practical Usage
If your site regularly uses Ajax.Updater to view pages, it may be wise to implement something like the following:
function Request(page)
{
document.getElementById('content').innerHTML = 'Loading...';
new Ajax.Updater('content', 'pages/' + page + '.php', {asynchronous:true, evalScripts:true});
}
The above example shows how an elementary function can be used to replace the need to write out long calls to Ajax.Updater. One can now simply write “Request(‘index’);” to create a new instance of Ajax.Updater and load ‘pages/index.php’ into the main content window.
Description of ‘NICOWEB.verifPseudo Get?.html’
This file contains a html form who ‘onBlur’ test the value enter by the user and send an Ajax.Updater on the server side script.
=> sorry no example available, impossible to insert a controlled html image ;-)
Try at this url :
Online NICOWEB example
You like the “loginDiposnibility” example ? You might love the new Nicoweb.fr prototype.js online example at : CSS Beautifier Post
I hope you enjoy this one like the others ;)
Get another example in the usage of Ajax.Updater at Nicoweb.Auction-Bidder
You can almost try Nicoweb.ajaxStore
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>NICOWEB w/ Scriptaculous or Scriptaculous presented by NICOWEB</title>
<script language="javascript" type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" language="javascript">
/* NICOWEB : 07/08/2006 :: script ajax prototype de vérification de disponibilité pseudo submate */
var imgPseudo = "";
function formVerifierDisponibilitePseudo (idImg)
{
var pseudoToTest = $('pseudo').value;
imgPseudo = idImg;
if (pseudoToTest != "")
{
alert('let\'s start the ajax process with "'+pseudoToTest+'".');
/*new Ajax.Request("http://ns34.hosteur.com/~learnc/espaceemploi/ajax/get.verifierPseudoScriptaculous.php?pseudo"+pseudoToTest, { method: 'get', asynchronous: true, onSuccess:succesRetourAjax, onFailure:erreurRetourAjax} );*/
new Ajax.Updater('retour','http://ns34.hosteur.com/~learnc/espaceemploi/ajax/get.verifierPseudoScriptaculous.php?pseudo='+pseudoToTest,{ method:'get' , onComplete: succesRetourAjax, onFailure: erreurRetourAjax});
}
else
{
alert('oops, broken.')
$(idImg).src = 'http://ns34.hosteur.com/~learnc/espaceemploi/ajax/images/champNonValide.gif';
return true;
}
}
function succesRetourAjax (t)
{
alert(t.responseText);
if (t.responseText == "succes")
{
alert('you can use this pseudo (ndr : test version).');
$(imgPseudo).src = 'http://ns34.hosteur.com/~learnc/espaceemploi/ajax/images/champValide.gif';
}
else
{
alert('you can\'t use this pseudo (ndr : test version).');
$(imgPseudo).src = 'http://ns34.hosteur.com/~learnc/espaceemploi/ajax/images/champNonValide.gif';
}
}
function erreurRetourAjax (t)
{
alert('Error ' + t.status + ' -- ' + t.statusText);
alert('you can\'t user this pseudo (ndr : test version).');
$(imgPseudo).src = 'http://ns34.hosteur.com/~learnc/espaceemploi/ajax/images/champNonValide.gif';
}
/* NICOWEB : 07/08/2006 :: fin script ajax prototype de vérification de disponibilité pseudo submate */
</script>
</head>
<body>
<div id="retour"></div>
<table>
<tr><td colspan="2"><input type="button" name="test" value="other"/></td></tr>
<tr>
<td>Enter a pseudo and test his disponibility :</td>
<td>
<input name="pseudo" type="text" id="pseudo" value="" class="input" onBlur="formVerifierDisponibilitePseudo('imgPse');"/>
<img src="http://ns34.hosteur.com/~learnc/espaceemploi/ajax/images/champNonValide.gif" alt="nicoweb/scriptaculous icone champ non valide" id="imgPse" />
</td>
</tr>
<tr><td colspan="2"><input type="button" name="test" value="other"/></td></tr>
<tr><td colspan="2">NICOWEB NOTES :: in the test version you can't user 'nicoweb', 'nicoweb.fr', 'bertelle nicolas', 'saved', 'ganjaman', 'feliz' as pseudo.<br/>All others are welcome ;-)</td></tr>
</table>
</body>
</html>
Description of ‘ajax/verifierPseudo Scriptaculous?.php’
This file, in this test version, compare the value enter by the user with values sotcked in an php array.
If the value is not present function return true else function return false.
The result is control by the javascript functions “succesRetour Ajax?” and “erreurRetour Ajax?” that changes
the value of control ajax return image ‘imgPse’.
<?
/*
* 08/08/2006 00:34am
* ajax/verifierPseudoScriptaculous.php
* test ajax file, no connection to bdd to preserve my bandwidth ;-)
*/
$tPseudo = array("nicoweb","nicoweb.fr","bertelle nicolas","saved","ganjaman","feliz");
$retour = "";
if ($_GET['pseudo'] != "")
{
$pseudo = $_GET['pseudo'];
if (in_array($pseudo,$tPseudo)) { $retour = ""; echo $retour; }
else { $retour = "succes"; echo $retour; }
}
else { $retour = ""; echo $retour; }
?>
Hope that code extraction can give wings to someone, help others, wish you best with scriptaculous ;-)
############################################################_
REF: http://wiki.script.aculo.us/scriptac...w/Ajax.Updater
REF: http://www.devmoz.com/blog/2007/04/0...box-using-ajax
-
Re: PC Configurator For Zen Cart
Quote:
Originally Posted by
cj-real
<snip>
Wow.. total thread killer. Next time just post the links to the site.
-
Re: PC Configurator For Zen Cart
Quote:
Originally Posted by
cj-real
I found something that was the perfect example of my problem... this might be of help to you (I am not that good at reading other people's scripts).
I noticed a lot of new comers asking this question: I want a select box to be updated using ajax when I change the current item in another select box .
So this is a quick tutorial on how to do exactly that.
Here is the scenario:
########################################################################################################################
And another scenario :
You write the module and you upload it !!!
-
Re: PC Configurator For Zen Cart
Quote:
Originally Posted by
lebrand2006
########################################################################################################################
And another scenario :
You write the module and you upload it !!!
LOL
Actually I think the contrib demo looks great! It could probably even be a bigger replacement of all options.. but i haven't tried it yet on my own store. But it looks good to me! :)
-
Re: PC Configurator For Zen Cart
Quote:
Originally Posted by
qhome
LOL
Actually I think the contrib demo looks great! It could probably even be a bigger replacement of all options.. but i haven't tried it yet on my own store. But it looks good to me! :)
For which contrib demo are you talking about ?
Could you explain what you mean by saying "LOL" ? I am Greek and this is all latin to me !!!
In Greek :
Για ποιο contrib demo μιλάς ?
Θα μπορούσες να μου εξηγήσεις τι εννοείς λέγοντας "LOL" ? Είμαι Έλληνας και όλα αυτά μου μοιάζουν με λατινικά
-
Re: PC Configurator For Zen Cart
Quote:
Originally Posted by
lebrand2006
For which contrib demo are you talking about ?
Could you explain what you mean by saying "LOL" ? I am Greek and this is all latin to me !!!
In Greek :
Για ποιο contrib demo μιλάς ?
Θα μπορούσες να μου εξηγήσεις τι εννοείς λέγοντας "LOL" ? Είμαι Έλληνας και όλα αυτά μου μοιάζουν με λατινικά
Well at least you speak PHP well :)
-
Re: PC Configurator For Zen Cart
Quote:
Originally Posted by
qhome
Well at least you speak PHP well :)
Hi there. You know I wrote all this for Fun !!!
I am testing and preparing to pack the new version, completely different from the old one, with much more capabilities.
After a short time of testing period, there were found many bugs.
This has to do with the code and users configuration.
So not only the code changed but the setup instructions too.
The same time, I am preparing a contribution, completely in Greek language.
In this contribution, there will be included over 20 new modules, more than version 1.3.7 , and there will be many changes in the setup, where user will be able to select express or advanced setup, where he will be able to configure more things about the shop, guided with explanation.
This contribution will not include uptades from older versions ( only for fresh install ) but will include many different kinds of databases , needed when user select advance setup. Based on the user selections, we will use different database for setup.
Also, something important is to write a new page to use for tranalations on line.
Because, some times when we upload translated files, or when we make changes to languages files, shop just give us a blank page of have other problems. Using an online page, we could translate, and also choose if we replace original file or if we add new translation to zen cart.
Even if there are many translations, they are not complete.
Also we should consider of giving the option to the users, to translate, during setup, before installation completes.
This could be a nice developer tool, for those who know zen cart and would like to translate the database, before setup.
Another issue is that new users, do not have time ( as developers ) to search for all information they need to know to make changes.
So it is time to start writing the GUI instructions pages.
I call this G.I.P and I will include it in the Greek totally translated contribution.
There will be, a complete Graphical user guide inside Admin, instead of creating other kind of help files.
It will be based on Ez Pages and AM Pages ( AM Pages is a module I made completely based on EZ Pages )
This way, all these instructions will be a LIVE BOOK with chapters, included in the database.
Everyone who knows more details or have new ideas of doing something, he will be able to improve these instructions, or even write hiw own.
This way, ( using some code ) we can output the chapters of a specific installation and somehow find a good way of uploading it to a specific user area.
Then, ( using some more code ) everyone will be able to find out if his version of Instructions is up to date and ......bla...bla....bla....
I really did not yet understand, who is in the zen cart team and which way it is developed.
Could someone explain it to me ??
Thanks
-
Re: PC Configurator For Zen Cart
:smile:
You are to be applauded for your effort. Thank you.
Can you tell me what version of php and mysql are required for your module or is the minimum as specified for Zen ok?
Currently my host has
PHP Version: 4.4.7
MySQL 4.0.27-standard.
Is this sufficent for your module?
Please keep up your good work
Regards
Mark
-
Re: PC Configurator For Zen Cart
Quote:
Originally Posted by
Cando
:smile:
You are to be applauded for your effort. Thank you.
Can you tell me what version of php and mysql are required for your module or is the minimum as specified for Zen ok?
Currently my host has
PHP Version: 4.4.7
MySQL 4.0.27-standard.
Is this sufficent for your module?
Please keep up your good work
Regards
Mark
If it can run Zen-cart, then it can run any of its addons. And yes those specs are more than good. It's not likely to find any host these days that aren't up to php4 and mysql4 specs
-
Re: PC Configurator For Zen Cart
hey :)
on the link -> http://astech.dk/index.php?main_page=pc_configurator
i get this problem
Warning: require(includes/templates/template_default/templates/tpl_pc_configurator_default.php) [function.require]: failed to open stream: No such file or directory in D:\Domains\astech.dk\wwwroot\includes\templates\red_passion\common\tpl_main_page .php on line 114
Fatal error: require() [function.require]: Failed opening required 'includes/templates/template_default/templates/tpl_pc_configurator_default.php' (include_path='.;C:\php5\pear') in D:\Domains\astech.dk\wwwroot\includes\templates\red_passion\common\tpl_main_page .php on line 114
and my sidebox doesnt work either
-
Re: PC Configurator For Zen Cart
Quote:
Originally Posted by
Silo
hey :)
on the link ->
http://astech.dk/index.php?main_page=pc_configurator
i get this problem
Warning: require(includes/templates/template_default/templates/tpl_pc_configurator_default.php) [function.require]: failed to open stream: No such file or directory in D:\Domains\astech.dk\wwwroot\includes\templates\red_passion\common\tpl_main_page .php on line 114
Fatal error: require() [function.require]: Failed opening required 'includes/templates/template_default/templates/tpl_pc_configurator_default.php' (include_path='.;C:\php5\pear') in D:\Domains\astech.dk\wwwroot\includes\templates\red_passion\common\tpl_main_page .php on line 114
and my sidebox doesnt work either
It appears that you didn't upload all the files to the proper location.
Verify that you have a file at:
D:\Domains\astech.dk\wwwroot\includes\templates\template_default\templates\tpl_p c_configurator_default.php
-
Re: PC Configurator For Zen Cart
Quote:
Originally Posted by
Silo
hey :)
on the link ->
http://astech.dk/index.php?main_page=pc_configurator
i get this problem
Warning: require(includes/templates/template_default/templates/tpl_pc_configurator_default.php) [function.require]: failed to open stream: No such file or directory in D:\Domains\astech.dk\wwwroot\includes\templates\red_passion\common\tpl_main_page .php on line 114
Fatal error: require() [function.require]: Failed opening required 'includes/templates/template_default/templates/tpl_pc_configurator_default.php' (include_path='.;C:\php5\pear') in D:\Domains\astech.dk\wwwroot\includes\templates\red_passion\common\tpl_main_page .php on line 114
and my sidebox doesnt work either
It is clear my friend.
No such file or directory in D:\Domains\astech.dk\wwwroot\includes\templates\red_passion\common\tpl_main_page .php on line 114
Upload the files in the right structure. I see you use red passion template.
BEFORE UPLOADING TO YOUR SERVER :
Where you unzipped the module in your PC, rename ALL "classic" folders to "red_passion"
This way it is easier to upload your files the right way without being confused.
In some cases you will notice that on your server there are no folders red_passion. In this case, you upload the folder red_passion directly from your pc to the server. This is happening in cases where we override the system defaults.
Try this.....should work
-
Re: PC Configurator For Zen Cart
Quote:
Originally Posted by
qhome
It appears that you didn't upload all the files to the proper location.
Verify that you have a file at:
D:\Domains\astech.dk\wwwroot\includes\templates\template_default\templates\tpl_p c_configurator_default.php
Seems that we answered the same time !!!
I am very happy to see that somebody cares for this module also !!!
Thank you very much
-
Re: PC Configurator For Zen Cart
Its a greight module i tryed a few times to install but always with some problems
Does this properly work on FF?
When the Final-BugFree-EasyToInstall version will be available?
-
Re: PC Configurator For Zen Cart
Quote:
Originally Posted by
lebrand2006
Seems that we answered the same time !!!
I am very happy to see that somebody cares for this module also !!!
Thank you very much
Quote:
Originally Posted by
lebrand2006
It is clear my friend.
No such file or directory in D:\Domains\astech.dk\wwwroot\includes\templates\red_passion\common\tpl_main_page .php on line 114
Upload the files in the right structure. I see you use red passion template.
BEFORE UPLOADING TO YOUR SERVER :
Where you unzipped the module in your PC, rename ALL "classic" folders to "red_passion"
This way it is easier to upload your files the right way without being confused.
In some cases you will notice that on your server there are no folders red_passion. In this case, you upload the folder red_passion directly from your pc to the server. This is happening in cases where we override the system defaults.
Try this.....should work
Thanks for helping :)
Now i uploaded all classic to red_passion map, i renamed classic to red_passion and uploaded it. now i get this fail.
Warning: require(includes/languages/danish/html_includes/define_pc_configurator.php) [function.require]: failed to open stream: No such file or directory in D:\Domains\astech.dk\wwwroot\includes\templates\red_passion\templates\tpl_pc_con figurator_default.php on line 14
Fatal error: require() [function.require]: Failed opening required 'includes/languages/danish/html_includes/define_pc_configurator.php' (include_path='.;C:\php5\pear') in D:\Domains\astech.dk\wwwroot\includes\templates\red_passion\templates\tpl_pc_con figurator_default.php on line 14
http://astech.dk/index.php?main_page=pc_configurator
i looked in that file, then it stand -> require($define_page);
where is the define_page?
thanks
EDIT:
I found out. in the includes/languages/danish/html_includes/ i uploaded the classic files into html_includes :)
-
Re: PC Configurator For Zen Cart
OK, I have been waiting for something like this for a while, and I just found the contribution in the downloads. On that note I will be as much help in the testing as I can for this module.
I have just tried to run the SQL patch through Zen-Cart and I get this error message:
Code:
1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ON DUPLICATE KEY UPDATE configuration_key = configuration_key'
I would really like to see this working correctly.
-
Re: PC Configurator For Zen Cart
Hi,
Mine works properly;
http://cjnet.info/e/checkout/index.p...c_configurator
If you need help, then I will quickly just post this for installing help:
In the PC_configuator file that you downloaded, choose the first folder to open (e.g. catalog-shop).
Now, on your webserver, open the zen-cart file (for me it's CHECKOUT).
Next, you see "images", and "includes", you will need to open one of these folders, and open the same one on your server (if you open includes, then open includes e.g. CHECKOUT/INCLUDES)
Now open the the folder inside on your local drive, and the same one on your server. (e.g. extra_configures). Upload the files inside that folder. If there are more folders, keep doing the same.
If you see NaN in the price box:
Then in your admin panel, do this:
GO TO currencies and edit your currency £
Remove Symbol LEFT , and add this to symbol right :
£
If you are using a different template for zen cart:
Where you unzipped the module in your PC, rename ALL "classic" folders to your template name. e.g. "red_full"
I don't know how to edit the look, how do you change it? (which file is it in)
-
Re: PC Configurator For Zen Cart
Silo:
You got a space in 'red_passion' before 'd' :
D:\Domains\astech.dk\wwwroot\includes\templates\re d_passion\common\tpl_main_page.php on line 114
Is this the problem?
-
Re: PC Configurator For Zen Cart
Is there anyone that has this module properly working in English?
Cjreal, I don't think works properly, it's not capturing the price on custom configured pc.
-
Re: PC Configurator For Zen Cart
Quote:
Originally Posted by
ideasgirl
Is there anyone that has this module properly working in English?
I can help you, if you need help
-
Re: PC Configurator For Zen Cart
Hi Charis,
I see you are very helpful and this is a great contribution. I haven't try to install the module yet since I haven't seen any site with the module actually active. I don't understand anything in your site so it doesn't do it for me.
I just want to show it to a posible interested customer, but show it running. It looks difficult to install and configure, so I don't want to go through all the hassle and find out later doesn't work how it is supposed.
-
Re: PC Configurator For Zen Cart
Quote:
Originally Posted by
ideasgirl
Hi Charis,
I see you are very helpful and this is a great contribution. I haven't try to install the module yet since I haven't seen any site with the module actually active. I don't understand anything in your site so it doesn't do it for me.
I just want to show it to a posible interested customer, but show it running. It looks difficult to install and configure, so I don't want to go through all the hassle and find out later doesn't work how it is supposed.
Well do not worry.
My friend Andy installed ( actually I helped him to do it ) PC Configurator and you can see it here : http://www.pcparadiseuk.com
It is not yet populated with products but you can test it and make a configuration to see it working live.
As I told you, if you need help, I can help.
Sorry to all the community because I don't have available time to repack the module now.
You can also try the module in my store www.lebrand.gr
Even if you do not understand Greek ( you should learn ) it is very easy to configure a pc on my web site, so you can see all the changes I made.
As I have written before, when customer complete the configuration all products are going directly to the cart, so he can manage the configuration again, add or delete components in the configuration.
Also, by the same time, a new product is created under category Custom PC, so other people can by it directly.
So, ask Andy how I helped him to run PC Configurator and also my friend Diogo Paiva grom Portugal ( www.meintek.com )
They just trusted me and opened an FTP for me, also login to their eshops and I did the rest.
I am not a usual person ( in nowdays ) , I just like to help when I am able to do it.
This is all for now
Sorry for my English. You should all learn Greek !!!
MACEDONIA IS GREEK
I LIVE IN THE WIDE AREA OF MACEDONIA IN A CITY CALLED "DRAMA" !! but I am not in drama !!!
-
Re: PC Configurator For Zen Cart
Yes, the module is working for me , but i still have some problems with the prices.
Please take a look in http://www.meintek.com/index.php?mai...c_configurator
They are simply wrong, insted of being 40,25€ the price shows only 40€ !
After this anoying and not wanted problem is resolved in my store, the PC Configurator is working fine, and i will populate it with some more products.
I still need your help on this, Charis, if you please contact me to help me find the solutions on this. Do you still have the FTP account? I´ll creat another one for you, if needed.
If we couldn´t solve this problem i will remove the PC Configurator untill all is fixed.
This is a must be on Online TekStores, i thank everyone how suport this threat.
Hugs for you, Charis.
Hope to get any answers and help of you guys.
See you soon
Diogo Paiva
from Portugal
-
Re: PC Configurator For Zen Cart
I can see that if someone is selection options, and then decide to take out any item, the calculations are messed up and shopper has to start all over again.
-
Re: PC Configurator For Zen Cart
Quote:
Originally Posted by
ideasgirl
I can see that if someone is selection options, and then decide to take out any item, the calculations are messed up and shopper has to start all over again.
I like your humour !!!
-
Re: PC Configurator For Zen Cart
Quote:
I like your humour !!!
:huh: I'm serious... If you make some selections, then try to put the original (first) option, which I think doesn't add to the cost, will make the configurator insert a "NaN" and then the totals show that as well. :blink:
-
Re: PC Configurator For Zen Cart
Quote:
Originally Posted by
ideasgirl
:huh: I'm serious... If you make some selections, then try to put the original (first) option, which I think doesn't add to the cost, will make the configurator insert a "NaN" and then the totals show that as well. :blink:
I know that !!!
Just press the reset button.
You know, when you want to buy a brand new desktop, you have all the time to configure it through this application.
All things are going to change anyway and be improved.
So lets not just stick to this bug but promote our ideas to make PC Configurator a general universal configurator so it can handle all Zen Cart functions.
Lets say this is a small bug. We better write more complicated code and implement PC Configurator as General configurator, to be a part of Zen Cart application.
If you want to discuss this further, please do not post here.
My skype is - lebrand2006 -
Thank you for spending time to help the community for this module.
-
New Version Uploaded !!!
Dear all,
I have uploaded a new version of PC Configurator
http://www.zen-cart.com/index.php?ma...roducts_id=667
I am writing the user guide, so please be patient
Anyway, go download and install it.
You will find many new "READ_ME_FIRST" files in some folders.
Read it first, before you install.
Thanks
-
Re: PC Configurator For Zen Cart
Hi Chris,
I have downloaded and installed the new version on a local server that mirrors my live site. The installation process was a little easier than the first time I tried it about a month ago on my live site. One problem I see that slows the installation and leaves room for errors is that in the SQL file none of the tables have the zen_ prefix. Given that it is the default during installation of the Cart you may want to consider adding them into the patch file. Or if you prefer I have added them to the one I downloaded and I can send it to you to save time recoding something already done.
Now I do have a problem with the installation. It shows in my admin area, and in the front end of the cart, and when I click on the link in the categories box or the header link I get to the Custom PC page like its supposed to. But, as soon as I click on the "PC Configurator" link or the "...needs by pressing 'here'" link i get an Access Forbidden page that looks like this...
Quote:
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
Error 403
localhost
11/01/07 15:00:07
Apache/2.2.6 (Win32) DAV/2 mod_ssl/2.2.6 OpenSSL/0.9.8e mod_autoindex_color PHP/5.2.4
Any idea why?
-
Re: PC Configurator For Zen Cart
Quote:
the zen_ prefix. Given that it is the default during installation of the Cart
This is no longer default. If you use the SQL patch tool in the admin it should add the pre-fix.
-
Re: PC Configurator For Zen Cart
Oh. For some reason every time I try to use the SQL patch tool in ZC i get errors, so I do all my DB work from phpMyAdmin. If that is the case then disregard that comment.
However the Access Forbidden is still a problem.
-
Re: PC Configurator For Zen Cart
Quote:
Originally Posted by
TrailorParkKid
Oh. For some reason every time I try to use the SQL patch tool in ZC i get errors, so I do all my DB work from phpMyAdmin. If that is the case then disregard that comment.
However the Access Forbidden is still a problem.
As it seems, you are testing in localhost. Well I had some problems several times with .htaccess depending on the server.
Anyway, I do not know if your live server is the same with your local server.
First, try the following URL path to see if page loads
after index.php ADD : ?main_page=pc_configurator
Maybe it is something that I did not understand.
If the above is working, there is a good way to solve this problem
Test and post the result
-
Re: PC Configurator For Zen Cart
Quote:
after index.php ADD : ?main_page=pc_configurator
That worked, what do I do to fix it?
This is what the path looks like when I try to get to it the normal way:
Quote:
/localhost/livesite/%3C?php%20echo%20HTTP_SERVER;%20?%3E%3C?php%20echo%20DIR_WS_CATALOG;%20?%3Eindex .php?main_page=pc_configurator
the space in "pc_configurator" is not actually there, I just couldnt get rid of it in the quote.
-
1 Attachment(s)
Re: PC Configurator For Zen Cart
Quote:
Originally Posted by
TrailorParkKid
That worked, what do I do to fix it?
This is what the path looks like when I try to get to it the normal way:
the space in "pc_configurator" is not actually there, I just couldnt get rid of it in the quote.
Open folder pc_configurator , find the file "pc_configurator_table_construction_query.php"
and go to line # 117
There you will see the following :
action="'.HTTP_SERVER.''.DIR_WS_CATALOG.'index.php?main_page=pc_configurator_ste p_2"
Change it as following :
action="http://www.you_site_name.xxx/your_zen_catalog/index.php?main_page=pc_configurator_step_2"
I supose if you want to try in your localhost it will be :
action="http://localhost/livesite/index.php?main_page=pc_configurator_step_2"
or something like this.
Also you can try just this :
action="index.php?main_page=pc_configurator_step_2"
Then , go to category 28200 ( Custom PC ) . There you will find 2 links.
Change these links based on your needs, with the provided instructions above.
Also, I forgot (!!!) to include something in all my uploads :
You can download it below :
It is the tpl file for the sidebox. I have uploaded the language and the module file but not the tpl file.
File name is "tpl_pc_configurator_sidebox.php" (download it below) and you should put it in :
your_shop_directory/includes/templates/template_default/sideboxes/
The right way is to use zen redirect function as we already know the filename.
Forgive me, all of you, I should use zen redirect function, but this module is the first "BIG" I made and it is being developed.
Next version will be better !
I hope all the above to help you.
Please post the results here.
Also, it would be better, if you have enough space in your live server, to setup a zen cart there, for live testing, because many times there are some diferences in LAMP servers, depending on the edition of the components they use.
-
Re: PC Configurator For Zen Cart
well, Charis you seem to forgot me... and my problems with your module.
I'm going to uninstall it, since its not working properly, and i did not get any help for this problem, and im calling for help in months!!!
So... if it isn't working porperly, better not have it at all.
Good luck for all.
Diogo Paiva
-
Re: PC Configurator For Zen Cart
Hello, I am having config problems...my admin - config has 4 listings of PC configurator, 4 listing of PC configurator options etc (seems to be duplicated somehwere). Also, I am getting greek headings popping up..can u help me sort this out. thank you staxs for this mod.
www.pcspot.co.za/shop
Also the currency is not workign well as anything that has a symbol to the left of the numbers returns a NaN
regards
N
-
Re: PC Configurator For Zen Cart
Quote:
Originally Posted by
pcspot
Hello, I am having config problems...my admin - config has 4 listings of PC configurator, 4 listing of PC configurator options etc (seems to be duplicated somehwere). Also, I am getting greek headings popping up..can u help me sort this out. thank you staxs for this mod.
www.pcspot.co.za/shop
Also the currency is not workign well as anything that has a symbol to the left of the numbers returns a NaN
regards
N
Take a look here as for currency issue :
http://www.zen-cart.com/forum/showpo...6&postcount=54
-
Re: PC Configurator For Zen Cart
Im glad for the configurator, but 2 months ago, I asked:
1). How do you change the look of the configuration page.
2). When you click product details it shows this:
ÌïíôÝëï: Casecom
ÂÜñïò ÄÝìáôïò: 2lbs
1 ÄéáèÝóéìá ôåìÜ÷éá
instead of this:
Brand: Casecom
Weight: 2lbs
Dano what this is though
http://cjnet.info/e/checkout/index.p...c_configurator
click on one then press "product details"
Please help
-
Re: PC Configurator For Zen Cart
I have now fixed this!
But on step 2 I am getting åõñþ as my currency :S I changed this before, and uploaded a new file making me forget where it was.
EDIT: FOR ALL PEOPLE SAYING MY CONFIGURATOR DOESNT WORK, IT DOES NOT I HAVE FIXED THE GREEK EXCEPT ON STEP 2.
I GET THE ERROR "Infinity" on NET PRICE and "NaN" on TAX, becuase my tax is 0! I want to remove this from the page which is why, and looking in my last post for how you can edit the main page (which I think I have found now).
Explanation: Because tax is NaN, Net price (without TAX) is infinity, becuase... (x = total price)
x - NaN = ?
Like dividing 0 by 0 on a calculator, it's any number you want.
As soon as my configurator is perfectly finished, I will release a step by step video tutorial on installing the PC configurator. I will also release the code for the design (graphical), and write a step by step tutorial.
This is my way of contributing to lebrand2006, so he does not have to write a massive readme file.
This is my way of contributing to others, becuase lebrand2006 can spend more time on developing the code as a wider range, instead of just computers, instead of spending his time on the readme.
Thanks,
CJ
-
Re: PC Configurator For Zen Cart
Ok, deleting the fields didnt work so they are hidden. So that's all OK.
What I need to do and need help on:
[1]
Still confused about how to change the look of the configurator, I want it like Dell. (I put a link to the configure site, click "Switch to list view" below the tabs to see what I want).
I can design it, just need to know how.
[2]
On step 2 I am getting åõñþ as my currency. Want to change this. Can't find the help file.
-
Re: PC Configurator For Zen Cart
I am very happy to hear that someone of the community want to help !!!
As my English are not good ( I would say bad enough ) I believe that instructions for pc_configurator from cj-real will be perfect.
Now it is an opportunity to make a small team for pc_configurator to develop it faster and better.
##############################################################################################################
To change the look for the second page, go to folder pc_configurator and make a copy of the file "pc_configurator_customer_table.php" .
This way you can test the copy, before you make any changes.
File "pc_configurator_customer_table.php" includes both HTML and PHP.
An easy way to change the look is to CHANGE the file EXTENSION from .php TO .htm to the file "pc_configurator_customer_table.php".
You can then open it with the software you use for your web pages, like Front Page etc. and change the look of this page.
You can also change the word ευρω to add your currency like usd, gbp, cyp etc.
There is also a css file named "pc_configurator_style_sheet.php" inside pc_configurator folder, where we just keep some css code, that you can change based on your needs.
Sorry for not using defines or variables. I will sure do this in one of the next versions.
There are many places I should use defines or variables. I will check all these one by one to replace with defines or variables.
So there will be one and only file for the language.
Another idea was to make a new database table for pc configurator where we can keep all translation and languages ISO's , plus a new page in Admin where we can choose language ISO and translate pc configurator directly from Admin, instead opening files with text editor.
The reason is that some times, even when there is a simple space inside PHP code, page does not function.
Another reason is that in some cases page does not work when we use special charactes.
Yes, maybe there are some dissadvantages keeping the language in database but also very good advantages, I would say mainly for new users.
Anyway. To change the LOOK in the FIRST PAGE open the folder pc_configurator and then the file "pc_configurator_table_construction_query.php"
In the bottom of this file you will find 3 defines :
1. $pc_configurator_start_form
2. $pc_td
3. $prc_td
Edit the CONTENTS ONLY (just copy and paste the content of the define) of these defines with the web page editor you use.
Then just paste the modified content back to the defines.
######################################################################___
Sorry for making this complicated, but I wanted to have more pages with less code, depending on the kind of code, what code does, for better code control.
For example I did not want so much HTML inside PHP as I was in developing, so I devided HTML and PHP in diferent pages where I could.
Well, cj-real if you like we can be the first 2 persons to make a team for pc configurator developing. Everyone is invited !
-
Re: PC Configurator For Zen Cart
Ok, for people saying my configurator doesn't work, it's fixed. I hid the tax and net price boxes becuase I don't use them. They are still there.
I fixed the greek in the files, and you can see my configurator here.
http://www.cjnet.info/e/checkout/ind...c_configurator
And this, in the same directory (PLEASE SEE POST BELOW IT WOULDNT FIT IN 1), is called pc_configurator_table_construction_query.php in translated full enlgish is:
PHP Code:
<?php
$check_configuration_value_1 = $db->Execute("select configuration_value
from " . TABLE_CONFIGURATION . "
where configuration_key = 'PRODUCTS_GROUP_PC_CONFIGURATOR_1'");
$configuration_value_1 = $check_configuration_value_1->fields['configuration_value'];
$check_configuration_value_2 = $db->Execute("select configuration_value
from " . TABLE_CONFIGURATION . "
where configuration_key = 'PRODUCTS_GROUP_PC_CONFIGURATOR_2'");
$configuration_value_2 = $check_configuration_value_2->fields['configuration_value'];
$check_configuration_value_3 = $db->Execute("select configuration_value
from " . TABLE_CONFIGURATION . "
where configuration_key = 'PRODUCTS_GROUP_PC_CONFIGURATOR_3'");
$configuration_value_3 = $check_configuration_value_3->fields['configuration_value'];
$check_configuration_value_4 = $db->Execute("select configuration_value
from " . TABLE_CONFIGURATION . "
where configuration_key = 'PRODUCTS_GROUP_PC_CONFIGURATOR_4'");
$configuration_value_4 = $check_configuration_value_4->fields['configuration_value'];
$check_configuration_value_5 = $db->Execute("select configuration_value
from " . TABLE_CONFIGURATION . "
where configuration_key = 'PRODUCTS_GROUP_PC_CONFIGURATOR_5'");
$configuration_value_5 = $check_configuration_value_5->fields['configuration_value'];
$check_configuration_value_6 = $db->Execute("select configuration_value
from " . TABLE_CONFIGURATION . "
where configuration_key = 'PRODUCTS_GROUP_PC_CONFIGURATOR_6'");
$configuration_value_6 = $check_configuration_value_6->fields['configuration_value'];
$check_configuration_value_7 = $db->Execute("select configuration_value
from " . TABLE_CONFIGURATION . "
where configuration_key = 'PRODUCTS_GROUP_PC_CONFIGURATOR_7'");
$configuration_value_7 = $check_configuration_value_7->fields['configuration_value'];
$check_configuration_value_8 = $db->Execute("select configuration_value
from " . TABLE_CONFIGURATION . "
where configuration_key = 'PRODUCTS_GROUP_PC_CONFIGURATOR_8'");
$configuration_value_8 = $check_configuration_value_8->fields['configuration_value'];
$check_configuration_value_9 = $db->Execute("select configuration_value
from " . TABLE_CONFIGURATION . "
where configuration_key = 'PRODUCTS_GROUP_PC_CONFIGURATOR_9'");
$configuration_value_9 = $check_configuration_value_9->fields['configuration_value'];
$check_configuration_value_10 = $db->Execute("select configuration_value
from " . TABLE_CONFIGURATION . "
where configuration_key = 'PRODUCTS_GROUP_PC_CONFIGURATOR_10'");
$configuration_value_10 = $check_configuration_value_10->fields['configuration_value'];
$check_configuration_value_11 = $db->Execute("select configuration_value
from " . TABLE_CONFIGURATION . "
where configuration_key = 'PRODUCTS_GROUP_PC_CONFIGURATOR_11'");
$configuration_value_11 = $check_configuration_value_11->fields['configuration_value'];
$check_configuration_value_12 = $db->Execute("select configuration_value
from " . TABLE_CONFIGURATION . "
where configuration_key = 'PRODUCTS_GROUP_PC_CONFIGURATOR_12'");
$configuration_value_12 = $check_configuration_value_12->fields['configuration_value'];
$check_configuration_value_13 = $db->Execute("select configuration_value
from " . TABLE_CONFIGURATION . "
where configuration_key = 'PRODUCTS_GROUP_PC_CONFIGURATOR_13'");
$configuration_value_13 = $check_configuration_value_13->fields['configuration_value'];
$check_configuration_value_14 = $db->Execute("select configuration_value
from " . TABLE_CONFIGURATION . "
where configuration_key = 'PRODUCTS_GROUP_PC_CONFIGURATOR_14'");
$configuration_value_14 = $check_configuration_value_14->fields['configuration_value'];
$check_configuration_value_15 = $db->Execute("select configuration_value
from " . TABLE_CONFIGURATION . "
where configuration_key = 'PRODUCTS_GROUP_PC_CONFIGURATOR_15'");
$configuration_value_15 = $check_configuration_value_15->fields['configuration_value'];
$check_configuration_value_16 = $db->Execute("select configuration_value
from " . TABLE_CONFIGURATION . "
where configuration_key = 'PRODUCTS_GROUP_PC_CONFIGURATOR_16'");
$configuration_value_16 = $check_configuration_value_16->fields['configuration_value'];
$check_configuration_value_17 = $db->Execute("select configuration_value
from " . TABLE_CONFIGURATION . "
where configuration_key = 'PRODUCTS_GROUP_PC_CONFIGURATOR_17'");
$configuration_value_17 = $check_configuration_value_17->fields['configuration_value'];
$check_configuration_value_18 = $db->Execute("select configuration_value
from " . TABLE_CONFIGURATION . "
where configuration_key = 'PRODUCTS_GROUP_PC_CONFIGURATOR_18'");
$configuration_value_18 = $check_configuration_value_18->fields['configuration_value'];
$check_configuration_value_19 = $db->Execute("select configuration_value
from " . TABLE_CONFIGURATION . "
where configuration_key = 'PRODUCTS_GROUP_PC_CONFIGURATOR_19'");
$configuration_value_19 = $check_configuration_value_19->fields['configuration_value'];
$check_configuration_value_20 = $db->Execute("select configuration_value
from " . TABLE_CONFIGURATION . "
where configuration_key = 'PRODUCTS_GROUP_PC_CONFIGURATOR_20'");
$configuration_value_20 = $check_configuration_value_20->fields['configuration_value'];
$check_configuration_value_21 = $db->Execute("select configuration_value
from " . TABLE_CONFIGURATION . "
where configuration_key = 'PRODUCTS_GROUP_PC_CONFIGURATOR_21'");
$configuration_value_21 = $check_configuration_value_21->fields['configuration_value'];
$check_configuration_value_22 = $db->Execute("select configuration_value
from " . TABLE_CONFIGURATION . "
where configuration_key = 'PRODUCTS_GROUP_PC_CONFIGURATOR_22'");
$configuration_value_22 = $check_configuration_value_22->fields['configuration_value'];
$check_configuration_value_23 = $db->Execute("select configuration_value
from " . TABLE_CONFIGURATION . "
where configuration_key = 'PRODUCTS_GROUP_PC_CONFIGURATOR_23'");
$configuration_value_23 = $check_configuration_value_23->fields['configuration_value'];
$check_configuration_value_24 = $db->Execute("select configuration_value
from " . TABLE_CONFIGURATION . "
where configuration_key = 'PRODUCTS_GROUP_PC_CONFIGURATOR_24'");
$configuration_value_24 = $check_configuration_value_24->fields['configuration_value'];
$check_configuration_value_25 = $db->Execute("select configuration_value
from " . TABLE_CONFIGURATION . "
where configuration_key = 'PRODUCTS_GROUP_PC_CONFIGURATOR_25'");
$configuration_value_25 = $check_configuration_value_25->fields['configuration_value'];
$check_configuration_value_26 = $db->Execute("select configuration_value
from " . TABLE_CONFIGURATION . "
where configuration_key = 'PRODUCTS_GROUP_PC_CONFIGURATOR_26'");
$configuration_value_26 = $check_configuration_value_26->fields['configuration_value'];
$check_configuration_value_27 = $db->Execute("select configuration_value
from " . TABLE_CONFIGURATION . "
where configuration_key = 'PRODUCTS_GROUP_PC_CONFIGURATOR_27'");
$configuration_value_27 = $check_configuration_value_27->fields['configuration_value'];
$check_configuration_value_28 = $db->Execute("select configuration_value
from " . TABLE_CONFIGURATION . "
where configuration_key = 'PRODUCTS_GROUP_PC_CONFIGURATOR_28'");
$configuration_value_28 = $check_configuration_value_28->fields['configuration_value'];
$pc_configurator_start_form = '<BODY bg############################## leftMargin=0 topMargin=0 marginwidth="0" marginheight="0"><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0><TBODY><TR><TD><FORM ENCTYPE="multipart/form-data" name=LeBrandPcConfiguratorForm action="'.HTTP_SERVER.''.DIR_WS_CATALOG.'index.php?main_page=pc_configurator_step_2" method=POST><table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-width: 0" bordercolor="#111111" width="74%" id="AutoNumber2">
<tr>
<td width="65%" style="border-style: none; border-width: medium">
<p align="center">
<font face="Tahoma" size="1" color="#000080"><span lang="el">Would you like this PC to be added to our database? - others will be able to buy it </span>;</font><br>
<select size="1" name="insert_db" style="color: #000080; font-family: Tahoma; font-weight: bold; font-size: 8pt; background-color: #99CCFF">
<option selected value="1">Yes please</option>
<option value="2">No, it is personal</option>
</select></td>
</tr>
</table><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0><TBODY><TR><TD><TABLE cellSpacing=0 cellPadding=2 width="100%" border=0 height="679" style="border-collapse: collapse; border-style: solid; border-width: 1" bordercolor="#3E6EA4"><TBODY>';
$pc_td = '<TD class=products_attributes_controler_conf style="background-color: #E1EBF5; border-left-style:solid; border-left-width:1" height="19"><font face="Tahoma">';
$prc_td = '<TD class=products_attributes_controler_conf align=middle height="19" style="background-color: #E1EBF5; border-right-style:solid; border-right-width:1">';
?>
I have read the last post and will be updating the design. Once that has been done I will release the new script in full english, with a new design.
-
Re: PC Configurator For Zen Cart
[This will help with post above]
This is the file in "catalog-shop/includes/pc_configurator", it's called pc_configurator_customer_table.php. I have made it english.
----------------------------------------------------------------------------
PART 1 ONLY HERE [SEE NEXT POST], IT WOULDNT FIT IN SORRY
----------------------------------------------------------------------------
PHP Code:
<?php
$insert_db = $_POST[insert_db];
$_SESSION['insert_product_yes'] = $insert_db;
?>
<body>
<FORM ENCTYPE="multipart/form-data" name=LeBrandPcConfiguratorForm2 action="index.php?main_page=pc_configurator_step_3" method=POST>
<table border="4" cellpadding="0" cellspacing="0" style="border-style:solid; border-color:#3E6EA4; border-collapse: collapse" bordercolor="#FFFFFF" width="100%" id="pcconf2" bgcolor="#E1EBF5">
<tr>
<td width="100%" align="center" colspan="2" style="border-left-color: #215EF9; border-left-width: 1; border-right-color: #215EF9; border-right-width: 1; border-top-color: #215EF9; border-top-width: 1" height="20"><b><?php echo PC_CONFIGURATOR_SECOND_PAGE_HEADING_TEXT; ?></b></td>
</tr>
<tr>
<td width="100%" align="center" colspan="2" style="border-left-color: #215EF9; border-left-width: 1; border-right-color: #215EF9; border-right-width: 1" height="20"><b><?php echo $products_model; ?></b></td>
</tr>
<tr>
<td width="80%" align="center" style="border-left-color: #215EF9; border-left-width: 1" height="21"><b><?php echo PC_CONFIGURATOR_PRODUCTS_SERIAL_NUMBER_TEXT; ?></b></td>
<td width="20%" align="center" style="border-right-color: #215EF9; border-right-width: 1" height="21"><b><?php echo $products_serial_number; ?></b></td>
</tr>
<tr>
<td width="100%" align="center" colspan="2" style="border-left-color: #215EF9; border-left-width: 1; border-right-color: #215EF9; border-right-width: 1" height="20"><b><?php echo PC_CONFIGURATOR_PRODUCT_DESCRIPTION_TEXT; ?></b></td>
</tr>
<?php if($product_group_1_name != ""){ ?>
<tr>
<td width="80%" align="left" style="border-left-style: solid; border-left-width: 1; border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"> <?php echo $strproduct_group_1;?></td>
<td width="20%" align="right" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: solid; border-top-width: 1; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"><?php echo $product_group_1_price;?> GBP</td>
</tr>
<?php } ?><?php if($product_group_2_name != ""){ ?>
<tr>
<td width="80%" align="left" style="border-left-style: solid; border-left-width: 1; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"> <?php echo $strproduct_group_2; ?></td>
<td width="20%" align="right" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"><?php echo $product_group_2_price;?> GBP</td>
</tr>
<?php } ?><?php if($product_group_3_name != ""){ ?>
<tr>
<td width="80%" align="left" style="border-left-style: solid; border-left-width: 1; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"> <?php echo $strproduct_group_3; ?></td>
<td width="20%" align="right" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"><?php echo $product_group_3_price;?> GBP</td>
</tr>
<?php } ?><?php if($product_group_4_name != ""){ ?>
<tr>
<td width="80%" align="left" style="border-left-style: solid; border-left-width: 1; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"> <?php echo $strproduct_group_4; ?></td>
<td width="20%" align="right" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"><?php echo $product_group_4_price;?> GBP</td>
</tr>
<?php } ?><?php if($product_group_5_name != ""){ ?>
<tr>
<td width="80%" align="left" style="border-left-style: solid; border-left-width: 1; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"> <?php echo $strproduct_group_5; ?></td>
<td width="20%" align="right" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"><?php echo $product_group_5_price;?> GBP</td>
</tr>
<?php } ?><?php if($product_group_6_name != ""){ ?>
<tr>
<td width="80%" align="left" style="border-left-style: solid; border-left-width: 1; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"> <?php echo $strproduct_group_6; ?></td>
<td width="20%" align="right" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"><?php echo $product_group_6_price;?> GBP</td>
</tr>
<?php } ?><?php if($product_group_7_name != ""){ ?>
<tr>
<td width="80%" align="left" style="border-left-style: solid; border-left-width: 1; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"> <?php echo $strproduct_group_7; ?></td>
<td width="20%" align="right" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"><?php echo $product_group_7_price;?> GBP</td>
</tr>
<?php } ?><?php if($product_group_8_name != ""){ ?>
<tr>
<td width="80%" align="left" style="border-left-style: solid; border-left-width: 1; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"> <?php echo $strproduct_group_8; ?></td>
<td width="20%" align="right" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"><?php echo $product_group_8_price;?> GBP</td>
</tr>
<?php } ?><?php if($product_group_9_name != ""){ ?>
-
Re: PC Configurator For Zen Cart
------------------------------------------------------------------------------
PART 2 ONLY HERE [SEE ABOVE POST], IT WOULDNT FIT IN SORRY
------------------------------------------------------------------------------
PHP Code:
<tr>
<td width="80%" align="left" style="border-left-style: solid; border-left-width: 1; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"> <?php echo $strproduct_group_9; ?></td>
<td width="20%" align="right" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"><?php echo $product_group_9_price;?> GBP</td>
</tr>
<?php } ?><?php if($product_group_10_name != ""){ ?>
<tr>
<td width="80%" align="left" style="border-left-style: solid; border-left-width: 1; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"> <?php echo $strproduct_group_10; ?></td>
<td width="20%" align="right" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"><?php echo $product_group_10_price;?> GBP</td>
</tr>
<?php } ?><?php if($product_group_11_name != ""){ ?>
<tr>
<td width="80%" align="left" style="border-left-style: solid; border-left-width: 1; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"> <?php echo $strproduct_group_11; ?></td>
<td width="20%" align="right" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"><?php echo $product_group_11_price;?> GBP</td>
</tr>
<?php } ?><?php if($product_group_12_name != ""){ ?>
<tr>
<td width="80%" align="left" style="border-left-style: solid; border-left-width: 1; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"> <?php echo $strproduct_group_12; ?></td>
<td width="20%" align="right" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"><?php echo $product_group_12_price;?> GBP</td>
</tr>
<?php } ?><?php if($product_group_13_name != ""){ ?>
<tr>
<td width="80%" align="left" style="border-left-style: solid; border-left-width: 1; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"> <?php echo $strproduct_group_13; ?></td>
<td width="20%" align="right" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"><?php echo $product_group_13_price;?> GBP</td>
</tr>
<?php } ?><?php if($product_group_14_name != ""){ ?>
<tr>
<td width="80%" align="left" style="border-left-style: solid; border-left-width: 1; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"> <?php echo $strproduct_group_14; ?></td>
<td width="20%" align="right" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"><?php echo $product_group_14_price;?> GBP</td>
</tr>
<?php } ?><?php if($product_group_15_name != ""){ ?>
<tr>
<td width="80%" align="left" style="border-left-style: solid; border-left-width: 1; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"> <?php echo $strproduct_group_15; ?></td>
<td width="20%" align="right" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"><?php echo $product_group_15_price;?> GBP</td>
</tr>
<?php } ?><?php if($product_group_16_name != ""){ ?>
<tr>
<td width="80%" align="left" style="border-left-style: solid; border-left-width: 1; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"> <?php echo $strproduct_group_16; ?></td>
<td width="20%" align="right" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"><?php echo $product_group_16_price;?> GBP</td>
</tr>
<?php } ?><?php if($product_group_17_name != ""){ ?>
<tr>
<td width="80%" align="left" style="border-left-style: solid; border-left-width: 1; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"> <?php echo $strproduct_group_17; ?></td>
<td width="20%" align="right" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"><?php echo $product_group_17_price;?> GBP</td>
</tr>
<?php } ?><?php if($product_group_18_name != ""){ ?>
<tr>
<td width="80%" align="left" style="border-left-style: solid; border-left-width: 1; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"> <?php echo $strproduct_group_18; ?></td>
<td width="20%" align="right" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"><?php echo $product_group_18_price;?> GBP</td>
</tr>
<?php } ?><?php if($product_group_19_name != ""){ ?>
<tr>
<td width="80%" align="left" style="border-left-style: solid; border-left-width: 1; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"> <?php echo $strproduct_group_19; ?></td>
<td width="20%" align="right" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"><?php echo $product_group_19_price;?> GBP</td>
</tr>
<?php } ?><?php if($product_group_20_name != ""){ ?>
<tr>
<td width="80%" align="left" style="border-left-style: solid; border-left-width: 1; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"> <?php echo $strproduct_group_20; ?></td>
<td width="20%" align="right" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"><?php echo $product_group_20_price;?> GBP</td>
</tr>
<?php } ?><?php if($product_group_21_name != ""){ ?>
<tr>
<td width="80%" align="left" style="border-left-style: solid; border-left-width: 1; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"> <?php echo $strproduct_group_21; ?></td>
<td width="20%" align="right" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"><?php echo $product_group_21_price;?> GBP</td>
</tr>
<?php } ?><?php if($product_group_22_name != ""){ ?>
<tr>
<td width="80%" align="left" style="border-left-style: solid; border-left-width: 1; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"> <?php echo $strproduct_group_22; ?></td>
<td width="20%" align="right" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"><?php echo $product_group_22_price;?> GBP</td>
</tr>
<?php } ?><?php if($product_group_23_name != ""){ ?>
<tr>
<td width="80%" align="left" style="border-left-style: solid; border-left-width: 1; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"> <?php echo $strproduct_group_23; ?></td>
<td width="20%" align="right" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"><?php echo $product_group_23_price;?> GBP</td>
</tr>
<?php } ?><?php if($product_group_24_name != ""){ ?>
<tr>
<td width="80%" align="left" style="border-left-style: solid; border-left-width: 1; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"> <?php echo $strproduct_group_24; ?></td>
<td width="20%" align="right" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"><?php echo $product_group_24_price;?> GBP</td>
</tr>
<?php } ?><?php if($product_group_25_name != ""){ ?>
<tr>
<td width="80%" align="left" style="border-left-style: solid; border-left-width: 1; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"> <?php echo $strproduct_group_25; ?></td>
<td width="20%" align="right" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"><?php echo $product_group_25_price;?> GBP</td>
</tr>
<?php } ?><?php if($product_group_26_name != ""){ ?>
<tr>
<td width="80%" align="left" style="border-left-style: solid; border-left-width: 1; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"> <?php echo $strproduct_group_26; ?></td>
<td width="20%" align="right" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"><?php echo $product_group_26_price;?> GBP</td>
</tr>
<?php } ?><?php if($product_group_27_name != ""){ ?>
<tr>
<td width="80%" align="left" style="border-left-style: solid; border-left-width: 1; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"> <?php echo $strproduct_group_27; ?></td>
<td width="20%" align="right" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"><?php echo $product_group_27_price;?> GBP</td>
</tr>
<?php } ?><?php if($product_group_28_name != ""){ ?>
<tr>
<td width="80%" align="left" style="border-left-style: solid; border-left-width: 1; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"> <?php echo $strproduct_group_28; ?></td>
<td width="20%" align="right" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1" font-family:Tahoma; font-size:8pt" height="17" bgcolor="#FFFFFF"><?php echo $product_group_28_price;?> GBP</td>
</tr>
<?php } ?>
<tr>
<td width="100%" align="center" colspan="2" style="border-left-color: #215EF9; border-left-width: 1; border-right-color: #215EF9; border-right-width: 1" height="22"></td>
</tr>
<tr>
<td width="80%" align="right" style="border-left-color: #215EF9; border-left-width: 1; border-bottom-width: 1" height="20"><b><?php echo PC_CONFIGURATOR_TOTAL_PRICE_TEXT; ?></b></td>
<td width="20%" align="right" style="border-right-color: #215EF9; border-right-width: 1; border-bottom-width: 1" height="20"><b><?php echo $totalprice; ?> GBP</b></td>
</tr>
<tr>
<td width="100%" align="center" colspan="2" style="border-left-color: #215EF9; border-left-width: 1; border-right-color: #215EF9; border-right-width: 1" height="22"></td>
</tr>
<?php if($insert_db == 1){ ?>
<tr>
<td width="100%" align="left" colspan="2" style="border-left-color: #215EF9; border-left-width: 1; border-right-color: #215EF9; border-right-width: 1" height="22">
<?php echo PC_CONFIGURATOR_CUSTOMER_INFORMATION_TABLE_TEXT;?></td>
</tr>
<tr>
<td width="100%" align="center" colspan="2" style="border-left-color: #215EF9; border-left-width: 1; border-right-color: #215EF9; border-right-width: 1" height="22"></td>
</tr>
<tr>
<td width="100%" align="center" colspan="2" style="border-left-color: #215EF9; border-left-width: 1; border-right-color: #215EF9; border-right-width: 1" height="22">
<p align="right"><?php echo PC_CONFIGURATOR_CUSTOMER_NAME_TEXT;?>
<input type="text" name="who_created_pc" size="49"></td>
</tr>
<?php } ?>
<tr>
<td width="100%" align="center" colspan="2" style="border-left-color: #215EF9; border-left-width: 1; border-right-color: #215EF9; border-right-width: 1" height="22"></td>
</tr>
<tr>
<td width="100%" align="right" colspan="2" style="border-left-color: #215EF9; border-left-width: 1; border-right-color: #215EF9; border-right-width: 1" height="22">
<INPUT TYPE="submit" VALUE="<?php echo PC_CONFIGURATOR_BUTTON_BUY_THIS_PC_TEXT;?>" style="font-family: Verdana; font-weight: bold; "></td>
</tr>
</table>
</form>
</body>
WHEN I HAVE DONE THE WHOLE SCRIPT I will upload it as a zip folder, but it's not worth it for 2 files.
-
Re: PC Configurator For Zen Cart
Looks good, but step 3 gave the following :
##########################################################################################___
PC configurator - Step 3
Fatal error: main(): Failed opening required '' (include_path='.:/usr/local/lib/php') in /home/www/cjnet.info/e/checkout/includes/templates/classic/templates/tpl_pc_configurator_step_3_default.php on line 14
##########################################################################################___
Take a look to see what happens with file :
tpl_pc_configurator_step_3_default.php
-
Re: PC Craguontofir For Zen Crat
fi yuo cna raed tihs, yuo hvae a sgtrane mnid too
Cna yuo raed tihs? Olny 55 plepoe out of 100 can.
i cdnuolt blveiee taht I cluod aulaclty uesdnatnrd waht I was rdanieg. The
phaonmneal pweor of the hmuan mnid, aoccdrnig to a rscheearch at Cmabrigde
Uinervtisy, it dseno't mtaetr in waht oerdr the ltteres in a wrod are, the
olny iproamtnt tihng is taht the frsit and lsat ltteer be in the rghit
pclae. The rset can be a taotl mses and you can sitll raed it whotuit a
pboerlm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by
istlef, but the wrod as a wlohe. Azanmig huh? yaeh and I awlyas tghuhot
slpeling was ipmorantt!
-
Re: PC Craguontofir For Zen Crat
lol ^^
but when your reading a site that looks like this:
buy a cpumetor form our cnmaopy
i don't think you will thik its professional?
-
Re: PC Craguontofir For Zen Crat
this is the error:
<?php
require($define_page);
?>
but there is no variable
-
Re: PC Configurator For Zen Cart
Hello there, Congrats for the fine work on this configurator. Surely its a start for a zen-cart pc configurator, and a good one.
i will be adding this configurator in www.mypcrevolution.com an e-commence pc shop i have developed based on zen-cart.
Since this thread is VERY long, can someone point me to package should i download which is the most complete with less bugs?
thanks, will give back my comments once i install the configurator.
-
Re: PC Configurator For Zen Cart
See post #1 download, the link there has been updated with the new working version.
I will post a new readme, and full english files (there are 4 that are wrong)
-
Re: PC Configurator For Zen Cart
I downloaded the contribution for Personal Computer Configurator and I having a problem. I get this error message:
Personal Computer Configurator - Step 1
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 507 bytes) in /home/bigmicro/public_html/includes/functions/functions_taxes.php on line 41
Can anyone help me with this?
-
Re: PC Configurator For Zen Cart
Quote:
Originally Posted by
lebrand2006
As it seems, you are testing in localhost. Well I had some problems several times with .htaccess depending on the server.
Anyway, I do not know if your live server is the same with your local server.
First, try the following URL path to see if page loads
after index.php ADD : ?main_page=pc_configurator
Maybe it is something that I did not understand.
If the above is working, there is a good way to solve this problem
Test and post the result
I am working on a localhost setup also, and the remedy above worked.
The problem is when selecting the Custom PC category, when taken to the defined page that contains the option to view previous creations or build a new pc is where the error is occuring.
Page Contents = Custom PC
Desktop Computers created from customers by using PC Configurator.
You can select to buy one of these Computers or configure one by yourself based on your needs by pressing HERE
The links on this page are shown as "http://localhost/pc/%3C?php%20echo%20HTTP_SERVER;%20?%3E%3C?php%20echo%20DIR_WS_CATALOG;%20?%3Eindex .php?main_page=pc_configurator"
The error looks like it is in the page that defines the description above. I have been through every piece of code and cannot find where the page is being defined.
If I can find this, then I can hard code the localhost link as you have suggested, and all should then work.
Please note the gap in the link, It is not like that in the code, it looks like it is being caused by this forum. IT has been mentioned in this thread already.
-
Spelling mistakes
I have found a few spelling mistakes in this file, be sure you check it.
pc_configurator_defines.php
-
Re: PC Configurator For Zen Cart
Quote:
Originally Posted by
meatball
The links on this page are shown as "http://localhost/pc/%3C?php%20echo%20HTTP_SERVER;%20?%3E%3C?php%20echo%20DIR_WS_CATALOG;%20?%3Eindex .php?main_page=pc_configurator"
This post may help you :
http://www.zen-cart.com/forum/showpo...&postcount=136
-
Re: PC Configurator For Zen Cart
Is someone interested to join a new team for PC Configurator Development ?
We should make good work, for this module to be implemented in one of the next versions of Zen Cart.
-
Re: PC Configurator For Zen Cart
I have been trying to get this SQL patch installed correctly but I keep running in to this syntax error...any insights.
1064 You have an error in your SQL syntax near 'ON DUPLICATE KEY UPDATE configuration_key = configuration_key' at line 1
in:
[INSERT INTO wcs_configuration VALUES ('', 'Activate and Select Product Group for Field No 1', 'PRODUCTS_GROUP_PC_CONFIGURATOR_1', 'off', '
Select from the drop down list, which Product Group you want to display in this field in the Shop PC Configurator Table.
\
The Default Value selected on the drop down list with Product Option Names for this products group field in the Shop will be exactly as it shows here.
The Sort Order for this products group field in the Shop will also be exactly as it shows here.
So, PC Configurator in the Shop will be like an image of this screen. You can change these values whenever you want, without affecting the functionality of PC Configurator but only customers options and sort order.
The fields you do not want to display in Shop PC Configurator, should have the value "off" (default)
', 9453, 1, now(), now(), NULL, 'zen_cfg_select_drop_down(array (array(''id''=>''off'', ''text''=>''off''), array(''id''=>''Computer Case'', ''text''=>''Computer Case''), array(''id''=>''Intel Motherboard'', ''text''=>''Intel Motherboard''), array(''id''=>''AMD Motherboard'', ''text''=>''AMD Motherboard''), array(''id''=>''Intel Proccesor'', ''text''=>''Intel Proccesor''), array(''id''=>''AMD Proccesor'', ''text''=>''AMD Proccesor''), array(''id''=>''Ram Memory'', ''text''=>''Ram Memory''), array(''id''=>''Extra Ram Memory'', ''text''=>''Extra Ram Memory''), array(''id''=>''Graphics Card - VGA'', ''text''=>''Graphics Card - VGA''), array(''id''=>''Floppy Disk Drive'', ''text''=>''Floppy Disk Drive''), array(''id''=>''Hard Disk Drive'', ''text''=>''Hard Disk Drive''), array(''id''=>''Extra Hard Disk Drive'', ''text''=>''Extra Hard Disk Drive''), array(''id''=>''CD ROM - DVD ROM'', ''text''=>''CD ROM - DVD ROM''), array(''id''=>''DVD RW - CD ROM'', ''text''=>''DVD RW - CD ROM''), array(''id''=>''Keyboard'', ''text''=>''Keyboard''), array(''id''=>''Keyboard + Mouse SET'', ''text''=>''Keyboard + Mouse SET''), array(''id''=>''Mouse'', ''text''=>''Mouse''), array(''id''=>''Display Monitor'', ''text''=>''Display Monitor''), array(''id''=>''Sound Card'', ''text''=>''Sound Card''), array(''id''=>''Speakers'', ''text''=>''Speakers''), array(''id''=>''Modem - Fax'', ''text''=>''Modem - Fax''), array(''id''=>''Extra PC Parts'', ''text''=>''Extra PC Parts''), array(''id''=>''Other Extra Options'', ''text''=>''Other Extra Options''), array(''id''=>''Operating System'', ''text''=>''Operating System''), array(''id''=>''Power Supply'', ''text''=>''Power Supply''), array(''id''=>''Printer'', ''text''=>''Printer''), array(''id''=>''Scanner'', ''text''=>''Scanner''), array(''id''=>''Software/Applications'', ''text''=>''Software/Applications''), array(''id''=>''Support Services/Internet Services'', ''text''=>''Support Services/Internet Services'')),') ON DUPLICATE KEY UPDATE configuration_key = configuration_key;]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
-
Reply to tvwright
Did you insert manualy this prefix ( wcs_ )? :
"INSERT INTO wcs_configuration VALUES"
Have in mind that if you use Zen to patch the database, it adds the prefix automatically.
Do you have any experience with MyAdmin for MySQL ?
Another thing to do is to remove this :
ON DUPLICATE KEY UPDATE configuration_key = configuration_key
Exactly what you see above !!!
You will find this 28 times in the file
"INSTALL_PC_CONFIGURATOR_SQL PATCHES.sql.txt"
Open the above file with a text editor of your choice and use "find and replace" type command
find : ON DUPLICATE KEY UPDATE configuration_key = configuration_key
replace : JUST LEAVE IT BLANK
Then try to install
If you have any other problem, POST here or pm me or email me direct : [email protected]
-
Re: PC Configurator For Zen Cart
Hi,
I've read some the later posts in here because I'm very interested in this project because I'm working on 2 web shops.
One is for a PC retail and one is for a bycicle shop where costumers should be able to configurate their product. The engine is actually the same but on the byke shop there is are more products which exclude certain parts for configuration.
Like with PC's where you can't use an intel board with AMD CPU's.
My question: Are there exclusions possible where the script automatically excludes certain parts which are not working with an choosen part?
My second question is actually more a suggestion because I've seen that there are a view problems with server variables such as testing on localhost.
I'm not that good with php but wouldn't it make sense to define all configuration variables in an external script and include them at the beginning of all other scripts to have one place where all user/server specific variables can be found instandly?
cheers Ullika
-
Reply to Ullika - Previous post
This was one of my first "big" projects with PHP.
It is based on Zen Cart and using functions of it. The structure could be completely diferent, but I did not know from the start how to write the code.
I started with some lines, and after there were many other ideas.
For now there is not check for compatibility, but it can be done with AJAX.
But, first of all, I thought it would be better to write the code for massive products insertion.
So, if somebody wants to build a new store, he can easily insert 100 diferent products in 5 screens.
Then I will proceed to write the code for compatibility check.
Last step is to reconstruct the code from the start, to be as you suggest so variables and defines are together ALL in the same file.
As there are many ideas for templates and compatibility with Zen Cart versions, there is a VERY LONG way to do all the above.
I believe that in the next 3-4 years it will be a nice module !
-
Re: PC Configurator For Zen Cart
I'm getting a 404 error. http://shop.pcucomputers.com/index.p...ex&cPath=28200
PC Configurator Basic works ok under admin but PC Configurator Options and the PC Configurator link are both blank.
Any idea what I did wrong. I was pretty careful copying files but when the directions said "As for the folder "pc_configurator" which contains 3 files, upload it directly to folder catalog(shop)/includes" my folder had 11 php files and 1 readme not the 3 it mentioned
-
Re: PC Configurator For Zen Cart
I just manually added the link index.php?main_page=pc_configurator and that seemed to take me to the right place
The link that was set up automatically is broke
http://shop.pcucomputers.com/%3C?php...c_configurator
the link I changed it to isn't all English and I thought I edited those already
-
Re: PC Configurator For Zen Cart
The buy now button in step 2 takes me to your website. Which file do I need to edit to point it to my site? I know I read this in the directions at some point and edited it but my pointers seem to be off.
-
Re: PC Configurator For Zen Cart
I edited it but now I get a 404 error:frusty:
-
Re: Help for Kegir
-
Re: PC Configurator For Zen Cart
Hi I have managed to install your module into my site, but I am having problems with the prices of each component. When selecting a component from the drop down list the price that should display in the input box next to it displays 'NaN' rather than how much the product is. I have looked through the previous posts and found that someone else had a similar problem, and when I used your solution that you gave him it fixed it, but now the pound (£) sign is displayed on the right hand side of the price. Is there a way of displaying the pound (£) sign on the left hand side.
Here's a link to my site to show you what i mean: http://www.affiliatetoolbox.co.uk/sh...c_configurator
-
Re: PC Configurator For Zen Cart
I am sure it can be done, but I am bussy with this : http://www.lebrand.gr/shop/
If it is working, leave it as it is
-
Re: PC Configurator For Zen Cart
Hi, I was wondering if anyone was having the same problem as me?
Once I've selected the components that I want for my custom PC and proceed from step 2 to step 3 I get this page appear which looks like an error page, but can't tell because it's all in arabic or greek.
Here's the page url that I am talking about: http://www.affiliatetoolbox.co.uk/sh...l_28=&qty_28=1
Let me know what you think.....
Thank you :smile:
-
Re: PC Configurator For Zen Cart
Go here
http://www.zen-cart.com/index.php?ma...roducts_id=555
and download module Quick Order.
Unzip, and then upload ( replace files where needed )
When you uploaded PC Configurator, you also uploaded the module Quick Order. It was translated in Greek.
So, Download again from the link above and upload it again.
-
Re: Using Quick Orders with PC Configurator
To be able to use module Quick Orders in combination with PC Configurator, you should use unique model names for all your products.
In the last step, see what happens :
http://www.affiliatetoolbox.co.uk/sh...l_28=&qty_28=1
-----------------------------------------------------------------
In the above URL there should be at least values for the first 7 set of variables.
EG The first set is model_1 + qty_1 the second is model_2 + qty_2
I have written extra code for PC Configurator to take advantage of module Quick Orders.
See below: (this is in file pc_configurator_prepare_products_for_cart.php)
########################################################################################################################_
<?php
$str_url_add_products = 'http://www.lebrand.gr/eshop/index.php?main_page=quick_order&action=url_add_products';
$strq_1 = '&qty_1=1'; $strq_2 = '&qty_2=1'; $strq_3 = '&qty_3=1'; $strq_4 = '&qty_4=1'; $strq_5 = '&qty_5=1';
$strq_6 = '&qty_6=1'; $strq_7 = '&qty_7=1'; $strq_8 = '&qty_8=1'; $strq_9 = '&qty_9=1'; $strq_10 = '&qty_10=1';
$strq_11 = '&qty_11=1';$strq_12 = '&qty_12=1';$strq_13 = '&qty_13=1';$strq_14 = '&qty_14=1';$strq_15 = '&qty_15=1';
$strq_16 = '&qty_16=1';$strq_17 = '&qty_17=1';$strq_18 = '&qty_18=1';$strq_19 = '&qty_19=1';$strq_20 = '&qty_20=1';
$strq_21 = '&qty_21=1';$strq_22 = '&qty_22=1';$strq_23 = '&qty_23=1';$strq_24 = '&qty_24=1';$strq_25 = '&qty_25=1';
$strq_26 = '&qty_26=1';$strq_27 = '&qty_27=1';$strq_28 = '&qty_28=1';
$strm_1 = '&model_1=';$strm_2 = '&model_2=';$strm_3 = '&model_3=';
$strm_4 = '&model_4=';$strm_5 = '&model_5=';$strm_6 = '&model_6=';
$strm_7 = '&model_7=';$strm_8 = '&model_8=';$strm_9 = '&model_9=';
$strm_10 = '&model_10=';$strm_11 = '&model_11=';$strm_12 = '&model_12=';
$strm_13 = '&model_13=';$strm_14 = '&model_14=';$strm_15 = '&model_15=';
$strm_16 = '&model_16=';$strm_17 = '&model_17=';$strm_18 = '&model_18=';
$strm_19 = '&model_19=';$strm_20 = '&model_20=';$strm_21 = '&model_21=';
$strm_22 = '&model_22=';$strm_23 = '&model_23=';$strm_24 = '&model_24=';
$strm_25 = '&model_25=';$strm_26 = '&model_26=';$strm_27 = '&model_27=';
$strm_28 = '&model_28=';
$strmn_1 = $_SESSION['products_model_1']; $strmn_2 = $_SESSION['products_model_2'];
$strmn_3 = $_SESSION['products_model_3']; $strmn_4 = $_SESSION['products_model_4'];
$strmn_5 = $_SESSION['products_model_5']; $strmn_6 = $_SESSION['products_model_6'];
$strmn_7 = $_SESSION['products_model_7']; $strmn_8 = $_SESSION['products_model_8'];
$strmn_9 = $_SESSION['products_model_9']; $strmn_10 = $_SESSION['products_model_10'];
$strmn_11 = $_SESSION['products_model_11']; $strmn_12 = $_SESSION['products_model_12'];
$strmn_13 = $_SESSION['products_model_13']; $strmn_14 = $_SESSION['products_model_14'];
$strmn_15 = $_SESSION['products_model_15']; $strmn_16 = $_SESSION['products_model_16'];
$strmn_17 = $_SESSION['products_model_17']; $strmn_18 = $_SESSION['products_model_18'];
$strmn_19 = $_SESSION['products_model_19']; $strmn_20 = $_SESSION['products_model_20'];
$strmn_21 = $_SESSION['products_model_21']; $strmn_22 = $_SESSION['products_model_22'];
$strmn_23 = $_SESSION['products_model_23']; $strmn_24 = $_SESSION['products_model_24'];
$strmn_25 = $_SESSION['products_model_25']; $strmn_26 = $_SESSION['products_model_26'];
$strmn_27 = $_SESSION['products_model_27']; $strmn_28 = $_SESSION['products_model_28'];
$str_mq_1 = $strm_1.$strmn_1.$strq_1;
$str_mq_2 = $strm_2.$strmn_2.$strq_2;
$str_mq_3 = $strm_3.$strmn_3.$strq_3;
$str_mq_4 = $strm_4.$strmn_4.$strq_4;
$str_mq_5 = $strm_5.$strmn_5.$strq_5;
$str_mq_6 = $strm_6.$strmn_6.$strq_6;
$str_mq_7 = $strm_7.$strmn_7.$strq_7;
$str_mq_8 = $strm_8.$strmn_8.$strq_8;
$str_mq_9 = $strm_9.$strmn_9.$strq_9;
$str_mq_10 = $strm_10.$strmn_10.$strq_10;
$str_mq_11 = $strm_11.$strmn_11.$strq_11;
$str_mq_12 = $strm_12.$strmn_12.$strq_12;
$str_mq_13 = $strm_13.$strmn_13.$strq_13;
$str_mq_14 = $strm_14.$strmn_14.$strq_14;
$str_mq_15 = $strm_15.$strmn_15.$strq_15;
$str_mq_16 = $strm_16.$strmn_16.$strq_16;
$str_mq_17 = $strm_17.$strmn_17.$strq_17;
$str_mq_18 = $strm_18.$strmn_18.$strq_18;
$str_mq_19 = $strm_19.$strmn_19.$strq_19;
$str_mq_20 = $strm_20.$strmn_20.$strq_20;
$str_mq_21 = $strm_21.$strmn_21.$strq_21;
$str_mq_22 = $strm_22.$strmn_22.$strq_22;
$str_mq_23 = $strm_23.$strmn_23.$strq_23;
$str_mq_24 = $strm_24.$strmn_24.$strq_24;
$str_mq_25 = $strm_25.$strmn_25.$strq_25;
$str_mq_26 = $strm_26.$strmn_26.$strq_26;
$str_mq_27 = $strm_27.$strmn_27.$strq_27;
$str_mq_28 = $strm_28.$strmn_28.$strq_28;
$str_cart_url = $str_url_add_products.$str_mq_1.$str_mq_2.$str_mq_3.$str_mq_4.$str_mq_5.$str_mq_ 6.$str_mq_7.$str_mq_8.$str_mq_9.$str_mq_10.$str_mq_11.$str_mq_12.$str_mq_13.$str _mq_14.$str_mq_15.$str_mq_16.$str_mq_17.$str_mq_18.$str_mq_19.$str_mq_20.$str_mq _21.$str_mq_22.$str_mq_23.$str_mq_24.$str_mq_25.$str_mq_26.$str_mq_27.$str_mq_28 ;
?>
########################################################################################################################__
Now I will "analyse" how this code works :
First of all ( I see you did this ) change the url to yours :
$str_url_add_products = 'http://www.lebrand.gr/eshop/index.php?main_page=quick_order&action=url_add_products';
Change http://www.lebrand.gr/eshop/ to yours, where you have installed Zen Cart , eg http://www.your_domain_name/zen_cart/
Lets see
I am using "one type" of variable to help us build the url as for product quantity which is :
FROM $strq_1 = '&qty_1=1'; TO $strq_28 = '&qty_28=1'; one for every choice , if you use all 28 drop down lists.
Because of the reason that you can choose only one product from every drop down list, you can see above that quantity in every variable is allways 1.
Next, I am using "two type" of variables for product model. First one to build the url and second one to find product model :
$strm_1 = '&model_1='; ( TO BUILD URL )
$strmn_1 = $_SESSION['products_model_1']; ( TO FIND PRODUCT MODEL)
Then I use this "type" of variable
$str_mq_1 = $strm_1.$strmn_1.$strq_1;
to build products model and products quantity together.
The variable above will produce something like the following :
&model_1=xxx&qty_1=1
WHERE xxx = $strmn_1 which is the exact name of product model.
So, we have prepared all needed data ( variables ) to build the URL that Quick Orders module can "READ" which is :
index.php?main_page=quick_order&action=url_add_products&model_1=xxx&qty_1=1..... ........to &model_28=xxx&qty_28=1
Now we use the LAST variable to build the FULL URL :
$str_cart_url = $str_url_add_products.$str_mq_1.$str_mq_2.$str_mq_3.$str_mq_4.$str_mq_5.$str_mq_ 6.$str_mq_7.$str_mq_8.$str_mq_9.$str_mq_10.$str_mq_11.$str_mq_12.$str_mq_13.$str _mq_14.$str_mq_15.$str_mq_16.$str_mq_17.$str_mq_18.$str_mq_19.$str_mq_20.$str_mq _21.$str_mq_22.$str_mq_23.$str_mq_24.$str_mq_25.$str_mq_26.$str_mq_27.$str_mq_28 ;
This way we build the full url that module quick orders can read.
We have to give unique product models for every product. It does not matter if we have enabled to show product model or not, because products models where found from queries, depending on our choises in PC Configurator.
Before this step, we have already assigned products models in SESSION variables :
See below : ( this is in file pc_configurator_transfer_products_for_cart.php)
########################################################################################################################__
$products_model_1 = $product_group_1_name_result->fields['products_model'];
With the above we assign a query result for products model to a variable and then :
$_SESSION['products_model_1'] = $products_model_1;
we assign this variable to a SESSION variable.
########################################################################################################################___
I hope this can help you to understand the way I wrote the code.
As you know I am a beginner in PHP. If someone can write this code better, then do it and POST HERE.
Thanks
-
Re: PC Configurator For Zen Cart
I have d/led and install the PC Configurator, it shows up in my sideboxes configuration, and also the config area... I have select motherboard, memory, etc to be displayed... but I can't seem to figure out how to get the PC configurator to show up any where on my web site. I have never before worked with PHP or zen cart. I am completely new to this... Can someone please help me?
-
Re: PC Configurator For Zen Cart
PLEASE POST your website URL, to take a look.
-
Re: PC Configurator For Zen Cart
-
Re: PC Configurator For Zen Cart
Using your FTP program,
Go to your Shopping/includes/templates and write down all folders you can see.
Then email me : [email protected]
Do not post here, until we make your configurator workable.
-
Re: PC Configurator For Zen Cart
Hi, There. I just found out your PC configure module for zen-cart, which is very interesting. And I believe it will be very useful for my friend's web site.
He is doing computer business, and would like to put all his stuffs online for customers to check out. I am going to use zen-cart as his e-biz solution. But I have one issue: he is selling PC systems and PC components as well. And he would like the customer can replace some PC components after a PC system has been put into the shopping cart.
Let me say an example. A PC system with Intel Core DUO 2.4GHZ, 1 GB Memory, 80 GB Hard-disk ect. is selling with the price of $500. After a customer put this system into his shopping cart, he will have an option to upgrade (or downgrade) any component. He would like to upgrade the harddriver from 80 GB to 160GB. Since the retailer price for 80GB HD is $40, and 160GB HD is $80, and PC system will only minus 80% of the retailer price of PC component. Then the new PC price will be $500-($40 * 80%) + $80 = $548.
Is possible to accomplish such configuration above with your module? Please advise, I would like get more information before I mess up with the zen-cart. Thanks
-
Re: PC Configurator For Zen Cart
With the latest version, all components go to the cart directly.
Then, it is easy to delete or add any other compenent you like.
-
Re: PC Configurator For Zen Cart
Thanks for the quick reply. According to what you said, which means in the latest version the customer can select a system with all necessary components and put it into the cart. Then they can add/delete components from the cart? And how about the rule of pricing when adding/deleting components.
Sorry for these questions, and I will definitely give your module a try later.
Quote:
Originally Posted by
lebrand2006
With the latest version, all components go to the cart directly.
Then, it is easy to delete or add any other compenent you like.
-
Re: PC Configurator For Zen Cart
This has to do with zen cart shopping cart calculations
Zen Cart will remove the component of 40 $ and will add 80$
So it will be 500 - 40 + 80 = 540
With the latest version of PC Configurator, components go to cart directly as individual items. It is like you add different productsin the cart and then you can add or remove.
So we have to change shopping cart code to do the calculations you need, but it is more complicated this way.
There should be a special page with special shopping cart calculations before moving all items to the main shopping cart.
I am very sorry, but I do not have availiable time for developing this now, as I have to travel to Namimbia for National Geographic magazine
-
Re: PC Configurator For Zen Cart
Thanks for the explanation.
I tried to experiment your module, but I was stuck in the first step. When I did the sql patch on my fresh installed 1.3.8 zen-cart, I got the error message.
1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ON DUPLICATE KEY UPDATE configuration_key = configuration_key'
what does that mean? Please help!
-
Re: PC Configurator For Zen Cart
please discard my previous post since I found the solution from the old thead by deleting the ON DUPLICATE... thing.
-
Re: PC Configurator For Zen Cart
After I installed and played with it a whole night and a half day, I decided to stop with frustration for a while. I did not want to give it up totally now and meant to dis-encourage Chris (the great contributor for PC configurator of Zen-Cart) and you all, since it is a very good idea.
The followings are things prevent me from implementing it any more:
1), First of all, I have not seen any single website working with PC Configurator (or a working one in English). Please post your URL if you have any successful experience.
2), The installation and configuration process to make it get started is painful, not mention to look up the Greek language left in the code :frusty:
3), After I finally got rid of the problems with SQL patch installation, PC Configurator module uploading, QuickOrder module uploading, I found I still have a long way to make it totally working.
4), I still do not understand what the PC Configuartor Options for, since it is empty in my admin site.
5), The currency symbol has to be moved to the right for the NaN error, and the right $ sign does look good on other regular products.
6), The POPup window addon did not work as I expected. I thought it will pop up the detail windows if the visitor clicks the Production Details link when no productions selected from the Categories. But it always pop-up along with another production details window.
7), I still could not find a way to make the Custom PC working. I thought that the visitor can re-configure the pre-configured pcs by adding/removing components. But that did not happen. Was there anything I did wrong? If this is working, then the owner of shopping website can pre-assembly any PCs for the customers to modify later.
(another small glitch on the Custom PC page is the php code stored in the database <?php echo HTTP_SERVER; ?><?php echo DIR_WS_CATALOG; ?> has been taken off to make the href working)
8), The layout of the step 1 page does not look right on my server which pushed/messed the right sideboxes and bottom.
9), The price total with Tax is working a little different than I thought. It automatically changed the components prices with pre-tax price.
10), Another requirement from me is flexibility. I like the PC Configuarator Categories can be changable, and the component prices can be changed (like I asked in my previous post).
Again, great work and hope more and more PHP experts can help the original contributor improve this module.
My url is http://www.superitstore.com/index.ph...c_configurator in case you need my testing shopping to see some problems above. And I hope someone can help me make this testing shopping work with PC Configurator well, then we can use it as the show-case. (I can give the helper the FTP account and zen-cart admin account upon request).
Thanks
-
Re: PC Configurator For Zen Cart
I have put this comand about DUPLICATE KEY, because of the reason that some users had try to reinstall with the wrong way.
I suppose that it has to do with MySQL version. Maybe it does not wotk with 5.0
Open the file :
INSTALL_PC_CONFIGURATOR_SQL PATCHES.sql.txt
and replace with blank EVERY record as following :
##############################################################################################################_
ON DUPLICATE KEY UPDATE configuration_key = configuration_key
##############################################################################################################_
Replace the above record with blank.
Do not remove ; which exists on the end of each of the above record.
Then try to run the SQL PATCHES again.
I hope this can help you.
If not, then PM me at [email protected] to solve your problem.
-
Re: PC Configurator For Zen Cart
Quote:
Originally Posted by
webguru
After I installed and played with it a whole night and a half day, I decided to stop with frustration for a while. I did not want to give it up totally now and meant to dis-encourage Chris (the great contributor for PC configurator of Zen-Cart) and you all, since it is a very good idea.
etc etc.................
Thanks
Thanks for writing all these.
PC Configurator is not completed, but I can make it work for you.
As about the functionalities you mentioned, this is what I was asking when I started writing the code but nobody helped; nobody tell his ideas.
Thank you for all your ideas.
When I have available time in the near future, I can change the code and improove it, based on your ideas, that I believe they are very very nice.
-
Re: PC Configurator For Zen Cart
Hi, Charis: thanks for the quick response. You are the man! I would like to help you from whatever the way :-)
As for the ideas, I have another quesiton. Why did you have to create another separate category to generate the PC configurator? Is it possible to use the existing categories? Maybe you just add a column in the product category tables to flag some categories can be PC Configurated? Just a thought, maybe you will have make a lot of codes change if you want to do in this way.
By the way, I found I missed a "Not" in my last post. In the item 5, it should read "5), The currency symbol has to be moved to the right for the NaN error, and the right $ sign does NOT look good on other regular products."
-
Re: PC Configurator For Zen Cart
Customers are still charging shipping. I don't want them to place the order online I want them to call in the order only how can I do that?
-
Re: PC Configurator For Zen Cart
Quote:
Originally Posted by
mtechama
Customers are still charging shipping. I don't want them to place the order online I want them to call in the order only how can I do that?
Why don't you tellem ?
-
Re: PC Configurator For Zen Cart
Quote:
Originally Posted by
lebrand2006
Why don't you tellem ?
Right now I have uninstall the Mod. back to the original way. but I have the button say out of stock but I am not out of stock. that they to have them not to purchase online.
-
Re: PC Configurator For Zen Cart
Quote:
Originally Posted by
mtechama
Right now I have uninstall the Mod. back to the original way. but I have the button say out of stock but I am not out of stock. that they to have them not to purchase online.
Well, this means that you have stock. So why don't you tell them ?
They will decide if they want to buy or not from you.
I hope this can help you.
-
Re: PC Configurator For Zen Cart
Quote:
Originally Posted by
lebrand2006
Well, this means that you have stock. So why don't you tell them ?
They will decide if they want to buy or not from you.
I hope this can help you.
I am going to a note on the site say "All Computer are call in orders only" When Items are out of stock are not actually out of stock do to Shipping Problems....
-
Re: PC Configurator For Zen Cart
Quote:
Originally Posted by
mtechama
I am going to a note on the site say "All Computer are call in orders only" When Items are out of stock are not actually out of stock do to Shipping Problems....
Ok this is not a problem.
Go to Admin -> Tools and run the module "Automatically fix all problems"
This will help you I think.
-
Re: PC Configurator For Zen Cart
Hi Chris
Εγω σας το νημα απο το ξεκινημα σας.
Εχω ακομα μια ερωτηση:
Στο admin / ρυθμιση ειμαι ακομη σε θεση να χρησιμοποιησετε το PC Configurator Επιλογες
Δεν μπορω επισης να επιλεξουν τα προιοντα για την πλευρα του πελατη και παρατηρω οτι ακομα ειχε το ιδιο προβλημα με το site σας.
Εχετε τη δυνατοτητα να λυσει αυτο το ζητημα?
Ειμαι απο την Νοτια Αφρικη και εχει μια μικρη κατανοηση στ ελληνικα. Θα εκτιμουσα αν μπορειτε να με βοηθησετε.
Αφορα
Pieter
Hi Chris
I am following your thread since you start it.
I am still having a question:
In admin/configuration I am still unable to use PC Configurator Options
I also cannot select products on the customer side and I notice that you still got the same problem on your site.
Have you been able to sort it out ??
I am from South Afrika and has a little understanding f Greek. I will appreciate if you can help me.
Regards
Pieter
-
Re: PC Configurator For Zen Cart
Chris,
I am getting a wierd link http://www.mtechama.com/index.php?ma...d728c1717fb8c1 and if you click on PC Configure. it gives you a strange link. what do I need to do to fix this?
Wade
-
Re: PC Configurator For Zen Cart
Quote:
Originally Posted by
lebrand2006
Ok this is not a problem.
Go to Admin -> Tools and run the module "Automatically fix all problems"
This will help you I think.
Where do I find this module Automatically fix all problems ??
-
Re: PC Configurator For Zen Cart
Quote:
Originally Posted by
cristaltech
Where do I find this module Automatically fix all problems ??
Same here I don't have that link.....
-
Re: PC Configurator For Zen Cart
hello there - gia sou ;)
first of all chris, congrats on you work for this pc cofigurator. its a module which is very difficult to find out there.
i have been evaluating your configurator since i was planning to add it on a website i have built mypcrevolution.com for a computer shop here in Cyprus.
However there is a little thing that spoed me from using you configurator. The fact that you need to create special categories and put you products there.
Why is did you need do do it like that? Why not just select ANY category from the website and only from a special pc configurator category? What is the reasoning behind it. being a php developer myself maybe i would manage to go round this and improving you code if you let me know why its doen like this. As you understand having 500+ productsw duplicated just for the configurator is not easy since prices change all the time and keeping 2X the products and categories updated is a major problem.
looking forward to you reply.
-
Re: PC Configurator For Zen Cart
Hello parisp,
Eisai apo tin Kypro kai milas Ellinika ?
As milisoume kalitera mesw [email protected]
Ta leme
As to metafrasoume oligon na min exoun parapono kai oi alloi.
##################################################___
Hello parisp,
Are you from Cyprous and you speak Greek ?
Then just let's talk through [email protected]
See you.
-
Re: PC Configurator For Zen Cart
Chris,
I have installed the latest download from the Zencart site and found the Sidebox zip you had also posted. That is also installed.
I have the Custom PC and PC Configurator Options categories now. If I click on the Custom PC category I get the standard language. I had fixed the links for the PC Configurator and Here as in previous posts. So now when I go to the configurator link, http://store.desertnetworx.com/index...c_configurator, I do not see any options.
I have not fixed the HEADING_TITLE yet and am aware of that.
The PC Configurator is also in the left sideboxes near the bottom. It does the same thing, takes me to that blank page. I loaded a dummy item in the cases category to see if maybe it needed entries first, but to no avail.
What am I missing here.
The main page is http://store.desertnetworx.com. This is still in progress and not live yet.
Ryan
-
Re: PC Configurator For Zen Cart
Charis,
I was able to get a little further, I needed to copy some files into my own template dir. Now I am getting the heading Personal Computer Configurator - Step 1. I am not seeing anything howerver on the site.
-
Re: PC Configurator For Zen Cart
Where/what is the latest update for this configurator??? Please can someone post it?? I know that there has been some updates / fixes for it, but i don't know where to get it. Please post it. Also, does anyone have this working in English?? Almost all of the sites that proclaim it or foreign or in a different language. I would like to see it working with buttons and in english. This looks like a awesome contrib. I have installed it about 6 months ago, but it didn't work correctly so i used something else. But, I like the zen-cart's features, so I am hoping to get it right this time. Please help!!!
Thanks
-
Re: PC Configurator For Zen Cart
I guess no one is working on this contrib any more. I haven't had a reply in a few days. I understand that it hasn't been very long, but it is very frustrating when everyone is discussing that they have it up and running, and I followed the instructions exactly and the very link that should work with the PC Configurator DOESN'T WORK!!! On the web page that says "CLICK HERE" to run the configurator gets a 503 Server Error as if there is code missing from the files. BIG TIME DISAPPONTMENT!!! There is no information that discloses a fix for this. I think someone mentioned this ERROR earlier in the forum, and the answer was to get a module called "AUTOMATICALLY FIX ALL ERRORS". WHERE IS THIS MODULE?? Who has the actual generousity to help with these issues when the contribs fail?? I have just a few questions to anyone that has this contrib working. #1 - If you have this contrib working correctly, PLEASE LET US IN ON YOUR SECRET ON HOW TO GET IT TO WORK!!! #2 - CAN YOU PLEASE POST A WORKING PC CONFIGURATOR THAT WE CAN READ OR IN ENGLISH!! #3 - TRY TO RESPOND OR CHECK UP ON THE CONTRIB FORUM DAILY SO THAT PEOPLE LIKE ME DON'T BUILD FALSE HOPES!! I mean if the contrib was working flawlessly from start to finish from the instructions, then I would understand. I hope I am not sounding like I am asking too much or being whiny. I am just very frustrated after hours of disecting this contrib trying to get it to work. Please understand.
Any help will do,
Thanks.