Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Master Products - MS2


2394 replies to this topic

#2121 concorde44

  • Community Member
  • 75 posts
  • Real Name:Seb
  • Location:Nantes, FRANCE

Posted 18 September 2009, 09:01

Hi,
I think it is a limitation in the SQL database. Got to Phpmyadmin :
in the "products" table, modifiy the "products_master" type with more characters than 50

be sure to backup before.

you can put VARCHAR 512 for example.

Try it and let me know!

Seb
Osc 2.2 MS2

#2122 mongomike

  • Community Member
  • 54 posts
  • Real Name:Bryan McMichael
  • Gender:Male
  • Location:Wolverhampton, UK

Posted 18 September 2009, 09:30

View Postconcorde44, on Sep 18 2009, 10:01 AM, said:

Hi,
I think it is a limitation in the SQL database. Got to Phpmyadmin :
in the "products" table, modifiy the "products_master" type with more characters than 50

be sure to backup before.

you can put VARCHAR 512 for example.

Try it and let me know!

Seb

Seb,

Again... Works like a charm.. I think the max is 255..

You just saved me hours of creating multiple masters!

Many Thanks

#2123 concorde44

  • Community Member
  • 75 posts
  • Real Name:Seb
  • Location:Nantes, FRANCE

Posted 18 September 2009, 10:37

[img]http://static-p3.fotolia.com/jpg/00/04/43/58/110_F_4435875_j3gLkt8VA00H6S7paVa1c4l1DFqP75bh.jpg[/img]

Happy for you.
Not good at Sql ! But 255 is still low... may be changing the type VARCHAR by Text could be unlimited.
Seb

Edited by concorde44, 18 September 2009, 10:38.

Osc 2.2 MS2

#2124 mongomike

  • Community Member
  • 54 posts
  • Real Name:Bryan McMichael
  • Gender:Male
  • Location:Wolverhampton, UK

Posted 22 September 2009, 11:01

View Postconcorde44, on Sep 18 2009, 11:37 AM, said:

[img]http://static-p3.fotolia.com/jpg/00/04/43/58/110_F_4435875_j3gLkt8VA00H6S7paVa1c4l1DFqP75bh.jpg[/img]

Happy for you.
Not good at Sql ! But 255 is still low... may be changing the type VARCHAR by Text could be unlimited.
Seb


Hey Seb,

Thanks for your help on this. I don't suppose you know how to hide slaves from search result page?

I Can hide them on the category pages but they are still appearing in the the search results.

Any Ideas?

#2125 Terry Mitchell

  • Community Member
  • 64 posts
  • Real Name:Terry Mitchell

Posted 29 September 2009, 21:49

View PostTop Rasta, on Jan 27 2006, 11:52 AM, said:

Hi dickydixon,

I am using digital music downloads for this example here. Actually it's not too difficult depending on how you have stuff set up. What I did is have 2 separate forms on the product_info.php page each with it's own add to cart button.

One to post the Master Product (e.g. if you have an album and just want to add the album)
The second to post the Slave Products (e.g if you want to select just a couple of tracks from the album)


To allow only one Product to be bought.

1. The first form around the master product, I have the form pass the default post action of action=add_product (which is the default action in the unmodified Os commerce installation) and I uncomment the lines that draws the pull down menu which is ( tep_draw_pull_down_menu('Qty_ProdId_' . $product_info['products_id'], $qty_array) ; )


To add checkboxes to the Slave products instead of the pull down menu do this.

Resources with information to do this tasks.

1.) The catalog/includes/modules/master_listing.php page builds the Slave Products layout.
2.) The catalog/includes/functions/html_output.php contains the functions to build various form elements from form fields to hidden fields etc.

In the catalog/includes/modules/master_listing.php look for the switch statement with the case " case 'MASTER_LIST_BUY_NOW': " That switch statement builds the pull down menue of the slave listings.

"Comment Out" or delete it and replace it with

case 'MASTER_LIST_BUY_NOW':
$lc_align = 'center';
$lc_valign = 'top';
$lc_text = tep_draw_checkbox_field('Qty_ProdId_' . $listing['products_id'], $value = (int)1);
break;

The important variable is the $lc_text which contains the call to the function located in the catalog/includes/functions/html_output.php page to output a checkbox field.

That's it and you're doen . Have fun.

Investigate the functions in the catalog/includes/functions/html_output.php for other variable you can pass to that function such as have the checkbox checked by default etc.

Hope it helps.

Hi All (particularly Top Rasta if you're still around as this seems to be your area of expertise)

I've got Master Products up and running fine but it seems to be passing over my downloadable products (mp3's) as physical products and therefore the downloads are not available at the end of the process...And it adds shipping!!

I'm a semi newbie at this and can't quite figure out where to look to fix this problem - does anyone have any advice as I'm pulling my hair out over this.

Please, help before I lose what little hair I have left!!

Thanks

Terry

#2126 quattro80

  • Community Member
  • 1 posts
  • Real Name:danny

Posted 03 October 2009, 19:11

hi guys... can somebody help me plz... i just followed the instructions and i have this fatal error... :(

Fatal error: Cannot redeclare currencies::display_price() in /mnt/web3/41/72/52142672/htdocs/admin/includes/classes/currencies.php on line 83

#2127 Terry Mitchell

  • Community Member
  • 64 posts
  • Real Name:Terry Mitchell

Posted 05 October 2009, 18:44

Hi Guys

Big problem with Master Products returning product type as physical rather than virtual.

Been working with oscommerce for some time now and have a vague idea of what's going on. I installed Master Products on my mp3 downloads site for the obvious reason of the option to sell lp's or individual tracks. The only problem is that all Master products are being sent to the shopping cart as physical rather than virtual product and therefore the download links aren't showing and shipping is being added. Does anybody have any idea on how to change the product type being sent to checkout??

I'm using Super Downloads Store too, I'm aware that this may present some problems.

Please, if anyone could help me it would be much appreciated - I've spent days scouring this forum.

Thanks in advance.

Terry

#2128 Terry Mitchell

  • Community Member
  • 64 posts
  • Real Name:Terry Mitchell

Posted 08 October 2009, 14:39

Anybody??....Please??

#2129 chipo

  • Community Member
  • 1 posts
  • Real Name:Kai

Posted 21 October 2009, 08:23

Hi,

I have now installed Master Products - MS2, and also find it quite good. However disturbs me that we as a slave assigned products only to buy under the master product and no-longer appears as a standalone product in the catalog. Although now have already get this done now, the slaves re-emerge in the categories, but with a click on the BuyNow button to return lands to the master product.

#2130 Terry Mitchell

  • Community Member
  • 64 posts
  • Real Name:Terry Mitchell

Posted 25 October 2009, 20:02

View Postchipo, on 21 October 2009, 08:23, said:

Hi,

I have now installed Master Products - MS2, and also find it quite good. However disturbs me that we as a slave assigned products only to buy under the master product and no-longer appears as a standalone product in the catalog. Although now have already get this done now, the slaves re-emerge in the categories, but with a click on the BuyNow button to return lands to the master product.

Hi Chipo
I'm having the same problem I need the products to appear as a standalone product as well as a "Slave". Did you manage to fix this?? Does anybody else have any ideas how to work around this??

Thanks

Terry

#2131 desmoworks

  • Community Member
  • 52 posts
  • Real Name:Anthony
  • Gender:Male

Posted 27 October 2009, 03:52

Did anyone ever figure out how to display "from $X.XX" or "starting at $X.XX" on the master listing based on the lowest priced slave product? I've been playing around with currencies.php, but haven't had any luck yet.

I tried to search, but with the new forum layout searching is ridiculously hard.

#2132 Terry Mitchell

  • Community Member
  • 64 posts
  • Real Name:Terry Mitchell

Posted 28 October 2009, 16:18

View PostTerry Mitchell, on 25 October 2009, 20:02, said:

Hi Chipo
I'm having the same problem I need the products to appear as a standalone product as well as a "Slave". Did you manage to fix this?? Does anybody else have any ideas how to work around this??

Thanks

Terry
Please, is there anybody out there with experience of Master Products who can help me with this?? When I add an already existing product to a master as a slave it then disappears as a standalone product in the product listing.

Help!

#2133 proxyloh

  • Community Member
  • 7 posts
  • Real Name:babajka

Posted 01 November 2009, 17:14

View PostTerry Mitchell, on 28 October 2009, 16:18, said:

Please, is there anybody out there with experience of Master Products who can help me with this?? When I add an already existing product to a master as a slave it then disappears as a standalone product in the product listing.

Help!
I have the same request. Master product's fathers please help us to solve it. Although I would be happy if slave product name's link on a master's page will be opened as a standalone product's page. Thank you. By the way. Gratest contribution. Gratest. Gratest. Very usefull.

#2134 Rob65

  • Community Member
  • 4 posts
  • Real Name:Rob

Posted 04 December 2009, 15:37

I have a problem with Master Products combined with the Ajax AttributeManager (http://addons.oscommerce.com/info/4063).
After installing Master Products I suddenly do not see the result of the AttributeManager (i.e. pull down select box with size/color) in my shopping cart and prices are no longer ajusted.

Is there something special to do when using both these modules to get things to work?
Is there anyone using this who can confirm that this should be working (or has a fix) - version info would be great.
Did I do wrong?

I am using OS Commerce RC2a with Ajax AttributeManager v2.8.7 and Master Products RC2a v1.23

Regards,

Rob

#2135 ricardodacosta

  • Community Member
  • 132 posts
  • Real Name:ricardo

Posted 12 December 2009, 22:37

Would anyone happen to know how to do the following:

I have some products (masters) where the slaves have atributes and I have some other products (masters) where the slaves do not have atributes.

At the present moment, the slaves listings on product_info.php shows "Option" in all products whether they have atributes or not.

I would like the "Options" listing to show ONLY if slaves have atributes....

Any suggestions on how to do that?

thanks!

Ricardo

#2136 Rob65

  • Community Member
  • 4 posts
  • Real Name:Rob

Posted 15 December 2009, 13:31

Hi,

the master module introduces a new function into osCommerce that (I think) has nothing to do with the master module itself.
Suddenly I get a pull-down box where the customer may select the number of items to buy, on the left side of this box the text "TEXT_QUANTITY" is show.

Why is this done? Why is there no define() for this text done by Master Products?
And why is this a pull-down box - and not as I see it on many other systems a field where I can type a number (like in the shopping cart).

Btw: Is there any support on this module ? The installation manual mentions this thread as the "the oficial suport thread" (typos are in the manual :o ) but reading this thread it looks like there are lots of questions but hardly any answers.
Does anyone feel responsible for this module ??? Apparently Johnson (the original author) bailed out ...

Rob

Edited by Rob65, 15 December 2009, 13:38.


#2137 Rob65

  • Community Member
  • 4 posts
  • Real Name:Rob

Posted 15 December 2009, 16:23

Next problem ...

I tried to use the Simple Template System together with the Master Products modules.
It seems that this is not working correctly.
Suddenly my content field stops half-way during parsing of the product_info.php file.

In product_info.php a form (buy_now_) is created and the simple template system stops parsing the file after the </form> (it seems).
As soon as I revert back to the previous version of my webshop without Master Products, parsing is OK.

Rob

#2138 Rob65

  • Community Member
  • 4 posts
  • Real Name:Rob

Posted 16 December 2009, 08:49

Bwah,

did a full reinstall of osCommerce RC2a including the Ajax Attribute Manager, FCK Editor, QT-Pro, Ship2Pay, Ultimate SEO, Ultra Pics, Simple Template System and the Master Products Module (took me almost all night ...).

Everything works except .... Master Products.
With the Master Products added the simple template is not working properly anymore (suddenly the files are only parsed to half way the file), I get some extra fields for free (that are not part of Master Products) and the attributes that I add to products do not show up in my shopping cart.

Also, 'slave' products do not appear as separate selectable products in the catalog but they do show up in the "new products" window - from where I can select and buy this as a separate product.

I a sorry but it looks I have to tell the customer that I have to remove the whole Master Products module and search for another option. There are just too many problems with the Master Products module to solve for me.
A whole week of data entry lost ...

Rob

#2139 devpro631

  • Community Member
  • 9 posts
  • Real Name:Jim

Posted 11 January 2010, 01:46

Hi,

I followed the instructions for RC2 but I am getting a few errors. First, in the admin section, when I click on a product I get
Warning: reset(): Passed variable is not an array or object in /path/admin/includes/classes/object_info.php on line 17

Warning: Variable passed to each() is not an array or object in /path/admin/includes/classes/object_info.php on line 18

Also, the item's information is completely missing from the page. It just shows empty text fields.


On the product info pages, the tables are out of whack.

I am running a fairly clean version of RC2 but it has Ultimate SEO URLs installed, and it has STS. Any help would be appreciated.

#2140 devpro631

  • Community Member
  • 9 posts
  • Real Name:Jim

Posted 11 January 2010, 02:35

Sorry for my previous. I made some mistakes but I fixed them and it's working great now. Question: How can I get the suggested products box to appear in my STS template? Does anyone know?