If you are using PPOM plugin to add options to your menu items and WooCommerce products, then you may have noticed that, at random times, the PPOM options don’t show up in the confirmation page or the email confirmation:
Vs
So where did all the product options go?
Today I am going to show you how to prevent this from happening.
Options Only Register When Added To Cart
The first thing you must understand about PPOM and other product option plugins are that the options data only get attached to each product if you add the option to cart.
But how can someone purchase if they don’t add to cart, which is needed to get to the checkout/payment page where they can then complete their order?
Remove Buy Now Button
If you have any kind of Buy Now button on the product page, this button lets your customer pay for the product straight from the product page. Which then allows them to pay for the product without adding the product to the cart and paying via the checkout page.
If you have this buy button available on the product page, it will totally bypass any product option data being added to the product.
Remove Buy Now Button From Using Stripe Payments
If you are using Stripe, you may have this option turned on in your Stripe settings.
However you don’t want to completely turn this off because you still want the Buy Now and Apple/Chrome etc checkout buttons on your cart and checkout pages.
They really do simplify checkout for most customers that have Apple/Chrome/Samsung pay available on their phones or browsers.
So how d you only remove the buy button from the product page and not the cart or checkout pages?
You can add a piece of code to your website that will remove it from the product page only. This is a legitimate piece of code that actually comes from WooCommerce documentation itself.
The code is below in case you want to stay on this page:
You can remove the Payment Request button from the Product page with this filter: add_filter( ‘wc_stripe_hide_payment_request_on_product_page’, ‘__return_true’ );
To add this code to your site easily, you can use the plugin called Code Snippets.
Follow these instructions if you don’t have Code Snippets installed and activated on your WordPress website already.
If you have it installed and activated already, continue below:
First go to “Snippets” on the left sidebar. Then click on Add New at the top of the page:
Go ahead and name your Snippet to what you can recognize it by. I am going to name mine “Remove Payment Request From Product Page.” Then add the code that I provided above.
At the bottom of the page, click the “Save Changes and Activate” button.
After you have done so, it is time to check and see if the payment request button is still on the product page.
Go visit your product page on your phone and if it is not there anymore, then that is good news! Try to add the product to your cart and go to your cart page. You should still see the payment request buttons there. Lastly, Continue to checkout and see if you have payment request buttons there as well.
If you checked all these of these pages and they look exactly how you want them to look, then you have solved the issue of PPOM options not appearing in your Purchase Confirmation page or your Email Confirmation receipts.
In Conclusion
Getting your PPOM or products options to show in your purchase confirmation or your email confirmations is just a matter of not letting customers purchase from the product page.
Once you have followed the instructions above to make that happen, you and your customers would be happy to receive and confirm full product purchase details.
Are you able to see all of your product option details on your purchase confirmation and email confirmations?