Home Forums Plugin Support WP User Frontend Pro Product Gallery and You are not allowed to edit

This topic is: resolved

This topic contains 7 replies, has 3 voices, and was last updated by  Ari 5 years, 7 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #6453

    Ari
    Participant
    Post count: 30

    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

    #6459

    Tareq Hasan
    Keymaster
    Post count: 2831

    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.

    #6483

    Ari
    Participant
    Post count: 30

    Hi,
    I just cant resolve it! I check all setting almost 20 time but it just doesnt work!
    Maybe i just have to install the whole shop and plugins again!
    Could you reset my activation again?
    Regards,
    Ari

    #6507

    Ari
    Participant
    Post count: 30
    This reply has been marked as private.
    #6511

    Tareq Hasan
    Keymaster
    Post count: 2831

    The pasted code had some unknown characters in your mantra themes funcitons.php. I wanted to edit that, but got a syntax error ๐Ÿ™

    #6529

    Ari
    Participant
    Post count: 30

    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

    #6530

    Mahi
    Member
    Post count: 1555

    try now to active.

    Thanks.

    #6531

    Ari
    Participant
    Post count: 30

    DONE!
    Thanks! ๐Ÿ™‚

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

The topic ‘Product Gallery and You are not allowed to edit’ is closed to new replies.