Jump to content


  • Content count

  • Joined

  • Last visited

  • Days Won


phi148 last won the day on August 9 2021

phi148 had the most liked content!

About phi148

  • Birthday 01/01/2006

Profile Information

Recent Profile Visitors

14,125 profile views
  1. phi148

    Google reCAPTCHA v3

    @Hotclutch nice information there. I think it would be good to modify this addon to tie the captcha to the form submission (rather than on pageload). That will get rid of the 2 minute problem entirely. It probably isn't a good thing to display that informational alert... most customers probably have no idea what a captcha even is
  2. phi148

    Google reCAPTCHA v3

    The 2 minute window is the only reason I haven't implemented this. I think there is a way to do it only when the user clicks "submit" for example, but I haven't looked into how that would change this add on. Is anyone using this currently? How are you getting around the 2 minute issue? I think a lot of people take longer than 2 minutes for the contact us or for the create account forms.
  3. phi148

    Change Products Model Based On Option ?

    Thanks Demitry, I'm going to take a look now.... will keep you guys posted!
  4. phi148

    Change Products Model Based On Option ?

    This sounds like a great feature... thank you for the heads up!
  5. phi148

    Change Products Model Based On Option ?

    Yes! Just like that. When a user selects a color, you can see the ID of the model change.
  6. phi148

    Change Products Model Based On Option ?

    So, in a nutshell, yes I do need the product Model Number to change. I have some manufacturers that have different model numbers based on the color of the product. So, for example if a Widget is available in 3 colors, I don't want to list 3 different widgets. I want to list 1 widget with a 3 color dropdown box. However, when the customer adds the product to their cart, I want the model number to be updated to something like WIDGET-BLACK, WIDGET-RED, WIDGET-WHITE for example. We dropship products. So, when I send in an order, I always have to manually change the Model Number based on the color that was chosen by our customer. It is a major pain in the ass and can lead to user error when I submit orders.
  7. There is probably not an easy way to do this with how OSCommerce is constructed... but maybe there is a way (or maybe someone has already done this). Is there a way to change the Products Model of a product based on an option that is selected? For example. By default, if a customer clicks on a Widget that is for sale, it is standard in the black color (and "black" is the default selection in a color dropdown box). Products Model is WIDGET-BLK by default. Then if the customer chooses red as an attribute from the color dropdown box, the model number automatically changes to WIDGET-RED when they add to cart?
  8. Anybody know how to modify this add-on to return categories as well (instead of just products?)
  9. phi148

    AIM and SIM have reached End of Life

    I also use this and I am willing to help as well.
  10. phi148

    Google reCAPTCHA v3

    Don't you have to edit contact_us.php and create_account.php as well to make the call to initReCaptcha ? For example, in "contact_us.php" don't you have to have this command somewhere? echo $OSCOM_Hooks->call('contact_us', 'initReCaptcha');
  11. I think I fixed it. Downloaded this new file http://curl.haxx.se/ca/cacert.pem And replaced it here: /home/xxxx/public_html/ext/modules/payment/authorizenet/authorize.net.crt I *think* this is the answer. Will keep you all posted if it fails again.
  12. I was able to capture some output: * Trying * TCP_NODELAY set * Connected to secure.authorize.net ( port 443 (#0) * ALPN, offering h2 * ALPN, offering http/1.1 * successfully set certificate verify locations: * CAfile: /home/xxxx/public_html/ext/modules/payment/authorizenet/authorize.net.crt CApath: none * SSL certificate problem: self signed certificate in certificate chain * Closing connection 0 Notice the error --> * SSL certificate problem: self signed certificate in certificate chain
  13. All, today an update was rolled out with authorize.net They call it Phase 4b. You can see it here: https://support.authorize.net/s/article/Authorize-Net-Network-Change-FAQ Ever since this happened, I noticed something very odd. Intermittently I couldn't connect to authorize.net. I narrowed it down to the IP address Interestingly enough, the other IP that they use ( works fine. These 2 IP addresses seem to change at random times. You can see these are the IPs that are allocated to: secure.authorize.net/gateway/transact.dll as shown here: https://support.authorize.net/s/article/Authorize-Net-Domains-and-IP-Addresses So essentially, depending on which IP that the endpoint resolves to, either a payment goes through or it doesn't. I think this must be a problem that has to do with me having an outdated certificate (This is my guess) Does anyone else have this problem AND does anybody have an updated certificate that goes here /public_html/ext/modules/payment/authorizenet/authorize.net.crt I was able to temporarily get around this problem by setting Verify SSL Certificate to False in my authorize.net settings in oscommerce. Thank you,
  14. phi148

    AIM and SIM have reached End of Life

    I fixed it by adding this code to create a customer profile which now lets me save the customers information so I can rebill them easily. I just added this as a last minute feature after a successful credit card transaction. Seems to work just fine for me. I also have it send me an email if it fails for some reason. That part has not been tested yet since it seems to be working and not executing that code. if ($error == false) { $g_loginname = substr(MODULE_PAYMENT_AUTHORIZENET_CC_AIM_LOGIN_ID, 0, 20); $g_transactionkey = substr(MODULE_PAYMENT_AUTHORIZENET_CC_AIM_TRANSACTION_KEY, 0, 16); $posturl = "https://api.authorize.net/xml/v1/request.api"; $content = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" . "<createCustomerProfileFromTransactionRequest xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\">" . "<merchantAuthentication>" . "<name>" . $g_loginname . "</name>". "<transactionKey>" . $g_transactionkey . "</transactionKey>" . "</merchantAuthentication>" . "<transId>" . $response['x_trans_id'] . "</transId>" . "</createCustomerProfileFromTransactionRequest>"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $posturl); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, Array("Content-Type: text/xml")); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_POSTFIELDS, $content); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); $response_cim = curl_exec($ch); curl_close($ch); $parsedresponse = @simplexml_load_string($response_cim, "SimpleXMLElement", LIBXML_NOWARNING); if ($parsedresponse->messages->resultCode == "Error") { $to_name = STORE_OWNER; $to_email_address = STORE_OWNER_EMAIL_ADDRESS; $email_subject = '!!! Customer Information Manager Alert !!!'; $email_text = '<span style="color:red;">Customers information was not stored in authorize.net</span>'; $from_email_name = 'Authorize.net ALERT Notification'; $from_email_address = STORE_OWNER_EMAIL_ADDRESS; tep_mail($to_name, $to_email_address, $email_subject, $email_text, $from_email_name, $from_email_address); } }
  15. phi148

    AIM and SIM have reached End of Life

    I need to find out for sure. You may be right. Assuming you are correct, then it looks like I need to implement Authorize.net "CIM". Which doesn't exist either right now