osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

adding multiple manufacturers to products

This is a discussion on adding multiple manufacturers to products within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Is there a way to have more than one manufacturer attached to a product? I've changed the "manufacturer" to "Authors", ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 09-23-2003, 11:26 AM
Lurker
 
Join Date: Sep 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
idwlorelei
Default adding multiple manufacturers to products

Is there a way to have more than one manufacturer attached to a product?

I've changed the "manufacturer" to "Authors", but several of our products are collaborations and I would like it so that the product page will display all its contributors, and for the product to appear in the search for each of its authors.

Any suggestions?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 09-23-2003, 12:19 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,329
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

Hi,

You could always put the names of all the authors on the product page in the description.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 09-24-2003, 04:18 PM
Lurker
 
Join Date: Sep 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
idwlorelei
Default

Well, here's what I've got thus far...
I've added a 2nd manufacturer id to my products and now when you go to the product page both manufacturers are listed in the right column. The only issue I'm having now is getting the all the products to show up on each manufacturer's search page. I'm pretty sure that my solution lies in altering the defult.php code. I can change it to display products for either the 1st id or the 2nd, but not both at the sametime - which is what I want.

here's the line of code... (starting appx at line 172)
Code:
// show the products of a specified manufacturer
* *if (isset($HTTP_GET_VARS['manufacturers_id'])) {
* * *if (isset($HTTP_GET_VARS['filter_id'])) {
// We are asked to show only a specific category
* * * *$listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . $HTTP_GET_VARS['manufacturers_id'] . "' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . $languages_id . "' and p2c.categories_id = '" . $HTTP_GET_VARS['filter_id'] . "'";
* * *} else {
// We show them all
* * * *$listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where p.products_status = '1' and pd.products_id = p.products_id and pd.language_id = '" . $languages_id . "' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . $HTTP_GET_VARS['manufacturers_id'] . "'";
* * *}
Is there a way to include more information into the $listing_sql variable? I get the code to display product for the 2nd id by changing the...
Code:
p.manufacturers_id = m.manufacturers_id
to
Code:
p.manufacturers2_id = m.manufacturers_id
Any help one can offer would be appreciated!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
New products page.... Multiple columns jdlev77 osCommerce 2.2 Discussion 4 08-27-2005 07:47 PM
Temporarily inactivate multiple manufacturers? A2ZBob osCommerce 2.2 Modification Help 1 12-10-2004 09:18 AM
Multiple Catagories and Adding Fields Lalla osCommerce 2.2 Modification Help 5 02-20-2004 04:19 AM
Modify Manufacturers Box to only show Manufacturers that are elemar osCommerce 2.2 Modification Help 0 12-09-2003 01:16 AM
Contribution for adding multiple products jacven osCommerce 2.2 Modification Help 3 10-22-2003 07:23 AM


All times are GMT -8. The time now is 09:21 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax