Tag: WooCommerce
-
WooCommerce scripts
This is a script to query the Stripe API using WooCommerce helpers to check and see if a payment token is attached to a customer: Save it to a file called query-tokens.php and then run it on a site with WooCommerce and the Stripe plugin installed with a valid API using wp eval-file query-tokens.php This…
-
WooCommerce Cheatsheet
Add to cart URLs with redirects WooCommerce has a lot of powerful built in features for adding products to the cart and redirecting elsewhere afterward, but I always have a heck of a time finding them in the documentation. Here are the most useful: Redirect to to the art after adding: https://yourdomain.com/cart/?add-to-cart=25&quantity=1 Redirect to the…