delahoc
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce Square] Syncing from Square loses product categoriesHi, and thanks again for your reply.
I intend to follow up with adding the feature requests as you’ve suggested.
Updating the categories of scores of products after each automatic Square sync (so several times a day) is not practical, so my immediate fix was to turn off plugin updates for the Woo/Square plugin, then to comment out line 872 of the file plugins/woocommerce-square/includes/Sync/Product_Import.php so that categories in Woocommerce are not over-written at all. Then I can manage the categories in Woo without them being erased.
Perhaps there’s another feature suggestion – turning on and off various elements of a product (like categories) from being updated from Square during sync.
Now, I can turn my attention to why not all inventory levels are being updated from Square. ??
Thanks again, and Merry Christmas!
Forum: Plugins
In reply to: [WooCommerce Square] Syncing from Square loses product categories??
Thanks for the reply. That is indeed disappointing. I’d point out, as I mentioned in my original question, that Square does, in fact, allow multiple categories – it’s only the “reportable categories” which is limited to one.
As I was waiting to hear back I dove into the Woo/Square plugin code to see if there was some hook or filter I could tap into so I could code my own fix (eg, to filter the categories to include Square’s product categories, or to exclude categories from the update) but I found there were next to no hooks or filters!
The addition of appropriate hooks and filters during the sync process may have allowed me to code my own fix.
Thanks for that.
Yes, I had already hacked the admin-settings file you mentioned above and achieved what I needed that way. But I see that as a hack, not an elegant solution. I was looking for something a bit cleaner.
Thanks anyway.
Now four months and nothing …
How’s that for stunning support?
Here we are, three months since I provided the information you requested and still being ignored. This does not bode well. Very poor response.
Wow. A month and a half since I provided the information you asked for and still nothing.
Still nothing?
So nothing new? No solutions?
UM version is 2.1.4.
PHP is version 7.2.
Max Input Vars = 1000
I should probably mention that for the HTML above the stylised string length shows as 1447 characters, just in case that’s relevant.
I don’t have the time to do that level of testing for you. I’m using the Flash theme and a pile of plugins. As I mentioned, sometimes it works and sometimes it doesn’t. The times it doesn’t work is when it has either reached a certain number of characters or when the contents contains some unknown magic HTML. Here is the HTML contents of it at this moment (taken from the _um_custom_field in the table because at the moment the editor is still not working):
<div style="width: 100%; display: flex; justify-content: space-between;"> <div style="padding-right: 1.2em; font-size: 0.9em;"> <p>If you would like to become a <strong>Premium Member</strong> of Telehealth Services, download this button and add it to your home page. Then link the button to the Telehealth Services home page and let us know once that has been done. This will help improve your own website's SEO for Telehealth searches. </p> <p> As a premium member, you will also receive a multiplier effect for your CPC. The current multiplier for members is <span style="border: 1px solid #ccc; padding: 3px 12px; font-weight: 700; background-color: white; border-radius: 4px; font-size: 1.1em; margin: 0px 10px;"> <script> document.write( wpOptions.premium_multiplier ); </script> x</span> which means if you set your Cost Per Click at $0.50 then you will rank in searches as if your CPC is set at $2.50. The multiplier will drop in value as new premium members join so the earlier you become a premium member the better for your business. We will update our members when the multiplier changes. </p> </div> <div style="text-align: right;"> <a download="file" href="https://telehealth.wwwsgsrc2.supercp.com/wp-content/uploads/2020/03/Telehealth-Services-Member-PNG.png"> <img src="https://telehealth.wwwsgsrc2.supercp.com/wp-content/uploads/2020/03/Telehealth-Services-Member-PNG.png"></a> </div> </div>
Further edit.
I edited the _um_custom_fields meta record to reduce the content of the Content Block down to 3 chars, and then changed the length field to three to match. Lo and behold the Content Block editor started working again.
I originally had 1307 characters of HTML in there.
I was then able to paste the original content back into the Content Block editor and save it, and the _um_custom_fiels records correctly had the new content. However, having saved it, the Content Block editor suddenly stopped working again, just as above.
This clearly suggests to me that there is definitely an issue with the way the contents is saved (serialized) then loaded back into your plugin, and that this is causing the editor not to load.
Added info.
I’ve been trying to do a workaround on this while I wait for it to get fixed, by dumping the serialized contents of the _um_custom_fields meta record into a serializer editor. All of the editors I’ve tried (and there aren’t many) report that it’s a bad serialization. Could that be the issue? Could the editor not be loading because serializing the contents ends up breaking something?
Note: the contents of that Content Block appears fine on the web page when I view the form. It’s only on the back-end (specifically, trying to edit the contents of the Content Block) where there is a problem.
The profile menu was aways enabled on that setting, as was the About tab. I spent days trying out various combinations of settings and always got a blank page.
Ultimately, I found a workaround of sorts. I was previously using the default profile form. I ended up creating a new profile form and it worked. Got a blank page on the default form, got content on the page when I created a new form. Go figure. That makes no sense to me.
Forum: Plugins
In reply to: [WP Show Posts] Plugin shows no postsUpdate: I just experimented with deselecting the category taxonomy, so that it is set up to show ALL posts … and it still shows nothing. ??