jpowersdev
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Tabs for logged in users only?Hi @mikedrum155,
No worries. The snippet above doesn’t do anything to the product edit page, it just removes a tab from the list if the visitor is not logged in.
Did you make sure to change the bit that says “tab-name” to the name of your tab? I would guess it’s something like “extra-info”.
Thanks,
JonForum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Problem With Linking to tab with urlHi @dror9098,
You’re right, by default that does not work. It would require us to add some javascript on the frontend of the site, which is something our plugin avoids doing for compatibility reasons. However, we have written an article on how to implement that functionality: https://yikesplugins.com/knowledge-base/link-directly-to-a-custom-tab/
Let me know if that helps,
JonHi @hongpham,
It seems that the links are now working on that page. Two tabs are empty because they only contained the title, which is now being hidden.
Is there content assigned to the “Ingredients” and “Directions for Use” tabs? They are empty on the English version as well.
Thanks,
JonForum: Plugins
In reply to: [WP REST API Controller] using _fields parameter nullify meta keys ?Hi @kaon68,
I am able to filter the API results using the fields parameter on a local test install. I also confirmed that querying for a nonexistent field simply omits the field, it isn’t null (so it can’t be that). Do you have any other networking-related plugins that may be interfering?
Thanks,
JonForum: Plugins
In reply to: [WP REST API Controller] Tons of _oembed_ meta keys ?Forum: Plugins
In reply to: [WP REST API Controller] plugin conflictHi @borisbozic,
Unfortunately, I was not able to reproduce this in a local test environment. Do you have any addons for Elementor or any other network-related plugins that may be interfering?
A tab freezing is likely due to a js issue, and our plugin doesn’t load any. That makes me think there is another plugin running in the Elementor editor that is trying to make a request and getting blocked by our plugin.
Let me know what you find,
JonForum: Plugins
In reply to: [Easy Forms for Mailchimp] Google Anlaytics Goal TrackingI should also mention that if you’d prefer to do this the default way (without GTM), you just need to change the value of
UA-xxxxx-1and add the whole section to your functions file.If you aren’t comfortable editing the PHP files, you can use a plugin such as https://ww.wp.xz.cn/plugins/my-custom-functions/
Jon
Forum: Plugins
In reply to: [Easy Forms for Mailchimp] Google Anlaytics Goal TrackingHi @ricky1191,
The code you are referencing is PHP, so you will not be able to add it to GTM. GTM manages the loading of javascript.
Essentially, the code is firing custom Google Analytics events when certain actions occur. You have to define the functions in PHP in order to pass the form id to the script.
If you are using GTM to load the google analytics script, you can remove parts of that code:
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); ga( 'create', 'UA-xxxxx-1', 'auto' );That is the part that loads Google Analytics but GTM should be set up to do that itself.
After removing that section from both functions in the code you sent, you’ll need to add the remainder of the code to your functions.php file or similar.
Let me know if you have any questions,
JonForum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Tab does not display saved informationHi @warrengpress,
I see what you mean. Unfortunately, page builders often override the normal way of displaying tabs in WooCommerce, which can cause problems with our plugin. There is a setting you can enable in the plugin settings to try to force compatibility. It is outlined in this article: https://yikesplugins.com/support/knowledge-base/page-builder-compatibility/
Let me know if that helps,
JonForum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Custom tabs disappearingHi @ghostfacek,
That is certainly very strange. My first suggestion would be to update your plugins, as that version of WooCommerce is from back in March.
Do you have any other WooCommerce-related plugins installed? I’m wondering if there is something else hooking into the save function that might be interfering.
Thanks,
JonHi @hyldahl82,
I’m not sure what that script does, but it looks like it targets that div. In that case, I would recommend adding the script as you would a normal script (in the header) and adding the div to your tab content.
As for the title, you can hide that using a bit of css:
.woocommerce .woocommerce-tabs h2 { display: none; }Let me know if that helps,
JonHi @wesleyvanw,
Unfortunately, the addon does not import saved tabs from the previous site. That would require additional functionality on the export side of things. What the plugin allows you to do is assign saved tabs that have been created on the new site to products as you import them.
Jon
Hi @mmmolst,
I see what you’re talking about, the last two tabs are not functioning correctly. Even the first begins behaving strangely if you click between them a few times.
It looks like there is a closing tag missing, because the content for the second and third tab is not wrapped properly. Are you using any shortcodes anywhere? You may also want to switch any wysiwyg editors to text mode and scan for any extra/missing tags.
Let me know if that makes sense,
JonForum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Custom Product Tabs for WooCommerce