Jump to content

compugeek2003

Members
  • Content count

    50
  • Joined

  • Last visited

1 Follower

Profile Information

  1. Paul, You can use the BTS and the STS together with a bit of code tweaking. I am using both of them together very successfully. Since STS doesn't change alot of the files in the default osCommerce, it isn't really very difficult to implement. A few of the things that come to mind off the top of my head that needed some changes are: 1. The STS handles the javascript differently, so I had to change the STS code a little to work with BTS. 2. The built in metatags with BTS needed to be coded into STS. This was more or less just and include statement. Both the BTS and STS are great contributions and they really help to keep a site organized and make it much easier to edit code and layout. Eric Stamper
  2. Jeff, I have not used the BTS Affiliate, however, from a quick glance at your error message, it appears that your file names may not be correctly defined in the catalog/includes/filename.php file. You should have two definitions in that file that look something like this: define('CONTENT_AFFILIATE', 'affiliate'); and further down on the page: define('FILENAME_AFFILIATE', CONTENT_AFFILIATE . '.php'); If you do not have those page definitions, then osCommerce will not know where to look for your affiliate pages. Again, I have not looked at the BTS Affiliate, but hopefully this will give you an idea of where to start looking. Eric Stamper
  3. Paul, You are correct that this is a bug in the BTS. The reason for the error you were receiving is that the javascript file that is called in the script in incorrectly named. Your solution to comment out (or delete) the offending line of code would indeed remove the errors, however, it would also prevent the form data on the address_book_process.php page from being validated by the javascript. The best solution to the errors is to simply rename the file that is incorrectly named. That file is found in catalog/includes/javascript in the default BST download. You should change the file address_book_process.php to address_book_process.js.php and reupload the file to your web server. That should resolve the error messages and allow the form validation to work correctly. Eric Stamper
  4. aboyz wrote: You can control a percentage surcharge in 3 steps: 1.) Add the following code to the configuration table in the database: insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Fedex surcharge (%) ?', 'MODULE_SHIPPING_FEDEX1_PERCENT_SURCHARGE', '0', 'Surcharge percentage amount to add to shipping charge? (Example: enter .10 for a 10% surcharge)', '6', '21', now())"); You will need to change the 0 to whatever value you want in the admin section. .30 would be used for 30%. 2.) Around line 143 of the fedex1.php file you will find: 'cost' => (SHIPPING_HANDLING + MODULE_SHIPPING_FEDEX1_SURCHARGE + $this->surcharge + $cost) * $shipping_num_boxes); Change this line to: 'cost' => (SHIPPING_HANDLING + (MODULE_SHIPPING_FEDEX1_PERCENT_SURCHARGE * $cost) + MODULE_SHIPPING_FEDEX1_SURCHARGE + $this->surcharge + $cost) * $shipping_num_boxes); 3.) Around line 202 of the fedex1.php file you will find: return array('MODULE_SHIPPING_FEDEX1_STATUS', 'MODULE_SHIPPING_FEDEX1_ACCOUNT', 'MODULE_SHIPPING_FEDEX1_METER', 'MODULE_SHIPPING_FEDEX1_CURL', 'MODULE_SHIPPING_FEDEX1_DEBUG', 'MODULE_SHIPPING_FEDEX1_WEIGHT', 'MODULE_SHIPPING_FEDEX1_SERVER', 'MODULE_SHIPPING_FEDEX1_ADDRESS_1', 'MODULE_SHIPPING_FEDEX1_ADDRESS_2', 'MODULE_SHIPPING_FEDEX1_CITY', 'MODULE_SHIPPING_FEDEX1_STATE', 'MODULE_SHIPPING_FEDEX1_POSTAL', 'MODULE_SHIPPING_FEDEX1_PHONE', 'MODULE_SHIPPING_FEDEX1_DROPOFF', 'MODULE_SHIPPING_FEDEX1_TRANSIT', 'MODULE_SHIPPING_FEDEX1_SURCHARGE', 'MODULE_SHIPPING_FEDEX1_INSURE', 'MODULE_SHIPPING_FEDEX1_RESIDENTIAL', 'MODULE_SHIPPING_FEDEX1_ENVELOPE', 'MODULE_SHIPPING_FEDEX1_WEIGHT_SORT', 'MODULE_SHIPPING_FEDEX1_TIMEOUT', 'MODULE_SHIPPING_FEDEX1_TAX_CLASS','MODULE_SHIPPING_FEDEX1_SORT_ORDER'); Change this line to: return array('MODULE_SHIPPING_FEDEX1_STATUS', 'MODULE_SHIPPING_FEDEX1_ACCOUNT', 'MODULE_SHIPPING_FEDEX1_METER', 'MODULE_SHIPPING_FEDEX1_CURL', 'MODULE_SHIPPING_FEDEX1_DEBUG', 'MODULE_SHIPPING_FEDEX1_WEIGHT', 'MODULE_SHIPPING_FEDEX1_SERVER', 'MODULE_SHIPPING_FEDEX1_ADDRESS_1', 'MODULE_SHIPPING_FEDEX1_ADDRESS_2', 'MODULE_SHIPPING_FEDEX1_CITY', 'MODULE_SHIPPING_FEDEX1_STATE', 'MODULE_SHIPPING_FEDEX1_POSTAL', 'MODULE_SHIPPING_FEDEX1_PHONE', 'MODULE_SHIPPING_FEDEX1_DROPOFF', 'MODULE_SHIPPING_FEDEX1_TRANSIT', 'MODULE_SHIPPING_FEDEX1_SURCHARGE', 'MODULE_SHIPPING_FEDEX1_PERCENT_SURCHARGE','MODULE_SHIPPING_FEDEX1_INSURE', 'MODULE_SHIPPING_FEDEX1_RESIDENTIAL', 'MODULE_SHIPPING_FEDEX1_ENVELOPE', 'MODULE_SHIPPING_FEDEX1_WEIGHT_SORT', 'MODULE_SHIPPING_FEDEX1_TIMEOUT', 'MODULE_SHIPPING_FEDEX1_TAX_CLASS','MODULE_SHIPPING_FEDEX1_SORT_ORDER'); That should be all you need to do to add a percentage surcharge to your fedex rate calculations. You will now have the option to add on a fixed dollar amount and / or a percentage amount. Please note that if you choose to do both, the percentage amount is added based on the original rate amount received from fedex and the dollar amount is added on top of that. Hope that helps Eric Stamper
  5. compugeek2003

    [contribution] Simple Template System (sts)

    Vaiso, You can plug in additional graphics to the template page. You should be able to use either full paths or relative paths for this. By default, in the $headercontent template variable there is a reference to the base address to your page. This will allow the use of relative url's. The table widths are controlled in the sts_template.html file. For example around line 27 you would see this code: <td width="125" valign="top"> You could change the default value of 125 pixels to whatever you want. This would change the width of the left column. The main content section, the right column, and any other parts of the page could be conrolled similarly. Eric Stamper
  6. compugeek2003

    [contribution] Simple Template System (sts)

    Brian, Thanks for the update. It looks like you have added some great new functionality. Having the errors and warnings show on the page will be very helpful. Keep up the good work! Eric Stamper
  7. compugeek2003

    Need testers for manualorder mod

    Bluephoenix, I tested the existing customer and new customer functionality. It was simple to create orders both ways. I did not encounter any errors when working with one customer at a time. I did notice that if I did not log out when finished working with a customer account and left the window open, upon logging in as a different customer, any open widows for other customers changed to the newly opened customer account. This effectively prevents you from working on more than 1 account at a time. This may very well be what you intended. I just make note of it here for reference. The only problem that I noticed was in regards to opening several accounts and not closing them/logging off when finished. It seems that whatever items i had previously added to the other customer's carts were showing up in the most recently opened account. Obviously if the admin always logs off after working with a customer account, this will not be a problem. But inevitably an admin will often forget. One solution would be to generate a warning that requires the admin to log off the previous account before logging on to another account. A question I would have is whether there are added benefits to creating users/orders through your mod rather than directly through the catalog side? The one obvious difference that was indicated at the login section is that emails are not sent to the new customer when entered by the admin. Are there other differences? Keep up the good work! Eric Stamper
  8. compugeek2003

    Simple Template System (STS)

    Brian, Thanks alot for your great contribution. I have installed it as well as the basic template system for MS2. With a few tweaks they both work well together. There are some great possibilities with this template system. Keep up the great work! By the way, it looks like we are neighbors. I am from Bel Air. Eric Stamper
  9. compugeek2003

    Need BETA testers for new contribution

    Randy, I just sent you an email. If you still need beta testers let me know. Eric Stamper
  10. Brenden, Thanks for the template contribution. I have installed it and done some testing. So far, I have come across the bug that Tim found earlier in regards to the $javascript = 'formcheck.js.php'; needing to be changed to $javascript = 'form_check.js.php'; in the account_edit.php and account_password.php files. In addition, I have come across a similar issue in the create_account.php file. On line 1 of the content/create_account.tpl.php file there is a reference to some javascript code: onSubmit="return check_form(create_account);" The javascript code is not included in the file, however. To fix the problem, I added a reference to the needed javascript file to the create_account.php file on line # 255. This line needs to bee added: $javascript = 'form_check.js.php'; If I come across any other issues I'll let you know. Eric Stamper
  11. compugeek2003

    PayPal IPN v0.97 released

    Emerson, You can change the order status values, or add others to your liking in the admin section. Go to Localization > Order Status. From there you can edit, insert, or delete values. I hope that helps Eric Stamper
  12. Here is an update regarding the fix for the missing billing and shipping addresses in the confirmation emails. Note: This fix is for the PayPal IPN v0.971 for Milestone 1 version. Thanks to Linh for being so patient in testing this for me. Unfortunately, I mistakingly left off one of the steps to take in the instructions I posted before. With these additional instructions, it is now working for Linh as well. The missing step should be step 2-D ( in the catalog/includes/classes/order.php file). The changes are as follows: Around line 142 find this code: $shipping_address_query = tep_db_query("select ab.entry_firstname, ab.entry_lastname, ab.entry_company, ab.entry_street_address, ab.entry_suburb, ab.entry_postcode, ab.entry_city, ab.entry_zone_id, z.zone_name, ab.entry_country_id, c.countries_id, c.countries_name, c.countries_iso_code_2, c.countries_iso_code_3, c.address_format_id, ab.entry_state from " . TABLE_ADDRESS_BOOK . " ab left join " . TABLE_ZONES . " z on (ab.entry_zone_id = z.zone_id) left join " . TABLE_COUNTRIES . " c on (ab.entry_country_id = c.countries_id) where ab.customers_id = '" . $customer_id . "' and ab.address_book_id = '" . $sendto . "'"); and replace it with: $shipping_address_query = tep_db_query("select ab.address_book_id, ab.entry_firstname, ab.entry_lastname, ab.entry_company, ab.entry_street_address, ab.entry_suburb, ab.entry_postcode, ab.entry_city, ab.entry_zone_id, z.zone_name, ab.entry_country_id, c.countries_id, c.countries_name, c.countries_iso_code_2, c.countries_iso_code_3, c.address_format_id, ab.entry_state from " . TABLE_ADDRESS_BOOK . " ab left join " . TABLE_ZONES . " z on (ab.entry_zone_id = z.zone_id) left join " . TABLE_COUNTRIES . " c on (ab.entry_country_id = c.countries_id) where ab.customers_id = '" . $customer_id . "' and ab.address_book_id = '" . $sendto . "'"); Then, find this code around line 145: $billing_address_query = tep_db_query("select ab.entry_firstname, ab.entry_lastname, ab.entry_company, ab.entry_street_address, ab.entry_suburb, ab.entry_postcode, ab.entry_city, ab.entry_zone_id, z.zone_name, ab.entry_country_id, c.countries_id, c.countries_name, c.countries_iso_code_2, c.countries_iso_code_3, c.address_format_id, ab.entry_state from " . TABLE_ADDRESS_BOOK . " ab left join " . TABLE_ZONES . " z on (ab.entry_zone_id = z.zone_id) left join " . TABLE_COUNTRIES . " c on (ab.entry_country_id = c.countries_id) where ab.customers_id = '" . $customer_id . "' and ab.address_book_id = '" . $billto . "'"); and replace it with: $billing_address_query = tep_db_query("select ab.address_book_id, ab.entry_firstname, ab.entry_lastname, ab.entry_company, ab.entry_street_address, ab.entry_suburb, ab.entry_postcode, ab.entry_city, ab.entry_zone_id, z.zone_name, ab.entry_country_id, c.countries_id, c.countries_name, c.countries_iso_code_2, c.countries_iso_code_3, c.address_format_id, ab.entry_state from " . TABLE_ADDRESS_BOOK . " ab left join " . TABLE_ZONES . " z on (ab.entry_zone_id = z.zone_id) left join " . TABLE_COUNTRIES . " c on (ab.entry_country_id = c.countries_id) where ab.customers_id = '" . $customer_id . "' and ab.address_book_id = '" . $billto . "'"); That is it. Please make sure you make all of the changes in my previous post as well as the above listed changes and that should fix the missing addresses. Let me know if you have any questions, and once again, sorry for the oversight. Eric Stamper
  13. compugeek2003

    Error in Header Tags Controller need help

    Try changing this line: 'products_url' => tep_db_prepare_input($HTTP_POST_VARS['products_url'][$language_id])); to this: 'products_url' => tep_db_prepare_input($HTTP_POST_VARS['products_url'][$language_id]), and see if that fixes the problem Eric Stamper
  14. compugeek2003

    Automatic Sign In

    Try this one: http://www.oscommerce.com/community/contri...ions,338/page,2 It is called autologon Eric
  15. As way of an update, I am using an April 20, 2003 CVS snapshot and the PayPal IPN v0.971 for Milestone 1. The changes that were posted have now been tested under both the IPN Test Mode and the Live Mode with successful results. Has anybody else tested this successfully? Eric Stamper
×