Tagged: x
-
AuthorPosts
-
August 8, 2016 at 11:53 pm #1123217
aeropaymanParticipantHi,
I have woocommerce installed on my site, http://www.signiferstudios.com and I have several problems regarding the checkout process. After the user has completed the checkout they are redirected to a page called order review where they place the order. However I noticed that if the user enters http://www.signiferstudios.com/review-order into the search bar they can bypass the checkout all toghether. How can I modify the code so that the user can only access this page if they have completed the checkout process, or at the very least grey out the place order button or redirect them back to the shop.
Secondly, after the user clicks the place order button I would like them to be redirected to a thank you page which I have created, but at the moment they get redirected to the cart.
Finally, after the user has placed their order, the woocommerce cart doesn’t empty. I’m using angelleye paypal express checkout – how can I fix this?
Any help would be greatly appreciated.
Thanks.
August 9, 2016 at 2:37 am #1123327
NicoModeratorHi There,
Thanks for writing in.
Would you mind updating your X theme and plugins to the latest version. Please check also if your are using woocommerce compatible with X theme.
https://community.theme.co/kb/version-compatibility/
Update guide: https://community.theme.co/kb/updating-your-theme-and-plugins/
Let us know how it goes.
Thanks.
August 11, 2016 at 11:48 pm #1128309
aeropaymanParticipantI updated X to the latest version but it didn’t solve any of my problems. Additionally I now get a message ‘There was a problem paying with paypal. Please try another method’ every time I try to checkout.
Thanks
August 12, 2016 at 3:04 am #1128468
Rue NelModeratorHello There,
Thanks for writing in! Since you are using SiteGround, could you please disable the supercacher in your hosting panel? The SuperCacher is developed by SiteGround exclusively for their customers. It increases the number of hits a site can handle and boosts the website loading speed. The SuperCacher includes 4 different caching options for maximum optimization of your websites. You can access the tool by clicking on the SuperCacher icon in your cPanel.
For more information about this, please check it out here: https://www.siteground.com/tutorials/supercacher/supercacher_intro.htm
And to assist you better with this issue, would you mind providing us the url of your site with login credentials, if necessary, so we can take a closer look? This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password (only if necessary)Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thank you.
August 13, 2016 at 12:29 am #1129631
aeropaymanParticipantThis reply has been marked as private.August 13, 2016 at 3:18 am #1129747
Rue NelModeratorHello There,
Thank you for providing the information.
1] Please properly set your WooCommerce pages such as the Shop, Cart, Checkout and My Account page. Once you have setup your my account page, you might want to check the WooCommerce endpoints as well. For more details, please check it out here:
https://docs.woocommerce.com/document/woocommerce-pages/
https://docs.woocommerce.com/document/woocommerce-endpoints-2-1/2] If you want to have and modify a thank you page, perhaps this could help you:
3] This can be resolve if you have properly setup all your Woo pages.
And to make sure that everything is in order, you can always check the WooCommerce status page;
WooCommerce > System Status right in your dashboard.Hope this helps.
August 13, 2016 at 10:34 pm #1130397
aeropaymanParticipantHi,
1) I have the cart page set up but I don’t want users to be able to log in and I wanted to use essential grid to display my shop on the homepage so I disabled the woocommerce shop and my account pages. Is there any other workaround for this?
2) Thanks I will try this although I am a bit confused as in woocommerce -> setting -> checkout there is a specific endpoint for order-received. I just want the review order page to redirect to this.
3) Just to see if it worked, I set up a test woocommerce shop and my account page but it didn’t solve the problem with paypal and the cart still doesn’t empty after checkout.
Thanks
August 14, 2016 at 2:33 am #1130538
Rue NelModeratorHello There,
Thank you for providing the information.
1] You may use htaccess redirect. To know more how you can do this, please check this link:
https://mediatemple.net/community/products/grid/204643080/how-do-i-redirect-my-site-using-a-htaccess-file2] To better handle this, please follow this:
https://bobwp.com/an-easy-way-to-redirect-customers-to-a-thank-you-page-with-woocommerce/3] This can be cause with a 3rd party plugin like Woo Checkout. You could try testing for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.
Hope this helps.
August 16, 2016 at 3:03 pm #1134123
aeropaymanParticipantThanks!
I managed to fix all three problems. It turns out I was using the wrong paypal API credentials.
As for the thank you page, I implemented this code in my functions.php:
add_action( ‘template_redirect’, ‘wc_custom_redirect_after_purchase’ );
function wc_custom_redirect_after_purchase() {
global $wp;
if ( is_checkout() && ! empty( $wp->query_vars[‘order-received’] ) ) {
wp_redirect( ‘http://mysite.com/thank-you/’ );
exit;
}}
August 16, 2016 at 11:45 pm #1134686
RupokMemberGlad that you sorted it out. Feel free to let us know if you face any other issue. We’ll be happy to assist you.
Thanks for using X.
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1123217 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
