Jump to content



Latest News: (loading..)

- - - - -

Master Products - MS2


  • Please log in to reply
2401 replies to this topic

#1   Johnson

Johnson
  • Banned
  • 5,205 posts
  • Real Name:Matti Ressler
  • Location:Sydney, Australia

Posted 23 November 2003 - 12:13 AM

This is the support thread for Master Products - MS2.  

I will not reply to postings for support elsewhere on these forums. Please do not pm or email me for support unless you give billing details  :D

Matti
Matti Ressler

We were all once expert at...... nothing
_____

#2   Johnson

Johnson
  • Banned
  • 5,205 posts
  • Real Name:Matti Ressler
  • Location:Sydney, Australia

Posted 24 November 2003 - 10:44 AM

A new package has been uploaded to Contributions - this fixes an image upload bug in admin and includes a few minor tweaks to other files.

Matti
Matti Ressler

We were all once expert at...... nothing
_____

#3   jspice

jspice
  • Members
  • 7 posts
  • Real Name:Jim Spice

Posted 25 November 2003 - 11:23 PM

Can slaves have slaves?  In other words, can I specify a small, green, widget.  If so, this contribution will solve many of the problems I have been having with the standard release.  Boy, I wish this would have been out a month earlier.  I've whittled down my original 250 products down to under 100 using attributes, and had basically written off acurate model numbering and stock capabilities.

Spice

#4   burt

burt

    Code Monkey

  • Community Team
  • 7,754 posts
  • Real Name:G Burton
  • Gender:Male
  • Location:UK/DEV/on

Posted 25 November 2003 - 11:33 PM

I'm not sure I understand what this does - woudl the following be a workable example:

Master:  Sexy Nurses Outfit
Slaves:  Wig, Stockings, Thermometer

In effect the Slaves are not real products that are buyable unless you purchase the "Master" ??

Or are the Slaves also real products as well ?

This could work for a new site I'm working on..  Appreciate any pointers, thanks.
Dummies guide to designing osCommerce 2.3 Click Me

Or maybe a ready made theme for your shop ??

Warning: My posts may contain Horsemeat.

#5   iiinetworks

iiinetworks
  • Members
  • 3,734 posts
  • Real Name:Matt

Posted 26 November 2003 - 03:02 AM

In admin/includes/languages/english/categories.php, there should also be something like
define('IMAGE_NEW_MASTER', 'Add a New Master Product');
Now as to how it works.  From empirical observation, I would describe the slaves as real products while the masters are not.  I.e. you can't buy the master product.  Clicking Add_to_Cart on the master product page adds all the slaves that have quantities instead (which can be none).  You can choose if the slave appears in the category product listings or not (i.e. if you can buy it separate from the master).  In burt's example, the actual outfit would be one of the slaves as well.  I would think of a Master Product as more of a container than a product.  

Hth,
Matt

[The initial pre-release may have appeared this way, however, that the Master can be a product in itself is fundamental to the concept of Master Products - the latest updates show this - Matti]

Edited by Johnson, 09 April 2004 - 01:35 AM.


#6   delphian

delphian
  • Members
  • 39 posts
  • Real Name:Zachary Smith
  • Location:New York, NY

Posted 26 November 2003 - 05:13 AM

burt, on Nov 25 2003, 06:33 PM, said:

I'm not sure I understand what this does - woudl the following be a workable example:

Master:  Sexy Nurses Outfit
Slaves:  Wig, Stockings, Thermometer

In effect the Slaves are not real products that are buyable unless you purchase the "Master" ??

Or are the Slaves also real products as well ?

This could work for a new site I'm working on..  Appreciate any pointers, thanks.
Moreover, it would work as such:

Master: Nurses Outfit
Slave 1: Nurses Outfit in XXL Black Spandex
Slave 2: Nurses Outfit in L White Spandex
Slave 3: Nurses Outfit in XL White Spandex

You might ask "Why not just use attributes?".  My answer would be that in this case, it is possible that they don't carry an XXL White version, only XXL black...

But a better thing to look at would be to check out my post here:

http://forums.oscommerce.com/index.php?showtopic=67277

You can see a live example, both nonOSC and OSC (using this mod) that really show how this is best used.

-Zac

#7   iiinetworks

iiinetworks
  • Members
  • 3,734 posts
  • Real Name:Matt

Posted 26 November 2003 - 06:13 AM

delphian, on Nov 26 2003, 12:13 AM, said:

You might ask "Why not just use attributes?".  My answer would be that in this case, it is possible that they don't carry an XXL White version, only XXL black...
Also allows one to buy multiple related products at once, plus solves the stock and separate SKU per attribute problems.

Cheers,
Matt

#8   Johnson

Johnson
  • Banned
  • 5,205 posts
  • Real Name:Matti Ressler
  • Location:Sydney, Australia

Posted 26 November 2003 - 06:17 AM

It is also possible, as an example, in product info.php, to change both instances of:

if ($product_master['product_master_status']!= 1)

to:

if ($product_master['products_price']!= '0')

This would make an add to cart button appear for the Master if a price for it is added in admin - I believe I left the product price field intact with this thought in mind........ while the Slaves can be purchased in their respective quantities also. This would make it possible to have the Nurses' Outfit as the Master Product - purchasable, and the separate parts of the outfit also purchasable in whatever quantity is selected - the customer may choose either option.... or, imagine a carburettor, and all its separate parts....   B)

This contribution will undergo continued development based to a large degree on feedback from these forums.  I released version 1 as I saw it as usable as it stands - there is much still in the pipeline, and that list grows daily   :D

Matti

Edited by Johnson, 26 November 2003 - 06:21 AM.

Matti Ressler

We were all once expert at...... nothing
_____

#9   burt

burt

    Code Monkey

  • Community Team
  • 7,754 posts
  • Real Name:G Burton
  • Gender:Male
  • Location:UK/DEV/on

Posted 26 November 2003 - 09:17 AM

Looks like a good contribution that should solve many of the basic problems that Oscommerce has.  Good.

Anyway:  I do not know what I have done incorrectly, I have installed a new MS2, copied the "Master" contribution into it, and loaded the SQL.

Have set up a "Master" product.  All no problem.  Have set up a slave product and assigned it to the master.

All I get in the product info page is:

Quote

*Please select the quantity for each item you wish to order and click the 'Add To Cart' button below.

TEXT_NO_PRODUCTS

Not concerned about "TEXT_NO_PRODUCTS" as this would just be a missing define - but this should now be showing the Slave I assigned should it not ?
Dummies guide to designing osCommerce 2.3 Click Me

Or maybe a ready made theme for your shop ??

Warning: My posts may contain Horsemeat.

#10   Johnson

Johnson
  • Banned
  • 5,205 posts
  • Real Name:Matti Ressler
  • Location:Sydney, Australia

Posted 26 November 2003 - 11:04 AM

burt, on Nov 26 2003, 05:17 AM, said:

Looks like a good contribution that should solve many of the basic problems that Oscommerce has.  Good.

Anyway:  I do not know what I have done incorrectly, I have installed a new MS2, copied the "Master" contribution into it, and loaded the SQL.

Have set up a "Master" product.  All no problem.  Have set up a slave product and assigned it to the master.

All I get in the product info page is:

Quote

*Please select the quantity for each item you wish to order and click the 'Add To Cart' button below.

TEXT_NO_PRODUCTS

Not concerned about "TEXT_NO_PRODUCTS" as this would just be a missing define - but this should now be showing the Slave I assigned should it not ?
I have just done the same - set up a new ms2 - dropped the contribution catalog directory into my dev root (overwrite) - ran the SQL - set up two masters each with slaves... no problem   :blink:

Perhaps you missed a file?

Matti
Matti Ressler

We were all once expert at...... nothing
_____

#11   burt

burt

    Code Monkey

  • Community Team
  • 7,754 posts
  • Real Name:G Burton
  • Gender:Male
  • Location:UK/DEV/on

Posted 26 November 2003 - 01:54 PM

Johnson, on Nov 26 2003, 11:04 AM, said:

burt, on Nov 26 2003, 05:17 AM, said:

Looks like a good contribution that should solve many of the basic problems that Oscommerce has.  Good.

Anyway:  I do not know what I have done incorrectly, I have installed a new MS2, copied the "Master" contribution into it, and loaded the SQL.

Have set up a "Master" product.  All no problem.  Have set up a slave product and assigned it to the master.

All I get in the product info page is:

Quote

*Please select the quantity for each item you wish to order and click the 'Add To Cart' button below.

TEXT_NO_PRODUCTS

Not concerned about "TEXT_NO_PRODUCTS" as this would just be a missing define - but this should now be showing the Slave I assigned should it not ?
I have just done the same - set up a new ms2 - dropped the contribution catalog directory into my dev root (overwrite) - ran the SQL - set up two masters each with slaves... no problem   :blink:

Perhaps you missed a file?

Matti
I'll try again, but I only did exactly as you did - new MS2, Master contrib, SQL load...

Will report back.

G.
Dummies guide to designing osCommerce 2.3 Click Me

Or maybe a ready made theme for your shop ??

Warning: My posts may contain Horsemeat.

#12   burt

burt

    Code Monkey

  • Community Team
  • 7,754 posts
  • Real Name:G Burton
  • Gender:Male
  • Location:UK/DEV/on

Posted 26 November 2003 - 02:35 PM

Tried again with a brand new copy of uptodate mS2, and the latest MAster contrib.  Exactly the same behaviour as above.

Any ideas ?
Dummies guide to designing osCommerce 2.3 Click Me

Or maybe a ready made theme for your shop ??

Warning: My posts may contain Horsemeat.

#13   VJ

VJ
  • Members
  • 173 posts
  • Real Name:VJ
  • Gender:Male

Posted 26 November 2003 - 06:38 PM

Quote

Tried again with a brand new copy of uptodate mS2, and the latest MAster contrib. Exactly the same behaviour as above.

Any ideas ?

I'm afraid I get the exact same error too. I tried this on a MS2 setup.

VJ

#14   Johnson

Johnson
  • Banned
  • 5,205 posts
  • Real Name:Matti Ressler
  • Location:Sydney, Australia

Posted 26 November 2003 - 08:08 PM

I am wondering if there is an environment issue - I shall do an install on a live server tonight.

Matti

Edited by Johnson, 26 November 2003 - 08:09 PM.

Matti Ressler

We were all once expert at...... nothing
_____

#15   Johnson

Johnson
  • Banned
  • 5,205 posts
  • Real Name:Matti Ressler
  • Location:Sydney, Australia

Posted 27 November 2003 - 10:21 AM

Ok - here's the fix - was just one of those things I didn't get back to and tidy up  :blink:

In catalog/includes/modules/master_products.php replace the $master_sql query with:

      $master_sql = "select  " . $select_column_list . " p.products_id,  p.manufacturers_id, p.products_tax_class_id, s.specials_new_products_price, s.status, p.products_price from ". TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on p.manufacturers_id = m.manufacturers_id left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where p.products_id = pd.products_id and p.products_master = '" . $thisquery['products_master'] . "' and p.products_status = '1' and pd.language_id = '" . (int)$languages_id . "'";

Matti
Matti Ressler

We were all once expert at...... nothing
_____

#16   VJ

VJ
  • Members
  • 173 posts
  • Real Name:VJ
  • Gender:Male

Posted 27 November 2003 - 11:04 AM

Thank you. I'll give it a try again.

VJ

#17   ruta

ruta
  • Members
  • 31 posts
  • Real Name:ruta

Posted 27 November 2003 - 03:08 PM

I need change numbers at drop down menu where i try choose quantity of products

Like 15
       25
       35
       45
       ...


       100
       200
       500

Where I can change it?

#18   Johnson

Johnson
  • Banned
  • 5,205 posts
  • Real Name:Matti Ressler
  • Location:Sydney, Australia

Posted 27 November 2003 - 05:34 PM

In catalog/includes/modules/master_listing.php - you will see the 'option' format - this is easily added to.

Matti
Matti Ressler

We were all once expert at...... nothing
_____

#19   Johnson

Johnson
  • Banned
  • 5,205 posts
  • Real Name:Matti Ressler
  • Location:Sydney, Australia

Posted 27 November 2003 - 07:36 PM

Updated files have been uploaded to Contributions   B)

Matti
Matti Ressler

We were all once expert at...... nothing
_____

#20   blueline

blueline
  • Members
  • 994 posts
  • Real Name:Chris Sullivan
  • Location:Atlanta, GA - USA

Posted 28 November 2003 - 01:40 AM

Does anyone have this setup yet? If so, URL please.

Thanks,
-Chris
Chris Sullivan