I need help in finding the correct hook for WooCommerce. I’m trying to integrate design-builder API with the WooCommerce store. I have to make a redirect to the builder’s website when a customer clicks “Add To Cart” on the product page. Example URL I need redirect to: https://exampleurl.com/designBuilder/{UniqueID} {UniqueID} is generated with this: Is there a WooCommerce hook to change
Tag: woocommerce
Trying to find the right hook for WooCommerce Order Submission
I have a plugin I developed that connects a WooCommerce order to HubSpot. The issue i’m running into though is that while it works, the hook im using right now is sending order info to HubSpot before its technically complete. So this means that stuff like Failed orders get sent in as Pending, and coupon codes are ommitted. So i’m
How do I replace the dash by round brackets on WooCommerce product variations?
I would like to replace the dash ( – ) with round brackets ( ) around WooCommerce product variation names. Normally a WooCommerce product variation is displayed like this: Sometimes this dash can be confused by a minus, and it looks like it’s the main product minus the variation. This depends on both the product and variation names. So the
Hiding certain sections from “quick-view” of wordpress with woocommerce
I am trying to hide a section from either PHP template or CSS override from a website I am working on. The snippet of concern is as follows: I am trying to delete this div all together. I have tried finding the widget from PHP theme files with no luck. I have added custom CSS display: hidden property with both
PHP code for automatically change WooCommerce order status
I would like to change the status of every new WooCommerce order depending on a custom field (shopart) with PHP. I already tried to write a function in the functions.php file but I failed. Answer
Adding css class to featured products in woocommerce
I would like to loop throught all products in shop/category page and add special css class to product if it is featured. I have tried to do this with add_filter hook but it seems I am to dumb to get it working. Answer You were right about using a filter. I don’t know which filter you were trying but you
WooCommerce Subscriptions – Automatically complete renewal orders and Subscription status
I am working on a site which uses WooCommerce Subscriptions and WooCommerce Memberships. It sells subscriptions which renew annually. The only payment gateway being used is Cheque (renamed to Pay via Invoice), so all renewals are manual renewals. An invoice is sent to the customer (outside of WooCommerce) and the store owners mark the order as Completed in admin when
Woocommerce $product class can’t be accessed inside PHP snippet
I’m trying to write a PHP code for showing extra fields on my product page with “Woody Snippets” in WordPress. But I can’t access the $product class inside my snippet. Is it not possible or am I doing something wrong? Here is my code: Answer I realized the cause of the problem is my theme. My theme uses templates for
Add a quantity radio selector field to Ajax add to cart button on WooCommerce shop page
My product has a maximum quantity of 10. Customers often choose to buy many types at the same time. Hence I want to have a radio quantity selector (1 – 10) at the shop page. I already know how to show quantity picker at the shop page and how to use WooCommerce radio form. But I don’t know how to
Modify “get_cart_contents_count()” to count only specific product IDs in WooCommerce cart
I have 3 ticket products in WooCommerce and want to add a name field per ticket product purchased – so if a customer buys three tickets 3 name fields are displayed to fill out in the checkout. The code below works: But this includes all products added to cart – how can I target specific Product IDs to be only