Home › Forums › WoodMart support forum › URGENT – DATA NOT SAVED – ADDING VARIATION IMAGES GALLERY
URGENT – DATA NOT SAVED – ADDING VARIATION IMAGES GALLERY
- This topic has 38 replies, 2 voices, and was last updated 5 years, 10 months ago by Jeriss Cloud Center.
-
AuthorPosts
-
December 6, 2018 at 11:02 pm #94438
Jeriss Cloud CenterParticipantWhen I add variation images to one specific product, it keeps disappearing when saving!
Please fix this ASAP!Accesses in private > Go to this product
https://gevcen.be/wp-admin/post.php?post=1492&action=edit
https://gevcen.be/cordonnerie/recolorant-daim-et-textile-en-applicateur/Go into the variation sceens and add variation images for the variation that don’t have pictures yet. Save and you will see it’s not getting saved.
I have already disactivated all external plugins, so the problem is in your theme!
December 7, 2018 at 6:52 am #94467
Artem TemosKeymasterHello,
Could you please disable all plugins that are not related to our theme and switch to the parent theme so we can check it?
Thank you in advance
December 7, 2018 at 9:25 am #94526
Jeriss Cloud CenterParticipantYou seriously never read people’s ticket till the end?
I told you that I have already disactivated all external plugin, read please!
And I refuse to switch to parent theme because then I lose theme settings parameters.December 7, 2018 at 9:31 am #94527
Artem TemosKeymasterWe wrote this because you had one plugin still active when we checked https://gyazo.com/a12225e000dc6bdd52a91859bbbef9a5
But you are right, this plugin can’t harm this function. Please, send us your FTP access so we can troubleshoot it.December 7, 2018 at 9:34 am #94528
Jeriss Cloud CenterParticipantAccesses in private
December 7, 2018 at 10:13 am #94533
Artem TemosKeymasterWe don’t see WoodMart theme there https://gyazo.com/d503620b8d596f976a8ebb7a6c54d37e
December 7, 2018 at 11:04 am #94537
Jeriss Cloud CenterParticipantTry this file
December 7, 2018 at 11:05 am #94538
Jeriss Cloud CenterParticipantFile
December 7, 2018 at 12:01 pm #94549
Artem TemosKeymasterAnd what is the password to this data?
December 8, 2018 at 1:20 pm #94764
Jeriss Cloud CenterParticipantSame as sent above…
December 8, 2018 at 1:22 pm #94766
Jeriss Cloud CenterParticipantThose data are the only ones shared to me by my host contact
Please check, the issue occurs everywhere in my store and I can’t work like this..December 8, 2018 at 1:28 pm #94767
Artem TemosKeymasterPlease, post full information in the private content. I have removed that file for security reasons.
December 8, 2018 at 1:32 pm #94769
Jeriss Cloud CenterParticipantAccesses
December 8, 2018 at 1:36 pm #94772
Artem TemosKeymasterIt is the same FTP access https://gyazo.com/7ec3b94f192bc07f3a534f8677bb08d2
December 8, 2018 at 1:41 pm #94773
Jeriss Cloud CenterParticipantBut that’s my access! That’s the FTP of my website. There are no other…
December 8, 2018 at 1:43 pm #94775
Artem TemosKeymasterBut as you can see on the screenshot, there is no WoodMart theme there. Only Basel theme. So we can’t check the problem if there are no our theme files there.
December 10, 2018 at 8:15 pm #95249
Jeriss Cloud CenterParticipantTry this
December 11, 2018 at 6:57 am #95316
Artem TemosKeymasterThis data seems to be incorrect https://gyazo.com/74fe01cc0ee5d55f4fb6591346910b4c
December 11, 2018 at 8:26 pm #95530
Jeriss Cloud CenterParticipantCan you please retry?
December 12, 2018 at 7:06 am #95555
Artem TemosKeymasterYes, but nothing changed https://gyazo.com/95d7ee77977657e8114c9e95a467c3d0
December 12, 2018 at 11:16 am #95626
Jeriss Cloud CenterParticipantMy dev gave me this file now. Can you try?
December 12, 2018 at 11:19 am #95628
Jeriss Cloud CenterParticipantFile attachment
December 12, 2018 at 11:20 am #95629
Jeriss Cloud CenterParticipantSee attachment
December 12, 2018 at 12:19 pm #95642
Artem TemosKeymasterYou already sent us this file and it doesn’t contain the password.
December 13, 2018 at 3:24 pm #95930
Jeriss Cloud CenterParticipantOk try this now
December 13, 2018 at 3:30 pm #95933
Artem TemosKeymasterFTP is working now. We are checking the product you sent initially and can’t reproduce the problem now. Could you please describe where we can check it now?
December 13, 2018 at 3:41 pm #95943
Jeriss Cloud CenterParticipantThe product which I reported in the original post is indeed working fine for unknown reason.
However, I do have 2 other products (so far) where the issue still exist :
1) Product “Pâte de luxe pour le glaçage du cuir lisse” > Variation “09 Acajou”
https://gevcen.be/cordonnerie/pate-de-luxe-pour-le-glacage-du-cuir-lisse/2) Product “Cirage en pot pour chaussures” > Variations 27, 901, 902, 904, 913, 914
https://gevcen.be/cordonnerie/cirage-en-pot-pour-chaussures/Here is a video made on the product n°1
https://showmore.com/fr/u/kovr86sDecember 13, 2018 at 4:19 pm #95954
Artem TemosKeymasterTry to add the following PHP code snippet to the child theme functions.php file
function woodmart_remove_unnecessary_vg_data( $post_id ) { if ( ! woodmart_woocommerce_installed() ) { return; } $product = wc_get_product( $post_id ); if ( ! $product ) { return; } $available_variations = array(); foreach ( $product->get_children() as $child_id ) { $available_variations[] = $product->get_available_variation( wc_get_product( $child_id ) ); } $available_variations = array_values( array_filter( $available_variations ) ); $variations = $product->get_type() == 'variable' ? $available_variations : ''; $variations_ids = array(); $variation_gallery_data = get_post_meta( $post_id, 'woodmart_variation_gallery_data', true ); if ( ! $variations || ! $variation_gallery_data ) { return; } foreach ( $variations as $variation ) { $variations_ids[] = $variation['variation_id']; } foreach ( $variation_gallery_data as $key => $data ) { if ( ! in_array( $key, $variations_ids ) && isset( $variation_gallery_data[ $key ] ) ) { unset( $variation_gallery_data[ $key ] ); } } update_post_meta( $post_id, 'woodmart_variation_gallery_data', $variation_gallery_data ); } add_action( 'save_post', 'woodmart_remove_unnecessary_vg_data' );
December 13, 2018 at 7:25 pm #95983
Jeriss Cloud CenterParticipantHow am I supposed to modify the file functions.php ?
December 13, 2018 at 7:29 pm #95984
Jeriss Cloud CenterParticipantIs it in this file? If yes, at which line?
-
AuthorPosts
The topic ‘URGENT – DATA NOT SAVED – ADDING VARIATION IMAGES GALLERY’ is closed to new replies.
- You must be logged in to create new topics. Login / Register