-
AuthorPosts
-
September 10, 2018 at 12:15 am #1007718
I have been using solely Amazon Pay for a year now but had big problems with it last week, so I have added payment via Square. I would like the Checkout page to look like the one in your demo (https://kriesi.at/themes/enfold-2017/checkout/) where the payment options are obvious. But when I look at my checkout page (https://blitzkitchen.staging.wpengine.com/checkout/), the first thing you see is the Amazon Pay button and you may not realize there are other options.
If nothing else, it would be nice to have a heading stuck in above the Billing Details section indicating you can pay with your credit card via Square.
Can you help?
Thanks.
September 11, 2018 at 4:50 am #1008165Hey ginnywills,
Thank you for using Enfold.
You can use this hook to add a notification above the billing forms. Just add it in the functions.php file:
add_action( 'woocommerce_before_checkout_form', 'avf_woocommerce_before_checkout_form' ); function avf_woocommerce_before_checkout_form() { wc_print_notice( __( 'ADD NOTIFICATION HERE.', 'woocommerce' ), 'success' ); }
Should we close the other thread?
// https://kriesi.at/support/topic/woocommerce-check-out-page/#post-1006474
Best regards,
IsmaelSeptember 11, 2018 at 3:11 pm #1008428Thanks for getting back to me.
I tried to add that code to the functions.php file but get this error:Your PHP code changes were rolled back due to an error on line 79 of file wp-content/themes/enfold-child/functions.php. Please fix and try saving again.
syntax error, unexpected ‘function’ (T_FUNCTION)And yes, you can close that other thread. Sorry. Clearly I am having big problems with my checkout page and am at a total loss as to how to get it working the way I need it to.
September 12, 2018 at 3:15 am #1008682Hi!
Thanks for the update.
Did you copy that code from your email? Please copy it directly from the forum or post the WP and FTP login details in the private field and we’ll add it for you. Sorry to hear that you’re having troubles with your checkout page. We’ll try to help as much as possible.
Best regards,
IsmaelSeptember 12, 2018 at 2:54 pm #1008955Thanks so much for your response — you were correct that I was pasting from the email. I have now done it correctly and I see how I can add some text – which is great.
Is there any way to move the AmazonPay button down to the bottom so all the payment options are together near the “place order” button? In your demo, I like how the PayPal button is grouped with the other payment buttons.
Thanks for your help!
September 13, 2018 at 2:53 am #1009147Hi,
How did you add the amazon payment? You may need to ask the plugin or script author if we can use any hooks to move the button below the checkout form.
Best regards,
IsmaelSeptember 13, 2018 at 4:09 pm #1009466I added the Amazon Pay through the plugin. It doesn’t give you a choice of where the button shows up. I would think that is up to me/us given its our website checkout page, right? All I want to do is move it down underneath the new section heading that you have put in for me so that I can make that heading something like “You have two options for payment, etc”
Is that possible?
September 14, 2018 at 2:54 am #1009753Hi,
The plugin is probably using some kind of hook (https://docs.woocommerce.com/document/introduction-to-hooks-actions-and-filters/) to render the button on the checkout page but we need to know what it is exactly, so that we can disable it and then create another hook to move the button below the checkout form. What is the name of the plugin? Please forward this thread to the plugin developer if possible.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.