jpowersdev
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Hide Custom TabsHi @paigettie,
So the tabs are stored as an associative array, i.e.
$tabs = array( 'first' => array( 'title' => 'Tab Title', ... etc. ) );Each tab has a key in that array. In the above case, the key is
first. That key should be the title, but it might be all lowercase, for example.var_dumpis a function that lets you output a variable. In this case, you’d want to output the tabs:var_dump($tabs);. That will let you inspect the tab data array, allowing you to see the keys and useunseton the correct array member.To increase the priority, you change the third parameter of the
add_filterfunction. Currently, it’s set to 10. You could change it to 20, for example, and it would execute later than other functions that use that filter with a priority of 10.Jon
Forum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Hide Custom TabsHi @paigettie,
Are you sure the tab’s array key is SRP in this instance? You may want to var_dump the whole array to be sure.
Alternatively, you might increase the filter’s priority to ensure it runs later.
Let me know if that helps,
JonForum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Clean Code in export CSVHi @imloic,
The WooCommerce CSV exporter can be customized using the following: https://github.com/woocommerce/woocommerce/wiki/Product-CSV-Importer-&-Exporter#adding-custom-import-columns-developers
The data used by our plugin is stored as serialized data. You could convert it to another format (such as JSON, for example) using the above filters.
Let me know if that helps,
JonForum: Plugins
In reply to: [Easy Forms for Mailchimp] Widget for the mailchimpHi @ryancostadias,
Are you asking about the List Stats widget? Here’s a knowledge base article on setting that up: https://yikesplugins.com/knowledge-base/viewing-list-and-user-information/
Jon
Forum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Tab title language issueHi @rugarr,
It looks like the issue here is that javascript isn’t able to understand the tab ID, it’s throwing an error about
tab-title-אספקהbeing an “unrecognized expression.” The markup is there, but the JS that WooCommerce includes to expand a tab is not working with the ID.A regular
document.querySelectorwith the tab ID does work, so I’m not sure what they are doing differently. You may want to reach out to them about this. In the meanwhile, the quick solution is to rename your tabs in English. You can add some JS to change the labels to Hebrew after the page loads, but having English titles in the database will mean English IDs, and should ensure that the WooCommerce JS properly expands your tabs.Jon
Hi @bradkeynvor,
Our plugin doesn’t do much on the admin side. It just adds that one panel to the edit product page. Do you see any console errors in your browser console, or anything relevant in your site’s debug log?
Jon
Forum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Import Tabs Only (not via WC)Hi @keishabien,
That’s not currently a feature of our plugin, and would likely take some extensive PHP to accomplish. You’d need a file full of tabs (title and content, so maybe a CSV) and maybe a custom WP CLI command to loop through them, pull the existing list of global tabs, add all of the new ones, and save them.
This is pretty far out of the scope of what our plugin does, so I won’t be able to provide any specifics. I’d recommend browsing the source code to get a sense of what you’re working with. Saved tabs are defined here.
Let me know if that helps,
JonForum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Iframe with WPMLHi @laurentdardelet,
Thank you for sending that. If you go and re-add the video, does it save correctly?
Jon
Forum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Page Builder Compatibility probelmHi @grupa,
Unfortunately, there’s not much we can do here. Page builders (and the themes designed for them) tend to re-implement core WordPress functionality in their own ways, which can cause problems with a variety of other plugins and themes.
If you are set on using a page builder, they generally provide functionality that approximates the product tabs that come with WooCommerce. Maybe some sort of accordion block, or something to that effect.
Jon
Forum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Tab title language issueHi @rugarr,
That is very strange. Could you provide a link to a page that showcases this issue?
Thanks,
JonHi @prytkova,
Unfortunately, Gutenberg isn’t able to be inserted into a page the way the TinyMCE editor is, so that’s not something you can enable for our plugin. Furthermore, I don’t believe WooCommerce currently has any intention of changing the Edit Product page to use Gutenberg, but that may change.
Let me know if that helps,
JonForum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Exporting and Importing DataHi @mmkurhade,
If you use an existing export, the tabs will be formatted as serialized data. If you then try to import the data after converting the importer to recognize JSON, it won’t see anything.
You first need to add code to convert the exported meta to JSON, then export it again. After doing that, future imports using the JSON strategy will recognize the tabs.
Let me know if that helps,
JonHi @2buy,
The tabs are stored as product meta, so they are stored in the wp_postmeta table. You should be able to add them during the export process if you are using the WooCommerce CSV export tool.
Let me know if that helps,
JonForum: Plugins
In reply to: [Easy Forms for Mailchimp] Captcha not working on Easy FormsHi @contactpoint01,
I think this is caused by the Elementor popup code, because the markup for that ReCaptcha div is correct. When ReCaptcha is loaded, it scans the DOM for
divs that have a class ofg-recaptchaand some data attributes and then replaces them with the checkbox. The markup is correct for the div in your popup, but it’s as if the google code isn’t seeing that part of the DOM.I’m not sure how to help here, as it works when not wrapped in the popup. You could probably write some javascript to manually activate it after the page loads, but I’m not sure. Here’s the docs on doing that: https://developers.google.com/recaptcha/docs/display
Jon
- This reply was modified 4 years, 5 months ago by jpowersdev.