I am using the Product by Category page, but some elements that I add, after saving after making some changes, randomly deletes themselves. On the editor, the elements are still active but gone when I refresh, and the live site after saving changes in the editor doesn’t display the elements.
Step-by-step reproduction instructions:
Open the Post Editor/Site Editor
Add some product categories
Add a product within one of those categories
Go into the Cwicly themer and click on the “Products by Category” template
Add a new Query Block and a Query Template
Open the query editor and set it to “Products”
Add a div into the query template
Add an image and paragraph to the div
Set the image to dynamic and set it to WordPress > Featured Image
Set the paragraph to dynamic and set it to WordPress > Post Title
Make a few random changes and save the page, checking the live site after each save to check if the bug has occurred for you. Repeat this process a few times if not and eventually, you should see the bug occur.
That’s odd because I can’t seem to reproduce the bug using the backend on the Cwicly demo link you sent. I am going to then assume that it could be a problem with something on my end, such as hosting or something similar.
Thanks for checking the demo version out.
When it happens on your installation, can you possibly keep the editor page open and see if there are any errors in the browser console that might be preventing it from saving properly?
I have, at the minute, found a workaround for the issue which involves me changing something, changing it back and then saving the page again when blocks are randomly deleted and that is a temporary fix for now.
I can confirm there is an issue when editing the Product by Category template, but this seems to be related to WooCommerce and not Cwicly.
You can replicate the exact behaviour with a clean installation without Cwicly installed.
Basically, the template is duplicated on save (Taxonomy Product Cat x + 1 and so on every time you save…) and the base template is reset.
Not sure why this is happening or if the WooCommerce team is aware of the situation.
I’d recommend using a custom template and applying conditions to target product archives instead.