I’m not able to edit custom javascript for WooCommerce pages. This includes deleting, adding and commenting.I’m not able to edit custom javascript for WooCommerce pages. This includes deleting, adding and commenting.
Hi there,
As we do not have access to your WordPress Dashboard we can not make sure what should be the cause of the issue. Please kindly get back to us with the URL/User/Pass of your website to follow up the case. Meanwhile kindly follow the steps below to troubleshoot some common cases and get back to us with the result:
- Make sure that you use the latest version of the theme and the Cornerstone, if not kindly update them
- Purge all caches if you have a cache plugin
- Check for possible 3rd party plugin conflict by deactivating all plugins except Cornerstone. If the problem is fixed then kindly activate them one by one to find the plugin responsible for the problem.
- Is the problem only happening to one page or all pages? If only it is in one page that seems to be a corrupt one so try to recreate the page
Thank you.
-All aspects of our site are up-to-date.
-All caches were purged.
-It happens on multiple pages that have WooCommerce shortcodes on them. Pages without the shortcodes are editable just fine through X.
-URL/Username/Password will be attached as a secure note above.
Hi there,
What pages has this issue? Some pages are archive pages that can’t be edited, and I don’t recommend mixing both Woocommerce shortcode and the builder, their shortcodes are, or may be implemented in a different way (some may result in the internal error). Example, when do_shortcode is called, and that shortcode also has do_shortcode within it, then it causes loops that trigger the internal error. It could happen anywhere ( not just in Woocommerce ) and it depends on you how you implement your shortcode.
But perhaps you may able provide more details of what you’re trying to do and which page? Maybe I could check it as exactly as you do and if it happens to be a bug then I will add them to our issue tracker
Thanks!
I’ve updated the secure note with a specific page.
Hello There,
It appears that you are using WooCommerce product shortcode inside Cornerstone. I have checked your custom css and it is working. The last css is not working because it lacks a few lines. Please have code updated and use this:
#product-5109 .price:after {
content:"Price Per Roll of 500";
}
#product-5109 .quantity:after {
content:"Roll of 500 Tags";
padding-left:5px;
}
.flex-control-nav {
position: initial;
padding: none;
line-height: 1;
text-align: center;
background-color: #fff;
border-radius: 4px;
margin-top: -150px;
}
.flex-control-nav.flex-control-thumbs {
width: auto;
margin-left: auto;
margin-right: auto;
float: none;
}
The product description and comments tab is not displaying because it is deactivated. Please go to X > Launch > Options > WooCommerce > Single Product and activate Products Tabs. You will have to activate the description and reviews tab individually.
And if the Cornerstone preview is not loading. you may use the skeleton mode when editing for faster response and easy access of the elements on the preview area.
Hope this helps.
My Single Product section looks different than yours. How am I supposed to update the CSS if I cant save any edits on the page?
Hi there,
You have to toggle on the Product Tabs
option first, it will then bring other options under it. As for editing, something is calling a function through URL and I’m not sure where it’s coming from.
Something is trying to execute a javascript code through URL. Maybe a sign of malware too. Would you mind providing your FTP login credentials as well? I’ll try deactivating the plugins through there and to check your files.
Thanks!
This code is not being executed on the customer-facing site only when trying to edit with X Theme. I disabled our live chat plugin which it looked like was trying to fire on top of the X editor and that seemed to fix our plugin conflict issue (the code is no longer there). However, the page is still not editable/savable. I’ve attached FTP credentials.
Hi There,
Thank you for the credentials, I have checked the error log on your site and the errors are coming from 3rd party plugins (you can check that on this file /html/wp-content/debug.log
and see the recent errors), have you done a plugin test? (Bappi’s instruction above), and there is also an error that is coming from your child theme, please test switching to parent theme and see if that able you to save the page CSS and JS. I understand that you may not able to do this on a production site. If this is the case please set up a staging site so we can investigate the issue while not disrupting the live site.
And may we know why you need to re-create that product pages? WooCommerce already provided you the product page when you create the product (https://www.smartcatrfid.com/product/nfc-home-care-tag/). If you want to edit the product page in the Content builder please navigate to PRO > Settings and on the Allowed Post Types add Products.
Cheers!
Hello, we have disabled plugins with errors that have not been resolved and it still didn’t fix our problem. Switching to the parent theme also didn’t fix the problem.
We want to re-create the pages to give more flexibility and customization than what is currently offered by WooCommerrce.
Hi there,
Deactivating the chat plugins allow me to edit the pages again, just after flushing Godaddy cache. Example, when chat plugin is active it won’t let me remove the content of text element, nor save it. But I could do that without those chat plugin.
Plus, the other issues you’re having in those pages is because they are pages embedded with product shortcode. How about using the real product’s page?
Thanks!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.