Héctor.G
Forum Replies Created
-
Forum: Plugins
In reply to: [YITH WooCommerce Gift Cards] No Products in the Cart.Hi there,
Then if you already tried with the plugins, maybe it’s related to the theme.
Have you tried using a default WordPress one? (like twenty twenty-two)Maybe the theme is stopping our javascript files from loading, or it includes the AJAX add-to-cart feature which is not compatible with our plugin.
It should be working by default, so for sure something in your site is preventing the plugin from working as desired.
Let us know, please.
Have a nice day!Forum: Plugins
In reply to: [YITH WooCommerce Gift Cards] No Products in the Cart.Hi there,
Thank you for contacting us!I entered your site and checked, and indeed it’s not working.
I think this could be caused by incompatibility with any other plugin or theme.Have you tried deactivating your plugins 1 by 1 until the button works? To try to find the one plugin causing the issue.
Or there are any errors in the logs? Because in the console I could not find any.
Please, let us know.
Have a nice day!Hi there,
Checking the image you sent, it seems to me that the code it’s not being executed because of the code you have in the middle.
That’s PHP code, and that’s not the correct place to have it. Probable, because of that, the code below is not being executed.
Could you try to delete the code in the middle? ( add_theme_support() )
Or move my CSS to the top of the file.Let us know.
Have a nice day!Hi there,
What do you mean that the page doesn’t always open?
I visited your site and try and for me, it worked fine every time. The product gets added to the list correctly.Do you mean that the button doesn’t change to “Go to my wishlist” after you press it to add the product?
Please, let us know.
Have a nice day!Forum: Plugins
In reply to: [YITH WooCommerce Wishlist] wishlist removed from wishlist on websiteHi there,
Thank you for contacting us!I tried what you said but it did not happen for me.
I get back on the page and then visited the wishlist page again and the product was still there.Maybe I did something wrong?
Please, let us know.
Have a nice day!Forum: Plugins
In reply to: [YITH WooCommerce Wishlist] Product duplicats in wishlist after loginHi there,
We are investigating this, that’s we haven’t replied yet.
Thank you for your patience and your comprehension.
Have a nice day!Hi there,
That CSS should be working fine, since the menu is hidden by default, what that code does is force it to display.
Are you sure you pasted it in the place I said? Are you able to see the menu hidden in the HTML of the page?
It could be because the HTML of your account page is customized for any reason. Let’s try a more aggressive CSS code:
.yith-wcaf-dashboard-navigation { display: block !important; }Please, try that in the same place as before ( Appearance > Customize > Additional CSS )
Don’t forget to delete the other one before.Please, let us know.
Have a nice day!Could you please try the following CSS?
.woocommerce-account ul.yith-wcaf-dashboard-navigation { display: block !important; }You have to paste it in “Appearance > Customize > Additional CSS”.
Please, try it an let us know.Forum: Plugins
In reply to: [YITH WooCommerce Affiliates] REGISTRATION ATTEMPT BLOCKEDHi there,
Thank you for contacting us!Could you please explain a bot more where the issue is?
I mean, it only happens when you are trying to register? Only when submitting the affiliate form?
I don’t fully understand the whole process you are following to trigger the error.
Please let us know.
Have a nice day!Forum: Plugins
In reply to: [YITH WooCommerce Affiliates] Add custom endpoints and contentHi there,
The above reply is the only way to do what you want to do without needing to change the plugin files. We always try to work this way so you can continue updating the plugin.
You need to create a custom page and then use the URL of that page.Otherwise, you need to customize the plugin.
Have a nice day!
Hello there,
I tried to enter the site once again, but it seems that our current user has problems.
I tried to register again, but now the email domain is blocked (I’m just using @test to create a test account).
Could you share any images or maybe a video where we can see the issue?
It sounds strange that the links do not work on mobile or the other way around.Have a nice day!
Hi there,
Thank you for contacting us!Which language are you aiming to use?
Take into account that our official languages are English, Italian and Spanish, the rest of the plugin translations are created by the community.
Please, let us know which language do you want to use so I can check that plugin data.Have a nice day!
Forum: Plugins
In reply to: [YITH WooCommerce Affiliates] Add custom endpoints and contentHi there,
Thank you for contacting us!To register the new endpoint you should use the following filter:
yith_wcaf_available_endpointsIf you want to add a new entry or a custom page link in the affiliate dashboard menu, you need to use a code like the following one, by adding it to the functions.php file of your active theme:
if ( defined( 'YITH_WCAF' ) ) { if ( ! function_exists( 'yith_wcaf_available_endpoints' ) ) { function yith_wcaf_available_endpoints( $endpoints ) { $endpoints['your_custom_link'] = 'Your Custom Link'; return $endpoints; } add_filter( 'yith_wcaf_available_endpoints', 'yith_wcaf_available_endpoints' ); } if ( ! function_exists( 'yith_wcaf_change_settings_page_url' ) ) { function yith_wcaf_change_settings_page_url( $url, $endpoint ) { if ( 'your_custom_link' === $endpoint ) { $url = get_the_permalink( get_page_by_path( 'your-custom-page-slug' ) ); } return $url; } add_filter( 'yith_wcaf_get_endpoint_url', 'yith_wcaf_change_settings_page_url', 10, 2 ); } }In this code, you will need to enter the details of the custom links you want to add. First of all, you need to update this line:
<span style="background-color: rgb(248, 249, 249); color: rgb(104, 115, 125); font-family: Consolas, "Liberation Mono", Menlo, "Bitstream Vera Sans Mono", Courier, monospace; font-size: 12.025px;">$endpoints['your_custom_link'] = 'Your Custom Link';</span>to set the new endpoint to the affiliate dashboard, editing the endpoint ID and the text that will be visible to your users.
After adding the endpoint, you will need to edit this section to make the URL of the custom link valid:
if ( 'your_custom_link' === $endpoint ) { $url = get_the_permalink( get_page_by_path( 'your-custom-page-slug' ) ); }where you have to change the
your_custom_linkwith the endpoint ID previously added:'your_custom_link' === $endpointAnd finally, change the slug of the custom page you want to add here:
get_page_by_path( 'your-custom-page-slug' ) );This is the correct way to do what you want avoiding customizing any plugin files, so you can continue updating the plugin normally.
Please, give it a try and let us know.Have a nice day!
Hi there,
Thank you for contacting us!
I have entered the affiliate for as “yithtest” user, could you please approve our request so we can enter the page and see what you are talking about?
Have a nice day!Forum: Plugins
In reply to: [YITH WooCommerce Gift Cards] User Role for CashierHi there,
Thank you for contacting us!
To allow other roles to access the plugin settings you have to add the next code in the functions.php of your active theme, replacing the “manage_woocommerce” with the one you want. So then, you only have to give this compatibility to the roles you want:if(!function_exists('yith_wcgc_plugin_settings_capability_shop_manager')) { function yith_wcgc_plugin_settings_capability_shop_manager( $capability ){ $capability = 'manage_woocommerce'; return $capability; } add_filter('yith_wcgc_plugin_settings_capability','yith_wcgc_plugin_settings_capability_shop_manager');}As you can see, this code is about role capabilities, and not directly to user roles.
You need to check which capabilities have this custom “Cashier” role first, and then adapt the code if needed.
Please, give it a try and let us know.
Have a nice day!- This reply was modified 3 years, 3 months ago by Héctor.G.