Custom Computer Creator v9 Support
#2
Posted 24 December 2003 - 02:49 PM
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
#4
Posted 24 December 2003 - 03:46 PM
#5
Posted 24 December 2003 - 04:29 PM
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 - 05:54 PM
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)
This post has been edited by jessicasy: 24 December 2003 - 05:57 PM
nothing. It was here first.
-- Mark Twain
#8
Posted 25 December 2003 - 03:51 AM
Kristofor, on Dec 24 2003, 06:18 PM, said:
im bout to install it, i wonder if im gonna get this problem aswell,
All I can say is that I tried it on a few different TEP versions MS1, CVS and MS2 and get the same issue on all of them - But, I guess if you really wanted to confirm that, try it out and report back to us here
--jess
nothing. It was here first.
-- Mark Twain
#9
Posted 25 December 2003 - 03:53 AM
#10
Posted 25 December 2003 - 02:58 PM
Mibble, on Dec 24 2003, 11:53 PM, said:
that table for the most part will constantly stay empty, it is for the queued products in the admin area
#14
Posted 25 December 2003 - 09:39 PM
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
This post has been edited by Unified: 25 December 2003 - 09:42 PM
#15
Posted 26 December 2003 - 12:52 PM
$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']);
#17
Posted 26 December 2003 - 01:12 PM
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 - 01:14 PM
and the query does have to be in the while statement or it will not pick up all products listed
This post has been edited by sw45859: 26 December 2003 - 01:16 PM
#20
Posted 26 December 2003 - 01:23 PM
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

Sign In
Register
Help



MultiQuote