Home Forums WC Vendors Pro Support Change product details link

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 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #53432
    Nicholas
    Participant

    Hello I would like to redirect the user directly to the product instead of the product edit page if he clicks on the product details. (see orange text in the screenshot)

    How would I do this?

    Have a nice day,

    Nicholas

    #60718
    Nicholas
    Participant

    Hey are there any updates on this?

    Regards,
    Nicholas

    #60792
    Anna
    Member

    @nicholasagardy
    when you hover over the product, you should have the options to Edit, Duplicate, Delete or View. The View should go to the product page.

    #60799
    Nicholas
    Participant

    Hey Anna. Sorry the screenshot doesn’t show the view clearly.

    This view is part of the overview dashboard.

    I would like to link to the product directly instead of the edit page.

    Regards,
    Nicholasy

    #60993
    Anna
    Member

    Nicholas,
    Ok- I found the area where this would be changed. However- there is no filter for this. Therefore, the only way to change this would be to modify the core file. This would have to be re-modified each time you update WC Vendors Pro.
    This is the file: wp-content/plugins/wc-vendors-pro/public/class-wcvendors-pro-reports-controller.php
    Approximately line 439-440:

    $link = ( $can_edit ) ? WCVendors_Pro_Dashboard::get_dashboard_page_url( 'product/edit/' . $product->id ) : get_permalink( $product->id );
    $link = ( ! $products_disabled ) ? WCVendors_Pro_Dashboard::get_dashboard_page_url( 'product/edit/' . $product->id ) : get_permalink( $product->id ); 
    #61027
    Nicholas
    Participant

    Hey Anna. Thank you. Would it be possible to add a filter there in the future?

    Also how do I deactivate the link?

    Regards,
    Nicholas

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.