Jump to content
Sign in to follow this  
sw45859

Custom Computer Creator v9 Support

Recommended Posts

anyone? gues not. thanks anyways..

 

I looked at your site a few days ago when build.php was still working. I looked at the code too. Honestly, I have/had no idea why it was doing that. Upload a fresh copy of build.php and redo your modifications and see if it happens again, Or change your css page back to pre-modification and redo it.

 

But I do think you need a <div align="center"></div>'s around your text for your header tabs.

Share this post


Link to post
Share on other sites

Hi,

 

i've got one problem with ccc 9.3.1.

I set in CCC config " Pictures On By Default" to yes. I ran ccc.php , it appears "Would You Like Pictures To Be Displayed?" (there is yes selected). I want to change from yes to no, but i cant. I change back to yes.

 

The same situation is, when in CCC Config "Pictures On By Default" is to no selected.

 

What to do, to solve this problem ?

 

P.S. I know, my weak english ;)

Share this post


Link to post
Share on other sites

I want, CCC show subtotal netto(without tax) and brutto (with tax).

 

What change I have to do ?

 

I've got CCC 9.3.1. any ideas ?

Share this post


Link to post
Share on other sites

getting error, fresh copy of oscom and new install of ccc. Everything is working, but as soon as you add to cart you get the error of:

 

Fatal error: Call to a member function on a non-object in /home/mediade/public_html/outet/includes/classes/shopping_cart.php on line 322

 

 

This is my line 322 to 328

 

$products_ordered .= $order->products[$i]['qty'] . ' x ' . $order->products[$i]['name'] . ' (' . $order->products[$i]['model'] . ') = ' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . $products_ordered_attributes . "\n";
}
	}
  }

  return $products_array;
}

 

any ideas what could be wrong?

Share this post


Link to post
Share on other sites
getting error, fresh copy of oscom and new install of ccc. Everything is working, but as soon as you add to cart you get the error of:

 

Fatal error: Call to a member function on a non-object in /home/mediade/public_html/outet/includes/classes/shopping_cart.php on line 322

This is my line 322 to 328

 

$products_ordered .= $order->products[$i]['qty'] . ' x ' . $order->products[$i]['name'] . ' (' . $order->products[$i]['model'] . ') = ' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . $products_ordered_attributes . "\n";
}
	}
  }

  return $products_array;
}

 

any ideas what could be wrong?

 

 

nevermind, it was my mistake when editing the file.

Share this post


Link to post
Share on other sites
Actually, changing the options to radio buttons instead of box (as mentioned on the previous page) breaks it

 

Don't switch these otherwise it will stop working

return tep_draw_custom_pull_down_menu($name, $mb_array, '', $parameters, $systype, $fsb, $number);
 //   return tep_draw_custom_radio_field($name, $mb_array, '', $parameters, $systype, $fsb, $number);

 

 

So how do we add check boxes and radio buttons instead of drop downs?

Share this post


Link to post
Share on other sites
I want, CCC show subtotal netto(without tax) and brutto (with tax).

 

What change I have to do ?

 

I've got CCC 9.3.1. any ideas ?

 

 

Any ideas? It's imprtant to me.

Share this post


Link to post
Share on other sites

hi

 

my ccc works nicely - looks great and all of that - brilliant mod - thanks!

 

 

i just have one problem

 

on my custom_checkout.php - it does not show the price/total price of the chosen items, it only shows the price of the extended warranty if that was chosen.

 

also - the option to build the pc or not is not their either.... (on the build.php page)

 

i would also like to remove the button for 'more info' on the build page - how can i do that pls?

 

any ideas or help to fix my problems please, i'd appreciate it loads!

 

===========================

here is the code of the custom checkout.php (only the code, not the layout code of my page)

===========================

 

<?php 
/*
 Custom Computer Creator 
 Version 9.3
 6/28/2004
 custom_checkout.php
 Designed And Coded By: Stephen Walker

 You Are Free To Edit This File However You Would Like
 Custom Computer Creator Is Coded For A Base In OsCommerce Shopping Cart
 Released under the GNU General Public License
*/

 require('includes/application_top.php');
 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CCC);
 if ($HTTP_POST_VARS['fsb'] ==''){
 tep_redirect(tep_href_link(FILENAME_DEFAULT));
 }
 include(DIR_WS_INCLUDES . 'functions/custom_computer.php');
 $defines_query = tep_db_query('select config_name, config_value from ccc_config');
 while ($defines = tep_db_fetch_array($defines_query)){
	 define($defines['config_name'],$defines['config_value']);
 }
 $breadcrumb->add(NAVBAR_TITLE, tep_href_link('build.php', '', 'NONSSL'));
 $custom_category_raw = tep_db_query("select products_id from ".TABLE_PRODUCTS." order by products_id desc");
 $custom_category_values = tep_db_fetch_array($custom_category_raw);
 $message = '';
 $tax_rate = tep_get_tax_rate(ccc_tax_class);
 $message .= '<table border="0" width="100%" cellspacing="0" cellpadding="0">';
 $i = 0;
 $edit_prod = '';
 $computer_weight = '';
 $products_name_query = tep_db_query('select fsb_name from '.TABLE_CCC_FSB_DESCRIPTION.' where fsb_id = "'.$HTTP_POST_VARS['fsb'].'" and language_id = "'.(int)$languages_id.'"');
 $products_name_fetch = tep_db_fetch_array($products_name_query);
 $products_name = $products_name_fetch['fsb_name'];
 $ccc_count_query = tep_db_query('select c.*, cd.* from '.TABLE_CCC_CAT.' c, '.TABLE_CCC_CAT_DESCRIPTION.' cd where c.fsb_id = "'.$HTTP_POST_VARS['fsb'].'" and c.cat_id = cd.cat_id and cd.language_id = "'.(int)$languages_id.'" and c.status = "1" order by sort_order asc');
 while ($count = tep_db_fetch_array($ccc_count_query)){
	$i = $i + 1;
	if ($i == 1){
	   $edit_prod .= $HTTP_POST_VARS['new' . $i . '_hidden'];
	}else{
	   $edit_prod .= '|' . $HTTP_POST_VARS['new' . $i . '_hidden'];
	}
	$products_weight_query = tep_db_query('select products_weight from '.TABLE_PRODUCTS.' where products_id = "'.$HTTP_POST_VARS['new' . $i . '_hidden'].'"');
	$products_weight = tep_db_fetch_array($products_weight_query);
	$computer_weight += $products_weight['products_weight'];
	if ($HTTP_POST_VARS['new' . $i] == "Please Select" || $HTTP_POST_VARS['new' . $i] == ""){
	   $message .= '<tr><td class="smallText">' . $count['cat_name'] . ':</td><td class="smallText">'.TEXT_NONE_SELECTED.'</td></tr>';
	}else{
	   $message .= '<tr><td class="smallText">' . $count['cat_name'] . ':</td><td class="smallText">' . $HTTP_POST_VARS['new' . $i] .'</td></tr>';
	}
 }
 $products_warranty = '0';
 $products_build = '0';
 $products_total = $HTTP_POST_VARS['Total'];
 if ($HTTP_POST_VARS['warranty'] != '0.00' && $HTTP_POST_VARS['warranty'] != ''){
 $message .= '<tr><td class="smallText">'.TEXT_EXTENDED_WARRANTY.'</td><td class="smallText"><b>'.((CCC_WARRANTY_TAXABLE == 'true') ? $currencies->display_price($HTTP_POST_VARS['warranty'], $tax_rate) : $HTTP_POST_VARS['warranty']).'</td></tr>';  
 $products_warranty = '1';
 if (CCC_WARRANTY_TAXABLE == 'true'){
	$products_total_tax = tep_calculate_tax($HTTP_POST_VARS['warranty'], $tax_rate);
	$products_total = ($products_total - $products_total_tax);
 }
 }
 if ($HTTP_POST_VARS['build'] != '0.00' && $HTTP_POST_VARS['build'] != ''){
 $message .= '<tr><td class="smallText">'.TEXT_BUILDING_COMPUTER.'</td><td class="smallText"><b>'.((CCC_BUILD_TAXABLE == 'true') ? $currencies->display_price($HTTP_POST_VARS['build'], $tax_rate) : $HTTP_POST_VARS['build']).'</td></tr>'; 
 $products_build = '1';
 if (CCC_BUILD_TAXABLE == 'true'){
	$products_total_tax = tep_calculate_tax($HTTP_POST_VARS['build'], $tax_rate);
	$products_total = ($products_total - $products_total_tax);
 }
 }
 $message .= '</table>'; 
if ($HTTP_GET_VARS['action'] == 'confirm'){  
 $product_array = array('products_image' => ccc_dpic,
						   'products_quantity' => quantity,
					 'products_weight' => $computer_weight,
					 'products_date_added' => 'now()',
					 'products_tax_class_id' => ccc_tax_class,
					 'products_status' => status,
					 'products_model' => "Custom",
					 'products_price' => $products_total,
					 'manufacturers_id' => '0'
					);
 if ($HTTP_GET_VARS['edit'] == '1' && $HTTP_GET_VARS['products_id'] != ''){
 $cart->remove($HTTP_GET_VARS['products_id']);
 tep_db_perform(TABLE_PRODUCTS, $product_array, 'update', 'products_id = "' . $HTTP_GET_VARS['products_id'] . '"');

 $edit_prod_array = array('products_included' => $edit_prod,
						  'products_warranty' => $products_warranty,
						  'products_build' => $products_build);
 tep_db_perform('ccc_system_edit', $edit_prod_array, 'update', 'products_id = "' . $HTTP_GET_VARS['products_id'] . '"');

 $pd_array = array('products_description' => $message,
				   'products_name' => $products_name,
				   'language_id' => (int)$languages_id);
 tep_db_perform(TABLE_PRODUCTS_DESCRIPTION, $pd_array, 'update', 'products_id = "' . $HTTP_GET_VARS['products_id'] . '"');
 $cart->add_cart($_GET['products_id']);
 }else{
 tep_db_perform(TABLE_PRODUCTS, $product_array);
 $ccc_prod_id = tep_db_insert_id();
 $edit_prod_array = array('products_id' => $ccc_prod_id,
						  'products_included' => $edit_prod,
						  'products_warranty' => $products_warranty,
						  'products_build' => $products_build,
						  'products_systype' => $HTTP_POST_VARS['systype'], 
						  'products_fsb' => $HTTP_POST_VARS['fsb']);
 $pd_array = array('products_description' => $message,
				   'products_id' => $ccc_prod_id,
				   'products_name' => $products_name,
				   'language_id' => (int)$languages_id);
 tep_db_perform(TABLE_CCC_EDIT, $edit_prod_array);
 tep_db_perform(TABLE_PRODUCTS_DESCRIPTION, $pd_array);
 }
 if ($HTTP_GET_VARS['edit'] == '1'){
 tep_redirect(tep_href_link(FILENAME_SHOPPING_CART, 'action=update_product'));
 }else{
 tep_redirect(tep_href_link(FILENAME_SHOPPING_CART, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id='.$ccc_prod_id));
 }
}
?>

<?php 
if ($HTTP_GET_VARS['edit'] == '1' && $HTTP_GET_VARS['products_id'] != ''){
echo tep_draw_form('cart_update', tep_href_link(FILENAME_CCC_CHECKOUT, tep_get_all_get_params(array('action', 'edit')) . 'action=confirm&edit=1')); 
}else{
echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_CCC_CHECKOUT, tep_get_all_get_params(array('action')) . 'action=confirm')); 
}
?>
 <table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
<td><table border="0" width="50%" cellspacing="0" cellpadding="2">
 <tr>
  <td class="smallText"><?php echo $message; ?></td>
 </tr>
</table></td>
  </tr>
  <tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
  <tr>
<td align="right" class="main">
<?php
/* Re-Post all POST'ed variables */
  reset($HTTP_POST_VARS);
  while (list($key, $value) = each($HTTP_POST_VARS)) {
	if (!is_array($HTTP_POST_VARS[$key])) {
	  echo tep_draw_hidden_field($key, htmlspecialchars(stripslashes($value)));
	}
  }
?>
 <input type="hidden" name="action" value="buy_now">
 <input type="hidden" name="products_id" value="<?php echo $custom_categ; ?>">
<?php 
if (!$sess_new){
echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); 
}else{
echo tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); 
}
?>
</td>
  </tr>
 </table>
 </form>

 

===========================

here is the build.php code

===========================

 

<?php
 require('includes/application_top.php');
 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CCC);
 $defines_query = tep_db_query('select config_name, config_value from ccc_config');
 while ($defines = tep_db_fetch_array($defines_query)){
	define($defines['config_name'],$defines['config_value']);
 }
 define('DROP_DOWN_REQUIRED', '<small><i><font color="red">  '.TEXT_REQUIRED.'</font></i></small>');
 if ($HTTP_GET_VARS['edit'] != '' && $HTTP_GET_VARS['products_id'] != ''){
 $systype_fsb_query = tep_db_query('select products_systype, products_fsb from ccc_system_edit where products_id = "'.$HTTP_GET_VARS['products_id'].'" limit 1');
 $systype_fsb = tep_db_fetch_array($systype_fsb_query);
 $fsb = $systype_fsb['products_fsb'];
 $systype = $systype_fsb['products_systype'];
 }else{
 $fsb = $HTTP_POST_VARS['fsb'];
 $systype = $HTTP_POST_VARS['systype'];
 tep_session_register('systype');
 }
 $ccc_speeds_query = tep_db_query('select f.*, fd.* from '.TABLE_CCC_FSB.' f, '.TABLE_CCC_FSB_DESCRIPTION.' fd where f.fsb_id = fd.fsb_id and sys_id = "'.$systype.'" and f.status = "1" order by sort_order asc');
 $ccc_speeds = tep_db_fetch_array($ccc_speeds_query);
 $sysname = $ccc_speeds['fsb_name'];
 require(DIR_WS_FUNCTIONS . 'custom_computer.php');
 $tax_rate = tep_get_tax_rate(ccc_tax_class);
 include('java.php');
?>

<form name="builds" action="<?php echo tep_href_link(FILENAME_CCC_CHECKOUT, tep_get_all_get_params());?>" onSubmit="return myfunction();" method="post">
<table border="0" width="100%" cellspacing="0" cellpadding="3"> 
  <tr>
<td class="main" valign="top"><b><?php echo TEXT_PARTS_IN_SYSTEM;?></b><div id="sysdesc"></div></td>
<td align="right" valign="bottom"><table border="0" cellpadding="0" cellspacing="0">
 <tr>
  <td class="pageHeading" align="right" valign="top"><table border="0" cellpadding="0" cellspacing="0">
   <tr>
	<td class="main" align="right"><b><font Size="3"><?php echo TEXT_SUBTOTAL;?></b></font><b><?php echo cur_symbol;?></b></td>
	<td class="main" align="left"><div id="Total_Top">0.00</div></td>
   </tr>
  </table></td>
 </tr>
 <tr>
  <td><input type="submit" value='<?php echo TEXT_SUBMIT_FORM;?>'><input type="reset" value='<?php echo TEXT_RESET_FORM;?>' onClick="form_reset(this.form)"></td>
 </tr>  
</table></td>
  </tr>
  <tr>
<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
  <tr>
<td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
  <td class="main"><table cellpadding="0" cellspacing="0" border="0">
<?php
if ($HTTP_GET_VARS['edit'] == 1 && $HTTP_GET_VARS['products_id'] != ''){
  $explode_query = tep_db_query('select products_included, products_warranty, products_build from ccc_system_edit where products_id = "'.$HTTP_GET_VARS['products_id'].'" limit 1');
  $explode = tep_db_fetch_array($explode_query);
  $exploded = explode('|', $explode['products_included']);
  for ($i=0, $n=sizeof($exploded); $i<=$n; $i++){
  ${'new' . $i} = $exploded[($i-1)];
  }
}
$i = 0;
$ccc_count_query = tep_db_query('select c.*, cd.* from '.TABLE_CCC_CAT.' c, '.TABLE_CCC_CAT_DESCRIPTION.' cd where c.cat_id = cd.cat_id and fsb_id = "'.$fsb.'" and cd.language_id = "'.(int)$languages_id.'" and c.status = "1" order by sort_order asc');
while($count = tep_db_fetch_array($ccc_count_query)){
 $i = $i + 1;
?>
   <tr>
	<td class="main" width="100%" colspan="6"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '5'); ?></td>
   </tr>
   <tr>
	<td class="ccch" width="100%" colspan="6"> <?php echo $count['cat_name'];?></td>
   </tr>
   <tr>
	<td class="infoBoxContents" width="100%" colspan="6"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '3'); ?></td>
   </tr>
   <tr class="infoBox">
	<td class="infoBoxContents" width="80%" colspan="4"><div id="drop<?php echo $i;?>"><?php echo tep_get_parts_list('new'. $i, $count['cat_id'], ${'new' . $i}, $systype, $fsb);?></div></td>
	<td class="infoBoxContents" width="10%" align="left"><div id="linksnew<?php echo $i;?>"></div><div style="width:1;height:1;overflow-x:hidden;overflow-y:hidden" id="prod_hidden"><input type="hidden" name="new<?php echo $i;?>_hidden" id="new<?php echo $i;?>_hidden" value='0'></div></td>
	<td class="infoBoxContents" width="10%" align="center">
<?php
if ($HTTP_POST_VARS['pics'] == "y"){
?>
	 <img src="images/nosel.jpg" name="pics<?php echo $i;?>" border="0">
	 <br><div id="picdiv<?php echo $i;?>"></div>
<?php
}
?>
	 <center><div id="pricing<?php echo $i;?>" style="visibility:hidden;"><?php echo TEXT_PRICING;?></div></center>
	</td>
   </tr>
   <tr>
	<td class="infoBoxContents" width="100%" colspan="6"><?php echo $count['cat_description']; ?></td>
   </tr>
   <tr>
	<td class="infoBoxContents" width="100%" colspan="6"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '8'); ?></td>
   </tr>
<?php
}
if (show_warranty == "y"){
?>
   <tr>
	<td class="main" width="10%"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '50'); ?></td>
   </tr>
   <tr>
	<td class="main" width="10%"><?php echo TEXT_EXTENDED_WARRANTY;?></td>
	<td class="main" colspan="3">
<?php 
if ($explode['products_warranty'] == '1'){
  echo tep_draw_radio_field('warranty', "0", '', "onClick=update_warranty(this.value)") . TEXT_NONE . '<br>'.tep_draw_radio_field('warranty', warranty_price, 'checked', "onClick=update_warranty(this.value)") . TEXT_ONE_YEAR;
  $warranty_price = warranty_price;
}else{
  echo tep_draw_radio_field('warranty', "0", 'checked', "onClick=update_warranty(this.value)") . TEXT_NONE . '<br>'.tep_draw_radio_field('warranty', warranty_price, '', "onClick=update_warranty(this.value)") . TEXT_ONE_YEAR;
  $warranty_price = '0';
}
?>
	</td>
	<td class="main" width="25%"><table cellpadding="0" cellspacing="0" border="0">
	 <tr>
	  <td class="main" align="right"><b><?php echo cur_symbol;?></b></td>
	  <td class="main" align="left"><div id="pricing3a"><?php echo (($explode['products_warranty'] == '1') ? tep_add_tax(warranty_price, $tax_rate) : 0);?></div></td>
	 </tr>
	</table></td>
   </tr>
  </table></td>
 </tr>
<?php
}
if (show_build =="y"){
  if (show_warranty =="y"){
?>
 <tr>
  <td class="main" width="10%"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '5'); ?></td>
 </tr>
<?php
  }else{
?>
 <tr>
  <td class="main" width="10%"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '50'); ?></td>
 </tr>
<?php
  }
?>
 <tr>
  <td class="main" width="20%"><?php echo TEXT_BUILD_THE_PC;?></td>
  <td class="main" colspan="3">
<?php 
if ($explode['products_build'] == '1'){
  echo tep_draw_radio_field('build', "0", '', "onClick=update_build(this.value)") . TEXT_NO . '<br>'.tep_draw_radio_field('build', build_price, 'checked', "onClick=update_build(this.value)") . TEXT_HAVE_US_BUILD;
  $build_price = build_price;
}else{
  echo tep_draw_radio_field('build', "0", 'checked', "onClick=update_build(this.value)") . TEXT_NO . '<br>'.tep_draw_radio_field('build', build_price, '', "onClick=update_build(this.value)") . TEXT_HAVE_US_BUILD;
  $build_price = '0';
}
?>
  </td>
  <td class="main" width="25%"><table cellpadding="0" cellspacing="0" border="0">
   <tr>
	<td class="main" align="right"><b><?php echo cur_symbol;?></b></td>
	<td class="main" align="left"><div id="pricing4a"><?php echo (($explode['products_build'] == '1') ? tep_add_tax(build_price, $tax_rate) : 0);?></div></td>
   </tr>
  </table></td>
  <td class="main" width="25%"></td>
 </tr>
<?php
}
?>
 <tr>
  <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
 </tr>
 <tr>
  <td colspan="6"><table border="0" width="100%" cellspacing="0" cellpadding="0">
   <tr>
	<td class="main" valign="top" rowspan="2"> </td>
	<td class="pageHeading" align="right" valign="top"><table border="0" cellspacing="0" cellpadding="0">
	 <tr>
	  <td class="main" align="right"><b><font Size="3"><?php echo TEXT_SUBTOTAL;?></b></font><b><?php echo cur_symbol;?></b></td>
	  <td class="main" align="left"><div id="Total_price">0.00</div></td>
	 </tr>
	</table></td>
   </tr>
   <tr>
	<td align="center" colspan="4">
	 <input type="submit" value='<?php echo TEXT_SUBMIT_FORM;?>'>
	 <input type="reset" value='<?php echo TEXT_RESET_FORM;?>' onClick="form_reset(this.form)">
	 <b><br><font size=1><?php echo TEXT_SUBJECT_TO_CHANGE;?></font></b>
	</td>
   </tr>
  </table></td>
 </tr>
 <tr>
  <td class="main" colspan="4" align="center">
   <input type="hidden" name="fsb" value="<?php echo $fsb;?>">
   <input type="hidden" name="systype" value="<?php echo $systype;?>">
   <input type="hidden" name="Total" id="Total">
   <div id="hidden_warranty" style="width:1;height:1"></div>
   <div id="hidden_build" style="width:1;height:1"></div>
   <script>
<?php if ($explode['products_build'] == '1'){ ?>
 update_build(<?php echo $build_price;?>)
<?php }?>
<?php if ($explode['products_warranty'] == '1'){ ?>
 update_warranty(<?php echo $warranty_price;?>)
<?php }?>
   </script>
  </td></form>
 </tr>
  <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
 </tr>
</table></td>
  </tr>
 </table>

Edited by Phalen

Share this post


Link to post
Share on other sites
on my custom_checkout.php - it does not show the price/total price of the chosen items, it only shows the price of the extended warranty if that was chosen.
Did you edit/remove things from Java.php? Do you have a site that I can look at? Your code seems to be fine, except where it says <script> in build.php, but i think that may just be a posting error.

 

i would also like to remove the button for 'more info' on the build page - how can i do that pls?
In java.php on line 114 change
echo "var _c" . $j . " = \"<input type='button' value='".TEXT_MORE_INFO."' onclick=java script:ccc_popup(\'ccc_more_info.php?fsb=" . $fsb . "&path=\"\n";

Change the type='button' to type='hidden'

Share this post


Link to post
Share on other sites
hi

 

my ccc works nicely - looks great and all of that - brilliant mod - thanks!

i just have one problem

 

on my custom_checkout.php - it does not show the price/total price of the chosen items, it only shows the price of the extended warranty if that was chosen.

 

also - the option to build the pc or not is not their either.... (on the build.php page)

 

i would also like to remove the button for 'more info' on the build page - how can i do that pls?

 

any ideas or help to fix my problems please, i'd appreciate it loads!

 

Please do not post the whole codes here...I think we have it, unless you have modified codes ;)

 

1) on custom_checkout.php you need to put in the variable for showing total price, I add this line myself and seems working. (I am using the CRE, modified oscommerce)

<?php echo "<h1>£" . number_format($products_total * 1.175, 2) . " (inc VAT)</h1>"; ?>

 

2) option to build the pc? not understand what is that....

 

3) for removing or modifying the more info button, you need to deal with the java.php file...search the more info words in that file and you will see it ;)

Share this post


Link to post
Share on other sites

Im getting an error while on /admin/ccc_config.php

 

Warning: main(includes/languages/english/ccc.php) [function.main]: failed to open stream: No such file or directory in /home/www/newxpc.com/admin/ccc_config.php on line 15

Fatal error: main() [function.require]: Failed opening required 'includes/languages/english/ccc.php' (include_path='.:/usr/local/php4/share/pear') in /home/www/newxpc.com/admin/ccc_config.php on line 15

 

Can anyone help me?

Share this post


Link to post
Share on other sites
Im getting an error while on /admin/ccc_config.php

 

Warning: main(includes/languages/english/ccc.php) [function.main]: failed to open stream: No such file or directory in /home/www/newxpc.com/admin/ccc_config.php on line 15

Fatal error: main() [function.require]: Failed opening required 'includes/languages/english/ccc.php' (include_path='.:/usr/local/php4/share/pear') in /home/www/newxpc.com/admin/ccc_config.php on line 15

 

Can anyone help me?

 

Re-check your installation, you missed something.

Share this post


Link to post
Share on other sites

Guys this is a working great except for one problem and I am struggling to find what the problem is

 

When I am browsing the store normally and select a product to view it does not show the details or price - Just the product_info.php file with not product description or price

 

Can someone pls help as to what code needs changing in product_info.php?

 

Thanks

Share this post


Link to post
Share on other sites
Guys this is a working great except for one problem and I am struggling to find what the problem is

 

When I am browsing the store normally and select a product to view it does not show the details or price - Just the product_info.php file with not product description or price

 

Can someone pls help as to what code needs changing in product_info.php?

 

Thanks

 

If I understand correctly, you want CCC to configure computers to use and show up in product_info pages? ie: This Example. You want the builds you create with CCC to show up with a price and details you choose?

 

Sorry, but that's not what CCC is for, you can just as easily (easier?) make a computer build and manually insert it into your catalog. If you do that, I can help you link those to build.php.

 

I could be misunderstanding. On my site, I have it set up just for CCC. You can't browse the catalog. On the homepage, there are my suggested builds, from there they go to build.php, then to custom_checkout, then I hope they buy it. I dont use CCC.php either, don't like it.

 

Let me know, maybe a clarification would help.

Share this post


Link to post
Share on other sites
If I understand correctly, you want CCC to configure computers to use and show up in product_info pages? ie: This Example. You want the builds you create with CCC to show up with a price and details you choose?

 

Sorry, but that's not what CCC is for, you can just as easily (easier?) make a computer build and manually insert it into your catalog. If you do that, I can help you link those to build.php.

 

I could be misunderstanding. On my site, I have it set up just for CCC. You can't browse the catalog. On the homepage, there are my suggested builds, from there they go to build.php, then to custom_checkout, then I hope they buy it. I dont use CCC.php either, don't like it.

 

Let me know, maybe a clarification would help.

 

Thanks Maku

 

there are some edits in product_info.php

 

What changes do they make in that file?

 

I have reverted now but I wondered what they were for?

 

Thanks

 

Mark

Share this post


Link to post
Share on other sites
Thanks Maku

 

there are some edits in product_info.php

 

What changes do they make in that file?

 

I have reverted now but I wondered what they were for?

 

Thanks

 

Mark

 

 

I'm not that good with php, but I'm gonna guess those edits call to the CCC database to get info, but the product_info.php page has not been updated to output all the info it collects.

 

I dunno, maybe a php guru could help us with that.

Share this post


Link to post
Share on other sites

Hi,

 

Can anybody point me in the direction of a working version of this contribution? I currently have a pc builder (dont think its this one) on my site but it was installed by somebody else and its causing a few very annoying problems.

 

One problem is that when using a discount code I need to be able to exclude custom PCs, but with our current system that just isn't possible because every custom built PC is seen as a new product to the database, and I cant exclude products which arent in the database yet.

 

So with this CCC9 can I exclude it from discounts?

 

I'd also like to see an example of the interface before installing it if possible.

 

Thanks!

Share this post


Link to post
Share on other sites

Anyone here thinking about giving the discount price for each component for the custom product? So when the customer done customize their system, the total price would be lower than if you buy each indvidual parts. I think that's one of the important purpose of the customize system. You let your customer choose what they want and at the same time saving money for buying a whole bundle of parts as one system. Can this be done easily for this mod?

 

Any thought?

Share this post


Link to post
Share on other sites

hello i have installed this contribution. but at admin panel when i click on custom computer link only an empty page opens there is not error messages. what is can be causing this???

 

PS: i also have installed points & rewards module along with live support, dynamenu and i am planning to install the SPPC too. (last time i installed SPPC the whole website was gone)

Share this post


Link to post
Share on other sites

Hi

Has anyone got a working version of this contrib that they would be willing to share with us?

I had previously installed pcpro creator and ran into problems with that not carrying through the total to the cart.

I gave up with that after 2 days of trying.

I have now got ccc up and running on a pretty clean install of osC2.2 ms2.

The current issues are as follows.

1/. the price of a customer build will not carry through to the cart, it is 0.00.

2/. the customer build is then transferred to the main page of the site as a new product with a product id!!

(all attempts to make it work showed up as approx 20 new products on the site front page)

 

Now I was under the impression that this would be transferred to the admin pending area for attention, not added to the main db table as a new product for sale??

 

I followed the instructions exactly and it all installed perfectly.

I am wondering if there are some items left out of the 9.3.1 readme which would resolve these issues.

 

I look forward to hearing back from anyone if they can help me.

Best regards ;-)

Share this post


Link to post
Share on other sites

Ok, maybe because I haven't posted enough it will not let me edit my post so here is a follow up...

 

In admin> pending.php I have been able to remove the pending builds as they show up on the front page as a new customer build.

They didnt show up in admin>pending itself in admin however, I knew they were there just by looking at the front page!

 

For some reason the customer build is being stored as a new product with its id and not going to admin pending for attention.

Any clues anyone??

 

AND/OR

 

Any ideas why the total isn't being carried through to the cart?

cheers

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

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

Create an account

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

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×