Jump to content


  • Content count

  • Joined

  • Last visited

Everything posted by Johnson

  1. Johnson

    Master Products - MS2

    Wow! Somebody who realises I gotta eat! :P I have a donation link on the Team Page or you can message me. The link to Hibias was to show that anything is possible - the current development version does not have extra download functionality - music sites are my bread and butter :) To accomplish what you want you need to edit both downloads.php and checkout_process.php (they are the main two). Matti
  2. Johnson

    Master Products - MS2

    You would need to add the fields yourself - choose a field like you want and copy an existing occurence of it thru the code using a different name - add the new field to your database PRODUCTS table and CONFIGURATION table - about 30 minutes work with a good text editor :) Matti
  3. Johnson

    Hard time

    Look here for adding the link :) Matti
  4. Johnson

    This php idiot needs help with a module

    We dont support uncontributed solutions :) Standard osCommerce payment modules are installed into the /includes/modules/payment directory with their corresponding language file into /includes/languages/english/modules/payment/ (or your language). They will then show in admin where you can enable and configure the module. Please refer to your provider for support. Matti
  5. Johnson

    Master Products - MS2

    Anything can be accomplished with a little imagination: my latest work using Master Products logic :) (this is not yet optimised for opera) Conditional clauses will do what you want: if($this == true) { $mything = $first_thing; } else { $mything = $second_thing; } Matti
  6. Johnson

    Master Products - MS2

    Ahh... I think that function is only in admin in the current version - I have it in the catalog in my development version - put this in /includes/functions/general.php: //Get products master status function tep_get_products_master_status($product_id) { $product_query = tep_db_query("select products_master_status from " . TABLE_PRODUCTS . " where products_id = '" . (int)$product_id . "'"); $product = tep_db_fetch_array($product_query); return $product['products_master_status']; }
  7. Johnson

    Master Products - MS2

    If some products have a button and others dont then customers get confused as to whether a product is available for purchase. Yes - there is an attributes add-on for Master Products on the download page :) Matti
  8. Johnson

    Master Products - MS2

    Why change existing logic? If you look at the default buy_now, if a product has attributes it will redirect to product_info when the buy now button is clicked - the solution above just adds to this :) Matti
  9. Johnson

    Master Products - MS2

    1. You can do anything you set your mind to :) 2. Sounds like it! 3. In application_top.php change the buy_now to this: case 'buy_now' : if (isset($HTTP_GET_VARS['products_id'])) { if (tep_has_product_attributes($HTTP_GET_VARS['products_id'])) { tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['products_id'])); } elseif (tep_get_products_master_status($HTTP_GET_VARS['products_id']) == 1) { tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['products_id'])); } else { $cart->add_cart($HTTP_GET_VARS['products_id'], $cart->get_quantity($HTTP_GET_VARS['products_id'])+1); } } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); Matti
  10. Johnson

    Master Products - MS2

    On the product_info page, check if the product has a master and whether its listing status is 0 - if both are true redirect to the master. You should check whether the product has a master or its listing status if you wish to hide it from somewhere - not all products have a master_status of 1 There are myriad ways just checking either of those two parameters can be used. Matti
  11. Johnson

    Master Products - MS2

    This is not related to my contribution. You must remove one or the other function declaration for tep_reg_category. I dont have the time to make a manual install guide - use a file comparison tool to compare my files with a standard osCommerce package. Matti
  12. Johnson

    Master Products - MS2

    Yes, there is a new version in beta testing - essentially its just a matter of me finding the time to release it :blush: Matti
  13. Johnson

    Help- Check out problem with authorize.net

    You should install this module to replace the one you have :) Matti
  14. The problem is elsewhere - I am not familiar with the contribution, but look at the file for the page you are viewing - most likely there is an included file that has a call to application_top.php - it should only be called in the main file, not any included/required files :) Matti
  15. Johnson

    Help in creating new module

    Your files must be named ot_authorization_code.php - you *must* have a corresponding language file. It installs fine for me, but I have not tested it further. Please remember to put the osCommerce copyright notice and your own copyright notice in the files :) Please be sure to upload it as a contribution. Matti
  16. Johnson

    Payment using Commonwealth Bank

    You will find one here :) Matti
  17. A completely new Family Products for osCommerce MS2. Products are assigned a Family in admin>categories>products>edit They are displayed on the product info page in the same manner as product listing in the main catalog and display is configurable in admin likewise. A screenshot may be viewed here: http://suomedia.com/family_products.jpg The contribution may be downloaded here: http://www.oscommerce.com/community/contributions,1429
  18. Johnson

    Instatiating Error

    Sounds more like a bug in the vendor shipping contribution - please post to the support thread :) Matti
  19. Johnson

    Can someone help me with shipping problem

    You need to add weights to your products - edit them in admin :) Matti
  20. Johnson

    Special osCOMMERCE

    You need to search our Contributions section :) Matti
  21. Johnson

    Master Products - MS2

    You state: "action=add_product" - it should be: action=add_slave Matti
  22. Johnson

    Potential contibution developments

    We have a "Features and Suggestions" channel for this. Matti
  23. Johnson

    Hide price if $0 problem

    You can hide zero dollar values quite simply in osCommerce - in /includes/classes/currencies.php - down the bottom of the file find: function display_price($products_price, $products_tax, $quantity = 1) { return $this->format(tep_add_tax($products_price, $products_tax) * $quantity); } and chage it to: function display_price($products_price, $products_tax, $quantity = 1) { if($products_price == '0') { return ''; } else { return $this->format(tep_add_tax($products_price, $products_tax) * $quantity); } } *Note: there is another closing curly bracket after this that should remain. Matti
  24. Johnson

    "goes well with" contribution...

    Perhaps one of the cross-sell contributions - try Xsell Matti
  25. You can edit/add currencies in admin>>localisation>>currencies... you can name them what you like :D Matti