Results 1 to 10 of 3052

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,931
    Plugin Contributions
    96

    Default Re: One-Page Checkout [Support Thread]

    I'm going to have to table this for a bit; that freeoptions shipping method is making my head hurt.

  2. #2
    Join Date
    Apr 2008
    Posts
    446
    Plugin Contributions
    1

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by lat9 View Post
    I'm going to have to table this for a bit; that freeoptions shipping method is making my head hurt.
    That's why I gave up on trying to find a solution for the freeoptions shipping module and instead worked things around it. But my solution for some weird reason doesn't work with OPC and I don't know why.

    Thanks for trying. I really appreciate it.

  3. #3
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,740
    Plugin Contributions
    22

    Default Re: One-Page Checkout [Support Thread]

    I have a weird problem and am hoping someone can point me in the right direction...

    ZC 1.5.6, OPC 2.1.3, php 5.5.38

    Using PayPal Express and Guest Checkout sometimes comes up with a blank shipping address. Keyword is sometimes and I can't figure out why - the only common factors are PayPal Express and Guest Checkout. It does not happen all the time, so we do have guest orders using PayPal Express and it's all good.
    We tried disabling PayPal Guest account (in PayPal account settings), and have tried disabling the PayPal shortcut button on the login page - made no difference.

    Attachment 18620

    One thing I did notice (although possibly just a coincidence) is that there are 0 orders using PPE with Guest Checkout and different billing/shipping addresses. We do have PPE and different addresses, we do have PayPal Pro and different addresses, we do have PayPal Pro in Guest Checkout with different addresses, but not one PPE in Guest Checkout with different Shipping and Billing addresses. Maybe just a coincidence?

    Any ideas? Where do I start? I have both PPE and OPC debug on, but didn't notice anything relevant. TIA

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,931
    Plugin Contributions
    96

    Default Re: One-Page Checkout [Support Thread]

    @balihr, besides the PPE/OPC trace-logs were there any debug-logs thrown an/around the time of the missing shipping-address(es)?

    Depending on the site in question, i.e. how 'buggy' it is, you might consider installing Report All Errors and setting it for all non-duplicate-constant messages on the storefront. That way, if/when the issue occurs again, there would be additional breadcrumbs left to hone in on the issue's source.

    BTW, which sub-version of zc156 is in use?

  5. #5
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,740
    Plugin Contributions
    22

    Default Re: One-Page Checkout [Support Thread]

    Thank you, Cindy.

    No other logs were thrown that I would say are associated with checkout. We do get a few related to duplicate language constants, but I don't think that has anything to do with the issue described.

    I've installed Report All Errors and will start watching it now, maybe that will take me somewhere. I'll report back when there's some data.
    As for how "buggy" it is - I built that site so... uhm... okay, I'm ready for a huge log file...

    It's ZC 1.5.6. Period. No sub-version, just 1.5.6

  6. #6
    Join Date
    Apr 2008
    Posts
    446
    Plugin Contributions
    1

    Default Re: One-Page Checkout [Support Thread]

    I did it!
    Found a way around it and it works with OPC thanks to Ajeh and this code https://www.zen-cart.com/showthread....70#post1240770 from where I got the idea. Perhaps it isn't elegant but it accomplishes what I need.

    This little piece of code prevents the checkout buttons from appearing if free shipping (from freeoptions) is used in conjunction with reward points and if the cart total gets below the minimum amount for free shipping to kick in. But it allows the selection of a different shipping option.

    Adding the code in red to templates/tpl_modules_opc_submit_block.php

    Code:
    <?php
    // -----
    // Part of the One-Page Checkout plugin, provided under GPL 2.0 license by lat9 ([email protected]).
    // Copyright (C) 2013-2017, Vinos de Frutas Tropicales.  All rights reserved.
    //
    // Check to see that at least one shipping-method and one payment-method is enabled; if not, don't render the submit-button.
    //
    if ($shipping_module_available && $payment_module_available) {
        // -----
        // Set up two form-submittal buttons, one for payment methods that require confirmation and one for those that don't.
        // This page's header_php.php has created an array of payment modules that require confirmation, which is pulled into the
        // page's jscript_main.php.
        //
    ?>
    
    <!-- bof disable checkout button from displaying 1 of 1 -->
    <?php
    if (!IS_ADMIN_FLAG) { 
        global $order, $db;
          if (($order->info['total'] < MODULE_SHIPPING_FREEOPTIONS_TOTAL_MIN) && (substr_count($_SESSION['shipping']['id'], 'freeoptions') !=0)) { 
      
    	echo '<div style="border: 3px solid #777777; padding: 10px 0;"><p style="text-align: center;"><strong>Your order does not qualify for Free Shipping at this time.</strong></p>
    	<p style="text-align: center;"><strong>Please head back to the - <a href="index.php?main_page=shopping_cart">SHOPPING BAG</a> - to add more products, increase the quantity of products in your bag to meet the minimum order amount required to qualify 
    	for free shipping, or select a different shipping option above.</strong></p>'; 
        echo'<span id="opc-order-confirm"></span>';  
        
        }      
      } 
    ?>
    <!-- eof disable checkout button from displaying 1 of 1 -->
    
    <!--bof submit block -->
      <div id="checkoutOneSubmit" class="buttonRow">
        <span id="opc-order-confirm"><?php echo zen_image_button(BUTTON_IMAGE_CHECKOUT_ONE_CONFIRM, BUTTON_CHECKOUT_ONE_CONFIRM_ALT, 'name="btn_submit" id="btn_submit"'); ?></span>
        <span id="opc-order-review"><?php echo zen_image_button(BUTTON_IMAGE_CHECKOUT_ONE_REVIEW, BUTTON_CHECKOUT_ONE_REVIEW_ALT, 'name="btn_submit" id="btn_submit"'); ?></span>
        <?php echo zen_draw_hidden_field('order_confirmed', '1', 'id="confirm-the-order"') . zen_draw_hidden_field ('current_order_total', '0', 'id="current-order-total"'); ?>
      </div>
      <div class="clearBoth"></div>
    <!--eof submit block -->
      
    <?php
    }

  7. #7
    Join Date
    Apr 2008
    Posts
    446
    Plugin Contributions
    1

    Default Re: One-Page Checkout [Support Thread]

    In regards to the Coupon, Reward Points, and Gift Certificate. Every time the APPLY button is hit to update the data on the shopping bag, the only message generated is "Please confirm the terms and conditions below." without acknowledging either coupon code, reward points or GV code were accepted at all or generated some errors.

    Would it be possible to generate the appropriate messagestacks for each of these? and if so how?

 

 

Similar Threads

  1. Set number of products displayed per page (support thread)
    By yellow1912 in forum All Other Contributions/Addons
    Replies: 146
    Last Post: 2 Nov 2023, 12:50 AM
  2. v151 Banners In Main Page - Support Thread
    By stevesh in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 Sep 2021, 03:36 PM
  3. v151 Site Map/Page Not Found: Combined [Support Thread]
    By lat9 in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 4 Jan 2016, 02:19 PM
  4. v151 PayPal Express Checkout Using NVP 84.0 [Support Thread]
    By lat9 in forum Addon Payment Modules
    Replies: 32
    Last Post: 28 Dec 2015, 04:54 PM
  5. Checkout Amazon Style -- Support Thread
    By CJPinder in forum All Other Contributions/Addons
    Replies: 72
    Last Post: 13 Apr 2011, 08:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg