Product Gallery and You are not allowed to edit
Author | Posts |
---|---|
July 30, 2013 at 2:36 pm 6453 | |
Ari | Hi, I have done everything from this page, http://docs.wedevs.com/woocommerce-product-image-gallery. But still pictures missing. Only thumbnails is showing. Add product page i have meta key: _product_image hidden field Meta Key:_visibility Meta Value: visible My theme functions.php i have the code as you are showing /** * Update the custom field when the form submits * * @param type $post_id */ function wpuf_woo_product_gallery( $post_id ) { if ( isset( $_POST['wpuf_files']['_product_image'] ) ) { $images = get_post_meta($post_id, '_product_image' ); update_post_meta( $post_id, '_product_image_gallery', implode(',', $images) ); } } add_action( 'wpuf_add_post_after_insert', 'wpuf_woo_product_gallery' ); add_action( 'wpuf_edit_post_after_update', 'wpuf_woo_product_gallery' ); And 2# You are not allowed to edit I can edit products from dashboard but not "edit product" page. Edit product page have [wpuf_edit] shortcode. General option Edit page i have that "edit product" page. Sorry my English but hope you understand! :) Regars, Ari |
July 30, 2013 at 5:10 pm 6459 | |
Tareq Hasan | Hello Ari, can you please recheck if you made any mistake or a typo error? Because it’s well tested and works perfectly. The edit product page is heavily customized by WooCommerce and it doesn’t put any edit link on the product page. User Frontend also doesn’t put any links on edit post and edit product page. But if you’ve already a edit post or edit product link on the theme, User Frontend only modifies the URL to forward you to the edit page. |
July 30, 2013 at 9:49 pm 6483 | |
Ari | Hi, |
July 31, 2013 at 3:43 am 6507 | |
Ari | This reply has been marked as private. |
July 31, 2013 at 4:55 am 6511 | |
Tareq Hasan | The pasted code had some unknown characters in your mantra themes funcitons.php. I wanted to edit that, but got a syntax error 🙁 |
July 31, 2013 at 1:29 pm 6529 | |
Ari | Okay, there was some weird characters, i’ts messed up whole pages! 🙂 I fix that and everything is working now. You add feature image choice. Thank you for your time to solve my problem! 🙂 Now i need only activation reset because i have installed WP again! Thanks. – Ari |
July 31, 2013 at 1:30 pm 6530 | |
Mahi | try now to active. Thanks. |
July 31, 2013 at 1:50 pm 6531 | |
Ari | DONE! |