osCommerce Community Support Forums: Custom Computer Creator v9 Support - osCommerce Community Support Forums

Jump to content

Corporate Sponsor


  • (27 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Custom Computer Creator v9 Support Rate Topic: ***** 1 Votes

#1 User is offline   sw45859 Icon

  • Find Posts
  • Group: Community Member
  • Posts: 308
  • Joined: 04-October 02
  • Real Name:stephen walker
  • Location:Arkansas

Posted 24 December 2003 - 01:37 PM

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

#2 User is offline   John Doswell Icon

  • Icon
  • Find Posts
  • Group: Team Member
  • Posts: 456
  • Joined: 28-June 03
  • Real Name:John Doswell
  • Gender:Male

Posted 24 December 2003 - 02:49 PM

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
0

#3 User is offline   Gotmallz Icon

  • Find Posts
  • Group: Community Member
  • Posts: 55
  • Joined: 26-July 03
  • Real Name:Paris PC
  • Location:Az

Posted 24 December 2003 - 03:28 PM

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!!!
0

#4 User is offline   sw45859 Icon

  • Find Posts
  • Group: Community Member
  • Posts: 308
  • Joined: 04-October 02
  • Real Name:stephen walker
  • Location:Arkansas

Posted 24 December 2003 - 03:46 PM

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.
0

#5 User is offline   John Doswell Icon

  • Icon
  • Find Posts
  • Group: Team Member
  • Posts: 456
  • Joined: 28-June 03
  • Real Name:John Doswell
  • Gender:Male

Posted 24 December 2003 - 04:29 PM

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
0

#6 User is offline   jessicasy Icon

  • Find Posts
  • Group: Community Member
  • Posts: 7
  • Joined: 01-September 03
  • Real Name:Jessica Syben
  • Location:Sydney Australia, MI USA, Rotterdam NL

Posted 24 December 2003 - 05:54 PM

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)

This post has been edited by jessicasy: 24 December 2003 - 05:57 PM

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

#7 User is offline   Kristofor Icon

  • Find Posts
  • Group: Community Member
  • Posts: 301
  • Joined: 15-December 02
  • Real Name:Kristofor Lawson
  • Location:Australia

Posted 24 December 2003 - 10:18 PM

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...
0

#8 User is offline   jessicasy Icon

  • Find Posts
  • Group: Community Member
  • Posts: 7
  • Joined: 01-September 03
  • Real Name:Jessica Syben
  • Location:Sydney Australia, MI USA, Rotterdam NL

Posted 25 December 2003 - 03:51 AM

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
0

#9 User is offline   Mibble Icon

  • Find Posts
  • Group: Community Member
  • Posts: 13,401
  • Joined: 08-November 03
  • Real Name:JAO
  • Location:MA (US): 42n22, 71w04, Massachusetts

Posted 25 December 2003 - 03:53 AM

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.
0

#10 User is offline   sw45859 Icon

  • Find Posts
  • Group: Community Member
  • Posts: 308
  • Joined: 04-October 02
  • Real Name:stephen walker
  • Location:Arkansas

Posted 25 December 2003 - 02:58 PM

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
0

#11 User is offline   sw45859 Icon

  • Find Posts
  • Group: Community Member
  • Posts: 308
  • Joined: 04-October 02
  • Real Name:stephen walker
  • Location:Arkansas

Posted 25 December 2003 - 03:00 PM

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

This post has been edited by sw45859: 25 December 2003 - 03:02 PM

0

#12 User is offline   sw45859 Icon

  • Find Posts
  • Group: Community Member
  • Posts: 308
  • Joined: 04-October 02
  • Real Name:stephen walker
  • Location:Arkansas

Posted 25 December 2003 - 03:06 PM

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

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

0

#13 User is offline   discovery Icon

  • Find Posts
  • Group: Community Member
  • Posts: 4
  • Joined: 25-December 03
  • Real Name:Lyle Macgregor
  • Location:Victoria, BC Canada

Posted 25 December 2003 - 07:13 PM

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

#14 User is offline   Unified Icon

  • Find Posts
  • Group: Community Member
  • Posts: 97
  • Joined: 06-June 03
  • Real Name:Jiten
  • Location:London

Posted 25 December 2003 - 09:39 PM

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

This post has been edited by Unified: 25 December 2003 - 09:42 PM

0

#15 User is offline   sw45859 Icon

  • Find Posts
  • Group: Community Member
  • Posts: 308
  • Joined: 04-October 02
  • Real Name:stephen walker
  • Location:Arkansas

Posted 26 December 2003 - 12:52 PM

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']);

0

#16 User is offline   sw45859 Icon

  • Find Posts
  • Group: Community Member
  • Posts: 308
  • Joined: 04-October 02
  • Real Name:stephen walker
  • Location:Arkansas

Posted 26 December 2003 - 01:06 PM

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.
0

#17 User is offline   Unified Icon

  • Find Posts
  • Group: Community Member
  • Posts: 97
  • Joined: 06-June 03
  • Real Name:Jiten
  • Location:London

Posted 26 December 2003 - 01:12 PM

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
0

#18 User is offline   sw45859 Icon

  • Find Posts
  • Group: Community Member
  • Posts: 308
  • Joined: 04-October 02
  • Real Name:stephen walker
  • Location:Arkansas

Posted 26 December 2003 - 01:14 PM

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

This post has been edited by sw45859: 26 December 2003 - 01:16 PM

0

#19 User is offline   sw45859 Icon

  • Find Posts
  • Group: Community Member
  • Posts: 308
  • Joined: 04-October 02
  • Real Name:stephen walker
  • Location:Arkansas

Posted 26 December 2003 - 01:20 PM

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

#20 User is offline   sw45859 Icon

  • Find Posts
  • Group: Community Member
  • Posts: 308
  • Joined: 04-October 02
  • Real Name:stephen walker
  • Location:Arkansas

Posted 26 December 2003 - 01:23 PM

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
0

  • (27 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic