Custom Computer Creator v9 Support
#1
Posted 24 December 2003, 13:37
#2
Posted 24 December 2003, 14:49
i am trying to implement the construbution to my osc but when i go to admin/ccc_add.php i can chose a product to add (radio button), but it will not refresh and it does not show up a update button, how do i add products to the database?
looking on your site it is also not possible to add products to database.
Please help!!!
Merry x-mas John
#3
Posted 24 December 2003, 15:28
BTW this is in CCC Version 9
#4
Posted 24 December 2003, 15:46
#5
Posted 24 December 2003, 16:29
also i get a error on the catalog side
AMD & INTEL Prebuilt System Warning: main() [function.main]: Unable to access admin/table_template1.php in /localhost/www/htdocs/newshop/build.php on line 73 Warning: main(admin/table_template1.php) [function.main]: failed to create stream: No such file or directory in /localhost/www/htdocs/newshop/build.php on line 73 Warning: main() [function.main]: Failed opening 'admin/table_template1.php' for inclusion (include_path='') in /localhost/www/htdocs/newshop/build.php on line 73
Merry X-Mas John
#6
Posted 24 December 2003, 17:54
Quote
I also noticed that this works fine in stephen's shop, so I'm not sure if this was something ommited from the contribution.
Stephen, that's exactly what I'm talking about, I mean what folks above are experiencing as well - The refresh of the page when a products check box is clicked on. For some reason the onclick=submit() part that I mentioned above does not show up... Any ideas?
(The only diff. with my php setup is that I receive no errors)
Edited by jessicasy, 24 December 2003, 17:57.
nothing. It was here first.
-- Mark Twain
#7
Posted 24 December 2003, 22:18
im bout to install it, i wonder if im gonna get this problem aswell,
Failure is just another boundary to sucess!!! But that doesn't mean your getting somewhere...
#8
Posted 25 December 2003, 03:51
Kristofor, on Dec 24 2003, 06:18 PM, said:
im bout to install it, i wonder if im gonna get this problem aswell,
--jess
nothing. It was here first.
-- Mark Twain
#9
Posted 25 December 2003, 03:53
#10
Posted 25 December 2003, 14:58
Mibble, on Dec 24 2003, 11:53 PM, said:
#11
Posted 25 December 2003, 15:00
Edited by sw45859, 25 December 2003, 15:02.
#12
Posted 25 December 2003, 15:06
include('/table_template'.$template['template'].'.php');?></td>
#13
Posted 25 December 2003, 19:13
#14
Posted 25 December 2003, 21:39
I tried the code above to resolve the error - but it did not work - So i just copied the template files from the catalog directory into the admin directory and it works fine now.
One problem that I cannot sort out is with the listing of the components in checkout_confirmation.php , shopping_cart.php , account_history_info.php etc
All I get is the title "Custom Computer" without the list of components that have been selected.
Any ideas why this may be happening? I have tried to fiddle with the following line but do not know what to do as I do not know where the names of the components are being called from:
... $order->products[$i]['name'] . '<small><i>' . $order->products[$i]['description'] . '</small></i>'
This is a major problem as I will not know what the customers have ordered - Nor they!
Cheers mate!
Regards,
Jiten
Edited by Unified, 25 December 2003, 21:42.
#15
Posted 26 December 2003, 12:52
$orders_products_query = tep_db_query("select orders_products_id, products_id, products_name, products_model, products_price, products_tax, products_quantity, final_price from " . TABLE_ORDERS_PRODUCTS . " where orders_id = '" . (int)$order_id . "'");
while ($orders_products = tep_db_fetch_array($orders_products_query)) {
$this->products[$index] = array('qty' => $orders_products['products_quantity'],
'id' => $orders_products['products_id'],
'name' => $orders_products['products_name'],
'model' => $orders_products['products_model'],
'tax' => $orders_products['products_tax'],
'price' => $orders_products['products_price'],
'final_price' => $orders_products['final_price']);
replace it with:
$orders_products_query = tep_db_query("select orders_products_id, products_id, products_name, products_model, products_price, products_tax, products_quantity, final_price from " . TABLE_ORDERS_PRODUCTS . " where orders_id = '" . (int)$order_id . "'");
while ($orders_products = tep_db_fetch_array($orders_products_query)) {
//CCC
$description_query = tep_db_query("select products_description as desc_info from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = " . $orders_products['products_id']);
$description_info = tep_db_fetch_array($description_query);
//DONE
$this->products[$index] = array('qty' => $orders_products['products_quantity'],
'id' => $orders_products['products_id'],
'name' => $orders_products['products_name'],
//CCC
'description' => $description_info['desc_info'],
//DONE
'model' => $orders_products['products_model'],
'tax' => $orders_products['products_tax'],
'price' => $orders_products['products_price'],
'final_price' => $orders_products['final_price']);
#16
Posted 26 December 2003, 13:06
discovery, on Dec 25 2003, 03:13 PM, said:
#17
Posted 26 December 2003, 13:12
I just tried the changes that you have made. Unfortunately nothing has changed. The listing of components is still not appearing in checkout_confirmation.php , shopping_cart.php , account_history_info.php etc. The same problem still persists - all you see is "Custom Computer" .
I tried to rearrange the your code snippet by putting the "$description_query" before the "while" statement and that had no effect either.
Am I the only person with this error? All your instructions have been followed correctly?
Again thank you for your hard work
Regards
Jiten
#18
Posted 26 December 2003, 13:14
and the query does have to be in the while statement or it will not pick up all products listed
Edited by sw45859, 26 December 2003, 13:16.
#19
Posted 26 December 2003, 13:20
#20
Posted 26 December 2003, 13:23
around line 223 replace:
$this->products[$index] = array('qty' => $products[$i]['quantity'],
'name' => $products[$i]['name'],
'model' => $products[$i]['model'],
'tax' => tep_get_tax_rate($products[$i]['tax_class_id'], $tax_address['entry_country_id'], $tax_address['entry_zone_id']),
'tax_description' => tep_get_tax_description($products[$i]['tax_class_id'], $tax_address['entry_country_id'], $tax_address['entry_zone_id']),
'price' => $products[$i]['price'],
'final_price' => $products[$i]['price'] + $cart->attributes_price($products[$i]['id']),
'weight' => $products[$i]['weight'],
'id' => $products[$i]['id']);
with $this->products[$index] = array('qty' => $products[$i]['quantity'],
'name' => $products[$i]['name'],
'model' => $products[$i]['model'],
//CCC
'description' => $products[$i]['description'],
//DONE
'tax' => tep_get_tax_rate($products[$i]['tax_class_id'], $tax_address['entry_country_id'], $tax_address['entry_zone_id']),
'tax_description' => tep_get_tax_description($products[$i]['tax_class_id'], $tax_address['entry_country_id'], $tax_address['entry_zone_id']),
'price' => $products[$i]['price'],
'final_price' => $products[$i]['price'] + $cart->attributes_price($products[$i]['id']),
'weight' => $products[$i]['weight'],
'id' => $products[$i]['id']);
sorry














