Page 185 of 280 FirstFirst ... 85135175183184185186187195235 ... LastLast
Results 1,841 to 1,850 of 2799
  1. #1841
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,478
    Plugin Contributions
    88

    Default Re: One-Page Checkout [Support Thread]

    I guess it's time to ask: What Zen Cart version? What OPC version? Are there template overrides for OPC's template modules?

    Update: Noting that while the "Apply" button is just a span, it's got an id that's used by OPC's jQuery to "fire" the request.

  2. #1842
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: One-Page Checkout [Support Thread]

    Zen 1.5.6c
    OPC 2.3.4 (2020-08-28)

    Same on Localhost and Production versions. On local I am reverting to 'classic green' so there are no template alterations.

    The issue appears to be with the ID then. I am tracking that backwards to see what is what.

  3. #1843
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: One-Page Checkout [Support Thread]

    Here's the section in tpl_modules_opc_credit_selections.php

    Code:
            if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes') {
                $secondary_class = 'opc-cc-submit';
                $additional_parms = '';
            } else {
                $secondary_class = '';
                $additional_parms = 'name="apply_' . $ot_class . '"' . ' class="opc-cc-submit"';
            }

    I emerge out of that with:

    $secondary_class = 'opc-cc-submit';
    $additional_parms = '';
    As expected.

    Those values get sent to :

    Code:
    echo zen_image_button(BUTTON_IMAGE_SUBMIT, ALT_TEXT_APPLY_DEDUCTION, $additional_parms, $secondary_class);
    But that will not produce an ID (or a class for that matter). So, I must be missing something, I just don't know what it is.

    (
    Just out of interest so far, the critical line in Zen 1.5.0 in html_output reads
    $css_button = '<span class="' . $mouse_out_class . '" ' . $css_button_js . $style . ' >&nbsp;' . $text . '&nbsp;</span>'; // add $parameters ???
    In my version of 1.5.6c it doesn't appear that the 2nd class is actioned at all. But I am going to have to check that.
    )

  4. #1844
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: One-Page Checkout [Support Thread]

    So, with css buttons disabled the behaviour is as expected. The submit button looks like this:

    Code:
    <img src="includes/templates/template_default/buttons/english/button_submit.gif" alt="Apply" title=" Apply " width="51" height="15" name="apply_gv" class="opc-cc-submit">
    So, I am guessing that the class is what triggers the javascript. But without dismantling the javascript I am not 100% on that. It feels like a glitch in html_output.php rather than with OPC.

    Moving forward with that theory:
    Changing line 395 of html_ouptut.php to something like the following works for me but I have no idea if that has consequences beyond the scope here.

    Code:
    $css_button = '<span class="'.$sec_class.'" ' . $tooltip . $parameters . '>&nbsp;' . $text . '&nbsp;</span>';

  5. #1845
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,478
    Plugin Contributions
    88

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by niccol View Post
    So, with css buttons disabled the behaviour is as expected. The submit button looks like this:

    Code:
    <img src="includes/templates/template_default/buttons/english/button_submit.gif" alt="Apply" title=" Apply " width="51" height="15" name="apply_gv" class="opc-cc-submit">
    So, I am guessing that the class is what triggers the javascript. But without dismantling the javascript I am not 100% on that. It feels like a glitch in html_output.php rather than with OPC.

    Moving forward with that theory:
    Changing line 395 of html_ouptut.php to something like the following works for me but I have no idea if that has consequences beyond the scope here.

    Code:
    $css_button = '<span class="'.$sec_class.'" ' . $tooltip . $parameters . '>&nbsp;' . $text . '&nbsp;</span>';
    Correct; sorry for sending you in the wrong direction on the 'id' attribute. Are you using CSS buttons or not?

  6. #1846
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: One-Page Checkout [Support Thread]

    Production version - using cssButtons

    Local Version - if I turn cssButtons off, then the behaiour is as you describe. Yay!

    Local Version - If I turn cssButtons on, then no class is added to <span> and therefore the behaviour is not as expected.

    This behaviour makes sense with the code that is in html_output.php


    (but also means that at the moment I cannot enable OPC on the production site)

  7. #1847
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,478
    Plugin Contributions
    88

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by niccol View Post
    Production version - using cssButtons

    Local Version - if I turn cssButtons off, then the behaiour is as you describe. Yay!

    Local Version - If I turn cssButtons on, then no class is added to <span> and therefore the behaviour is not as expected.

    This behaviour makes sense with the code that is in html_output.php


    (but also means that at the moment I cannot enable OPC on the production site)
    I'm baffled as the majority of my testing on both the zc156 and zc157 series has been with css buttons enabled.

  8. #1848
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: One-Page Checkout [Support Thread]

    It is weird.

    If there was a flaw in html_output then one would have expected it to not remain uncovered.

    Going through the versions now.

    1.5.4 the line is
    Code:
    $css_button = '<span class="' . $mouse_out_class . '" ' . $css_button_js . $tooltip . $parameters . '>&nbsp;' . $text . '&nbsp;</span>';
    This would work because sec_class is included in $mouse_out_class

    Working my way forward now ...

  9. #1849
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,478
    Plugin Contributions
    88

    Default Re: One-Page Checkout [Support Thread]

    Noting that the current version of OPC doesn't support zc154.

  10. #1850
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: One-Page Checkout [Support Thread]

    My turn to be confused. My version of html_output.php is the problem.

    The critical line does not exist in any version downloaded. So, I am embarrassed. But still puzzled because why would that have changed??

    Anyway, it is not your problem so I will get off your thread.

    The plugin is great by the way. Particularly the 1.5.7 version :-)

 

 

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

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