jpowersdev
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Taxonomy Ordering] Hasn’t been working in monthsHi @bnfp,
I pushed a fix for this about a month ago, so I’m curious if the issue you are experiencing is a different one.
First, what version of the plugin are you running?
Thanks,
JonHi @aurorasenhora,
If you haven’t modified the tab on the edit product page (thereby removing the “saved” aspect of it), the tab won’t be modified as it will no longer be considered a saved tab in the system. However, tabs that are assigned as saved tabs but are not modified should be updated on the products when updated through the global tab interface.
Let me know if that helps,
JonForum: Plugins
In reply to: [Easy Forms for Mailchimp] Form Builder ErrorHi @anasimoes,
Have you made any recent changes to your Mailchimp account? Have you tried clearing the API cache?
Do you see any relevant errors in your browser console when loading the page with the error? Do you see any failed requests in the network tab, and if so can you provide the error message?
Thanks,
JonForum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] PHP8 Fatal TypeError ErrorHi @isarisar,
There’s a few things at play here. The first being that the Divi Builder is a premium plugin, and we don’t have a copy of it. It would not be reasonable for us to purchase a copy of each premium plugin that fails to be compatible with our own.
That being said, I can provide some insight into what this issue is. Basically, our plugin uses this WooCommerce hook to modify the array of tabs for a given product. In that hook, the global $product variable is expected to be defined. Divi Builder seems to be manually calling that hook without the global $product variable being in scope, and as such the code fails.
You have identified a potential solution to the PHP error, but that likely won’t solve the underlying compatibility issues between our two plugins. If the $product variable is not defined when the WooCommerce hook is called, our plugin won’t be able to provide a list of tabs.
Divi comes with its own custom tabs module. After addressing several issues with their page builder similar to this one, I’d have to recommend that you use that instead if you’re set on using Divi.
Alternatively, if you’d like to utilize your access to that plugin to develop a stable solution to this problem, you’re welcome to open a pull request – https://github.com/yikesinc/yikes-inc-easy-custom-woocommerce-product-tabs.
Thanks,
JonHi @szokec,
Can you provide a link to the page? This sounds like a visual (CSS) bug, unless your product description has broken HTML. If you forget to close a div, for example, it can break the whole layout of the tabs.
Jon
Forum: Plugins
In reply to: [Easy Forms for Mailchimp] Set calls to pending instead of subscribedIf you set the form to double opt-in, it should set the initial status to pending while awaiting the confirmation email to be clicked. That being said, I’m not sure if the scenario is different when the member previously unsubscribed. You may want to test that.
Jon
Forum: Plugins
In reply to: [WP REST API Controller] REST: GET working, POST notHi @davidmunaretto,
Yes, in order to modify the fields via POST you have to do some additional work. Our plugin only exposes the fields to API requests for the purposes of fetching data. In the context of the docs here (https://developer.wordpress.org/reference/functions/register_rest_field/), our plugin only defines the
get_callbackfunction. You would need to register your fields with both aget_callbackandupdate_callbackin order to update the meta fields as well.Here’s a longer article on extending the REST API – https://developer.wordpress.org/rest-api/extending-the-rest-api/modifying-responses/
Let me know if that helps,
JonForum: Plugins
In reply to: [Easy Forms for Mailchimp] Unsubscribe shortcodeHi @vbengeult,
I would check the List ID in your shortcode. You could also trying using the form parameter instead and see if that works. You can read more about the available options in this knowledge base article – https://yikesplugins.com/knowledge-base/create-an-unsubscribe-form/
If neither approaches results in a change in behavior, you might check your site’s debug log for relevant messages.
Let me know if that helps,
JonForum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Related productsHi @jpknubben,
Sure, you can do this. You’d probably want to create a shortcode to generate the markup. The product will be available using the regular template functions like
get_the_ID(). Then it’s just a matter of adding the shortcode to a custom tab on your product.If you want it to show on every product, you can either look into our premium add-on (which includes global tabs as a feature), or you can use the hook that WooCommerce provides.
Let me know if that helps,
JonForum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Browser back button stopped workingHi @mickykkp,
That is very strange, and possibly some sort of javascript conflict due to scripts in your theme. We don’t ship any frontend javascript with this plugin.
Can you provide a link to the page in question?
Jon
Forum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Access tabs using WooCommerce APIHi @twenty50cards,
What you want to do is possible. You’ll first register the meta field with the rest api. Here are the docs on
register_meta– https://developer.wordpress.org/reference/functions/register_meta/. Make sure to read the notes on theshow_in_restargument.The meta key for our tabs is
yikes_woo_products_tabs. The data is serialized, which may require additional work to convert to JSON. Something like this will probably work – https://stackoverflow.com/a/48238347You also need to make sure that the product post type has support for ‘custom-fields’ in your theme. I believe it does by default, but that’s something to check if it doesn’t work.
Let me know if that helps,
Jon- This reply was modified 4 years, 1 month ago by jpowersdev. Reason: formatting
Forum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Anchor link to a custom tabHi @saimoon,
Instead of digging through all of the minified JS files in your theme, you’re probably better off trying to change the method of scrolling to avoid whatever conflict is occurring. This seems to work:
jQuery([document.documentElement, document.body]).animate({ scrollTop: jQuery(tab.parentElement).offset().top - 100 }, 300);Alternatively, you could use
element.scrollIntoView()or one of the other methods of scrolling the page using JS.Jon
Forum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Anchor link to a custom tabHi @saimoon,
You could update this line to match the exact tab title:
if (event.target.hash && event.target.hash.includes('tab-')) {Instead of
'tab-'it would be the full name of the tab.Jon
Forum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Anchor link to a custom tabHi @saimoon,
According to the Firefox developer tools, your homepage includes 73 JS files. Three of the files from the oceanwp theme stand out as being possibly relevant:
1. ow-infinite-scroll
2. scroll-effect
3. themeI’m sorry, but digging through all of those script files is outside of the support I can provide. The script that we created together to scroll to the tabs is working, but some other script is presumably reacting to
scrollevents and performing its own actions. That is the script that you need to find and remove/disable.Jon
Forum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Divi Builder issue STILL?Hi @rayge,
A google search returned the following, but there’s no mention of hooks that apply to tabs – https://www.elegantthemes.com/documentation/developers/hooks/
Your best course of action is to browse the plugin files and look for any relevant hooks that you could use. Alternatively, you could open a support ticket with Divi and see if they provide any programmatic means of adding tabs.
Let me know if that helps,
Jon