jpowersdev
Forum Replies Created
-
Hi @heatzzcircle,
Modifying the request headers isn’t currently a feature of our plugin. Our ajax calls are using jQuery, so you might be able to come up with a solution involving
jQuery.ajaxSetup()– https://api.jquery.com/jquery.ajaxsetup/You’ll note that this function affects all
jQuery.ajax()calls, so it may cause other issues.Here is the file where the API requests are defined – https://github.com/yikesinc/yikes-inc-easy-mailchimp-extender/blob/master/public/js/yikes-mc-ajax-forms.js
Thanks,
JonForum: Plugins
In reply to: [Easy Forms for Mailchimp] Collect contact detailsHi @sergiotla,
Yes, there are different types of fields you can add to these forms, and all of the data is sent to Mailchimp.
Our knowledge base has several articles on how to integrate with Mailchimp and utilize the different available features – https://yikesplugins.com/support/knowledge-base/
Let me know if that helps,
JonHi @heatzzcircle,
There are two hooks you can use to modify the data sent to mailchimp –
yikes-mailchimp-filter-before-submissionandyikes-mailchimp-filter-before-submission-{$form_id}– Catch the merge variables before they get sent over to Mailchimp. @params: $merge_variablesYou would add something like this to your theme’s functions.php file:
add_filter('yikes-mailchimp-filter-before-submission', function($merge_vars){ // modify the $merge_vars array return $merge_vars; });Let me know if that helps,
JonForum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Tabs background colorHi @miqser,
This is something addressed by your theme. You’ll want to update your theme’s stylesheet with the correct CSS rules. It looks like the selector you want to use is
.q_tabs .tabs-nav li a.Thanks,
JonForum: Plugins
In reply to: [Easy Forms for Mailchimp] Add conditional custom messages?Hi @sandeld,
That level of conditional responses isn’t included in our plugin. That being said, as long as you are using the AJAX submissions, you could probably do this in javascript. Our plugin does trigger some events using jQuery that you can hook into, and you can use
event.preventDefault()to keep the rest of our code from running if they haven’t met your validation needs.Let me know if that helps,
JonForum: Plugins
In reply to: [Easy Forms for Mailchimp] Mailchimp lists not updating after I clear cacheHi @pcoledai,
Please try enabling debug mode (https://yikesplugins.com/knowledge-base/debug-settings/) and clearing your API cache once again (https://yikesplugins.com/knowledge-base/im-not-seeing-all-my-lists-on-the-drop-down-menu-when-i-go-to-make-a-new-form/).
Our plugin gets the data directly from Mailchimp, so either that request is failing or the cache clear is failing. Hopefully, debug mode will provide us info on which happens to be the case.
Let me know what you find,
Jon- This reply was modified 4 years, 10 months ago by jpowersdev.
Forum: Plugins
In reply to: [Easy Forms for Mailchimp] Not able to edit form pageHi @viitorcloudvc,
Thank you for the console screenshots. It looks like you have network requests hidden from view. This error signifies that one of the network requests our plugin makes has failed. Please check the network tab in your developer tools and look for that specific failing XHR request. It will provide more information about the problem.
Let me know what you find,
JonForum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Cant change value with REST APIHi @marccie,
The key for the tab’s content is “content”, but it looks like you are sending it as “value”. Try it like this:
{ “id” : “support-faq”, “title” : “Support & FAQ”, “content” : “<span style=\”font-family: ‘Arial’;font-weight: bold;\” >Test<br/></span><span style=\”\” ><br/>This is a value</span>” }Jon
Forum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Link to tabHi @walton,
Please try this and let me know if it works for you:
const tabOpener = function(tab) { // Simulate a click on that tab. if (typeof tab === 'string') { const currentTab = jQuery('.' + tab + '_tab'); currentTab.children('a').click(); } // Scroll to that tab. jQuery('html, body').animate({ scrollTop: jQuery('#tab-' + tab).parent().offset().top, }, 300); }; jQuery(document).ready(function($) { const {hash} = window.location; let tab; // If a # exists in the url lets see if its a tab. if (hash && hash.includes('#tab-')) { tab = hash.replace('#tab-', ''); return tabOpener(tab); } // On click we'll check to see if the event target has a tab hash. $('body').on('click', function(e) { if (e.target.hash && !e.target.hash.includes('#tab-')) { tab = e.target.hash.replace('#tab-', ''); return tabOpener(tab); } }); });Jon
Hi @ssdiaminc,
I understand why you took the approach you did, and that approach will work. Our field is meta like anything else, so the WooCommerce import and export tools will do what you’d expect. You just need to be very careful to upload only valid serialized data, or you may experience some bizarre issues.
You can use some sort of online tool like this one – https://freeonlinetools24.com/unserialize to unserialize the existing data, and then serialize it again so you can drop it in your spreadsheet.
Let me know if that helps,
JonForum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Cant change value with REST APIHi @marccie,
Depending on your site’s configuration, you may need to register the field with the rest API..
If you inspect the meta key in your site’s database, do you see that the value has been changed?
Let me know what you find,
JonForum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] content in tabs duplicatedHi @sean9185s,
I’m sorry, I meant to attach a link to this explanatory article – https://yikesplugins.com/knowledge-base/page-builder-compatibility/. The option is located within the settings page for our plugin.
Let me know if that helps,
JonHi @emeshto,
You are very welcome! Glad you got it working.
Let us know if you need anything in the future,
JonHi @ssdiaminc,
For the products that you added, did you make any modifications to the tab field? The tab information is stored as Serialized Data, which is incredibly specific. If the syntax is off at all, the data will be saved but it can cause other issues (like the tabs not being displayed).
If you plan on doing this often, I’m going to recommend our premium version of this plugin. It allows you to assign tabs based on taxonomy, allowing you to manage the tabs of incoming products without having to edit them in a spreadsheet.
Jon
Forum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] content in tabs duplicatedHi @sean9185s,
Can you try enabling the “Page-Builder Compatibility” setting in the plugin options?
Let me know if that helps,
Jon