Home Forums WC Vendors Pro Support Add Multi Post Thumbnail Product Edit

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #65518
    Samia
    Participant

    I would like to add another post thumbnail to product edit page which is working fine for admin users. I am using MultiPostThumbnails for adding this. Kindly let me know how I can add this on product edit page for our vendors because we need two different size images for our products.
    One thing more how I can restrict the vendors to upload fixed size image like 200*140.

    #65655
    Samia
    Participant

    Kindly let me know how I can add another Image Link Just like Featured Image on product edit page. Which is working fine on admin panel for admin users.

    #66403
    Samia
    Participant

    Hi,
    Is someone reply me for this. I have discussed this with buddyboss and they said that you can ask this from WC Vendors because product edit form is yours.
    One thing more is that a lot of my questions still not answered. Kindly let me know about my issues.

    #66506
    Anna
    Member

    @appngamereskin
    I do not know how exactly you would integrate this additional image form MultiPost Thumbnails plugin.
    You could use our built-in form builders to add a new product form- the actual coding would be up to you, but the form type is product_media_uploader or also file_uploader as seen in our wc-vendors-pro/public/class-wcvendors-pro-form-helper.php
    Adding a field to the product page would be done similar to as in this example:
    https://gist.github.com/fervous/048b04a4a73cde43fd77b34405917f54

    Except you would be using the product_media_uploader or file_uploader field type instead of select/select2

    Also as an example of how we use the file_upoader, see the code for the store icon uploader: wc-vendors-pro/public/forms/class-wcvendors-pro-store-form.php line 398

    #66517
    Samia
    Participant

    Hi Anna,
    I have tried to product_media_uploader for uploading my new image by using product edit page. But this have exactly the same uploader options like before and when I add a featured image this will also show on my custom image section. This will also add product gallery again which i don’t need now. I have added the following code:
    <?php
    WCVendors_Pro_Form_Helper::product_media_uploader( array(
    ‘post_id’ => $object_id,
    ‘id’ => ‘wcv_custom_product_small_image’
    ));
    ?>
    Here is a screenshoot which is the output of the above code: https://www.screencast.com/t/qTmM8wMHAZ

    Here is an example for admin which is working fine. https://www.screencast.com/t/tmYt8c1sEyB

    I would like to add an option for Small Image just like Featured Image which I would like to save against this id “wcv_custom_product_small_image”. Example https://www.screencast.com/t/CVKVJ7VA5

    #66574
    Anna
    Member

    Hello,
    Try using the file_upoader form type.
    This will likely also require some styling or a css class, or wrapper use to output it as you wish on the pages.

    #66760
    Samia
    Participant

    Hi Anna,
    I have used file_uploder but it does not go to media library. We just want to use like featured image.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.
This website uses cookies to ensure you get the best experience on our website.