Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

ptrinephi

Archived
  • Posts

    39
  • Joined

  • Last visited

Everything posted by ptrinephi

  1. USPS sign in problem. When I try to print a label without first signing in the usps site I get the following: [servletException in:/jsp/pages/labelDataCollection/labelInformation.jsp] Index: 0, Size: 0' The left hand side wherer my company info is displays ok but the right hand side where the shipping information is shows the above error. To fix this I have to sign in, click on the Print Shipping Label link on top of the page and click on the Go button in the "To which destination would you like to ship" box. Once the following page displays with empty fields in the shipping info I close the browser window and go back to the admin area to print the label and this time it works ok with the exception that the "Shipping from Zip code" radio buttons are no longer selected. Anyone has any idea why this is? Thanks,
  2. This is what I did to default to USA. Edit customershippinglabel.php and differentshipping.php. Search for saveLabelInformation.do and replace with saveLabelInformation.do?deliveryCountry=1 This will default the country drop down to 1 which is USA. Here's the full line before <span style="display:none">Your sign in session will expire after 15 minutes of server inactivity. In order to maintain your data stored in this session, you will need to navigate to another page in this application within that timeframe.</span><form action="https://sss-web.usps.com/cns/saveLabelInformation.do" method="post" onsubmit=""> after <span style="display:none">Your sign in session will expire after 15 minutes of server inactivity. In order to maintain your data stored in this session, you will need to navigate to another page in this application within that timeframe.</span><form action="https://sss-web.usps.com/cns/saveLabelInformation.do?deliveryCountry=1"'>https://sss-web.usps.com/cns/saveLabelInformation.do?deliveryCountry=1" method="post" onsubmit=""> To default to a different country, once the page with the drop down is up (https://sss-web.usps.com/cns/saveLabelInformation.do?deliveryCountry=1) and view the source and locate the country you want. Replace the country number with the one you want. ex: <option value="1" selected="selected">United States</option> <option value="12268">Abu Dhabi</option> <option value="10440">Abu Dhabi (United Arab Emirates)</option> <option value="12130">Admiralty Islands</option> <option value="10345">Admiralty Islands (Papua New Guinea)</option> <option value="12076">Afars</option> <option value="10000">Afghanistan</option> <option value="12131">Aitutaki</option> <option value="10314">Aitutaki (Cook Islands) (New Zealand)</option>
  3. Hi, I read all the post in this thread and the others and was able to get the differentshipping.php to sort of work. Any body has the changes required for customershippinglabel.php? When I click either USPS buttons from the admin/order page, the customershippinglabel.php and differentshipping.php load with errors (bottom left of IE). It displays: Applet com.ibm.lex.services.DetectPluginApplet notinited. What's that? Looking at the source of the 2 programs I also notice a problem at the end of the programs in method: function doMicrosoft() { var applet = document.myApplet; if(applet == null) { displayPopup(); return; } var version = applet.getJavaVersion(); version = version.substring(0,3); if(version < 1.3) { } Notice it's missing a closing curly brace '}' in the if(version < 1.3) if block.
  4. That looks deffinitely like a bug in your code somewhere in product_info.php. What I do to trouble shoot these kinds of bug is I put echo 'something' in different places in the program and see which one shows and which ones don't. This doesn't always work but it usually does. I've noticed something odd on your site however, the URL always have 2 slashes after the domail and before the catalog i.e.: yourdomain//catalog/product_info.php?... This will not fix your problem but you may want to check it out. Some browsers may not like it.
  5. OK, I fixed all my problems. I even modified the code so that if the tags information is missing for title_tag and desc_tag it will automatically grad the information form the product/category name and description. The only problem with this is if your description contains html code (<B><FONT>...) it will display it on top of the page. To solve this problem you have to dynamically remove those tags from the field before displaying. The following code will strip all html tags from any strings. Just put it in general.php and call it from header_tag.php No I didn't write it, I found it on the web!
  6. Sorry for being a pain here but how do I update the tag fields manually when there's no tag field on the form? If fill_tags is the only way then does it mean I have to run fill_tags everytime I add a new category? If that's the case what happens to the product tags I manually updated?
  7. Jack, This piece of code in admin/categories.php seems to be supposed to display input fields for those extra field. However, I don't see them. //** BOF Header Tag 2.5.1 $contents[] = array('text' => '<br>' . 'Header Tags Category Title' . '<br>' . tep_draw_input_field('htc_title', '', 'size="30"')); $contents[] = array('text' => '<br>' . 'Header Tags Category Description' . '<br>' . tep_draw_input_field('htc_desc', '', 'size="30"')); $contents[] = array('text' => '<br>' . 'Header Tags Category Keywords' . '<br>' . tep_draw_input_field('htc_keywords', '', 'size="30"')); $contents[] = array('text' => '<br>' . 'Header Tags Categories Description' . '<br>' . tep_draw_input_field('htc_description', '', 'size="30"')); //** EOF Header Tag 2.5.1
  8. In the Add/Edit categories I have the standard fields as follows: Category Name, Category heading title, Category heading Description, Category Image and Sort Order. How are these fields being populated? category_head_title_tag,ategory_head_desc_tag,category_head_keywords_tag, category_head_description One more thing, in the Keywords filed, how are keywords delimited? space, comma...
  9. Hi, I just installed HTC 2.5.1 and it seems to work fine except for a one glitch. When displaying a category, nothing shows up in the title, only the default text. Before the install, it used to show the category name. In the install instructions, it tells to update the categories table with 3 new fields for the tags. I supposed that's where it's getting its information from. Well, where/how do you enter that information? In the admin/new category there is no field to enter that information whereas in the admin/products page there are. The Fill_tags does not work for me, I don't know why, but still that would not solve my problem for new categories. BTW, I also have Ultimate SEO installed (the latest one available) and both contributions seem to work with the exception of the above. Now, if you thought this contribution was hard to install, try to install it on CRE Loaded 6! I had to do it twice to get it right, but you know what? I'm not complaining, I'm greatfull to people who spend there time sharing these kind of things. One last thing, is there a manual on how to use this contribution? Thanks
  10. I beleive your cookie definition should look like this: define('HTTP_COOKIE_DOMAIN', 'ministryhelps.com'); define('HTTPS_COOKIE_DOMAIN', 'ministryhelps.com');
  11. I have the same thing in my cart. What exactly does this do?
  12. Thanks DAvidR, I moved my cart to a different host and it seems to work. However, when I click on SEO URLs in the admin I get the following warning: Warning: call_user_func(tep_reset_cache_data_seo_urls): First argument is expected to be a valid callback in /.../admin/includes/functions/general.php on line 1473 function tep_call_function($function, $parameter, $object = '') { if ($object == '') { return call_user_func($function, $parameter); <<<=== this line here } elseif (PHP_VERSION < 4) { return call_user_method($function, $object, $parameter); } else { return call_user_func(array($object, $function), $parameter); } } Any idea what this is all about? Also, the URL shown in the store looks like this /jewelry-c-21.html?osCsid=ca1809dc05dc158ef041175c24ed1f72 with the osCsid at the end. I was not able to find any threads regarding the removal of this cookie thing. Can someone point me to the right place for this? Thanks,
  13. I've just installed the latest version and now my site stopped working. Whenever I click on a category the browser spins around for a while and comes back with a page not found. I've turned the contribution off but no change. When I restore a previous database backup (before the contribution was installed) everything works again. Now here's the thing, my host (yahoo) does not allow me to upload the .htaccess file. Could this be why? Is this file required for this contribution to work? How can I do without .htaccess and other .files?
  14. I'm having the exact problem and the link above does not work. Any of you guys resolved this problem? thanks
  15. as a matter of fact I did play with split_page_result. I commented out this line $this->sql_query .= " limit " . $offset . ", " . $this->number_of_rows_per_page; in function splitPageResults and the error went away. However, if I have 100s of items, the list page will get pretty big. Running that SQL query from mysqladmin returns the same error so it's got to be the mysql version. Maybe it's the beta thing.
  16. I just installed ccgv-510c and made all the required changes as stated in the docs. From the admin, I get the following error in: coupon_admin: ----------------- 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-20, 20' at line 1 select coupon_id, coupon_code, coupon_amount, coupon_type, coupon_start_date,coupon_expire_date,uses_per_user,uses_per_coupon,restrict_to_p roducts, restrict_to_categories, date_created,date_modified from coupons where coupon_active='Y' and coupon_type != 'G' limit -20, 20 Gift Voucher Queue: ----------------------- 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-20, 20' at line 1 select c.customers_firstname, c.customers_lastname, gv.unique_id, gv.date_created, gv.amount, gv.order_id from customers c, coupon_gv_queue gv where (gv.customer_id = c.customers_id and gv.release_flag = 'N') limit -20, 20 Gift Voucher sent: --------------------- 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-20, 20' at line 1 select c.coupon_amount, c.coupon_code, c.coupon_id, et.sent_firstname, et.sent_lastname, et.customer_id_sent, et.emailed_to, et.date_sent, c.coupon_id from coupons c, coupon_email_track et where c.coupon_id = et.coupon_id limit -20, 20 What to do next? I run PHP 4.3.8 with MySQL 4.1.3b-beta-nt on Windows 2003 server. Thanks,
×
×
  • Create New...