Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Master Products - MS2


2394 replies to this topic

#421 Johnson

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

Posted 02 April 2004, 10:58

Here is the code for product_info.php for those who wish to checkout out of stock items:

<?php
    if ($product_info['products_price']>0) {
   
    $qty_array = array();
   
    for ($i=0; $n2 = (($product_info['products_quantity'] < 20) ? $product_info['products_quantity'] : 20), $i <= $n2; $i++) {
    
    $qty_array[] = array('id' => $i, 'text' => $i); 
}
?>
      <tr>
        <td align="right" class="main"><?php if ($product_info['products_quantity'] > 0) {
      echo TEXT_QUANTITY . '&nbsp;&nbsp;' . tep_draw_pull_down_menu('Qty_ProdId_' . $product_info['products_id'], $qty_array); 
      } elseif ((STOCK_CHECK == 'false')&& ($product_info['products_quantity'] < 1)) {
     	 $qty_array = array();
            for ($i=0; $ns = 20, $i <= $ns; $i++) {
            $qty_array[] = array('id' => $i, 'text' => $i); 
        }     
      echo TEXT_QUANTITY . '&nbsp;&nbsp;' . tep_draw_pull_down_menu('Qty_ProdId_' . $product_info['products_id'], $qty_array);
      } else {
      echo TEXT_STOCK;
}
	echo tep_draw_separator('pixel_trans.gif', '30', '10');
?>
        </td>
      </tr>
<?php
}
?>

Matti
Matti Ressler

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

#422 tbrown

  • Community Member
  • 26 posts
  • Real Name:Tim

Posted 02 April 2004, 14:06

After running easy populate with master products, my category links do not work. for example, if i click on the category on the left, it brings up the category, but says there are no products in the category....is this related to easy populate or master products? does anyone know how to correct the links or database?

thanks,
Tim

#423 charles

  • Community Member
  • 255 posts
  • Real Name:Charles

Posted 02 April 2004, 16:57

Quote

you shall be the first to know when slaves can : )

Ooooh, I'm all goosebumpy! My subterranean water canon idea must have been a good one. :lol:

Plane got cancelled for weather so I got a free day to get ahead. Let me know if you need someone 'opalized'. B)

charles
We stand in ignorance only for questions not asked. Plug up the leaks in your knowledge base and open up a flood of understanding.

#424 Nipsy

  • Community Member
  • 24 posts
  • Real Name:Nipsy

Posted 02 April 2004, 17:06

I am still unclear on one thing that is stopping me from celebrating.

If I have a Slave A, can Slave A be a Slave of both Master A and Master B?

Does the dup function mentioned earlier on the thread dup the product, or create multiple instances of it's slave status.

If it duplicates the product, I cannot see how to properly maintain inventory control, as Slave A will have multiple part numbers which need to be managed.

#425 mywoom

  • Community Member
  • 2 posts
  • Real Name:Christophe

Posted 02 April 2004, 18:12

Hi, We would like to see an example of the master / Slave contribution on an active store before we install it. Can someone give us the name of a store and how to get there?

Thanks,

Christophe

#426 Johnson

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

Posted 02 April 2004, 21:28

Nipsy, on Apr 2 2004, 01:06 PM, said:

I am still unclear on one thing that is stopping me from celebrating.

If I have a Slave A, can Slave A be a Slave of both Master A and Master B?

Does the dup function mentioned earlier on the thread dup the product, or create multiple instances of it's slave status.

If it duplicates the product, I cannot see how to properly maintain inventory control, as Slave A will have multiple part numbers which need to be managed.
This is on the to-do list along with attributes.

Matti
Matti Ressler

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

#427 charles

  • Community Member
  • 255 posts
  • Real Name:Charles

Posted 02 April 2004, 21:33

Hi, We would like to see an example of the master / Slave contribution on an active store before we install it. Can someone give us the name of a store and how to get there?

Please don't double post. Answer is in your forum thread.

Your Thread

Charles
We stand in ignorance only for questions not asked. Plug up the leaks in your knowledge base and open up a flood of understanding.

#428 dr_lucas

  • Community Member
  • 219 posts
  • Real Name:Mikey

Posted 03 April 2004, 03:47

Johnson, thank you very much for your excellent contribution! :)

I am curios to know if it is possible to revise the contribution to handle situations like this:

If I have a product (master product) like 1,000 blank CDs that I want to sell in 2 options (attributes):
- Full pack - 100 pcs. ($25)
- Half pack - 50 pcs. ($12.50)

And I need that whenever a customer choose the pack type, the correct amount of pcs. will be deducted from the master product stock of course.

Is it possible to revise the contribution or maybe add this option?

Thanks in advance, and keep up the great job! ;)

#429 Tes

  • Community Member
  • 1 posts
  • Real Name:Tes

Posted 03 April 2004, 15:00

I'm such a rookie.... :huh:


I follwed the instructions carefully, however when I attempt to go to my admin page via the browser, I get this error message:

*************************
Warning: main(includes/classes/navigation_history.php): failed to open stream: No such file or directory in /home/tes/www/covert/catalog/admin/includes/application_top.php on line 126

Fatal error: main(): Failed opening required 'includes/classes/navigation_history.php' (include_path='.:/usr/local/share/pear:/usr/local/lib/php') in /home/tes/www/covert/catalog/admin/includes/application_top.php on line 126
*************************

I've spent the lat few hours trying to fix it and can't seem to get it. Help anyone? :(

Edited by Tes, 03 April 2004, 15:01.


#430 highgrade00

  • Community Member
  • 6 posts
  • Real Name:Brent

Posted 03 April 2004, 17:35

Johnson, earlier you had code up to allow the checkout of items that were not in stock (if it was set to false in admin). Are both codes snippets needed: '.../includes/modules/master_listing.php' AND '...product_info.php'? If so, where do they go in the code, or does it not matter?

#431 Johnson

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

Posted 03 April 2004, 23:04

Tes, on Apr 3 2004, 11:00 AM, said:

I'm such a rookie.... :huh:


I follwed the instructions carefully, however when I attempt to go to my admin page via the browser, I get this error message:

*************************
Warning: main(includes/classes/navigation_history.php): failed to open stream: No such file or directory in /home/tes/www/covert/catalog/admin/includes/application_top.php on line 126

Fatal error: main(): Failed opening required 'includes/classes/navigation_history.php' (include_path='.:/usr/local/share/pear:/usr/local/lib/php') in /home/tes/www/covert/catalog/admin/includes/application_top.php on line 126
*************************

I've spent the lat few hours trying to fix it and can't seem to get it. Help anyone? :(
I looks as though you have used a catalog side application_top.php in your admin side - they are two different files with the same name :blink: The contribution only makes changes here on the catalog side - simply replace your admin/includes/application_top.php with a fresh file :)

Matti
Matti Ressler

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

#432 Johnson

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

Posted 03 April 2004, 23:30

I have uploaded some fresh files that include the stock code I posted here earlier.

Added the option for out of stock items to be checked out rather than the out of stock message - this requires the correct admin->stock settings. Only product_info.php and master_listing.php have changed from the previous release.

Matti
Matti Ressler

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

#433 talon177

  • Community Member
  • 409 posts
  • Real Name:Talon

Posted 04 April 2004, 18:17

Has anyone gotten Wish List to work with Master Products, so when you click on add to wish list it'll add the slave product for the quantity you choose? What i noticed was that if you click on add to wish list it'll add the master product, but if you set your price to 0 and then you're on the wish list page and click move to cart it'll move the master price with 0 and not the slaves for the quantities you choose with their prices.

Thanks.

#434 fpc

  • Community Member
  • 4 posts
  • Real Name:fpc

Posted 04 April 2004, 22:36

Is there any way for all the slaves and the master to show up when viewing one of the slave products... right now if you go to a slave it shows nothing, but I would like all the products master/slave associated to that one to appear at the bottom of the product page regardless if you are on the slave or master.. basically i want a cross association of all in the group..

I hope there is a way to do this!

Thanks! great mod

#435 talon177

  • Community Member
  • 409 posts
  • Real Name:Talon

Posted 04 April 2004, 22:48

There is please reread this thread as theres a fix to this posted by johnson.

#436 fpc

  • Community Member
  • 4 posts
  • Real Name:fpc

Posted 04 April 2004, 23:38

well, i read up to about page 15 but i mean its a bit difficult to read 44 pages of posts..

#437 fpc

  • Community Member
  • 4 posts
  • Real Name:fpc

Posted 05 April 2004, 01:11

I searched all of johnsons posts in this thread and was unable to find any type of fix for cross referencing slaves to masters when visiting either product.. please post a link if you have found otherwise.. thanks

#438 bettysue

  • Community Member
  • 29 posts
  • Real Name:Betty

Posted 05 April 2004, 06:04

First things first....

I may be a raw newbie with osCommerce and php, however this contribution has vastly expanded the use and capabilities of the product. I have read, searched and tried other contributions which have crashed and burned leading to re-install after re-install.

I had 1 problem only when I installed v1.15 on 4/3. It was a "BSU" - aka blonde screwed up. I forgot to upload the files in Includes :huh:

Secondly, I will appreciate information from anyone as they have time, I am not expecting the author to sit by his keyboard waiting for rookie questions all day ;)

Thirdly - Here goes....

1. I have read all the threads and the replies to replacing the drop down boxes with quantity boxes as referenced in this post and two posts down from it by iiinetworks.

a. The 2 posts confuse me as to what I am actually supposed to add/change. Is it only what's in the second post or part of the first and all of the second?

b. I really prefer the look, as opposed to both the dropdown and manual qty boxes, that Tim Doyle posted a capture of and iveo posted a similar capture here.

Did I somehow miss the post in my 3 complete reads of this thread, or is it a different mod, a feature of Master Products I missed, or is it a secret :ph34r: ?

c. I know the "This product was added to our catalog on blah blah blah, is part of osCommerce, what I don't know is if any of the Master code is written in whatever it is that has this feature in it.

I ask as I really want to remove it if possible. So before I ask in the regular support section (have searched and searched), I wanted to ask here if it is removed will it affect Master Products?

Again, thank you in advance to anyone who strolls through that may be able to help me.

Betty

OT: I used to know a Maddy (forgot his last name - brain cramp) who was an opal miner in Australia. He used to come to a wholesale gem show in Orlando back when I was doing goldsmithing and gemsetting. He also used to be on ACN shopping channel once in a while. He was so cute and a wonderfully playful dirty old man :wub: (not in a bad dirty old man way) .
/END OT

#439 bettysue

  • Community Member
  • 29 posts
  • Real Name:Betty

Posted 05 April 2004, 18:31

I am also dazed and confused about the post that Johnson made on 11/30/03
Which involves the code that can be added to keep the slaves from showing up as new products.

Quote

In catalog/includes/new_products.php change the db queries to:


I don't have a new_products.php in my includes directory.

Am I missing a file, or is it the one in includes/modules, or in another directory?

Also, I did the changes as listed in this post from 2/14/04 by Talon177, yet my slaves are still showing up as new products and on the products listing page.

Again, I am reading all the posts and trying not to bother y'all that much, at least until I try all I understand and the fat lady (looking in mirror) sings.


thank you,

Betty

#440 talon177

  • Community Member
  • 409 posts
  • Real Name:Talon

Posted 05 April 2004, 20:51

Just wondering, does anyone know what happens when you double up slave products? Will it show double the results in the searches? For example if you want slaves 2 be in 2 different masters? Although i know you'll have double the quantity of inventory.

Thanks.