Jump to content


  • Content count

  • Joined

  • Last visited

Reputation Activity

  1. Like
    pederb reacted to tedbooks in [Contribution] osc2ebay - oscommerce to ebay synchronization   
    i have used it with 2..3.1. with the basic necessary modification . I have also developed a complete ebay management tools for the admin section based on this addon, which i am testing now. it can do almost everything. add feedback, answer emails, adding eBay orders to the shop and a lot more. almost everything that you can do from ebay.
    i will release it soon for testing
  2. Like
    pederb reacted to kymation in USPS Rate V4, Intl Rate V2 (official support thread)   
    I've started development on a revised USPS module that won't break every time USPS changes the services names. Anyone who is interested is welcome to visit this thread.
  3. Like
    pederb reacted to kymation in [Development] USPS Shipping Module   
    The current USPS shipping modules (USPS Methods, USPS Rate V4, Intl Rate V2, stock osCommerce 2.3x) all have a major problem -- they depend on the Service names that USPS supplies. Since USPS seems determined to change these names every six months or so, these modules break and must be patched twice a year. This should not happen, and it doesn't need to.
    The quotes that USPS returns are keyed to a Service ID (called CLASSID.) These are (mostly*) unique numbers that never change, or only change when a service is deleted or added. These numbers are a much better way to select the service(s) desired, as the module will not break when USPS changes the service names.
    If this system had been in use before the July changes, the only difference that anyone would have noticed would have been different service names showing up on the checkout page. No broken checkout, no thrashing to get a fix implemented, no lost sales.
    I've done some preliminary testing, and I have a plan to fix this. I intend to use some of the code from the USPS Rate V4, Intl Rate V2 module since I like the way it is set up in the Admin. The rest of the code will be rewritten.
    I have in mind an adaptive model that will require an extra step in the install process. The first edit of the module upon install will require a valid USPS Web Tools username. That will be used to send a dummy quote request to the USPS server for all available services, domestic and international. The response to that will be stored and presented in the second step as a list of services that may be selected. The selected values will then be stored in that step.
    The installer will allow the selection of services by their current names. The names in the Admin will not change if USPS changes their API since those values are stored in the database. However, we are only comparing against the CLASSID, so the store side will continue to work and show the updated names.
    Updating the names on the Admin side can be done by uninstalling/reinstalling the module, but that will normally not be necessary. You will only need to do that if USPS has added a new service that you want to offer to your customers or they have removed a service that you were offering. Doing an uninstall and reinstall is a lot simpler than modifying the code to make it work again.
    *Yes, there's one problem with this approach -- the CLASSID for all First Class services is 0. That will have to be treated as a special case. That makes First Class more fragile, but USPS doesn't seem to change those services very often, so it's not likely to be a huge problem.
    Any and all help with this is very welcome. I can use help with the code, of course, but feature suggestions and testing help are appreciated as well. Let's see what we can do with this.
  4. Like
    pederb reacted to vampirehunter in Adding Image to Log Out page   
    Thats easy. I'll just explain the tep_image function so you can use it again easily.
    Basically, so you can do this anytime you need a custom specific image on a page,
    the tep_image function has 5 parameters which you can use.

    function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '')
    1) $src refers to the location of your image.
    2) $alt refers the alternate text which shows if your image for some reason won't display on the page.
    3) $width to image width (if you want to specify it, but i would just make sure my image is the correct size already rather than declare it in html)
    4) $height of the image (again, i would just make my image size exact so i don't need to declare it)
    5) $parameters - this is the bit where you can add your custom text which will show as part of the <img> code. So this is where we put in the class name so that we can call it from our css stylesheet.
    So for your example just do this:

    <?php echo tep_image(DIR_WS_IMAGES . 'yourimagename.jpg', 'Alt Text For Image', ' ',' ', 'class="myclass"');?>
    and your html should look like this when its outputted.

    <img class="myclass" title="Alt Text For Image" alt="Alt Text For Image" src="images/yourimagename.jpg">
    So basically, you are putting your
    1.) Image location = DIR_WS_IMAGES . 'yourimagename.jpg'
    2.) Your image alt text = 'Alt Text For Image'
    3.) Image width we can leave blank = ' '
    4.) Image height we can leave blank = ' '
    5.) We add our custom text such as a css class = ' class="myclass" '
    Now you can open up your stylesheet.css file
    and at the end just put in this (whatever name you are giving your css class):

    .myclass { align:center; }
    You could add other stuff for your image class like padding, margins etc as you wanted.
    let me know if you have any trouble.
  5. Like
    pederb reacted to vampirehunter in Adding Image to Log Out page   
    where abouts do you want to put your image, above the main text or after it?
    First, open your logoff.php file in your main directory,
    and where it says this

    <div class="contentContainer"> <div class="contentText"> <?php echo TEXT_MAIN; ?> </div>
    You can add in your image inside the div like ive done below. Just change the image name and alternate text to your own images and it will show up. As long as your image is in the default "images" folder, it will work.

    <div class="contentContainer"> <div class="contentText"> <?php echo tep_image(DIR_WS_IMAGES . 'yourimagename.jpg', 'Alt Text For Image');?> <?php echo TEXT_MAIN; ?> </div>
    So above, you will see your image before the main text.
    If you want it after it, just move your image to after the <?php echo TEXT_MAIN; ?> tag.
  6. Like
    pederb reacted to thejudge99 in CONTRIBUTION Social Login with Facebook / Google 2.3.1/2   
    twitter login ive already done - but twitter does not allow the email to be extracted which makes it useless for our needs (imo) as a login.
  7. Like
    pederb reacted to thejudge99 in CONTRIBUTION Social Login with Facebook / Google 2.3.1/2   
    @@pederb yes that looks right assuming you did client secret , redirect_url and developer+key the same way.
    As for your error i have no idea- they are errors thrown by the api which is not coded by me. Which php version are you using ? ive only tested it with 5.2 - but i would assume it works on later versions.
    You could try the latest api client http://code.google.com/p/google-api-php-client/downloads/list although looking at date im pretty sure my download zip contains the latest version.
    ps. in that download package there are example scripts that run alone to check the loging in / extracting infos - give them a try to see if they run on your server.
  8. Like
    pederb reacted to DunWeb in Buy w/o Login or Account   
    Because of increased fraud, your customer is either going to have to create an account on your site, or they will be required to create one with PayPal. You choose ! Personally, I would rather have my customers information on my site. There is no such thing as NO information required checkouts anymore.
  9. Like
    pederb reacted to thejudge99 in CONTRIBUTION Social Login with Facebook / Google 2.3.1/2   
    @@mbuist - yes it could be easily made admin compatible - assuming you mean that the keys and all URLS are added in the backend.
    @@pederb - that looks like the main google API causing probs - possibly caused by invalid data being put into the config file or you have corrupted 1 of the files in catalog/includes/google/src .
    I would suggest restoring all those files again from the downloaded zip and "carefully" reinsert the keys / redirect url.
  10. Like
    pederb reacted to Jack_mcs in Automatically send data feed to Froogle   
    A new version has been uploaded with these changes:
    - Moved the FTP_ENABLED line out of the settings section since it is no longer a setting.
    - Added code to display items with quantity and price of 0.
    - Added a link to view the file in csv format, which makes viewing it in admin better.
    - Fixed code that was showing products and prices of 0 for products with a status of 0.
    - Replaced missing catID code that was deleted by mistake in a previous version.
  11. Like
    pederb reacted to fulluvscents in USPS Rate V4, Intl Rate V2 (official support thread)   
    I found what you were talking about.
    Change this in the usps.php file:

    'shownString' => $shownString, 'customerString' => $customerString);
    to this:

    'shownString' => (string)$shownString, 'customerString' => (string)$customerString);
    I'll add that as part of my next update.
  12. Like
    pederb reacted to fulluvscents in USPS Rate V4, Intl Rate V2 (official support thread)   
    Just uploaded some upgrades. Separate handling fees for each shipping method, insurance (and any other available extra service), and ability to show shipping regulations to international customers. This will be most beneficial for those running 2.3.1 shops, but will also work on 2.2 shops. The older shops just won't be able to show extra services or regulations.
    Despite the fact that it does take up some room in admin (due to the large number of shipping methods, it is tucked into a nice neat little package, isn't sloppy, and should not be confusing.
  13. Like
    pederb reacted to fulluvscents in USPS Rate V4, Intl Rate V2 (official support thread)   
    I have uploaded a couple more versions - and will continue to do so until I have the module where I personally want it. I figure it'll be nice to give different options because not everybody has the same shipping needs.
    Some of the int'l options weren't showing up in 1.0 b/c of the dimensions (first class was fine. It was flat rate boxes that I wasn't getting). It took a bit of playing to find dimensions that returned all packages, but I did find them and they are set up in v1.1 - that means that you do not need to set dimensions from the admin panel, like with previous versions (less clutter).
    Everyone, please note, that in order for the module to work, you must uninstall the old version before installing the new one. Otherwise, you'll end up with junk configurations that will interfere with the new module. To remove them, you either need to put the old file back and reinstall/uninstall, or manually search and remove all USPS entries from your configuration table in your database.
    This module is NOTHING like the old ones. The scripting is entirely different. The html character replacements are different. There may even be straggling code in other files that you are free to remove once you install this. I have two goals when scripting now. 1. Do not intrude on the core project unless that is the actual intent of the add on, and 2. Efficiency. What was taking over 1000 lines of code, can be done in less than 300. Less redundant script means less crap for your server to read through, faster page loads, etc...
    My hope is to get in the options, without cluttering the admin panel. One script can't meet everybody's needs without becoming too much. So, I'll hit the basic needs, and the stuff that I personally want. I suspect, working on it here and there, I'll have that done within a week or so.
    @ Pederb - I do not have one single ereg_replace function in this script. So, you're getting that from somewhere else. You do need to remove the functions that were installed with the prior USPS modules. They are not necessary. So far, only ONE tep function is required for what I've got written. The rest can be removed (in both catalog functions, and admin functions). You just have to locate them.
    I don't know that dreamweaver can be used as a text compare tool without downloading/integrating other applications. That being the case, it makes sense to use a standalone text compare tool. I personally use beyond compare. Winmerge is a popular free tool.
    Anybody who is going to be installing / uninstalling, or modifying files, NEEDS to have a compare tool. It is so much easier and faster than going through instructions line by line. I don't like writing instructions any more than I like reading or following them. So, you'll find that my contributions won't include them unless it's a real simple install. And even if they do, it might not be completely "accurate". But one thing I will always do is mark any changes in comments like this // EXAMPLE START ...... // EXAMPLE END. I will comment out old lines and not comment new lines. Changes will be easy to find and easy to undo.
  14. Like
    pederb reacted to kymation in [Contribution] - USPS Methods   
    My contribution? I didn't write this one. No, I was telling you the correct way to add 2.2x code into 2.3.1.
  15. Like
    pederb reacted to kymation in [Contribution] - USPS Methods   
    It appears that you're trying to run an old version of osCommerce on PHP 5.2 or higher. You're going to have a lot of these warnings that need to be fixed or hidden. If you want to do all that work, try searching the forum for "Function ereg_replace() is deprecated" (without the quotes.)
    It might be easier for you to start with osC 2.3.1, since it already is PHP 5.2 compatible, and just move over your products and customers.
  16. Like
    pederb reacted to kymation in [Contribution] - USPS Methods   
    In includes/classes.xml_5.php, find this code (lines 25-26)

    $xml_parser = &new XML(); $data = &$xml_parser->parse($xml);
    and replace it with this

    $xml_parser = new XML(); $data = $xml_parser->parse($xml);
    I haven't tested that, so please let me know if it works.
  17. Like
    pederb got a reaction from my.delices in Google XML Sitemap SEO compatible with FWR Media Ultimate SEO URL 5   
    Got some issues after installing this on my fresh 2.3.1 with USU5 installed.
    In Standard mode I get following error message,

    1054 - Unknown column 'c.categories_status' in 'where clause' SELECT p.products_id as pID, p.products_date_added as date_added, p.products_last_modified as last_mod, p.products_ordered FROM products p, categories c, products_to_categories p2c where c.categories_status='1' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and p.products_status='1' ORDER BY products_ordered DESC [TEP STOP]
    And when changing the setting to Alternate I get following message,

    Opening /sitemapproducts.xml FS_CAT /home/wihirt/public_html/oscommerce-2.3.1/catalog/ Server http://www.koolkatjazz.com Save Path / WS_CAT /oscommerce-2.3.1/catalog/ Warning: fopen(/sitemapproducts.xml) [function.fopen]: failed to open stream: Permission denied in /home/wihirt/public_html/oscommerce-2.3.1/catalog/googlesitemap/sitemap.class_Alternate.php on line 353 ERROR: Google Product Sitemap Generation FAILED! Opening /sitemapcategories.xml FS_CAT /home/wihirt/public_html/oscommerce-2.3.1/catalog/ Server http://www.koolkatjazz.com Save Path / WS_CAT /oscommerce-2.3.1/catalog/ Warning: fopen(/sitemapcategories.xml) [function.fopen]: failed to open stream: Permission denied in /home/wihirt/public_html/oscommerce-2.3.1/catalog/googlesitemap/sitemap.class_Alternate.php on line 353 ERROR: Google Category Sitemap Generation FAILED! Opening /sitemapindex.xml FS_CAT /home/wihirt/public_html/oscommerce-2.3.1/catalog/ Server http://www.koolkatjazz.com Save Path / WS_CAT /oscommerce-2.3.1/catalog/ Warning: fopen(/sitemapindex.xml) [function.fopen]: failed to open stream: Permission denied in /home/wihirt/public_html/oscommerce-2.3.1/catalog/googlesitemap/sitemap.class_Alternate.php on line 353 ERROR: Google Sitemap Index Generation FAILED! Array ( [QUERY] => Array ( [PRODUCTS] => Array ( [sTATUS] => success [NUM_ROWS] => 693 ) [CATEOGRY] => Array ( [sTATUS] => success [NUM_ROWS] => 55 ) ) [sAVE_FILE_XML] => Array ( [0] => Array ( [file] => /sitemapproducts.xml [status] => failure [file_exists] => false ) [1] => Array ( [file] => /sitemapcategories.xml [status] => failure [file_exists] => false ) [2] => Array ( [file] => /sitemapindex.xml [status] => failure [file_exists] => false ) ) )
    Please help