Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2010
    Posts
    182
    Plugin Contributions
    0

    Default Clickable area too large for payment modules on checkout_payment

    On the checkout_payment page, the payment modules are clickable for the entire radio box and text area. Is there a way to only have the radio box be selectable/clickable?

    The problem is we have customers choose credit card, then want to scroll down to the Continue button - to do this, they click to the right and bottom of screen which is picking up another payment option (check/money order) and they complete the order... then get upset that we ask for money before shipping.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Clickable area too large for payment modules on checkout_payment

    Are you saying that you want desktop users to have to only be able to choose a payment by finding and clicking that tiny little radio button with their mouse else they'll get an error because they didn't choose a payment choice?

    Sounds like yours is a mobile-specific issue.

    Assuming you're using the built-in template code for checkout, the reason that the text is usable for making a selection, is because the template is using proper HTML markup for radio buttons by associating the <label> with the <input> element. This makes navigation less painful for shoppers.
    If you're having problems with that in mobile mode, then I encourage you to look at considering why customers are frequently even needing to click on things that are causing problems. Is a different layout better? Is the font size wrong? Too many choices on the page causing excessive scrolling requirements?

    I suppose you could bandage it by either breaking the HTML so that desktop users are handicapped, or you could use javascript to rewrite the HTML on mobiles to change the <label>s to <span>s instead so the text has no clickability, and then fix whatever layout problems that causes.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jan 2010
    Posts
    182
    Plugin Contributions
    0

    Default Re: Clickable area too large for payment modules on checkout_payment

    No mobile at all, stock template. 1.5.1

    The label and span are clickable too. I could live with the radio + label only - you do have a good point there. Can I disable the span elements from being clickable?

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Clickable area too large for payment modules on checkout_payment

    Dunno which spans you're talking about. The payment modules only generate <label> and <input> stuff.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Jan 2010
    Posts
    182
    Plugin Contributions
    0

    Default Re: Clickable area too large for payment modules on checkout_payment

    To clarify - stock template with a modified check/moneyorder module renamed "Other Pay Options". I basically summed up all pay options checks/purchase order/western union etc to one selection.
    See the span of "other pay options" is clickable for the entire area all the way over.
    Would like to only have the radio and label clickable to avoid accidental clicks.

    Name:  other-pay.jpg
Views: 204
Size:  47.1 KB

  6. #6
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Clickable area too large for payment modules on checkout_payment

    I guess we'd have to see your code including the span. On my stock Zencart test site, with Paypal and Check/Money Order installed, only the button and label are clickable. The <span> element isn't used on that section.
    Last edited by stevesh; 16 Dec 2014 at 07:19 PM.

  7. #7
    Join Date
    Jan 2010
    Posts
    182
    Plugin Contributions
    0

    Default Re: Clickable area too large for payment modules on checkout_payment

    I see. Looks like I may need to adjust the use of this code as it's found INSIDE the label... I had to edit this as the forum code tags were not showing proper results using [PHP]

    define('MODULE_PAYMENT_MONEYORDER_TEXT_TITLE', 'Other Pay Options <span style="font-size:10px; font-family: Arial, Verdana;">(read details <a href="/index.php?main_page=paymentinfo" target="_blank"><font color="blue"><u>here</u></font></a>)<ul><li>Gift Certificate | Money Order | Western Union</li><li>USA Only: Personal Check | Purchase Order</li></ul></span>');

    SOLVED with the use of onclick="return false;"
    Would come in handy for anyone out there looking to add text to the payment modules on the checkout payment page.

    define('MODULE_PAYMENT_MONEYORDER_TEXT_TITLE', 'Other Pay Options <span style="font-size:10px; font-family: Arial, Verdana;">(read details <a href="/index.php?main_page=paymentinfo" target="_blank"><font color="blue"><u>here</u></font></a>)</span><span onclick="return false;" style="font-size:10px; font-family: Arial, Verdana;"><ul><li>Gift Certificate | Money Order | Western Union</li><li>USA Only: Personal Check | Purchase Order</li></ul></span>');
    Last edited by sbbemn; 16 Dec 2014 at 07:47 PM.

 

 

Similar Threads

  1. payment modules missing in admin area
    By nemy in forum Addon Payment Modules
    Replies: 9
    Last Post: 6 Jan 2016, 09:15 PM
  2. Clickable area of button
    By dw08gm in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 2 Jul 2010, 03:45 PM
  3. Replies: 1
    Last Post: 1 Sep 2009, 06:30 PM
  4. Modules/Payments: Modules not 'clickable' !?! What now?
    By hva in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 2 Oct 2008, 08:38 PM
  5. Sidebox - shopping cart too large for right column width
    By cshart in forum Basic Configuration
    Replies: 1
    Last Post: 24 Jan 2008, 04:05 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