jpowersdev
Forum Replies Created
-
Forum: Plugins
In reply to: [Easy Forms for Mailchimp] problems with easy form for mailchimpHi @slem99,
Could you provide a link to the site you are having trouble with? Are you using single-opt-in or double-opt-in for your form?
Thanks,
JonForum: Plugins
In reply to: [Easy Forms for Mailchimp] Reduce space between Form FieldsHi @uweh,
I’m seeing the following block of css in your site’s stylesheet:
#top .input-text, #top input[type="text"], #top input[type="input"], #top input[type="password"], #top input[type="email"], #top input[type="number"], #top input[type="url"], #top input[type="tel"], #top input[type="search"], #top textarea, #top select { -webkit-appearance:none; border:1px solid #e1e1e1; padding:8px 6px; outline:none; font:1em "HelveticaNeue","Helvetica Neue",Helvetica,Arial,sans-serif; color:#777; margin:0; width:100%; display:block; margin-bottom:20px; background:#fff; border-radius:0px }That block is adding a 20px margin on the bottom of all input fields underneath any element with the ID “top”, which in this case is the body element.
You can certainly try overriding the specificity by adding styles to target our forms, but I’d recommend modifying the stylesheet you already have, as it’s essentially targeting every input (and it’s at a higher specificity because you’re using the ID attribute).
Let me know if that helps,
JonForum: Plugins
In reply to: [Easy Forms for Mailchimp] Problems with Address FieldsHi @asantana75
Try this instead:
add_filter( 'yikes-mailchimp-ignore-required-array-field', function ($fields, $form_id) { $fields['state'] = true; return $fields; }, 10, 2 );Let me know if that helps,
JonHi @how2conquer,
That can happen when the tab content is hidden and it doesn’t display quickly enough before trying to scroll. The .offset() will be null as the targeted element won’t be on screen. If you add .parent() before the .offset(), it will grab the containing element and should work.
scrollTop: jQuery( '#tab-' + tab ).parent().offset().topLet me know if that helps,
JonForum: Plugins
In reply to: [Easy Forms for Mailchimp] Re-subscriber message and button text slashHi @mjknight02,
Hiding resubscribe messages is not a feature of our plugin, but you can do that using CSS.
The apostrophe is being escaped when you save. You can either change the label or use JS to set the button text when the page loads.
Thanks,
JonForum: Plugins
In reply to: [WP REST API Controller] taxonomies will not saveHi @ccsjjc,
Do you see any errors in your browser console when you save the settings? If not, do you see any errors in the network tab?
It sounds like there’s a conflict that’s preventing the request from succeeding.
Thanks,
JonForum: Plugins
In reply to: [Easy Forms for Mailchimp] Problems with Address FieldsHi @asantana75,
We have a filter that allows you to ignore the “required field” check on certain fields. You should be able to do the following:
add_filter( 'yikes-mailchimp-ignore-required-array-field', function ($fields, $form_id) { $fields[] = 'state'; return $fields; }, 10, 2 );That would prevent the state field from being checked to see if it is empty. You can also use the $form_id to only exempt the state on certain forms. For example, forms in English you may want to leave the state field, but forms in Portuguese you’d ignore that field.
Let me know if that helps,
JonHi @kurtberlin,
That is very strange. Does updating the title work on any products, or is it broken across the board? Do you see any errors in either the Site Health status page or your site’s debug log?
Could you provide a link to one of the products where you have assigned a tab, but it doesn’t display on the frontend?
Let me know what you find,
JonForum: Plugins
In reply to: [Easy Forms for Mailchimp] Error 4000 MessageHi @amberdtarr,
I’m not familiar with that particular error. Could you provide some more context about where the error is shown? Is this in your browser console? What site are you having trouble with?
Thanks,
JonForum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Product Tab In Purchase NoteHi @nanasflowers,
This is not currently a feature of our plugin, though I imagine you could do it in code. You’d need to hook into the purchase flow using one of the WooCommerce actions, and then check the list of tabs for the given product and pull out the one you want.
You’ll need to do this in PHP by adding code to the
functions.phpfile in your theme folder. I modified code from StackOverflow, so I haven’t tested it, but something like this should work:add_action('woocommerce_new_order', 'add_tab_note', 1, 1); function add_tab_note($order_id) { // Load the current order $order = new WC_Order($order_id); // Grab the products in this order $products = $order->get_items(); // Stop if there are no products in the order if (!isset($products) || empty($products)) { return; } // Grab the first product so we can fetch the tabs $product = $products[0]; // Grab the tabs $tabs = get_post_meta($product->get_id(), 'yikes_woo_products_tabs', true); // Stop if there are no tabs if (!isset($tabs) || empty($tabs)) { return; } // Define the ID of the tab that you want $id = 'my-tab-id'; // Loop through the tabs foreach ($tabs as $tab) { // If the tab matches the desired ID if ($tab['id'] === $id) { // Store the content in a variable (assuming that's what you want) $note = $tab['content']; } } // If the note is defined (meaning the tab was found) if (isset($note)) { // Add the note $order->add_order_note($note); } }You’ll just need to change the ID to the tab ID that you want to use. I’d recommend testing this on staging or locally first.
Let me know if that helps,
JonHi @adnanqammar,
According to the advanced-woo-search docs, you have to buy the pro version of their plugin to search product metadata. I understand that our plugin does offer the ability to add that information to the search, but that only applies to the core search functionality provided by WordPress.
If you have further questions related to the pro version of our plugin (and we are happy to help), please open a ticket through the support page of the plugin. We are not able to provide support for premium plugins on the free forums.
Thanks,
JonForum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Request a SORT FeatureHi @tabledesigns,
Yes, that is correct! You can assign tabs based on taxonomy, so either category or tag. Then if you wanted to ensure they were in order (grouped by prefix, how you have them now) you’d just use the drag and drop sorting feature to reorder them all in the list of saved tabs.
Let me know if that helps,
JonForum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Bug with WPML & WP Bakery Page BuilderHi @foolix,
This is a bizarre issue. Seeing as WPBakery is a premium plugin, I do not have access to it. So I decided to see what happened in the classic editor. When flipping from “Visual” to “Text” mode the HTML was modified. So I disabled our plugin and it happened again. Then I set up a clean WP installation with no plugins and it happened again.
In fact, if you go into the regular TinyMCE editor and add an image and a heading and then try to wrap them in a link, you can click the “Text” tab to see that only the
tag is wrapped in the anchor.
Our plugin doesn’t override anything to do with the product’s description section. We create our own filter for the content, but it’s only used when you enable the Page-Builder compatibility option and it only applies to the tabs. The only thing we change that isn’t relevant to the tabs specifically is to set the default TinyMCE tab to Visual instead of Text when on a product page.
My guess would be that because that editor provided by the WPML/WPBakery page flips to text mode, maybe the code to set it to visual is triggering that HTML modification (which happens with no plugins active at all). If you want to give modifying that a stab, you can add the following function to your functions.php file:
add_filter( 'yikes_woocommerce_default_editor_mode', function( $mode ) { return 'html'; } );Let me know if that helps,
JonHi @alethai,
Could you provide more information about the issues you are running into? Are you receiving any error messages, either in the browser console or the WordPress debug log?
Thanks,
Jon