Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Code Red

  • Content count

  • Joined

  • Last visited

Posts posted by Code Red

  1. I've installed and set up this module, but when I try to test it I get this when I click the Express Payment button -


    Unauthorized Access


    Just that - blank page with two words. If I try entering my credit card details I get this -


    error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure (Error No. 35)


    Any ideas what the problem is?

  2. Hi, love this contribution and have been using it for some time but I've started using PNG images and they don't display under ImageMagic. Updating to the most recent version makes no difference.


    This is on all browsers, Mac and PC not just IE. I've installed the IE fix anyway, but I still just get a blank "dead image link" box. Anyone else have this problem?

  3. I follow step by step instructions but still: couldn't check out while the quantity over all was below 1 If i have more than 1, it is ok. Any solutions?


    I'm replying to this as I had the same problem and have only just fixed it.


    In includes/classes/shopping_cart.php look for this line (around line 230) -


    if ($this->contents[$key]['qty'] < 1) {


    change to this -


    if ($this->contents[$key]['qty'] < 0.1) {


    Or whatever minimum fraction you want to deal in

  4. Jack, not sure if I'm a Johnny-come-lately on the subject, but I got a mail from Google this morning listing changes to feed specification. One of these is that shipping costs need to be included, can this contribution handle this already/plans to do so before I start chopping away at your code like the amateur I am?

  5. Changing the code in banned.php

    $ip_2ban_address = $_SERVER['REMOTE_ADDR'];


    $ip_2ban_address = tep_get_ip_address();

    would be a better option. Most of the IPs should get banned automatically. We should not have this problem.




    Actually, it was the opposite which fixed it! The code was already using tep_get_ip_address, changing it to $_SERVER['REMOTE_ADDR'] did the trick - IPs are now automatically banned, thankyou!

  6. First of all, thanks for this great contribution - it's scary to see the number of times a website is attacked per day!


    It mostly seems to be working fine, just a couple of issues -


    1. The auto-ban function doesn't seem to work. I have the config settings as follows -


    PHPIDS Module 	true 	 
    IP Ban Module 	true
    Show Intrusion Result 	false 
    E-mail Log Impact Score 	8 
    DB Log Impact Score 	4 
    IP Ban Impact Score 	15


    However, despite attack impacts in excess of 38, none of the hacker's IPs have been automatically banned. I've added a "ban all" option to the log page to save doing them all individually, but obviously I'd rather the site did it automatically, as frequently the same IP will make several attempts and I'd prefer them blocked in the first instance. Has anyone else experienced this problem?



    2. Frequently the IP address recorded is, which is no use to block obviously. However, sometimes the email report I get does log the actual IP address alongside the localhost address, for example -


    IP: ( 
    Date: 2011-03-01T14:42:58+00:00 
    Impact: 38 
    Affected tags: xss csrf id rfe sqli lfi 
    Affected parameters: REQUEST.asc=eval%28base64_decode%28%5C%27ZXJyb3JfcmVwb3J0aW5nKDApO3NldF90aW1lX2xpbWl0KDApOw0KJH...etc etc (shortened for your viewing pleasure!)
    Request URI: /index.php 


    But when I check the log, it's been recorded just as if the email message sent to me can log the real IP address, can the script be modified to pick this up and write it to the log?



    Just a couple of issues, but aside from that, this is great work and I'm very grateful!


    I've just installed this and it's working very well, except that the "Add Category Parent To Beginning of URLS" config doesn't appear to be working correctly.


    It should include all categories in the path. Be sure you clear the case settings in admin->Configuration->URL SEOs when making such a change.


    Do you mean the "Reset SEO URLs Cache" setting? I've tried that and it makes no difference, it's still dropping the child category.

  8. I've just installed this and it's working very well, except that the "Add Category Parent To Beginning of URLS" config doesn't appear to be working correctly.


    With it turned off, I get a URL like this -




    With it turned on, I get this -




    I lose the last child category off the URL. What I actually want is this -




    Is this how it's meant to work? Any ideas how I can modify it to put the full category path into the URL? Apologies if this has already been answered, a forum search didn't turn anything up.

  9. Hi,


    I've just installed the latest version of this module and although the emails are much better than the stock OSCommerce output, I'm having problems with the stylesheet - no matter what changes I make to it, there's no change to the email that is sent out - the column headings and background colour remain the same, as do the font and font size. I tried using a different browser because I thought my browser may be storing the stylesheet settings somewhere, but no luck. I've even tried totally deleting the stylesheetmail.css file and I still get a formatted email!!! Is there something I'm missing here?


    Also, having tussled with HTML emails in the past I have some concerns about compatibility - I'm given to understand that using CSS in emails is a no-no and a lot of web-based email viewers will ignore this information totally. Does anyone have any information on how cross-compatible this contribution is, will it render as well in Outlook, Mac Mail, Thunderbird and also in Hotmail, GMail etc etc?

  10. To fill in some additional information -


    When any credit card is entered, an error code -5 is generated. This code is generated when the card type entered by the customer ($HTTP_POST_VARS['card_cardType']) doesn't match the validated card type ($this->cc_card_type_id).


    This is where it gets weird - I modified the error message so that it included the variables involved -


    		  $error = TEXT_CCVAL_ERROR_CARD_TYPE_MISMATCH . 'The card type is ' . $cc_validation->cc_type . '(' . $this->cc_card_type_id . '), the POST variable is ' . $HTTP_POST_VARS['card_cardType'];


    When I run a credit card through the site, this is the error message I get -


    The card type you have selected does not match the number entered. Please try again.The card type is Mastercard(002), the POST variable is 002


    As you can see, the two variables clearly DO match (002 = 002), but for some reason the code thinks they don't :blink:


    What gives???

  11. Can anyone help me with a problem I'm having with this module.


    I've installed the module, generated and installed the HOP.php file as required, set the permissions so it's readable etc etc but whenever I try to process a credit card payment I just keep getting the same error -


    The card type you have selected does not match the number entered. Please try again.


    I've tried running the same card through Cybersource's Virtual Terminal and it processes fine, so there's nothing wrong with the card. Incidentally, the same error comes up even if I use the "test" credit card number given by the module.


    I've not really got involved with the payment side of OS Commerce until now, so I'm not really sure where to start in terms of debugging.

  12. From the top of my head you have to change lbs to kg in the upsxml admin section (admin modules shipping). UPS will not accept lbs in the UK so no problem with that.



    I can't see a units option in the admin section anywhere. To be honest, I'm a bit perplexed by this - I can't imagine I'm the only person outside of the US who is trying to install this package, so why aren't more people coming across this problem?


    I would also have thought that by entering your location, country AND UPS account number it would pick up which units system you're going to use from UPS?



    *EDIT* I managed to find it via a sarky little comment :rolleyes: in the upsxml.php file - the settings aren't in admin>modules>shipping, they're in Configuration. Problem (well, this one anyway) solved!!!


    Carry on...

  13. I've just installed this system, still playing around with the settings but I'm getting this error on checkout_shipping.php -


    111057: This measurement system is not valid for the selected country.


    I believe that this problem is something to do with units of measurement mismatching - the store is in the UK and uses Kg as the weight (assuming it is the weight that is the problem, I've not got round to looking at the box dimensions option or filling any values yet).


    Couple of questions -


    1. Where are the units set in OSCommerce? It may sound a bit dim, but I've never had to look at this before, the units have always been metric.


    2. Is this going to create problems? I really don't want to switch to something prehistoric like Imperial weights and measures, and I know the site owner definitely won't be happy. He ships goods to countries all over the world, so is this going to limit which countries this system can be used in?

  14. This is probably really elementary and I'll kick myself when you tell me, but I can't seem to pull this off -


    With respect to the function display_count which is in split_page_results, how do I get $from_num as a usable variable?


    I want to number each line in the product listing result, and to do that I need the "from" value to use as an index... unless there's a simpler way, of course.

  15. I've still not cracked this problem - I've even tried using plain PHP code (ie not using any OSC functions) and I still get a big nothing! I'm uploading an image to the same images folder as categories.php uses, but despite using the same OSC code, or plain PHP the image will not upload. This is the same case whether I'm working with a local copy of the site, or the site on the server.


    Is there something obvious I'm missing? I'd appreciate some advice.

  16. I've been trying to add the facility to upload an image with each product review (for things such as magazine "Best In Test" rosettes etc) but I can't get the images to upload. This facility is only available to reviews entered via the admin page, not to visitors.


    I've been using this on the review entry -


    <td class="main"><?php echo tep_draw_file_field('reviews_image'); ?></td>


    And this where the form is processed -


    $reviews_image = new upload('reviews_image', DIR_FS_CATALOG_IMAGES);


    but nothing happens - not even an attempt to upload the file. When I stuck a print_r($reviews_image); at the processing stage, I get this -


    upload Object ( [file] => reviews_image [filename] => [destination] => /my_website_path/images/ [permissions] => 511 [extensions] => Array ( ) [tmp_filename] => [message_location] => session )


    I notice that both the [filename] and [tmp_filename] values are empty... any ideas?