Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

John W

♥Ambassador
  • Posts

    963
  • Joined

  • Last visited

  • Days Won

    18

Posts posted by John W

  1. Yes, it does get rates on the fly from the Fedex API and is normally pretty quick, but can take up to 2 seconds or so.  I don't think it's being triggered.  At least I have an idea where to look though.  I'm wondering if I can put an safety catch in checkout_confirmation.

  2. Update:  I decided to try it with a flat cost shipping and that is getting added in so the problem is how my Fedex module using dimensional support is loading.  Now that I know where the problems lies, I'll figure out what's going on.  Not sure why I didn't think of this sooner.  When I figure this out I'll post in the main paypal thread in case anyone else hits this problem.

  3. @@greasemonkey

    Everything else works perfectly.  I use A.net forever and paypal standard works well.  I'll have to pour through this more in the future, but my checkout_confirmation doesn't have much modded off hand. 

     

    Dimensional weight applies to using a packing routine (from UPS XML that I've modified) with Fedex so I send box dimensions, but I don't think tha't s what the problem is.  I'll work at this harder in the next week or so.  Since I haven't done anything wiht the paypal app until recently, I'm not familiar. 

     

    When I solve this, or if I do, I'll post my findings.

  4. @@greasemonkey I only offer one shipping option, so that part is simple, but it's not being added in at checkou_confirmation in Scenario 1 or 2 with your settings.  In fact, in scenario 1 with (instant update OFF & in context enabled)  it doesn't add tax in when it should either.  Scenario 2 adds tax, but neither are adding shipping. 

  5. Is 5.018 going to be posted on the addons section for download?  I have 5.010 but it doesn't update.  I run php permissions of 600 and 755 on folders.

     

    Also, Standard works well, but Express doesn't add in shipping unless I cycle back through checkout.  I know customers won't do that.  Any ideas where i can look, or what i can do? 

  6. After years of dealing with having to change permissions on newly uploaded files from 664 to lower (I use  600 on php) I finally found how to change the umask for sftp on my server.  Apparently, this is how Cpanel is set up because it's discussed in their forums.  Someone posted the solution for SFTP in the SSHD config.  I still have to change the php file permissions, but at least folders are automatically set at 755 and files at 644.  I believe CPanel will be changing the default when using suPHP. 

     

    Using Beyond Compare to connet to the server I can easily set the file mask to only show php files then sort by permissions, so it's easy to find files and folders with too loose of permissions.

  7. I got an email from Google merchant today about getting customer reviews, so I decided to do it.  I added this to template_bottom.php and you will need to have your merchant account from Google to make this work.  You also have to agree to terms.  My code also uses US so change to your country but this works as planned.

    <?php
      if (basename($PHP_SELF) == 'checkout_success.php') {
        $dt = new DateTime(date(" Y-m-d"));
        $dt->modify("+10 days");
        $delivery_date = $dt->format("Y-m-d");
        $email_address_query = tep_db_query("select customers_email_address from customers where customers_id = '" . (int) $customer_id . "'");
        $email = tep_db_fetch_array($email_address_query);
        $email_address = $email['customers_email_address'];
    ?>
    
    <!-- BEGIN GCR Opt-in Module Code -->
    <script src="https://apis.google.com/js/platform.js?onload=renderOptIn" async defer></script>
    
    <script>
      window.renderOptIn = function() {
        window.gapi.load('surveyoptin', function() {
          window.gapi.surveyoptin.render(
            {
              "merchant_id": Your merchant number,
              "order_id": "<?php echo $order_id ?>",
              "email": "<?php echo $email_address ?>",
              "delivery_country": "US",
              "estimated_delivery_date": "<?php echo $delivery_date ?>"
            });
         });
      }
    </script>
    <!-- END GCR Opt-in Module Code -->
    
    <?php
      }
    ?>
    

    From Google:

    How to enable Google Customer Reviews

    1)

    Sign in to your Merchant Center account

    2)

    Select "Merchant Center programs" from the 3-dot-menu in the upper right-hand corner.

    3)

    Click "Get Started" in the Google Customer Reviews card and accept the Program Agreement.

    4)

    Add the survey opt-in code to your website.

    5)

    [Optional] Add the badge code to your site wherever you want. This will make the badge appear on your site and show customers that you're integrated with Google Customer Reviews (and what your seller rating is).

     

     

  8. @@duckydan

    Here's how I modified mine for the invoice number.  Right before the line

          $params = array('x_login' => substr(MODULE_PAYMENT_AUTHORIZENET_CC_AIM_LOGIN_ID, 0, 20),
    

    add

    // A.NET INVOICE NUMBER FIX
    // find the next order_id to pass as x_Invoice_Num
            $inv_id = tep_db_query("select orders_id from " . TABLE_ORDERS . " order by orders_id DESC limit 1");
            $last_inv = tep_db_fetch_array($inv_id);
            $next_inv = $last_inv['orders_id']+1;
    // END A.NET INVOICE NUMBER FIX
    

    then you'll need to add this somewhere in the array

                          'x_Invoice_Num' => $next_inv,
    

    And that will transmit the invoice number.

×
×
  • Create New...