Jump to content

Display info on /cart.php?a=checkout


Recommended Posts

On the /cart.php?a=checkout page, if Stripe is selected a drop down window appears for the credit card info..

 

I am using the Mail in Payment option and have it labeled e-Transfer, is there a way I can have some text appear with directions on sending in the e-transfer ?

 

I am trying to use if statements but cant seem to get it to work.

 

07-07-2017 2-26-33 PM.jpg

Edited by AffordableDomainsCanada
Added Image!
Link to comment
Share on other sites

On the /cart.php?a=checkout page, if Stripe is selected a drop down window appears for the credit card info..

I am using the Mail in Payment option and have it labeled e-Transfer, is there a way I can have some text appear with directions on sending in the e-transfer ?

I am trying to use if statements but cant seem to get it to work.

If you're going to use the existing code, i'd suggest taking a look at....

<input type="radio" name="paymentmethod" value="{$gateway.sysname}" class="payment-methods{if $gateway.type eq "CC"} is-credit-card{/if}"{if $selectedgateway eq $gateway.sysname} checked{/if} />

and maybe change it to something like...

<input type="radio" name="paymentmethod" value="{$gateway.sysname}" class="payment-methods{if $gateway.type eq "CC"} is-credit-card{elseif $gateway.sysname eq "mailin"} is-mailin{/if}"{if $selectedgateway eq $gateway.sysname} checked{/if} />

then you'd have to duplicate/append the jquery entry in scripts.min.js and add an IF to cover is-mailin

    jQuery(".payment-methods").on('ifChecked', function(event) {
       if (jQuery(this).hasClass('is-credit-card')) {
           if (!jQuery("#creditCardInputFields").is(":visible")) {
               jQuery("#creditCardInputFields").hide().removeClass('hidden').slideDown();
           }
       } else {
           jQuery("#creditCardInputFields").slideUp();
       }
   });

and then back in checkout.tpl, define the mailin div equivalent of #creditCardInputFields - with those 3 things, you should have a sliding jquery box for e-transfer.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated