Page 182 of 187 FirstFirst ... 82132172180181182183184 ... LastLast
Results 1,811 to 1,820 of 1864
  1. #1811
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    9,914
    Plugin Contributions
    74

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by strelitzia View Post
    The site was using FEC up until the recent upgrade to 1.5.7, so no idea if OPC would have the same issues on an older version of zen cart.
    Yes, all bug fixes listed in that thread have been implemented.

    To be clear, I have no issue with the form at all when OPC page first loads. But as soon as a shipping method selection is changed, the class is removed from the payment method fields, breaking their layout. I can only assume something in the OPC code is doing this as it doesn't expect that class to exist. They still perform their task, just don't look pretty.
    OPC's AJAX handler (which comes into play when the shipping method is changed) loads the current template's version of the various tpl_modules_opc_*.php files.

    Are there, perchance, some leftover FEC files that are coming into play?

  2. #1812
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,445
    Plugin Contributions
    28

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by lat9 View Post
    I haven't seen a site running that version of PHP for a long time, nor have I done any integration testing with OPC on that very old version.
    Fair enough. Seems like an odd error to be caused by PHP though. But we need to upgrade it anyway. Once that is done, we'll see were that leaves us.

  3. #1813
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    9,914
    Plugin Contributions
    74

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by jeking View Post
    Fair enough. Seems like an odd error to be caused by PHP though. But we need to upgrade it anyway. Once that is done, we'll see were that leaves us.
    I agree about the oddness, but don't have enough information to provide any additional guidance.

  4. #1814
    Join Date
    Nov 2005
    Posts
    438
    Plugin Contributions
    3

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by lat9 View Post
    OPC's AJAX handler (which comes into play when the shipping method is changed) loads the current template's version of the various tpl_modules_opc_*.php files.

    Are there, perchance, some leftover FEC files that are coming into play?
    Not that I'm aware of. I took a download of the FEC module and deleted any matching files that existed on the site.

    Can you confirm that it's not expected and/or deliberate behaviour for the class names to be getting stripped of the form fields?

  5. #1815
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    9,914
    Plugin Contributions
    74

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by strelitzia View Post
    Not that I'm aware of. I took a download of the FEC module and deleted any matching files that existed on the site.

    Can you confirm that it's not expected and/or deliberate behaviour for the class names to be getting stripped of the form fields?
    Yes, I can confirm. OPC's AJAX processing uses the Zen Cart $template class to load the OPC sub-template modules to render its output.

    Are there any debug-logs generated? How about browser's console-logs?

    Update: Is the site publicly available for viewing? If so, send me a PM with the link.
    Last edited by lat9; 26 Oct 2020 at 06:34 PM.

  6. #1816
    Join Date
    Nov 2005
    Posts
    438
    Plugin Contributions
    3

    Default Re: One-Page Checkout [Support Thread]

    I did some digging into this and found that the "form-control" class is not hard coded onto fields, but added via js when the page is initially loaded.

    $('input[type="text"], input[type="password"], input[type="email"], input[type="tel"], textarea, input#state').addClass('form-control');
    $('select').addClass('select_caret_icon form-control');

    My guess is I have to re add these after OPC's AJAX handler has been fired. Any pointer in which file this needs to take place?

  7. #1817
    Join Date
    Nov 2005
    Posts
    438
    Plugin Contributions
    3

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by strelitzia View Post
    My guess is I have to re add these after OPC's AJAX handler has been fired. Any pointer in which file this needs to take place?
    I added some code at line 495 of includes/modules/pages/jquery.checkout_one.js to replace the classes.

    It's working correctly now.

  8. #1818
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    9,914
    Plugin Contributions
    74

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by strelitzia View Post
    I added some code at line 495 of includes/modules/pages/jquery.checkout_one.js to replace the classes.

    It's working correctly now.
    I'll point out that that's one of the more volatile modules in the OPC distribution (like it's up for another change in v2.3.5). Just remember to mark your changes appropriately so that they're not wiped out on an update!

  9. #1819
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    1,720
    Plugin Contributions
    6

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by jeking View Post
    Fair enough. Seems like an odd error to be caused by PHP though. But we need to upgrade it anyway. Once that is done, we'll see were that leaves us.
    perhaps not that odd. from

    https://www.php.net/manual/en/function.empty.php

    Note:

    Prior to PHP 5.5, empty() only supports variables; anything else will result in a parse error. In other words, the following will not work: empty(trim($name)). Instead, use trim($name) == false.
    practice #socialdistancing #staysafe
    email is hard....
    help out with the green....

  10. #1820
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    9,914
    Plugin Contributions
    74

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by carlwhat View Post
    perhaps not that odd. from

    https://www.php.net/manual/en/function.empty.php

    Note:

    Prior to PHP 5.5, empty() only supports variables; anything else will result in a parse error. In other words, the following will not work: empty(trim($name)). Instead, use trim($name) == false.
    Nice one, @carlwhat! I'm guessing that that statement applies to constant definitions, too, since they're not variables.

 

 

Similar Threads

  1. v151 Banners In Main Page - Support Thread
    By stevesh in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 May 2016, 10:34 PM
  2. 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
  3. 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
  4. Set number of products displayed per page (support thread)
    By yellow1912 in forum All Other Contributions/Addons
    Replies: 145
    Last Post: 11 Nov 2015, 07:06 AM
  5. Checkout Amazon Style -- Support Thread
    By CJPinder in forum All Other Contributions/Addons
    Replies: 72
    Last Post: 13 Apr 2011, 08:18 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR