-
AuthorPosts
-
May 30, 2017 at 8:19 pm #801655
Hi, my product pages currently have an easy slider at the top of the page and on each side of the slider there are arrows. When a mouseover is done on the arrows it shows a preview of another product. I would like to know how to modify this and select which product is placed in this preview. Right now we have eight categories for our products and some categories have repeated products….. I would like to be able to go in one category, exp “Mood & Mind” and when I select a product the previews of other products, show items within the same category….. is this possible?
Thanks in advance
Jen
May 31, 2017 at 5:16 am #801785Hey Jennifer,
Please, I do not have sure about your question, may you explain it better?
Best regards,
John TorvikMay 31, 2017 at 3:21 pm #802053Hi John,
On the website when a product is viewed, previews of our other products are available when a mouseover is done on the arrows found to the right and left of the banner. How do I select which products are viewed in these previews?
If you go on the website (info below) you will see that when on the PureMarine product the preview to the left should be Vitamin D3 and to the right MultiFlora 25 when within the “Mood & Mind” category.
Please advise,
Thanks,
June 1, 2017 at 5:20 pm #802666Hi 3adconsulting,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
VictoriaJune 1, 2017 at 9:32 pm #802778Hi Victoria, my pleasure, please see below :)
June 5, 2017 at 8:59 pm #804144Hi,
Please add the following
add_filter('avia_post_nav_settings', 'avia_post_nav_settings_mod'); function avia_post_nav_settings_mod($settings) { if(is_singular('product')) { $settings['taxonomy'] = 'product_cat'; $settings['is_fullwidth'] = false; } $settings['same_category'] = true; return $settings; }
let me know if works
Best regards,
BasilisJune 6, 2017 at 6:35 pm #804636Hi Basilis, thanks so much for the code. I applied it, but it is not working…..
Please advise, thanks
June 8, 2017 at 10:46 pm #805769Hi,
What is the result when you add it, it does nothing at all?
Can you please give us more details so we can be able to help you?Best regards,
BasilisJune 8, 2017 at 10:53 pm #805770Hi Basilis,
When I placed the code I noticed no difference, it seemed to do nothing at all….. but I had other code in the quick css section, so am not sure if I placed it incorrectly with the other code in place…. here is all the code in that section, some is for the social media share buttons and for the footer dimensions….
.avia-section .av-share-box ul li a {
color: white;
}#footer .flex_column.av_one_half {
width: 27%;
}#footer .flex_column.av_one_half.first {
width: 67%;
}
add_filter(‘avia_post_nav_settings’, ‘avia_post_nav_settings_mod’);
function avia_post_nav_settings_mod($settings)
{
if(is_singular(‘product’)) {
$settings[‘taxonomy’] = ‘product_cat’;
$settings[‘is_fullwidth’] = false;
}
$settings[‘same_category’] = true;
return $settings;
}June 9, 2017 at 3:45 am #805817I would also need to know how to remove the “download” button from WooCommerce in the “My Account” page please….
Thanks
June 13, 2017 at 11:20 am #807366Hi,
Please add the “avia_post_nav_settings” filter in the Appearance > Editor > functions.php file, not the Quick CSS field. Let us know if it changes anything.
Best regards,
IsmaelJune 13, 2017 at 4:48 pm #807568Hi, I placed the following code:
(‘avia_post_nav_settings’, ‘avia_post_nav_settings_mod’);
function avia_post_nav_settings_mod($settings)
{
if(is_singular(‘product’)) {
$settings[‘taxonomy’] = ‘product_cat’;
$settings[‘is_fullwidth’] = false;
}
$settings[‘same_category’] = true;
return $settings;
}
at the bottom of the of the page, Appearance > Editor > functions.php file and now I’m getting this warning and can not remove the code that was placed:Parse error: syntax error, unexpected ‘,’ in /home/wp_xpedqz/cre8vitality.com/wp-content/themes/enfold/functions.php on line 566
I no longer have access to my site at all! PLEASE HELP TODAY!!!!
Thanks
June 13, 2017 at 6:49 pm #807613Hi, I no longer have access to the site and everything is down, please get back to me as soon as possible!
Thanks….June 14, 2017 at 6:09 am #807781So I fixed part of the issue and the website is back up, I restored the original functions.php file through ftp and I’m back online.
Please let me know more precisely where to place the code given within the functions.php section, because placing it at the end was a clearly not the right place…..
Thanks,June 14, 2017 at 9:57 am #807874Hi,
Thank you for the update.
We added the code in the functions.php file. Please check the product page. (see private field)
NOTES: Please copy the snippets/codes directly from the forum, not from your email.
Best regards,
IsmaelJune 14, 2017 at 5:46 pm #808114Hi Ismael,
Thank you for placing the code, I really appreciate it. I see on the site that it has changed which products are viewed but it is showing products from other categories as well…. I’m wondering if this problem is happening because I have certain products in multiple categories…. For this to work perfectly would I need to create multiple copies of the same product so that one copy is assigned per category? Having multiple pages with the same product content would it hinder SEO?
Kind regards,
JenJune 16, 2017 at 6:59 am #808847Hi,
I’m wondering if this problem is happening because I have certain products in multiple categories
Yes, it will filter any products with the same categories so having multiple categories is going to be an issue if you want to exclude other products from the navigation. Creating multiple copies might work but it is quite laborious and it will be harder to maintain in the future.
Best regards,
IsmaelJune 20, 2017 at 4:40 pm #810465Hi Ismael, thank you very much for all your help and for clarifying :)
-
AuthorPosts
- You must be logged in to reply to this topic.