Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #25569

    On product page backend, the option is given to:

    Hover effect on Overview PagesDo you want to display a hover effect on overview pages and replace the default thumbnail with the first image of the gallery?

    Yes or No

    How can I update entire store (2000 products) without going into every single product and doing it manually?

    Thanks in advance.

    Gerry

    #127417

    Hey!

    If you want to activate this option for all products open up wp-contentthemesenfoldconfig-woocommerceconfig.php and replace

    $active_hover = get_post_meta( $id, '_product_hover', true );

    with

    $active_hover = true;

    Best regards,

    Peter

    #127418

    That did it!

    Thanks a bunch :)

    Gerry

    #127419

    Sorry, I responded too soon…

    That did not work, the images that I thought the snippet of code fixed were actually manually edited by my assistant in the last 2 days.

    The code has been changed as instructed, but it did not work.

    #127420

    Hi gerry3211,

    The individual products may need to be opened and then saved for it to register though. I wouldn’t think so but with the setting being set to on within the code and it not being active that is my only guess on why it wouldn’t be taking effect.

    Regards,

    Devin

    #127421

    So back to square on of going in manually across 2000 products?

    Shitty.

    #127422

    Hi,

    Do you want to enable the hover effect by default?

    Open config-woocommerce > admin-options.php, find this code

    $el[] = array("slug"	=> "avia_product_hover",
    "name" => "Hover effect on <strong>Overview Pages</strong>",
    "desc" => "Do you want to display a hover effect on overview pages and replace the default thumbnail with the first image of the gallery?",
    "id" => "_product_hover",
    "type" => "select",
    "std" => "",
    "class" => "avia-style",
    "subtype" => array("Yes - show first gallery image on hover" => 'hover_active', "No hover effect" => ''));

    Replace it with

    $el[] = array("slug"	=> "avia_product_hover",
    "name" => "Hover effect on <strong>Overview Pages</strong>",
    "desc" => "Do you want to display a hover effect on overview pages and replace the default thumbnail with the first image of the gallery?",
    "id" => "_product_hover",
    "type" => "select",
    "std" => "hover_active",
    "class" => "avia-style",
    "subtype" => array("Yes - show first gallery image on hover" => 'hover_active', "No hover effect" => ''));

    Regards,

    Ismael

    #127423

    I appreciate everyone taking a stab at this…

    However, none of these solutions are changing the fact that we have to manually go in, after the code is changed, and to hit ‘Update’ on each product in order for the change to take effect.

    Does anyone have a workaround for that? ‘Update’ all products?

    #127424

    Just so that I am completely clear:

    ** The store already exists with almost 2000 items in it

    ** I’ve applied the last code change posted here by Ismael

    ** I’ve undone the code change provided by Dude

    _The product images are still not changing on ‘Hover’

    _Logging into the product management page – ‘Yes’ is selected for Hover option

    _ We still manually have to click ‘Update’ for the change to take effect even though YES is selected by default on existing products

    Is there a fix for this, or do I tell my staff to go in and manually do 2000 products?

    #127425

    Hi,

    Unfortunately, I think you need to hit update for each product. I’ve tried working on a quick solution but I can’t find any.

    The only hope is to find a plugin that will automatically update all posts.

    I’m not so sure if repairing or optimizing the database will work:

    http://wpmu.org/wordpress-maintenance-101-how-to-optimize-and-repair-database-tables/

    You can find the products on the wp_posts table.

    Let me tag Kriesi.

    Regards,

    Ismael

    #127426

    Hi,

    Ok, update. I did Dude’s code and the shop overview page product thumbnails hover starts working even if the “No hover effect” is selected.

    FYI, the hover effect will only work if there is an image added on the Product Gallery section.

    Regards,

    Ismael

    #127427

    Ok, well I’ve done Dude’s and Ismael’s and neither are working for me.

    Back to full manual labor.

    Thanks for the help guys.

    Gerry

    #127428

    Make sure all products use the “Product gallery feature”. The theme checks with

    $product_gallery = get_post_meta( $id, '_product_image_gallery', true );

    if a product gallery exists. If not the hover effect won’t work even if you “bypass” the “Hover effect on Overview Pages” option.

Viewing 13 posts - 1 through 13 (of 13 total)

The topic ‘Update Entire Store – Overview’ is closed to new replies.