Page 175 of 281 FirstFirst ... 75125165173174175176177185225275 ... LastLast
Results 1,741 to 1,750 of 2809
  1. #1741
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,495
    Plugin Contributions
    88

    Default Re: One-Page Checkout [Support Thread]

    To keep that checkbox checked, you'll need to modify that optional insurance order-total so that it records the check when clicked (or unclicked) into the session, as you indicated, and also to initialize the checkbox based on that session value (if present).

  2. #1742
    Join Date
    Aug 2004
    Posts
    762
    Plugin Contributions
    0

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by lat9 View Post
    To keep that checkbox checked, you'll need to modify that optional insurance order-total so that it records the check when clicked (or unclicked) into the session, as you indicated, and also to initialize the checkbox based on that session value (if present).
    Ok cool.....I just did that in the ot_insurance module and got it working!

    Final question (I promise)! It looks like your One Page module is the one putting the "Apply" button next to these other modules, which makes total sense because it's designed to have the user "click to apply" their settings.

    But since I modified the Insurance module to "auto-submit" upon checking the box, I no longer need the "Apply" button next to it (since it's auto-applied based on our changes).

    How can I remove that Apply button from being displayed on the ot_insurance section of the checkout page? (Would it just be an if/else statement added to your function submitonce() in your checkout_one.js file)?
    - Jeff

  3. #1743
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,495
    Plugin Contributions
    88

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by Jeff_Mash View Post
    Ok cool.....I just did that in the ot_insurance module and got it working!

    Final question (I promise)! It looks like your One Page module is the one putting the "Apply" button next to these other modules, which makes total sense because it's designed to have the user "click to apply" their settings.

    But since I modified the Insurance module to "auto-submit" upon checking the box, I no longer need the "Apply" button next to it (since it's auto-applied based on our changes).

    How can I remove that Apply button from being displayed on the ot_insurance section of the checkout page? (Would it just be an if/else statement added to your function submitonce() in your checkout_one.js file)?
    You can "hide" that button via CSS. Just update your template's version of /css/checkout_one.css and add something akin to

    Code:
    #disc-ot_insurance+div.buttonRow { display: none; }
    Just use your browser's 'element inspector' and make sure that the id= attribute on the ot_insurance input matches the value above.

  4. #1744
    Join Date
    Aug 2004
    Posts
    762
    Plugin Contributions
    0

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by lat9 View Post
    You can "hide" that button via CSS. Just update your template's version of /css/checkout_one.css and add something akin to

    Code:
    #disc-ot_insurance+div.buttonRow { display: none; }
    Just use your browser's 'element inspector' and make sure that the id= attribute on the ot_insurance input matches the value above.
    Thank you so much for all your help! That works PERFECTLY!!

    Just to document what I did (for anyone else wanting to accomplish the same), I made two changes to the code.

    1. Since your template is the one that adds the Apply button on the checkout page, I modified the tpl_opc_credit_selections.php to assign a unique class name to ONLY the insurance block.

    I changed this (line 54):

    Code:
    <div class="buttonRow forward"><?php echo zen_image_button(BUTTON_IMAGE_SUBMIT, ALT_TEXT_APPLY_DEDUCTION, $additional_parms, $secondary_class); ?></div>
    And replaced it with this:

    Code:
                <?php 
    				if(strpos($current_selection['module'],"Shipping Insurance") !== false){
    			?>
    				<div class="buttonRow forward ot-insurance"><?php echo zen_image_button(BUTTON_IMAGE_SUBMIT, ALT_TEXT_APPLY_DEDUCTION, $additional_parms, $secondary_class); ?></div>
    			<?php 
    				}
    				else {
    			?>
    					<div class="buttonRow forward"><?php echo zen_image_button(BUTTON_IMAGE_SUBMIT, ALT_TEXT_APPLY_DEDUCTION, $additional_parms, $secondary_class); ?></div>
    			<?php 
    				}
    			?>
    There is probably a better (and prettier) way to accomplish that, but I'm not a native PHP programmer. :)

    2. Finally, I simply edited your checkout_one.css file to add the following line:

    Code:
    .ot-insurance { display: none; }
    Those changes (along with the previous posts of ours) made the module work exactly as we wanted! The customer can now click to apply insurance, it will update the form totals automatically, and the now-redundant "Apply" button has been removed from that Insurance block (without removing it from others like Coupons and Gift Certificates, etc).

    Thanks again for all your help, Lat9!
    - Jeff

  5. #1745
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,018
    Plugin Contributions
    61

    Default Re: One-Page Checkout [Support Thread]

    I think I have a bug =(

    So when you change the shipping/billing address in checkout the only button there is cancel, "save changes" doesn't appear until you click the box which cannot be seen

    Zen Cart 1.5.5f
    OPC 2.3.3 (2020-07-07)

    ~Melanie
    PRO-Webs, Inc. :: Recent Zen Cart Projects :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are NOT answered. You are welcome to contact us via our website for professional engagements.

  6. #1746
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,495
    Plugin Contributions
    88

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by mprough View Post
    I think I have a bug =(

    So when you change the shipping/billing address in checkout the only button there is cancel, "save changes" doesn't appear until you click the box which cannot be seen

    Zen Cart 1.5.5f
    OPC 2.3.3 (2020-07-07)

    ~Melanie
    Which bootstrap template is in use? Have you checked to see that any of the template's overrides of the OPC templates is 'current'?

    I'll note that the site's pulling in a woefully old v2.1.1 of jQuery, don't know if that has play in the issue or not.

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

    Default Re: One-Page Checkout [Support Thread]

    Noting, too, that the Save Changes button appears when you exit the changed field.

  8. #1748
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,018
    Plugin Contributions
    61

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by lat9 View Post
    Which bootstrap template is in use? Have you checked to see that any of the template's overrides of the OPC templates is 'current'?

    I'll note that the site's pulling in a woefully old v2.1.1 of jQuery, don't know if that has play in the issue or not.
    Updated jQuery, no help. Bootstrap Version: 1.0.5 08 July 2018.

    Have you checked to see that any of the template's overrides of the OPC templates is 'current'?
    Not to be dense, but I don't understand this LOL
    PRO-Webs, Inc. :: Recent Zen Cart Projects :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are NOT answered. You are welcome to contact us via our website for professional engagements.

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

    Default Re: One-Page Checkout [Support Thread]

    For that last bit, I was suggesting that you file-compare the /templates/bootstrap/templates against templates/template_default/templates to ensure that any template-overrides for the OPC templates have all the current changes.

  10. #1750
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,018
    Plugin Contributions
    61

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by lat9 View Post
    For that last bit, I was suggesting that you file-compare the /templates/bootstrap/templates against templates/template_default/templates to ensure that any template-overrides for the OPC templates have all the current changes.
    I have done so.... did a full install of OPC instead of picking through it
    PRO-Webs, Inc. :: Recent Zen Cart Projects :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are NOT answered. You are welcome to contact us via our website for professional engagements.

 

 

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