Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

burt

Members
  • Posts

    17,340
  • Joined

  • Last visited

  • Days Won

    824

Posts posted by burt

  1. If those who control osC had any sense, they would remove all add-ons which encourage getting around payment security practices, such as "Encrypted Credit Card with cvv2". If someone had their credit card information stolen on a site which used such an add-on, it's quite possible that Harald, et al. would be in a lot of legal trouble.

     

    Impossible.  Read the GPL, legal terms of use of code.

  2. Are the users logged in (you know their country) or are they guests (people just browsing).

     

    If logged in;  get users country, display relevant message

    If not logged in; there are databases (and APIs) of IP <-> country, so do that and display the message.

     

    Potential problems;  

    APIs are generally rate limited.  If you have a busy site this could be problematic.

    Databases are large and go out of date.

     

    I'd suggest;

     

    logged in; easy, take the country, display the message

    not logged in;  display all available messages for all countries ---or--- allow not logged in people to select their country which then shows the relevant message.

  3. The module I recommended gives a payment option called "pingit" (which OP would rename to "pay on account" or such).  After the option is chosen and they click to go to the next page, there is a new input box to allow them to insert a "mobile phone number" (which OP would rename to "account number" or such).

     

    It would be possible for OP to store the customers account number...and have that "account number" box filled automatically.  

     

    The module I recommended is a starting place, not an exact fit.

  4. Assuming you do "something else" with regards to;

    allowing Schools to add money to their account

    removing money from the Schools account

     

    So, all you need is a record of the Schools account number on each order...

    a "close to what you need" payment module is http://addons.oscommerce.com/info/8345

     

    This payment module inserts a form which asks for the buyers mobile phone number.  

    You can amend that to ask for "Account Number"...

     

    It might be a starting point for you.

  5. Get rid of it off checkout_payment as this page does an awful lot, therefore an awful lot can go wrong.  Paypal especially causes problems.

     

    If you have to have it in the checkout process, put it on checkout_shipping.

     

    Also, use a simple tickbox with a required attribute (as part of the form).  

    If the user does not tick the box they cannot submit the form, if they cannot submit the form, they cannot buy stuff from you.

  6. Did you read the modules help page?  

    https://library.oscommerce.com/Package&en&paypal&oscom23&express_checkout

     

     


    Instant Update

    As soon as the customer has logged in at PayPal or has provided their shipping address during the Express Checkout flow, PayPal contacts your online store to retrieve a list of applicable shipping rates and taxes for the shipping destination. The customer is able to choose their preferred shipping rate which is passed back to the store to use for the order.

    As of osCommerce Online Merchant v2.3.4, orders can be blocked when no shipping rate for the destination is available. If this is enabled and Instant Update detects that no shipping rates are available, it requests the customer to select or enter a new shipping address during the Express Checkout flow and prevents them to continue with the order until a valid shipping destination has been selected.

    Requirements

    Instant Update requires the following for the shipping rates to be retrieved:

    • Your store installation must be configured for and have SSL enabled.

     

    There are two items of significance;

     

    1.  make sure instant update is "true"

    2.  make sure your site is running SSL

  7. I believe, though I am not 100% sure, that PDT is only available with a Paypal Business Account.  

     

    Paypal Standard in the latest Paypal App is the most solid of all the Paypal Modules in my opinion;

     

    AT PAYPAL (assuming you are setting up Paypal Standard):

    1.  you need a signature API, gives you 3 pieces of information

    2.  you need to set up PDT which gives you a token.

    3.  you need to turn Auto Return and set the Return URL to the checkout_success.php page of your site, the checkout_success page is best as Paypal Standard does not use checkout_process.php and a double process (paypal module and checkout_process) MAY cause issues.

     

    AT YOUR SITE

    A  Turn on Paypal, it will immediately give an error, just refresh the page

    B.  Configure Paypal using the three pieces of information from #1

    C.  Test it is working by clicking the "Get Balance" link in the Paypal Box

    D.  If working, install Paypal Standard.

    D1.  Configure Paypal Standard by inserting the PDT token you got in #2, nothing else needs to be changed.

     

    DONE.

     

    Summary

     

    i. You MUST have a Signature API

    ii. You MUST set up PDT

    iii.  You MUST set up Auto Return 

    iv.  You MUST insert the Signature API details into the main paypal configuration in admin

    v.  You MUST insert the PDT token into the Paypal Standard module

     

    If any of those steps are missing or not done correctly, you may have problems.

  8. Depending on what you need;

     

    1. Some type of "Product Extra Fields" addon

     

    2. Tagging (still quite rare in ecommerce, and hardly anyone uses it in osCommerce), something like as linked to above. Just because it allows public to add tags, does not mean it has to be used like that.

     

    3. Header Tags SEO Reloaded uses Meta Keywords as an internal search engine - would take 10 minutes to code up a system to create a Menu based on inputted keywords.

  9. I do recall doing some investigation work on this module @@razgre @@MarP - I am pretty sure that this module expects your password to be 16 characters or less.

     

    Also there is a potential problem with this (I never got to the bottom of it):

     

    if (version_compare(PHP_VERSION, '5.3.11') == -1) {
           ini_set("user_agent", "PHP-SOAP/" . PHP_VERSION . "\r\nAuthorization: GGE4_API " . $keyid . ":" . $authstr . "\r\nx-gge4-date: " . $hashtime . "\r\nx-gge4-content-sha1: " . sha1($request));
       } else {
           stream_context_set_option($context,array("http" => array("header" => "authorization: GGE4_API " . $keyid . ":" . $authstr . "\r\nx-gge4-date: " . $hashtime . "\r\nx-gge4-content-sha1: " . sha1($request))));
       }
       return parent::__doRequest($request, $location, $action, $version, $one_way);
     }
    }
    
    Remove it and replace with:

     

    ini_set("user_agent", "PHP-SOAP/" . PHP_VERSION . "\r\nAuthorization: GGE4_API " . $keyid . ":" . $authstr . "\r\nx-gge4-date: " . $hashtime . "\r\nx-gge4-content-sha1: " . sha1($request));
    
  10. I'm not familiar with this particular addon, but this:

     

     

    <script>
    function confirmDelete(){
    return confirm("Do you really want to Delete??");
    }
    function confirmUpdate(){
    return confirm("Do you really want to Update??");
    }
    </script><!DOCTYPE html>
    
×
×
  • Create New...