kayart
Forum Replies Created
-
Forum: Plugins
In reply to: [WPC Price by Quantity for WooCommerce] Variated Products ProblemI have the same issue. The plugin works fine for simple products but doesn’t work for variable products.
Forum: Reviews
In reply to: [BuddyPress] Good choice for simple community-based projectsHi @imath
Just a mistype. Already edited ??
Forum: Plugins
In reply to: [WooCommerce] Product condition (Used Or New)Sounds like a good reason to learn more about custom fields. I’d recommend you to start with the Advanced Custom Fields plugin because it’s pretty easy to understand and use for beginners:
https://www.ads-software.com/plugins/advanced-custom-fields/
Do you use a CF7 form as an order form?
Forum: Plugins
In reply to: [WooCommerce] where is the action `woocommerce_thankyou_bacs` added?The action you’re looking for is
do_action( 'woocommerce_thankyou_' . $order->get_payment_method(), $order->get_id() );
It’s defined in the templates/checkout/thankyou.php file.
Forum: Plugins
In reply to: [WooCommerce] How do I embed WooCommerce checkout pages on another site?You can use WooCommerce REST API for that:
https://woocommerce.com/document/woocommerce-rest-api/
https://woocommerce.github.io/woocommerce-rest-api-docs/Forum: Plugins
In reply to: [WooCommerce] How to validate email address using external apiThere’re two possible ways to use an external API to validate email addresses on the checkout page:
- Add a “change” event listener to the billing_email field and send an AJAX request to the API to validate an address
- Use the woocommerce_after_checkout_validation to validate an address on the backend
Or you can even combine both options to make sure that an address is valid. There’s a good article on this topic written by Misha Rudrastyh:
https://rudrastyh.com/woocommerce/custom-checkout-validation.htmlForum: Fixing WordPress
In reply to: Upload image into specific folderYou can create your own API endpoint to achieve this
Forum: Plugins
In reply to: [WooCommerce] Why doesn’t this simple hook function work?woocommerce_before_cart action is just a template hook that allows you to display something before the cart.
Probably, woocommerce_before_calculate_totals is what you’re looking for.
Forum: Plugins
In reply to: [WooCommerce] Webhook discord woocommerceNote that Discord expects a request following a specific structure. The response’s 400 HTTP code most likely tells that your request does not contain one of the required fields. You can learn more about the Discord webhook structure here:
https://birdie0.github.io/discord-webhooks-guide/discord_webhook.html
https://discord.com/developers/docs/resources/webhook- This reply was modified 2 years, 10 months ago by kayart.
Forum: Fixing WordPress
In reply to: Plugins for my siteLuckily for you, there are a lot of articles about the best free plugins for each topic you’ve mentioned. Just google something like “Automated Backup free WordPress plugins” and you’ll surely find something.
Good luck with building your WordPress website ??
Forum: Plugins
In reply to: [WooCommerce] wc_get_product unexpected behaviorHello @ihereira
There’s no real reason to call the function with a negative function. I was curious what the function would return if a negative number was passed as an argument.
If you call wc_get_product() with an array or a string, it returns a boolean false, and this makes sense. So I expected that calling the function with a negative number would return false too, but it returns a product that doesn’t exist.
Forum: Developing with WordPress
In reply to: jQuery AJAX POST not working in PHP 8Check your PHP error logs
Forum: Developing with WordPress
In reply to: Perform extra actions on post saveYou can perform any additional actions using values of the fields of your custom metabox from the save_post action.
Forum: Plugins
In reply to: [WooCommerce] Product ScoreStore a post’s score in a post’s meta. Then get the value on the frontend and render it the way you need.
You can learn more about the post meta here:
https://developer.www.ads-software.com/plugins/metadata/managing-post-metadata/