Jump to content

Johnson

Members
  • Content count

    5,103
  • Joined

  • Last visited

Everything posted by Johnson

  1. That test data is for an installation running the Master Products contribution - where did you get it? Matti
  2. Johnson

    Master Products - MS2

    Great stuff! - I musta done something right :P Only part of the day :D That is not up to date with the current release - the second post would replace the drop menu in the Slave listing - I shall be including this option for both Slave listing and product info in the next release. I believe this is how the menus display in Windows XP :P You can safely remove it. This would be Matti Tikka (Matti the Finn) of Tikka Opals - a fellow Finn and personal friend I have known since boyhood. Matti traded a lot of my opal in the USA and Europe. Rarely seen without his trademark tartan cap Matti is a short but powerfully built man who still competes in veteran weightlifting events. Like many outback characters it is difficult to determine whether he has found notoriety rather than fame :P His antics on ACN are well known. I fondly recall a time when he, 'Pedro' (the proprietor of The Glengarry Hilton - an outback sly grog shop on the Glengarry mining field) and a shifty fellow known as 'Peter the Finn' (Peter is my middle name and often used by friends) sat down for a gentleman's 'session' that lasted some 12 hours and resulted in the demise of a little less than half a dozen large bottles of scotch :D Matti
  3. Johnson

    Master Products - MS2

    I have already stated that I hope to work on this over Easter. I am not fed up in the slightest :) Sorry, but I do not share your desperation :blink: Contributing to osCommerce is something I like to do, but life has other necessities - these must come first, otherwise I do not eat, sleep etc. My work has been unexpectedly busy this year - clients take priority in this respect. I cannot say with certainty - certainly multiple slaves (copied) will go. If Slaves are linked to multiple Masters then there must be changes here also. Whether you will need to make changes in respect to your Masters remains to be seen. Yes You already can with the latest update :D Matti
  4. Johnson

    Master Products - MS2

    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
  5. Johnson

    Master Products - MS2

    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
  6. This is not the prospective contributor's intention: What is intended is a package containing the necessary files + installation instructions - there really is not a need to fork. Matti osCommerce Team Member
  7. Johnson

    Newbie to OS Commerce and Payment Methods

    Here you will find a list of gateways that are supported by default: Gateways There are others that may be found in Contributions Matti
  8. Johnson

    oscaffiliate table help

    Perhaps you only downloaded file updates? Look in the contribution download section again to see if you need to download something else :) Matti
  9. Johnson

    oscaffiliate table help

    You need to enter the language defines in admin/includes/languages/english/index.php - probably elsewhere also :unsure: Matti
  10. Johnson

    oscaffiliate table help

    Yes - you must define each new table name. Matti
  11. Johnson

    oscaffiliate table help

    You must define the table name in admin/includes/database_tables.php (possibly on the catalog side also): define('TABLE_AFFILIATE_SALES', 'affiliate_sales'); I have assumed the table name - you may need to correct this :) Matti
  12. Johnson

    Pay Pal IPN Module and Affiliate Tracking Problem

    Put the gap in the second one - it stops your affiliate script from unregistering the session order info during checkout by causing those two lines to be ignored by PHP Matti
  13. Johnson

    Pay Pal IPN Module and Affiliate Tracking Problem

    Try changing: tep_session_unregister('orders_total'); tep_session_unregister('orders_id'); to: // tep_session_unregister('orders_total'); //tep_session_unregister('orders_id'); Matti
  14. Johnson

    Pay Pal IPN Module and Affiliate Tracking Problem

    I think that these two lines would cause problems: tep_session_unregister('orders_total'); tep_session_unregister('orders_id'); Matti
  15. Johnson

    Fatal error: Cannot redeclare class zones...

    There is a 'remove' button when you select the module in admin - it can also be just turned off, however, I would be wary that there may be a conflict using this method - try it, if it doesn't work then try remove - to reinstall you simply click the 'install' button, so its not a problem. Please read the docs for your new module ;) Matti
  16. Johnson

    Fatal error: Cannot redeclare class zones...

    Line 97 has: class zones { I am not familiar with your mod, but, the above can only be declared once - perhaps you need to uninstall the default zones module to use your mods (re-read the documentation)? It is also possible that your contribution is old and therefore not compatible. Look for the above code in your new files. Matti
  17. Johnson

    Master Products - MS2

    This is on the to-do list along with attributes. Matti
  18. Johnson

    Master Products - MS2

    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 . ' ' . 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 . ' ' . 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
  19. Johnson

    Master Products - MS2

    No - it means that the master can have attributes - you shall be the first to know when slaves can : ) Matti
  20. Johnson

    Master Products - MS2

    For those who wish to sell out of stock items..... in admin->configuration->stock you must set 'check stock level' to 'false'..... and.... In catalog/includes/master_listing.php: ? ? ? ? ?case 'MASTER_LIST_BUY_NOW': ? ? ? ? ? ?$lc_align = 'center'; ? ? ? ? ? ?$lc_valign = 'top'; ? ? ? ? ? ?if ((STOCK_CHECK == 'true')&&(tep_get_products_stock($listing['products_id']) < 1)) { ? ? ? ? ? ?$lc_text = TEXT_STOCK; ? ? ? ? ?} elseif ((STOCK_CHECK == 'false')&&(tep_get_products_stock($listing['products_id']) < 1)) { ? ? ? ? ? ?$qty_array = array(); ? ? ? ? ? ?for ($i=0; $ns = 20, $i <= $ns; $i++) { ? ? ? ? ? ?$qty_array[] = array('id' => $i, 'text' => $i); ? ? ? ? ? ? ? ? ? ? ? ?$lc_text = tep_draw_pull_down_menu('Qty_ProdId_' . $listing['products_id'], $qty_array); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?} ? ? ? ? ?} else { ? ? ? ? ? ?$quantity = tep_get_products_stock($listing['products_id']); ? ? ? ? ? ? ?$qty_array = array(); ? ? ? ? ? ?for ($i=0; $ns = (($quantity < 20) ? $quantity : 20), $i <= $ns; $i++) { ? ? ? ? ? ?$qty_array[] = array('id' => $i, 'text' => $i); ? ? ? ? ? ? ? ? ? ? ? ?$lc_text = tep_draw_pull_down_menu('Qty_ProdId_' . $listing['products_id'], $qty_array); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?} ? ? ? ?} ? ? ? ? ? break; ? ? ? ?} Please do not post back here saying it does not work - it does :P Matti
  21. Johnson

    Master Products - MS2

    In regard to the stock option - it is already posted here how to have a quantity box rather than a drop menu :blink: I just tested again on a fresh install - I dropped the Master Products directory into my *fresh* installation, ran the SQL - it functions as expected. Tim, your extra button is in master_listing.php - please replace it with the new one... 'add_slave' is correct and will add the master if you have the correct <form> specs - check your product_info.php with the new and also your application_top.php under 'add_slave'. At present, the Master product can have attributes - as I posted earlier, I have set my Easter break to work on this..... as much as I need a real break altogether :blink: Thankyou, Matti
  22. Johnson

    Master Products - MS2

    No, you don't "have all of that" - look again. The quantity drop menu will appear on a normal product page also. I would suggest that you begin by installing the product_info.php included in the package, then move over your own changes one by one. Matti
  23. Johnson

    Master Products - MS2

    In your file you should have: <td width="100%" valign="top"><?php echo '<form name="buy_now_" method="post" action="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=add_slave', 'NONSSL') . '">'; ?><table border="0" width="100%" cellspacing="0" cellpadding="0"> and tep_draw_pull_down_menu('Qty_ProdId_' . $product_info['products_id'], $qty_array); also, compare your application_top.php with the one in the latest download. Matti
  24. Johnson

    Master Products - MS2

    Better! :D That looks as it should. Matti
  25. Johnson

    Master Products - MS2

    You need to download the package I uploaded this morning (I uploaded one last night also - this had omissions) - you should not have two add to cart buttons (replace your master_listing.php with the new one :P ) If you use the *new* product_info.php the extra drop menu will appear if the Master has a price. Matti
×