-
AuthorPosts
-
July 1, 2013 at 1:26 am #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
July 1, 2013 at 7:07 am #127417Hey!
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
July 2, 2013 at 2:44 am #127418That did it!
Thanks a bunch :)
Gerry
July 2, 2013 at 5:01 am #127419Sorry, 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.
July 3, 2013 at 2:35 am #127420Hi 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
July 3, 2013 at 5:29 pm #127421So back to square on of going in manually across 2000 products?
Shitty.
July 4, 2013 at 8:14 am #127422Hi,
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
July 4, 2013 at 6:30 pm #127423I 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?
July 4, 2013 at 6:43 pm #127424Just 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?
July 5, 2013 at 5:13 am #127425Hi,
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
July 5, 2013 at 5:36 am #127426Hi,
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
July 5, 2013 at 4:56 pm #127427Ok, 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
July 7, 2013 at 8:56 am #127428Make 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.
-
AuthorPosts
- The topic ‘Update Entire Store – Overview’ is closed to new replies.