Jump to content


Corporate Sponsors


Latest News: (loading..)

* * * * * 1 votes

Custom Computer Creator v9 Support


538 replies to this topic

#1 sw45859

  • Community Member
  • 308 posts
  • Real Name:stephen walker
  • Location:Arkansas

Posted 24 December 2003, 13:37

i was told to move over to a new thread so i have done that, anyone who needs help with ccc9 please post here.

#2 John Doswell

  • Team Member
  • 456 posts
  • Real Name:John Doswell
  • Gender:Male

Posted 24 December 2003, 14:49

hi there,
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 Gotmallz

  • Community Member
  • 55 posts
  • Real Name:Paris PC
  • Location:Az

Posted 24 December 2003, 15:28

Im getting an error of no admin/table_template.php and I searched the files there is not one what should I do???
BTW this is in CCC Version 9
Working on one project at a time!!!

#4 sw45859

  • Community Member
  • 308 posts
  • Real Name:stephen walker
  • Location:Arkansas

Posted 24 December 2003, 15:46

on adding the products to the database, when you click the radio button the side menu refreshes showing that the product has been added to the queue, the click on queued products in the ccc side menu and that will show you the screen for choosing where the product is allowed, i will be creating a tutorial with screenshots after the holidays to help along with the process of learning to use the creator.

#5 John Doswell

  • Team Member
  • 456 posts
  • Real Name:John Doswell
  • Gender:Male

Posted 24 December 2003, 16:29

if i click the radio button the page does not refresh and does not add the product to the database. i checked the database tables and its all there.
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 jessicasy

  • Community Member
  • 7 posts
  • Real Name:Jessica Syben
  • Location:Sydney Australia, MI USA, Rotterdam NL

Posted 24 December 2003, 17:54

From my previous post on that other thread

Quote

I noticed something strange in the admin part where you have to add products. The 'onclick=submit()' part on line 209 in ccc_add.php does not show up when I browse to the category making it impossible to add products. Is this just me or has anyone else experienced this behaviour as well?

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.

Don't go around saying the world owes you a living. The world owes you
nothing. It was here first.
-- Mark Twain

#7 Kristofor

  • Community Member
  • 301 posts
  • Real Name:Kristofor Lawson
  • Location:Australia

Posted 24 December 2003, 22:18

hey,

im bout to install it, i wonder if im gonna get this problem aswell,
Don't die with the music in you!!!

Failure is just another boundary to sucess!!! But that doesn't mean your getting somewhere...

#8 jessicasy

  • Community Member
  • 7 posts
  • Real Name:Jessica Syben
  • Location:Sydney Australia, MI USA, Rotterdam NL

Posted 25 December 2003, 03:51

Kristofor, on Dec 24 2003, 06:18 PM, said:

hey,

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
Don't go around saying the world owes you a living. The world owes you
nothing. It was here first.
-- Mark Twain

#9 Mibble

  • Community Member
  • 13,404 posts
  • Real Name:JAO
  • Location:MA (US): 42n22, 71w04, Massachusetts

Posted 25 December 2003, 03:53

Anyone know what is supposed to be contained in ccc_temp_products (size, etc), as this table is called however it is not in the sql statement when installing.

#10 sw45859

  • Community Member
  • 308 posts
  • Real Name:stephen walker
  • Location:Arkansas

Posted 25 December 2003, 14:58

Mibble, on Dec 24 2003, 11:53 PM, said:

Anyone know what is supposed to be contained in ccc_temp_products (size, etc), as this table is called however it is not in the sql statement when installing.
that table for the most part will constantly stay empty, it is for the queued products in the admin area

#11 sw45859

  • Community Member
  • 308 posts
  • Real Name:stephen walker
  • Location:Arkansas

Posted 25 December 2003, 15:00

sorry i just read the error message, i will post code shortly.

Edited by sw45859, 25 December 2003, 15:02.


#12 sw45859

  • Community Member
  • 308 posts
  • Real Name:stephen walker
  • Location:Arkansas

Posted 25 December 2003, 15:06

ok for the table_template problem, in build.php on line 73 replace that line with.

include('/table_template'.$template['template'].'.php');?></td>


#13 discovery

  • Community Member
  • 4 posts
  • Real Name:Lyle Macgregor
  • Location:Victoria, BC Canada

Posted 25 December 2003, 19:13

So this is just an empty table then? or are there values for the fields?

#14 Unified

  • Community Member
  • 97 posts
  • Real Name:Jiten
  • Location:London

Posted 25 December 2003, 21:39

Hello Stephen

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 sw45859

  • Community Member
  • 308 posts
  • Real Name:stephen walker
  • Location:Arkansas

Posted 26 December 2003, 12:52

sorry guys, i hope you understand that with the size of this contribution i keep missing stuff i have forgotten that i edited, with that said, in catalog/includes/classes/order.php line 104 you should see:


      $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 sw45859

  • Community Member
  • 308 posts
  • Real Name:stephen walker
  • Location:Arkansas

Posted 26 December 2003, 13:06

discovery, on Dec 25 2003, 03:13 PM, said:

So this is just an empty table then? or are there values for the fields?
that table is empty yes, no values are supposed to be in it until you queue a product for database entry.

#17 Unified

  • Community Member
  • 97 posts
  • Real Name:Jiten
  • Location:London

Posted 26 December 2003, 13:12

Hello Stephen,

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 sw45859

  • Community Member
  • 308 posts
  • Real Name:stephen walker
  • Location:Arkansas

Posted 26 December 2003, 13:14

do you have a page set up that i can look at, or some code from those files, specifically the areas i said to edit.

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 sw45859

  • Community Member
  • 308 posts
  • Real Name:stephen walker
  • Location:Arkansas

Posted 26 December 2003, 13:20

also look in your database under the table products_description and see if the very last product has the description there.

#20 sw45859

  • Community Member
  • 308 posts
  • Real Name:stephen walker
  • Location:Arkansas

Posted 26 December 2003, 13:23

dangit, i forgot another area in the order.php,

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