jpowersdev
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Clicking tab scrolls to top of pageHi @mcblake,
I took a look using the browser debugger, and I’m seeing two things happen:
- When you click a tab, woocommerce/assets/js/frontend/single-product.min.js runs some code to hide the previously selected tab’s content and show the new tab’s content. This is the default woocommerce behavior.
- A theme file essence-pro/js/smooth-scroll.js tries to scroll to that section on the page, but does so too early while it’s still hidden. As a result, it scrolls to the top of the page.
Unfortunately, since Essence Pro is a parent theme, I can’t recommend that you edit the theme files. They will get overwritten when the theme is updated.
You may be able to disable smooth scrolling in your theme options. I would also check and see if there are updates for your theme. Otherwise, your best course of action would be to open a ticket with your Theme’s Developer.
Thanks,
JonForum: Plugins
In reply to: [Easy Forms for Mailchimp] Single Opt-In when using IntegrationHi @idahsto8,
You can change your contact form 7 forms to single opt-in using the following snippet:
add_filter( 'yikes-mailchimp-checkbox-integration-body', function ( $request_body, $integration_type ) { $request_body['status_if_new'] = 'subscribed'; $request_body['status'] = 'subscribed'; return $request_body; }, 10, 2 );Thanks,
JonForum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Custom Product Tabs for WooCommerceHi @jladkins0824,
Unfortunately, I was unable to reproduce the problem on a local environment running the Astra theme.
Something is most likely interacting with the
woocommerce_product_tabshook, which is what our plugin uses to add the custom tabs. Do you see any references to that in your site files? It would most likely be in yourtheme-name/functions.phpfile.Thanks,
JonForum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Can’t edit text in fullscreenHi @wpluka,
That sounds like a browser issue, or perhaps a browser extension interfering with the text box.
Could you try it in a different browser, or disable your browser extensions?
Thanks,
JonHi @gwmbox
Yes, if you change the content of the global tab, it will apply those changes to all products.
Jon
Forum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Tabs for logged in users only?Hi @mikedrum155,
That functionality is not an option in the plugin, but can be added fairly easily in your functions.php file.
Something like this should do the trick:
add_filter( 'yikes_woo_filter_all_product_tabs', function( $tabs ) { if ( ! is_user_logged_in() ) { unset( $tabs['tab-name'] ); } return $tabs; } );Hope this helps!
Thanks,
JonForum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Clicking tab scrolls to top of pageHi @mcblake,
Our plugin doesn’t enqueue any additional css or js on the frontend, so I would check your theme and look for any event listeners targeting the tabs.
WordPress 5.6 bumped the jQuery version to 3.5.1, and some jQuery plugins no longer function as they did. Please look here for more information.
Thanks,
JonForum: Plugins
In reply to: [Custom Product Tabs for WooCommerce WP All Import Add-on] Adjust the PricesHi Phillip,
This plugin integrates with WP All Import to bring over custom tabs created with our Custom Product Tabs plugin, but it doesn’t have any functionality related to price. You might be looking at settings in a different WP All Import Add-on.
Please let me know if I can do anything else to assist you!
Thanks,
JonForum: Plugins
In reply to: [WP REST API Controller] REST API request failed due to an error.Hi @pedro79,
A server timeout could be caused by several things. Could you provide the url of the endpoint you are trying to access?
You could also take a look in your site’s error log: https://wordpress.org/support/article/debugging-in-wordpress/
Thanks,
JonForum: Plugins
In reply to: [WP REST API Controller] Showing only 10 productsHi @asaadqamar,
By default, when making an API request for Woo Products, the API will return 10 results. You can change this by adding the
per_pagequery var, like this: https://jrtechtt.shop/wp-json/wp/v2/product?per_page=2The limit on number of posts fetched is
per_page=100. Beyond that, you will need to set up some sort of pagination. You can read more here: https://woocommerce.github.io/woocommerce-rest-api-docs/#list-all-productsDoes this resolve your issue?
Thanks,
JonForum: Plugins
In reply to: [Easy Forms for Mailchimp] Pre-populate field with post valueHi @jddouglas73,
This problem seems best tackled with JavaScript, by implementing your own redirect that includes the email as a query var. Then you can just pop that in the second form when the page loads.
First, you’ll want to disable the built in redirect so it doesn’t interfere.
// Add to page /testpage $('.yikes-easy-mc-form').on('yikes_clear_input_fields_after_successful_submission', function() { const email = $('#yikes-easy-mc-form-2-EMAIL')[0].value; window.location=<code>/thank-you?email=${email}</code>; }); // Add to page /thank-you const urlParams = new URLSearchParams(window.location.search); const email = urlParams.get('email'); $('#yikes-easy-mc-form-1-EMAIL')[0].value = email;Each block of code should be wrapped in some sort of
$( document ).ready.Please let me know if you have any issues.
Thanks,
JonForum: Plugins
In reply to: [Easy Forms for Mailchimp] Add a tag based on UTM parametersHi @9stepsemail,
I’m not sure I fully understand what you are trying to do, but adding tags can be done using the filter you are already using. You would add the value to the array property ‘tags’.
Something like
$mc_form_variables['tags'][] = $_GET['utm_campaign'];should work.Please let me know if that addresses your problem!
Thanks,
Jon