Guido Goluke
Forum Replies Created
-
Forum: Plugins
In reply to: [LiteSpeed Cache] Crawler keeps running into stopped_maxtimeOK, so what do you suggest as a minimum then?
“please make sure you have enabled crawler cron as well as you have wp cron triggered in time”, I’m sorry I don’t understand this. Could you rephrase?
Forum: Plugins
In reply to: [LiteSpeed Cache] Crawler keeps running into stopped_maxtimeSo I’ve set LITESPEED_CRAWLER_RUN_INTERVAL to 10 seconds, and now I’ve adjusted the default max_execution_time to 3600 (was stock 600). Let’s see how long it keeps running now. I don’t mind it stopping for 10 seconds between batches, but the problem is, is that it never seems to restart.
Forum: Plugins
In reply to: [Multi Step Form] Questions about paid versionThanks for your mail, did you receive my response?
Forum: Plugins
In reply to: [Multi Step Form] Questions about paid versionHi,
I suspected as much. Could you send me an e-mail at info[at]majorlabel.nl so I can respond? I believe that’s a bit easier to discuss this.
Forum: Developing with WordPress
In reply to: Add custom style to existing core blocksFor anyone looking for this, you need to add a filter to your blocks (make sure you transpile this code from JSX to vanilla JS and load it in the admin area):
wp.hooks.addFilter( 'editor.BlockListBlock', 'namespace/blockname', wp.compose.createHigherOrderComponent( BlockListBlock => props => { if (props.name === 'core/group') { // In this case I want to target the group block let { attributes: { className, myCustomAttribute } } = props // 'myCustomAttribute was created in another filter if (myCustomAttribute === '') { return <BlockListBlock {...props} /> // Return block as-is } // Proceed if custom attribute was not empty className = className === undefined ?${myCustomAttribute}: `${className} ${voetlichtGroupStyle} return <BlockListBlock {...props} className={className} /> } return <BlockListBlock {...props} /> // return block as-is in all other cases } ) )Now of course you would also need to load the styles to make sure you apply them to your classes, so add in
functions.php:add_action( 'admin_enqueue_scripts', function () { wp_enqueue_style('my-handle', get_template_directory_uri() . '/style.css', array(), THEME_VERSION); } );- This reply was modified 2 years, 5 months ago by Guido Goluke.
It’s fixed. Turns out the order-creating-plugin had a checkbox that allowed to switch the e-mails on or off.
- This reply was modified 2 years, 6 months ago by Guido Goluke.
Yes, there is a plugin that creates the orders. We connect our webshop to a large marketplace in the Netherlands, and the plugin creates orders in Woocommerce when orders are placed in the marketplace. I’ve already notified the plugin creators that their plugin should respect the regular Woocommerce API. It is a paid plugin so I believe I am entitled to ask something like that. I believe they do update the status from ‘awaiting payment’ to ‘processing’, but that seems to be done in a way that does not trigger the e-mails.
Ah, great thanks. I think the problem is the way our orders are created. The e-mail is never triggered, so the PDF never created. If I create an order the regular way, all is fine.
“You can select to attach the invoices to the email notification associated with the confirmation email under PDF Invoices > Documents > Invoices > Attach to”
This only applies when the invoice is generated by hand first? So if you didn’t generate the PDF, the e-mail will be sent without it, otherwise it will be attached?
So am I correct if I say there is no auto-generation of the invoice in the free version?
Forum: Developing with WordPress
In reply to: Update multiple post metas@bcworkz It felt a little spammy, guess I’d trust my instincts next time. OK cool, thanks. Not sure how much performance I could win with reducing 3 queries to 1, but at least now I know how to do it if I plan on doing that.
Forum: Developing with WordPress
In reply to: Update multiple post metas@myreceiptify, well, nice but: how??
update_post_metaonly allows you to set one meta key. So how do I combine them?Hi @babylon1999,
We use the stock ‘Cash on Delivery’ method for the payments of orders that are collected by customers, rather than sent out. I see in a recent order that was placed with ‘Cash on delivery’, two notes in the sidebar: the first one (bottom one) tells me I have a stock freeze of 60 minutes, and at the exact same time (to the minute, seconds are not shown) another note that says the stock has decreased. This was due to the order being placed. The order is not set to ‘Pending payment’, but indeed to ‘Processing’ I believe.
I noticed that, but from what I understand, to observe this behaviour, you would need to proceed to checkout and then return to the cart, which, as you can imagine, is not something we can do on your site.
Not quite sure why that would be a problem, you only needed to visit the checkout page, not perform any checkout actions, least of all do any payment.
Anyway, I see these notices a lot. The shop offers payment on delivery, could that be a factor here? Since payment is ‘pending’ as long as the goods aren’t delivered?
@babylon1999 Well my question did not state that I am looking for a way to freeze the stock. However, when I look at some random order, I keep seeing notes that say “Stock freeze of 10 minutes applied”, or sometimes 60 minutes. Not sure if that is the exact text, since it is my translation from the Dutch messages we see, but that is the gist of it.
If you look at my post, you will see I attached the website and the steps to reproduce. However, at the time we had this problem, both the block-version of the cart and checkout page were active on the same page as the shortcode-versions were. I just hid the block-version with a
display: none, but I think it still did some stuff in the background. Now that I completely removed the block-versions (since our payment operator is not supported yet), it works like it used to. It seems this problem solved itself.Forum: Fixing WordPress
In reply to: Updating to 6.3 blocked some core CSS registrationsCool, I’ll keep my version locked down on 6.2.2. for now, until a fix is reported