Jump to content


  • Content count

  • Joined

  • Last visited

Posts posted by custodian

  1. Can anyone help?


    I have free UK postage and packaging (P&P) on my site but am starting to get orders from Ireland. How can I do it so that shipping is charged just for Ireland and remains free for UK?


    Many thanks





    I offer free local delivery for those in my town by using




    It's flexible enough that you could set it up to povide free delivery with the UK (or whatever zone you decide), and then charge any not in that area. A BIG plus is that the FREE delivery option will not show up for those outside of the area that you have defined.


    I'd give it a try, I think it will suit you well.

  2. anyone know if you can filter specific products (but id) while still allowing every other product in the shop to be purchased with points?


    there's only about 5 products i don't want people to use with points, but they're all in different categories.


    hmm, a quick fix for something similar that I needd to do was to set Point and Rewards to not allow items in special (discounted) to be able to use points on - I then marked the items up slightly and then discounted them back down to the normal sale price. making them unable touse their points with those items.


    It all depends if other items in your store are discounted already, beingthat if you currently allow points to be used for discounted items, those items will not be allowed either.


    it all depends on your current set up but it worked for me.


    Noce thing is that by turn this one it automatically excluded wholesale pricesm, since they are not at the normal retail price - therefore wholesalers can't use the points.

  3. You were right! Those extra settings were totally throwing me off!


    I understand the Tare Weight, but is the "Larger packages - percentage increase" setting used for?


    I have not need to use this myself, but from what I understand it works like this -


    USPS prices change depnding on package size (aka Large packages) and also only take up to 70 pounds.


    So not if a customer buys $200 in items and the weight is 100lbs, the additional 30lbs are calulated at 10% of the $200.00 (or an additional $20 is added to the shipping cost)

  4. I have a USPS UserID, entered it into the USPS shipping module and it is on the production server. I've specified the originating shipping zipcode in configuration. And I've also entered a weight for my products.


    When I test purchasing a product - the USPS shipping prices do indeed show on the checkout_shipping.php, but when I compare them to the USPS.com website for calculating postage - they are not the same.


    I've searched the forums for this same problem, but so far I haven't seen this same issue. Not to say it isn't mentioned.


    I've tested this on a fresh osCommerce install and I get the same results.






    if the Module is reporting higher cost than USPS, check the Tare wieght setting in the Admin. Sinc ethe module is adding the the tare weight to the product weight to determine actual wieght to base the shipping cost on - if you are going to USPS and entering the weight of the product, it will be lower than what the module says.


    Set the Tare weight to the weght of the package and packaging material that you typically use.

  5. Hello,


    I just received this message from Google Base:

    Anybody else received it too? Any idea what could be done to include attributes?


    Thanks a lot.


    I just went to google to manually test uplodaing a google base file and I can;t even get to there.


    Google reports






    There was an error with the page you requested.


    Please check back later.



    Maybe that's your problem.. that's they are simply updating stuff.

  6. Is there a script thts out in the contributions in order to write specifically to the seller what they want. Like the user will buy somethign from yoru store but also put a comment to the seller on specifically how they want or what they want specifically? like a comment to the seller basically on the payment checkout.

  7. anyone?


    Usually an answer is provided when someone


    a - knows the best solutiojns

    b - has an idea on how to suggest going about it

    c - knows of a contribution to do so



    Meanwhile 'bumping' the topic not only makes more people avoid it, it is also against forum policy.


    If you don't get an answer, try providing more detail of what you are trying to accomplish and why. Someone may then have an idea on how to help you or may be able to suggest a better alternative


    Questions don't get ignored, but if they people that have read it thus far don't know an answer there is nothing to post - another reason to post more information concerning the topic.

  8. I use

    ## Autologin Secure 2.01


    And yes, I force cookies


    Which one have you installed?



    Autologin secure


    I can't be just me, the bug has been reported so many times on various places. Perhaps you've changed something in your setting? Or it might be happening in combination with other contribution.... do you force cookies?


    Also, after commenting this bit oc code out, META are visible again:

     if($autologon_executed != 'true'){
    $autologon_page = '<html><head><meta http-equiv="Refresh" content="0;URL=' . tep_href_link(FILENAME_LOGOFF, '', 'SSL') . '"></head><body></body></html>';
    $autologon_link = ((getenv('HTTPS') == 'on') ? 'https://' : 'http://') . $SERVER_NAME . $REQUEST_URI . (strpos($REQUEST_URI, "?") ? '&' : '?') . SID;
    $autologon_executed = 'true';


    I'm not quite sure what is that piece of code for, also not 100% sure that it all will function properly.

  9. I need to know what the public opion is for a newsletter contrib for not only capturing email address but for the newsletter as well. I currently have newsletter module v0.2 en_de and all of the contrib packages for this contrib the unsubscribe.php is missing and I get this error when you subscribe


    Warning: Cannot modify header information - headers already sent by (output started at /mnt/web_z/d11/s44/b025debf/www/store/nfoscomm/catalog/includes/classes/snoopy1.class.php:2104) in /mnt/web_z/d11/s44/b025debf/www/store/nfoscomm/catalog/newsletters_subscribe.php on line 73


    I have seen OSC stores with a newsletter center box that has scrolling text inside a box where you enter your email. I would like to have that but, like I said in the begining which is the best.


    Thank you for looking at this.


    A common cause to the problem is spaces ("whitespace") existing before the first <?php tag and/or after the last ?> tag with the files involved. By removing all spaces so that <?php is at the very start of the file and that ?> is at the very end of the file, no content would have been sent to the client and headers can be set safely.



    this is directly from the Knowledge base



    So look in both of those files. Make sure that the VERY last thing in the file is ?>


    Meaning no spaces following it and no empty line (returns) below it.


    This topic has been asked a thousand times - it's good to at least search the fourm - An even better idea is to paste the error into google. You'll almost alwasy find the asnwer onthe first page of results.


    To quickly reference that information I gave you I simply went to google and pasted in


    Warning: Cannot modify header information - headers already sent by


    The first result was the answer - it's that easy :)

  10. Hello,


    After installing the contribution, I've discovered that there IS a serious problem when using it. Basically if it is enabled, all META will became invisible to SE. It was already mentioned in this thread.


    You can test your site with Meta Tag Analyzer


    If you set the autologon to true, meta tag information become invisible. The problem is with this file: includes/modules/autologon.php but that's about as far as I get ATM. I believe it is redirection problem but not sure what part has to be changed - perhaps somebody managed to get this working already. I'm only aware that this problem has been mentioned in quite a few threads already but nobody managed to update the contribution or post a solution. So if anybody knows how to fix it, please post it here or update in the contribution section.


    I beg to differ.


    I have autologin, set to true and additionally have the check box for the user's checked by default.


    I get the following results


    Meta tags analysis.

    Title: Title meta tag contains no errors.

    This tag contains 54 characters.

    Title relevancy to page content is excellent.

    The Title relevancy to page content is 100%.


    Description: Description meta tag contains no errors.

    This tag contains 149 characters.

    Description relevancy to page content is fair.

    The Description relevancy to page content is 80%.


    Keywords: Keywords meta tag contains no errors.

    This tag contains 17 keywords and 249 characters.

    Keyword relevancy to page content is fair.

    The keywords relevancy to page content is 76%.

  11. sorry but still not working..... something is getting wrong with the customer ID


    Even with that last post?


    Can you see they notes at any point in the order?


    I just jumped in here so I'm trying to get up to speed with everyones issues.


    I've checked my orders.php directly and through the customers.php link to it and it works for me perfectly.

  12. Ok, so i just can't add plain text "hard coded" into the checkout_process.php file?

    cause that would make this alout easier :D


    It's usually better to do it the way I described, this way you go into the define file and change the text ot hello and every pace you have that text will automatically change too. Like when you set you store name... you didn't edit every file. You set it in one place and it auto fills



    You can hardcode to a point though you'll still need to stick to the formatting



    Example my way


    // lets start with the email confirmation

    $email_order = TEXT_EMAIL_HELLO . "\n" . STORE_NAME . "\n" .

    EMAIL_SEPARATOR . "\n" .

    $order = new order($insert_id);


    Hard coded


    // lets start with the email confirmation

    $email_order = "Heeeeloooo!!!\n" . STORE_NAME . "\n" .

    EMAIL_SEPARATOR . "\n" .

    $order = new order($insert_id);



    Another example


    // lets start with the email confirmation

    $email_order = "Heeeeloooo!!!\n" . STORE_NAME . "\n" . "Thank you for your order" .

    EMAIL_SEPARATOR . "\n" .

    $order = new order($insert_id);



    the " " take things literally. the . connects the \ escapes


    One more example using an \ (escape)


    // lets start with the email confirmation

    $email_order = "Heeeeloooo!!!\n" . STORE_NAME . "\n" . "Thank you! We\'ll be here from 9 to 5" .

    EMAIL_SEPARATOR . "\n" .

    $order = new order($insert_id);

  13. i found this in checkout_process.php


    since I'm from Sweden the code is in swedish, I hope you understand it anyway :D


     $Id: checkout_process.php,v 1.25 2001/09/15 13:35:05 dwatkins Exp $
     The Exchange Project - Community Made Shopping!
     Copyright (c) 2000,2001 The Exchange Project
     Released under the GNU General Public License
    define('EMAIL_TEXT_SUBJECT', 'Best?llning');
    define('EMAIL_TEXT_ORDER_NUMBER', 'Ordernummer:');
    define('EMAIL_TEXT_INVOICE_URL', 'Detaljerad faktura:');
    define('EMAIL_TEXT_DATE_ORDERED', 'Best?llningsdatum:');
    define('EMAIL_TEXT_PRODUCTS', 'Produkter');
    define('EMAIL_TEXT_SUBTOTAL', 'Exkl moms & frakt:');
    define('EMAIL_TEXT_TAX', 'Moms:	   ');
    define('EMAIL_TEXT_SHIPPING', 'Frakt:	');
    define('EMAIL_TEXT_TOTAL', 'Totalt:   ');
    define('EMAIL_TEXT_DELIVERY_ADDRESS', 'Leveransadress');
    define('EMAIL_TEXT_BILLING_ADDRESS', 'Faktureringsadress');
    define('EMAIL_TEXT_PAYMENT_METHOD', 'Betalningss?tt');
    define('EMAIL_SEPARATOR', '------------------------------------------------------');
    define('TEXT_EMAIL_VIA', 'via');


    that is the code that sends the mail, am I right? if it is, then if i wanna ad somethin can i just put like at the end of the code then?

    define('TEXT_EMAIL_VIA', 'via');






    It must be a define like



    define('TEXT_EMAIL_HELLO', 'Heeeeloooo!!!');


    That make TEXT_EMAIL_HELLO = Heeeeloooo!!!


    Now in the catalog/checkout_process.php you;d have to do something like




    // lets start with the email confirmation

    $email_order = TEXT_EMAIL_HELLO . "\n" . STORE_NAME . "\n" .

    EMAIL_SEPARATOR . "\n" .

    $order = new order($insert_id);


    You can place the TEXT_EMAIL_HELLO anywhere as long as you keep the correct formatting. Though depending on where you place it will also change where it is located in the email itself - That's why I put it first.

  14. Hi custodian!


    Thanks for your reply, but i still can't find it thoug, i wan't the acctual text that says "you have orderd this and this" the "order confirmation mail" i think you can call it :D Do you understand what I'm saying, cause my English is kinda bad, sry for that! :S





    booty.. that's what that does.




    $email_order .= EMAIL_TEXT_PRODUCTS . "\n" .

    EMAIL_SEPARATOR . "\n" .

    $products_ordered .



    EMAIL_TEXT_PRODUCTS is read from catalog/includes/languages/english/checkout_process.php and expands to Products


    Therefore that section becomes



    List of what you ordered



    this send the mail off


    tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);


    EMAIL_TEXT_SUBJECT is pulled from catalog/includes/languages/english/checkout_process.php which is

    define('EMAIL_TEXT_SUBJECT', 'Order Process');


    So the email gets sent with


    To: customer['email_address'],



    So the Subject may become


    Subject: Order Process 233-403 Your Store, Your email


    and so forth.. it's all there.. it's dynamic :)


    Am I missing something or misunderstanding this ?

  15. Hi!


    I have a big problem trying to find one of the auto-sent emails, the mail that is beeing sent to the user when he/she have placed an order, I've checked the checkout_process.php but I can't seem to find it!


    Can anyone please help me maybe?


    Thanks in advance




    It depends on what you are looking for


    in the checkout_process.php


    look for


    // lets start with the email confirmation
     $email_order = STORE_NAME . "\n" .
    			 EMAIL_SEPARATOR . "\n" .
    			 $order = new order($insert_id);
    			 EMAIL_TEXT_ORDER_NUMBER . ' ' . tep_trans_id($order->info['date_purchased'],$insert_id) . "\n" .
    			 EMAIL_TEXT_INVOICE_URL . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL',
    false) . "\n" .
    			EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n";
     if ($order->info['comments']) {
    $email_order .= tep_db_output($order->info['comments']) . "\n\n";
     $email_order .= EMAIL_TEXT_PRODUCTS . "\n" .
    			  EMAIL_SEPARATOR . "\n" .
    			  $products_ordered .
    			  EMAIL_SEPARATOR . "\n";
     for ($i=0, $n=sizeof($order_totals); $i<$n; $i++) {
    $email_order .= strip_tags($order_totals[$i]['title']) . ' ' . strip_tags($order_totals[$i]['text']) . "\n";
     if ($order->content_type != 'virtual') {
    $email_order .= "\n" . EMAIL_TEXT_DELIVERY_ADDRESS . "\n" .
    				EMAIL_SEPARATOR . "\n" .
    				tep_address_label($customer_id, $sendto, 0, '', "\n") . "\n";
     $email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" .
    			  EMAIL_SEPARATOR . "\n" .
    			  tep_address_label($customer_id, $billto, 0, '', "\n") . "\n\n";
     if (is_object($$payment)) {
    $email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" .
    				EMAIL_SEPARATOR . "\n";
    $payment_class = $$payment;
    $email_order .= $payment_class->title . "\n\n";
    if ($payment_class->email_footer) {
      $email_order .= $payment_class->email_footer . "\n\n";
     tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_S



    If you are looking for the actual TEXT that goes into the email then you need to look in the in either the


    catalog/includes/languages/english.php (or whatever your language of choice is)


    or in



    catalog/includes/languages/english/checkout_[filename].php <-- depending on what you are looking to do.

  16. That table tr td layout will need to be redone or the location changed. When the message is long is widens the td so my


    Payment Method: Secure Credit Card Processessing


    that is directly above this entry in the orders.php becomes


    Payment Method:.........................................................................

    ...........Secure Credit Card Processessing


    I couldn't do a lot of space on the board.. the ....... represents the spaces


    So change that last post to


    <table border="0" cellspacing="0" cellpadding="2">
    $result = tep_db_query("select customers_notes from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . " '"
    $result_array = tep_db_fetch_array($result);
    echo ENTRY_CUSTOMER_NOTES . "<BR><I>" . $result_array['customers_notes'];


    and the layout should be ok

  17. ok.. i got it


    Step #8


    $result = tep_db_query("select customers_notes from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . " '"
    		  $result_array = tep_db_fetch_array($result);
    		  echo ENTRY_CUSTOMER_NOTES . "<BR><I>" . $result_array['customers_notes'];


    I didn't see it right away, not sure if my browser was caching something or what.. but this works. If it doesn't seem to work for you try looking at it in another borwser to confirm first.


    BTW: I redid the layout so that if there are NO notes, the Customer Notes will NOT show At ALL - not even the title.

  18. even if you have a previous modification that alters the original customer id query, it still shouldn't matter because the notes call is on a separate query.


    xavkick, i downloaded your admin file into my own shop and it worked. (of course, i had to edit out your admin contributions that i don't have) but nonetheless i did not touch the notes call whatsoever.


    has anyone beside myself got this to work?? this is puzzling.

    custodian? :)


    Someone that is having this issue with step #8, please try the following to see if it fixes the issue for you


    I haven't tested this myself but I beleive it should work


    in orders.php replace step #8 with this


    <td class="main"><?php echo ENTRY_CUSTOMER_NOTES; ?></td>
    //query to grab the notes
    $result = tep_db_query("select customers_notes from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . " '");
    		  $result_array = tep_db_fetch_array($result);
    		  //end query
    		   echo $result_array['customers_notes'];

  19. great contrib!

    just to point something out, not a bug.. just a lil typo.

    "You Current Have No Private Message"


    Thanks, I'm working on some cosmetic stuff with it and I'll update that in the next release.


    Seems IE doesn't like to play nice so I need to add a little spacing into the submit button and another spot.

  20. Yes I have read that but do not know where to find contribution instructions, also i have been told that the contribution file is no longer needed as it is included in main source now, i really need help to fix this problem



    It would be nearly imposslbe for anyone here to know what contrib you installed in order to define the correct sql entries.


    If you haven't installed any other contrib, I would recommend d/l the OSC files again and simply replace that file.


    Another thing you can do is to remove cc_cvv from the offending file