Home Forums WC Vendors Pro Support Shop branding with slideshow, front end editing

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 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #10218
    Jan-Philipp Wittrin
    Participant

    Hi Ben and Jamie,

    first of all thank you for your work on the Pro Version. Looks great.

    Can I add extra image upload fields to the store branding site. Instead of a header image I want to integrate a slide show.

    Is there a hook for the functions or a line of code I could add to the branding page?

    Cheers,

    Jan-Philipp

    #10229
    WC Vendors Support
    Participant

    Hi JP, glad you are having good success with Pro.

    As with all our products, you can of course fully template out the Pro Dashboard, and with it, the vendor store display. Simply add in your functionality to add more images on the Branding page, and then display them or the slideshow on the store displays. Probably a fair amount of work, but you can certainly do it!

    Ben

    #10254
    Jan-Philipp Wittrin
    Participant

    Hi Ben. Like this?

    add_action(‘wcvendors_settings_after_paypal’, ‘pv_add_custom_merchant_id_field’);
    function pv_add_custom_merchant_id_field() {
    ?>
    <div class=”pv_merchant_id_container”>
    <p><b><?php _e( ‘Merchant ID’, ‘wc_product_vendor’ ); ?></b><br/>
    <?php _e( ‘Your Checkout.fi merchant ID.’, ‘wc_product_vendor’ ); ?><br/>

    <input type=”text” name=”pv_merchant_id” id=”pv_merchant_id” placeholder=”1234″ value=”<?php echo get_user_meta( get_current_user_id(), ‘pv_merchant_id’, true ); ?>” />
    </p>
    </div>
    <?php
    }

    add_action( ‘wcvendors_admin_after_commission_due’, ‘pv_admin_user_info’ );
    function pv_admin_user_info( $user ) {
    ?>
    <tr>
    <th><label for=”pv_merchant_id”><?php _e( ‘Merchant ID’, ‘wc_product_vendor’ ); ?></label></th>
    <td><input type=”text” name=”pv_merchant_id” id=”pv_merchant_id” value=”<?php echo get_user_meta( $user->ID, ‘pv_merchant_id’, true ); ?>” class=”regular-text”></td>
    </tr>
    <?php
    }

    add_action( ‘wcvendors_shop_settings_saved’, ‘pv_save_merchant_id’ );
    add_action( ‘wcvendors_update_admin_user’, ‘pv_save_merchant_id’ );
    function pv_save_merchant_id( $user_id )
    {
    if ( isset( $_POST[‘pv_merchant_id’] ) ) {
    update_user_meta( $user_id, ‘pv_merchant_id’, $_POST[‘pv_merchant_id’] );
    }
    }

    #10275
    WC Vendors Support
    Participant

    Well, no, that’s for adding extra payment fields to the Shop Settings page. You would need to edit the Pro Dashboard templates and add a lot of custom PHP to add extra upload stuff to it.

Viewing 4 posts - 1 through 4 (of 4 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.