-
AuthorPosts
-
November 18, 2018 at 10:12 pm #1034913
hi, I would have a particular request, I think this does not apply to the Enfold theme. In practice website that I’m managing with enfold and woocommerce, the products are hidden until the user does not register and here arises the need not to register or allow in some way to make the products to buy only to customers of a determined nation (for example, Germany). Is there a way to prevent, just for the Shop page, that users in a particular country can log in, or even be redirected to another website?
Thanks.
FabioNovember 19, 2018 at 3:34 am #1034984Hey fabiomagliozzi,
Perhaps a plugin such as this one would help: Product Country RestrictionsBest regards,
MikeNovember 19, 2018 at 10:10 am #1035095Hi Mike, thank you so much for reply. I noticed that this feature is also found in the General options of woocommerce, the possibility to choose in which country do not sell and in which country to sell. What is the difference between using the option in the general tab or using this plugin?
Thank you.
November 20, 2018 at 4:46 am #1035396Hi,
The settings in the woocommerce > general options, are set for your entire store, while the plugin allows you to make these options for individual products.
So if you want to set different options for each product, then the plugin may be best for you.Best regards,
MikeNovember 20, 2018 at 8:05 am #1035460Ok Mike, thanks for replay. Can close topic now.
Thanks.November 20, 2018 at 8:16 am #1035466Hi,
Glad we were able to help, we will close this now. Thank you for using Enfold.For your information, you can take a look at Enfold documentation here
For any other questions or issues, feel free to start new threads under Enfold sub forum and we will gladly try to help you :)Best regards,
MikeNovember 20, 2018 at 8:22 am #1035468even if I have another problem, maybe you could help me? I need to traslate each single produtc, but i’m using polylang pluhin with polylang integration for woocommerce but when i click on product(engligh page shop) it show the product in italian page shop, how can i solve?
Thanks mike and sorry for other question.
November 20, 2018 at 8:41 am #1035475Hi,
Do you mean this plugin: Woocommerce Polylang Integration I have not seen this plugin before, but if you include a admin login in the private content area I will try to take a closer look.
Perhaps the plugin author support page would have a solution.Best regards,
MikeNovember 20, 2018 at 8:54 am #1035477This reply has been marked as private.November 21, 2018 at 3:09 pm #1036095November 21, 2018 at 3:28 pm #1036105Oh sorry :-), sendo you website in private.
I take this opportunity to tell you that if we are on the website in English, if I click on the logo or on the “home” link, it will not go back to http://www.naturamla.com/en/welcome but go back to http://www.naturamla.com/en and I get the message “Page not found”, perhaps because of the same reason?Thanks.
November 21, 2018 at 4:04 pm #1036126Hi,
Thank you, I see that you are using PHP Version: 5.5.38 the minimum PHP version recommended is v5.6 , version 7.0 would be better.
This can cause strange errors, Please ask your webhost to update your PHP.Best regards,
MikeNovember 21, 2018 at 4:08 pm #1036130Ok thanks for replay, i will ask to my provider and then I update you.
Regards.
FabioNovember 21, 2018 at 6:28 pm #1036231Hello Mike, I just set the PHP v7.0, I walked around the website but nothing has changed, that is if I am on https://www.naturamla.com/en/welcome/, the logo on the upper left instead to point to this page of home, point to https://www.naturamla.com/en/ and rightfully receive the message “Page not found”.
Attached the screenshot in private, that explains more or less what I said.Regards.
FabioNovember 22, 2018 at 9:25 am #1036400Good morning, help me please.
November 23, 2018 at 3:15 am #1036835Hi,
I took a look at your site and the logo points only to https://www.naturamla.com/ for me, I tried clicking the language flags to change the language and then clicking the logo, with no errors.
For me hovering over the logo doesn’t show the url error that your screenshot.
Please try clearing your browser cache and see if this is still the case for you.Best regards,
MikeNovember 23, 2018 at 9:01 am #1036874Goog morning Mike, yes its work logo link because in the meantime I was waiting for your reply, I corrected the link on the logo so as not to show the error page. But actually what I would like is that when a user is in the English part and click on the logo, he should point to http://www.naturamla.com/en/welcome and not to http://www.naturamla.com/
Only this.
How can i do that? Maybe adding code in fuction.php?Thanks.
FabioNovember 24, 2018 at 6:15 pm #1037276Hi,
To change the logo home url based on language, Try adding this code to the end of your functions.php file in Appearance > Editor:function polylang_logo_url(){ ?> <script> jQuery(window).load(function(){ jQuery("#top:lang(en) span.logo").find("a").attr("href", "https://www.naturamla.com/en/welcome/"); }); </script> <?php } add_action('wp_footer', 'polylang_logo_url');
I tried adding this though the WordPress > Appearance > Editor but I received an error that it would have to be changed via FTP, so please try doing so.
Best regards,
MikeNovember 26, 2018 at 12:41 pm #1037629Hi Mike, sorry for delay. I’m not at computer so i can’t try now.Later i will update you if it work.
Can i add this code in function.php in custom child theme? Or i must modify the php in the apparence > editor ?Thanks for reply.
FabioNovember 27, 2018 at 4:51 am #1037908Hi,
You can add this to the child theme functions.php or the parent theme functions.php, typically they can both be reached via the WordPress > Appearance > Editor.
We will leave this open to hear back from you.Best regards,
MikeNovember 27, 2018 at 2:19 pm #1038010Hi Ismael, now everything work fine!
Thank you for support.Regards.
FabioNovember 27, 2018 at 3:44 pm #1038036Hi,
Glad we were able to help, we will close this now. Thank you for using Enfold.For your information, you can take a look at Enfold documentation here
For any other questions or issues, feel free to start new threads under Enfold sub forum and we will gladly try to help you :)Best regards,
Mike -
AuthorPosts
- The topic ‘Permission on the product in woocommerce’ is closed to new replies.