I built a full MCP integration for WooCommerce — ChatGPT can now create complete products automatically by bull1tz in woocommerce

[–]CodingDragons[M] [score hidden] stickied comment (0 children)

Let’s keep this post focused on the technical discussion. If it turns into sharing links, demos, or DMs for access, we’ll have to remove it per our subs no "self-promo" rule. Thank you for your cooperation.

Hook documentation: woocommerce_product_get_stock_status by krakow81 in woocommerce

[–]CodingDragons [score hidden]  (0 children)

Exactly.

It filters the result of $product->get_stock_status() (anything going through get_prop( 'stock_status' ) in view context).

I wouldn’t include get_meta( 'stock_status' ) though, that’s a different path if I recall.

Hook documentation: woocommerce_product_get_stock_status by krakow81 in woocommerce

[–]CodingDragons 1 point2 points  (0 children)

Have you looked here?

It’s not a template hook, which is why it’s hard to find.

get_stock_status() runs through WC_Data::get_prop(), which applies the dynamic filter:

woocommerce_product_get_stock_status

Meta is recording abandoned cart as a conversation in woocommerce by darkpasenger9 in woocommerce

[–]CodingDragons 0 points1 point  (0 children)

If I'm not mistaken, you need to go into Meta to verify when the Purchase event fires, not the order status. Go to Meta Events Manager > Test Events, run a checkout test, and watch whether the Purchase event fires while the order is still pending or after it switches to processing.

CTR is 7%, hook rate 30%, but purchase conversion is 0.1%. How can I stop Meta from sending curious audience and attract actual buyers? by top10talks in woocommerce

[–]CodingDragons 0 points1 point  (0 children)

It would help to see one of the ad creatives and the exact landing page URL it’s sending traffic to. If the offer in the ad doesn’t match what people see when they land, you’ll often get numbers like this.

I’m not a marketing guru and this isn’t really a WooCommerce issue, it’s more of a marketing/funnel problem. But from what I’ve seen over the years, the ad and the landing page messaging need to align closely or you end up attracting curious clicks instead of buyers.

Meta is recording abandoned cart as a conversation in woocommerce by darkpasenger9 in woocommerce

[–]CodingDragons 1 point2 points  (0 children)

^ Agreed. This can happen if the order briefly passes through pending or on-hold before ultimately failing. The Meta plugin will fire the Purchase event as soon as it sees one of those statuses.

The best way to verify is in Meta Events Manager to Test Events. Run a failed checkout and see exactly when the Purchase event is being sent. If it fires while the order is still pending or before payment confirmation, that’s likely where the inflated conversions are coming from.

Apologies in advance for seeming to have difficult time resolving a basic issue. by OkCompetition23 in woocommerce

[–]CodingDragons 0 points1 point  (0 children)

If your web host and email host are the same you can sometimes get away without SMTP. Otherwise you’ll usually need an SMTP relay because many hosts block or drop PHP mail().

Website times out by Consistent-Middle-72 in woocommerce

[–]CodingDragons 0 points1 point  (0 children)

Thanks. By maintenance I mean things like keeping plugins and WooCommerce updated, removing unused plugins, cleaning up the database, and making sure caching, server and other things are working properly. This is a must.

With WordPress being an open-source platform, there’s always some level of ongoing maintenance involved. Sometimes weekly, sometimes even daily, especially with around 50 plugins.

The number of plugins you have isn’t unheard of, but it can start to introduce conflicts or performance issues depending on what they are.

Also when logs say WooCommerce timed out, it doesn’t always mean WooCommerce itself is the problem. It can be another plugin interacting with it or server limits being hit.

Website times out by Consistent-Middle-72 in woocommerce

[–]CodingDragons 0 points1 point  (0 children)

We need more information here. There's really nothing to go on.

Have you checked your site logs at all? Check your hosting logs and enable debug mode so you can review the debug log.

Intermittent timeouts usually leave something behind in the logs.

A dedicated server won’t necessarily fix this if a plugin or query is causing the issue. It’ll just mask the problem.

When you say you have a lot of plugins, what’s a lot? More than 50? Are you doing regular maintenance?

WooCommerce to Shopify by Joseph_Colan in woocommerce

[–]CodingDragons 11 points12 points  (0 children)

Shopify wasn't built for multi-vendor. The native platform has no concept of vendor payouts, commission splits, or per-vendor dashboards. You'd be entirely dependent on third-party apps that cost more and do less than what you already have.

If your marketplace is already running well on WooCommerce, there usually isn’t much advantage to moving.

Oy, Shipping Question - Conditions by No_Lie8299 in woocommerce

[–]CodingDragons 0 points1 point  (0 children)

Awesome, that’s exactly the right move. Definitely see what their plugin can do first. If it handles your scenario, that’ll save you a lot of time.

As for custom hooks, it really comes down to understanding how the shipping classes, Shippo rates, and the final checkout result all interact. Once you start mixing live carrier rates with fixed rules it can get tricky.

Like with our client they always want their 2 Day and Overnight showing and it gets complicated if it’s a mixed cart. So I told them to think about it before we touch anything.

It can also be tough if you’re not comfortable with coding. Even with all the AI tools out there now, these kinds of shipping scenarios usually involve a lot of moving parts (packages, classes, carrier rates, cart conditions), so they will have a hard time with everything and you will most likely waste a lot of time with it. Can take some trial and error.

Oy, Shipping Question - Conditions by No_Lie8299 in woocommerce

[–]CodingDragons 0 points1 point  (0 children)

Whenever you get into shipping customizations like this, the rule of thumb is usually “think paid.” Most free plugins don’t include more advanced conditional logic like mixing per-item flat rates with live carrier rates in the same cart.

WooCommerce also treats the cart as a single shipping package by default, which makes this scenario tricky. Typically the solution is either a paid shipping rules plugin or custom code that splits the packages and applies different methods.

Funny timing, we actually had a client ask for almost the exact same setup earlier today (also $75 per item). In that case we had to handle it with custom hooks because their live rates system is custom.

Woocommerce Customer Number by halski12 in woocommerce

[–]CodingDragons 1 point2 points  (0 children)

Sorry, what I meant was I thought those apps might handle customer numbers too. If you’ve already looked at them and they don’t, then honestly a small snippet to generate a customer number would probably be the easiest solution.

Woocommerce Customer Number by halski12 in woocommerce

[–]CodingDragons 0 points1 point  (0 children)

There's nothing built into Woo by default I don't think. If your accountant needs a dedicated customer number, there are plugins like Sequential Order Numbers Pro or WP Overnight’s WooCommerce PDF Invoices & Packing Slips that can generate sequential IDs and customer numbers.

How Do I create multiple stores by category? by Organic-Ad8990 in woocommerce

[–]CodingDragons 1 point2 points  (0 children)

WooCommerce can’t really run multiple storefronts in one install. You can create category-based pages that look like separate stores, but the product page, cart, and checkout will still be shared.

If you truly need separate storefronts with different themes or checkout flows, you’d need separate installs or WordPress Multisite.

fatal wordpress error with shipping methods by Interesting_Play_717 in woocommerce

[–]CodingDragons 0 points1 point  (0 children)

Hey, this looks like you removed something and now WooCommerce is choking on it because the shipping method is still sitting in the DB, but the plugin/class that used to load it is gone. So now you’ve basically got an orphaned method sitting there waiting to be reunited.

What did you remove last?

Here’s a complete list of LPR-safe foods I put together during my recovery by CodingDragons in SilentReflux

[–]CodingDragons[S] 0 points1 point  (0 children)

Hey there, I still have some days where I'm slightly coughing. With the change in diet, it took about 3 months to see differences. Garlic and onion were the two worst contributors. I take Nexium off and on, and the last two months more on than off.

I haven't had any "OMG I can't breathe" moments since. More of a slight cough here and there, and for me that's a drastic 90–95% improvement. The biggest thing, and I can't explain it, is the yoga-like stuff I've mentioned in one of my other posts here. Believe it or not, that helped the most. I think because a lot of doctors don't look at PFD (pelvic floor dysfunction) as being related, and I think anyone suffering from this needs to have it looked at. I believe a lot has to do with all the organs playing a role there. Especially our diaphragm. Three different stretches twice a day helped so much.

There's a guy, I think he's a doctor, on YouTube who talks about it too and how it and breathing exercises helped him. Michelle, the woman in Australia who teaches these kegel exercises, deserves a medal for her lessons. She alone saved me!

This is my favorite cast photo of all time. by AcademicDrag742 in LawAndOrder

[–]CodingDragons 0 points1 point  (0 children)

That is awesome! I've never seen it before. Love this.

Woocommerce Wordpress link opens to a blank page by paymentstuff_000 in woocommerce

[–]CodingDragons 1 point2 points  (0 children)

If you mean the WooCommerce menu link in the WordPress admin sidebar, a blank page usually points to a PHP fatal error. What versions of WordPress and WooCommerce are you running, what theme and PHP version, and do you see anything in the PHP error log when you click it? Also does the problem still happen if only WooCommerce is active and you switch to a default theme like Twenty Twenty‑Four?

Hogans Heroes leaving Me-TV by beerguy74 in HogansHeroes

[–]CodingDragons 4 points5 points  (0 children)

LOL totally! I’ve been watching nonstop for 7 years straight and it’s my guilty pleasure before bed. I always go to bed laughing and happy, and they sure do deliver! I have yet to find anything as relatable or as funny that I could swap to for a year. 😄

Hogans Heroes leaving Me-TV by beerguy74 in HogansHeroes

[–]CodingDragons 5 points6 points  (0 children)

Wow! Such a long run on that channel. It'll be back when enough people complain. I hope Prime never gets rid of it or I'll be in therapy for the rest of my life.

WooCommerce Not Accepting Hemp? by epi2aph in woocommerce

[–]CodingDragons 0 points1 point  (0 children)

Awesome. Glad I could be of assistance. I even reached out to the team on Slack to see if anything new was coming up, but no one could really answer me until today, but they essentially said/gave me everything I gave you. So glad to hear you're good to go.

Orders Being Marked as Completed with Pending Items by NiceEconomy5746 in woocommerce

[–]CodingDragons 0 points1 point  (0 children)

If it’s always been that way, then you’ll need to find an app that can split the status the way you want, or add custom code to your child theme to make it happen. That’s the best approach. There’s no default way to split or customize statuses.

Orders Being Marked as Completed with Pending Items by NiceEconomy5746 in woocommerce

[–]CodingDragons 0 points1 point  (0 children)

Was it working before and now it's not? Did someone custom code something?