Jump to content

Johnson

Members
  • Content count

    5,103
  • Joined

  • Last visited

Everything posted by Johnson

  1. Johnson

    UPS XML Address Validation Problem

    You do not have a valid UPS access key,user id or password posted to the UPS server :blink: Matti
  2. Johnson

    Is it possible to send order# to Authorize.net?

    No - that is a variable used in admin after the order has been processed - osCommerce does not currently generate an orders_id until(during) the order has been processed. It is simpler to generate your own - this can then be inserted into a custom database row during process. Matti
  3. Johnson

    Call to undefined function

    In catalog/includes/functions/general.php line 42 should read: return htmlspecialchars($string); You have an 's' missing :blink: Matti
  4. Johnson

    Is it possible to send order# to Authorize.net?

    Not sure about the description (or how Authorizenet uses this variable) - you would need to set up a loop to grab the different products in the order: //Put this above your $process_button_string variables: ? ? ? ? ? ? ?for($i=0, $n=sizeof($order->products); $i<$n; $i++) { ? ? ? ? ? ? ? ? ? ? ?$products_string .= tep_draw_hidden_field('x_description', $order->products[$i]['name'] . ' - ' . $order->products[$i]['model']); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?} //Put this below your process_button_string variables: ? ? ? ? ? ? ? ? ? ? ? ? $process_button_string .= $products_string; ? There is no order_id or invoice_number present until after process - I have used session_id + date instead: $inv_id = tep_session_id() . '-' . date(r); tep_draw_hidden_field('x_invoice_num', $inv_id ) . Matti
  5. Johnson

    Authorize.net Error

    Take a look at my post here: Authorizenet Errors Matti
  6. Johnson

    Dynamic Product Meta Tags

    The product_info.php you are looking at is the language file for catalog/product_info.php (the correct file) - if you have found the file you quote in the catalog directory, then it has been mistakenly uploaded there (and overwritten the correct file) - your file belongs in catalog/includes/languages/english/ :P Matti
  7. Johnson

    Strange behaviour

    You have missed adding a define to admin(and/or catalog)/includes/database_tables.php - I'm not sure, but would guess it as: define('TABLE_PRODUCTS_ATTRIBUTES_SETS', 'attributes_sets'); Check the documentation :) Matti
  8. Johnson

    Grabbing the return response code from the payment

    I posted a simple hack here on grabbing the response_reason code from Authorizenet - you can use this as a guide.... you will need to know the codes sent from your payment processor :) Matti
  9. Johnson

    Master Products - MS2

    Anything is possible - have fun! :D Matti
  10. Johnson

    Master Products - MS2

    This is a problem with your BTS installation both 'DIR_WS_BOX_TEMPLATES' and 'TEMPLATENAME_BOX' are not defined - look in the installation docs for BTS. Matti
  11. Johnson

    Master Products - MS2

    ? ? ? <td align="right" class="main"><?php ? ? ?$qty_array = array(); ? ? ? ? ? for ($i=0; $ns = 20, $i <= $ns; $i++) { ? ? ? ? ? $qty_array[] = array('id' => $i, 'text' => $i); ? ? ? } ? ? ? if ($product_info['products_master_status'] == 1) { ? ? ? ? echo TEXT_MASTER; ? } elseif ($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)) { ? ? ? ? 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> Dunno why you wish to do this - if you give the Master a zero dollar value they will not appear anyway. If you need to display a price, put it in the products_description :) Matti
  12. Johnson

    Master Products - MS2

    When its ready :) It will require a rewrite of the contribution :lol: There is nothing in contributions for snapshots :blink:
  13. Johnson

    Master Products - MS2

    I don't see the point in doing this - the snapshot is undergoing major changes prior to the release of MS3 :P Matti
  14. Johnson

    Master Products - MS2

    The 'generic' product listing page does not have a quantity box :) The way to do this is quite simple:- ? ? ?if (products_master_status == 1) { ? ? ?output_this; ? ? } else { ? ? ?output_this_other; ? ? } Matti
  15. Johnson

    WHY DOES NO ONE CARE?

    In catalog/all_products.php replace: ' <td class="pageheading"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . make_link($products['products_id']) . (($language_code == DEFAULT_LANGUAGE) ? '' : ('&language=' . $language_code))) . '"><h1>' . $products['products_name'] . "</h1></a></td>\n" . with: ' <td class="pageheading"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products['products_id'] . (($language_code == DEFAULT_LANGUAGE) ? '' : ('&language=' . $language_code))) . '"><h1>' . $products['products_name'] . "</h1></a></td>\n" . This fix has been posted to the contribution page since February :blink: Matti
  16. Johnson

    WHY DOES NO ONE CARE?

    Please do not crosspost Thanks! :) Matti osCommerce Team Member
  17. Johnson

    How Did You Hear About Us v1.0

    Just a stab in the dark, but it looks like you are querying the wrong database :P Matti
  18. Johnson

    Register Globals problem again

    Make sure you edited the correct copy of php.ini (search) - then restart your server :P Matti
  19. I'm not sure how this could be done; I'll have to think about that one, can't immediately think of a smart way to achieve that. Maybe I just need a fresh mind and the answer might come overnight ... Thanks for all your feedback ! Keep the ideas coming ! Cheers You can do this by using the splitPageResults class - take a look at includes/module/product_listing.php to see this in action :) Matti
  20. Thanks for pointing this out, added additional code to catch this and showing an error msg. I was wondering though what the standard way for this kind of msg is. If someone has a sample of proper error msg code to use; please post here Thanks The standard method is to us the $messageStack class: ? ?if ($variable) != PARAMETER) { ? ? ?$error = true; ? ? ?$messageStack->add('form_identity', ERROR_TEXT); ? ?} and it is displayed: <?php ?if ($messageStack->size('form_identity') > 0) { ?> ? ? ?<tr> ? ? ? ?<td><?php echo $messageStack->output('form_identity'); ?></td> ? ? ?</tr> ? ? ?<tr> ? ? ? ?<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> ? ? ?</tr> <?php ?} ?> Look at create_account.php to see it in use :) or, another way is: <?php ?if (tep_db_num_rows($your_db_query) < 1) { ?> ? ? ?<tr> ? ? ? ?<td><?php new infoBox(array(array('text' => YOUR_ERROR_MESSAGE))); ?></td> ? ? ?</tr> ? ? ?<tr> ? ? ? ?<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> ? ? ?</tr> Matti
  21. Johnson

    Vendor_Auto_E-mail (In_Development)

    Post it to our contributions as a contribution in development. Thanks! :) Matti osCommerce Team Member
  22. Johnson

    Posting the creditcardnumber uncrypted?

    It must also post from an SSL page :P Matti
  23. Consider 'on the fly' and server load :) I think a contribution that creates thumbs stored in your images directory would be the better option. Matti
  24. Johnson

    Posting the creditcardnumber uncrypted?

    You must have an SSL certificate installed on your server and osCommerce configured for this - SSL encrypts the entire checkout/account processes :) Matti
  25. Johnson

    Master Products - MS2

    1.15 is all you need :) The drop menu shows the Masters you have created Matti
×