chrometweaks.org

Canadian small business website: should I choose a Canadian iPage web host?

Click Here To View All Answers...


First off, Canadian small business website: should I choose a Canadian iPage web host? Thanks in advance for any answer. Another quick question... Hello everybody!!.

I wanted to add a second manufacturer option..

My first problem is just, that in the categories.php never the right manufacturers get shown.

I changed those parts in /admin/categories.php.

After.

$manufacturers_array = array(array('id' => '', 'text' => TEXT_NONE));.

   $manufacturers_query = tep_db_query("select manufacturers_id, manufacturers_name from "TABLE_MANUFACTURERS" order by manufacturers_name");.

   while ($manufacturers = tep_db_fetch_array($manufacturers_query)) {.

     $manufacturers_array[] = array('id' => $manufacturers['manufacturers_id'],.

                                    'text' => $manufacturers['manufacturers_name']);.

   .

   }.

I added.

 $manufacturers2_array = array(array('id' => '', 'text' => TEXT_NONE));.

   $manufacturers2_query = tep_db_query("select manufacturers_id, manufacturers_name from "TABLE_MANUFACTURERS2" order by manufacturers_name");.

   while ($manufacturers2 = tep_db_fetch_array($manufacturers2_query)) {.

     $manufacturers2_array[] = array('id' => $manufacturers2['manufacturers_id'],.

                                    'text' => $manufacturers2['manufacturers_name']);.

   .

   }.

And after.

<tr>.

           <td class="main"><?php echo TEXT_PRODUCTS_MANUFACTURER; ?></td>.

           <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15')'&nbsp;'tep_draw_pull_down_menu('manufacturers_id', $manufacturers_array, $pInfo->manufacturers_id); ?></td>.

         </tr>.

         <tr>.

           <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>.

         </tr>.

I added.

<tr>.

           <td class="main"><?php echo TEXT_PRODUCTS_MANUFACTURER2; ?></td>.

           <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15')'&nbsp;'tep_draw_pull_down_menu('manufacturers_id', $manufacturers_array, $pInfo->manufacturers_id); ?></td>.

         </tr>.

         <tr>.

           <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>.

         </tr>.

My problem is now, that there are shown at both boxes manufacturers or manufacturer2always the same, never both!!!.

Thanks for your support..

Comments (78)

Good question... I dunno what is the right answer to your question. I'll do some research and get back to you if I got an answer. You should email the people at iPage as they probably could give you help..

Comment #1

In the second pull down menu you have $manufacturers_array - this should be $manufacturers2_array.

Matti..

Comment #2

Unfortunately again one problem.

I added a manufacturer 2.

Then I modified an existed product to this new mafcacturer 2.

Now this product is shown at the right manufacturer 2, but also to an othe rmanufacturer 1..

Comment #3

Ok the problem is, that in the product table at sql, there is only one manufacturer id , and no manufacturer2 id.

Does anbyody know how I could insert this too?..

Comment #4

Do I just have to change all manufacture_id into manufacturer2_id ???..

Comment #5

I am nearly finished with it.

Just one problem anymore..

I've created a box for the manufacturers2.

The manufacturers are shown in the dropdownmenu, but if you click on it, they ge not shown.

So I have to change some lines in the index.php.

But I don't know exactly which line si have to change.

Thanks for the help..

Comment #6

No there is a text:.

TEXT_NO_PRODUCTS.

Please help me..

Comment #7

Hello everybody!!.

I wanted to add a second manufacturer option..

My first problem is just, that in the categories.php never the right manufacturers get shown.

I changed those parts in /admin/categories.php.

After.

$manufacturers_array = array(array('id' => '', 'text' => TEXT_NONE));.

   $manufacturers_query = tep_db_query("select manufacturers_id, manufacturers_name from "TABLE_MANUFACTURERS" order by manufacturers_name");.

   while ($manufacturers = tep_db_fetch_array($manufacturers_query)) {.

     $manufacturers_array[] = array('id' => $manufacturers['manufacturers_id'],.

                                    'text' => $manufacturers['manufacturers_name']);.

   .

   }.

I added.

 $manufacturers2_array = array(array('id' => '', 'text' => TEXT_NONE));.

   $manufacturers2_query = tep_db_query("select manufacturers_id, manufacturers_name from "TABLE_MANUFACTURERS2" order by manufacturers_name");.

   while ($manufacturers2 = tep_db_fetch_array($manufacturers2_query)) {.

     $manufacturers2_array[] = array('id' => $manufacturers2['manufacturers_id'],.

                                    'text' => $manufacturers2['manufacturers_name']);.

   .

   }.

And after.

<tr>.

           <td class="main"><?php echo TEXT_PRODUCTS_MANUFACTURER; ?></td>.

           <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15')'&nbsp;'tep_draw_pull_down_menu('manufacturers_id', $manufacturers_array, $pInfo->manufacturers_id); ?></td>.

         </tr>.

         <tr>.

           <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>.

         </tr>.

I added.

<tr>.

           <td class="main"><?php echo TEXT_PRODUCTS_MANUFACTURER2; ?></td>.

           <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15')'&nbsp;'tep_draw_pull_down_menu('manufacturers_id', $manufacturers_array, $pInfo->manufacturers_id); ?></td>.

         </tr>.

         <tr>.

           <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>.

         </tr>.

My problem is now, that there are shown at both boxes manufacturers or manufacturer2always the same, never both!!!.

Thanks for your support..

Comment #8

Nobody ??.

Maybe anybody has an idea how it could work or someting like that???..

Comment #9


This question was taken from a support group/message board and re-posted here so others can learn from it.