Jump to content

Johnson

Members
  • Content count

    5,103
  • Joined

  • Last visited

Everything posted by Johnson

  1. Johnson

    Master Products - MS2

    I replied in the thread. Matti
  2. Johnson

    Master Products - MS2

    Version 2 is being developed for MS2 - then from that will progress to MS3 which will drop PHP3 compatibility. Matti
  3. Johnson

    Master Products - MS2

    You could do this by adding: and products_master_status != '1' to the $new_products queries, but this would prevent any Master from showing there. Matti
  4. Johnson

    Master Products - MS2

    PM me a link to your phpinfo. The numbers determine which order they display from left to right - 0 turns them off. Matti
  5. Johnson

    Master Products - MS2

    Not sure which of the two above you are referring to - if it is adding the slave to the basket then you most likely have a problem on product_info.php - post this file. Your product listing description suggestion for Master products is a good one - I shall include this in the new release. Matti
  6. Johnson

    Master Products - MS2

    To display a different button for Slave/Master products in product_listing change the following lines in catalog/includes/modules/product_listing.php: //Master Products if ($listing['products_master_status'] != '1' && $listing['products_master'] == '0') { $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; } elseif ($listing['products_master'] != '0') { $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_master']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; } else { $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; } //Master Products EOF to: //Master Products if ($listing['products_master_status'] != '1' && $listing['products_master'] == '0') { $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; } elseif ($listing['products_master'] != '0') { $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_master']) . '">' . tep_image_button('button_details.gif', IMAGE_BUTTON_DETAILS) . '</a> '; } else { $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image_button('button_details.gif', IMAGE_BUTTON_DETAILS) . '</a> '; } //Master Products EOF Create a button named 'button_details.gif' and upload it to your languages/english/images/buttons directory (if somebody has time to create a default osCommerce style button please pm me :D ) Add the following line (or similar) to languages/english.php: define('IMAGE_BUTTON_DETAILS', 'Product Details'); Matti
  7. Johnson

    Master Products - MS2

    Is there not a button at the bottom of the page? Check the product quantity/status Yes - this is how its supposed to work - the intention actually was to have it show a 'details' button instead - I just didn't have time as this is a pre-release and I am very busy - I shall post how to do this tonight. The current release doesn't handle multiple Master-Slave relationships at present - this is something being worked on for the next release. Yes. Matti ccc
  8. Johnson

    Error which won't go away.

    Sounds like perhaps a "parse error" ? Replace the file. Matti
  9. Johnson

    Master Products - MS2

    Well... I had hoped last month, but a lot came up to prevent that :unsure: I have set aside some time this week to make some serious progress, but there is much to do as I am trying my best to satisfy suggestions made here, and this list has grown somewhat.... working on it :D Matti
  10. Johnson

    Master Products - MS2

    Yes - this has long been on the list and will feature in the next release. Matti
  11. Johnson

    Master Products - MS2

    Look in catalog/includes/application_top.php - you should have: // define the project version define('PROJECT_VERSION', 'osCommerce 2.2-MS2'); Matti
  12. Johnson

    Master Products - MS2

    It is a simple matter to add a 'sort order', just a little time consuming. The default sort order may be found in modules/master_products.php: if ( (!isset($HTTP_GET_VARS['sort'])) || (!ereg('[1-8][ad]', $HTTP_GET_VARS['sort'])) || (substr($HTTP_GET_VARS['sort'], 0, 1) > sizeof($column_list)) ) { for ($i=0, $n=sizeof($column_list); $i<$n; $i++) { if ($column_list[$i] == 'MASTER_LIST_NAME') { $HTTP_GET_VARS['sort'] = $i+1 . 'a'; $master_sql .= " order by pd.products_name"; break; } } } Matti
  13. Johnson

    Master Products - MS2

    Comment this line in catalog/product_reviews_info.php <?php } echo '<p><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now') . '">' . tep_image_button('button_in_cart.gif', IMAGE_BUTTON_IN_CART) . '</a></p>'; ?> Quick fix only - I'll attend to this properly in the next release. Matti
  14. Johnson

    Master Products - MS2

    The usual cause is a missing </form> tag Matti
  15. Johnson

    FAQ DESK

    In any files you have modified, and the contribution files, change: tep_array_merge to: array_merge Matti
  16. Johnson

    At "checkout_confirmation.php"

    "Table Rate" is for shipping - the settings are in admin->modules->shipping Matti
  17. Johnson

    Master Products Contribution

    Master Products-MS2 pm me when you have found this. Matti
  18. Installing contributions on a recent snapshot is not a good idea - a snapshot is the development version of osCommerce - you should be running MS2 (check that your contribution is compatible). Matti
  19. Johnson

    Master Products - MS2

    All sounds good Charles - this is the type of feedback that is very helpful. Thanks, Matti
  20. Johnson

    Master Products - MS2

    Check the products status on your slave products Matti
  21. Johnson

    Help on using Admin Account with Access Level

    In your files, find: tep_array_merge Change it to: array_merge Matti
  22. Johnson

    Master Products - MS2

    There is much planned for the next release... version 1 is really a pre-release - good for code hacks, but may be difficult for novice users as the search, new products, specials etc. have not been attended to as yet - most things can be resolved with minor alterations to SQL queries as you say. I am currently reviewing the two threads to see what may be incorporated - price control for slaves is one already in the works. You can turn off the slave images in admin->slave listing. I am doing my best to get the next release out - have been a little overwhelmed with work and forum duties lately. Matti
  23. Change 'tep_array_merge' to 'array_merge'. Matti
  24. Johnson

    Master Products - MS2

    As soon as I am possibly able - please understand I must earn my living before the luxury of making contributions - its a little behind schedule due to those commitments .....and the amount of SPAM I must deal with on these forums (I have spent over an hour just this session).... but this month. Matti
  25. Johnson

    Master Products - MS2

    There is an answer to that on the previous page :P Matti
×