Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #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

    #801785

    Hey Jennifer,

    Please, I do not have sure about your question, may you explain it better?

    Best regards,
    John Torvik

    #802053

    Hi 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,

    #802666

    Hi 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,
    Victoria

    #802778

    Hi Victoria, my pleasure, please see below :)

    #804144

    Hi,

    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,
    Basilis

    #804636

    Hi Basilis, thanks so much for the code. I applied it, but it is not working…..

    Please advise, thanks

    #805769

    Hi,

    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,
    Basilis

    #805770

    Hi 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;
    }

    #805817

    I would also need to know how to remove the “download” button from WooCommerce in the “My Account” page please….

    Thanks

    #807366

    Hi,

    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,
    Ismael

    #807568

    Hi, 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

    #807613

    Hi, I no longer have access to the site and everything is down, please get back to me as soon as possible!
    Thanks….

    #807781

    So 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,

    #807874

    Hi,

    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,
    Ismael

    #808114

    Hi 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,
    Jen

    #808847

    Hi,

    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,
    Ismael

    #810465

    Hi Ismael, thank you very much for all your help and for clarifying :)

Viewing 18 posts - 1 through 18 (of 18 total)
  • You must be logged in to reply to this topic.