Woocommerce Items in Detail View tab show 1st item in grid view/bubble

This topic contains 8 replies, has 2 voices, and was last updated by  merchbroker 9 years, 8 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #29218

    merchbroker
    Expired Member
    Post count: 32

    We would like to add a tab to the details view and place that users woocommerce items in that tab. We would like to have the first item show up in the listing’s grid view and the geo bubbles.

    #29255

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    all this require customizations.

    Here you can see how to create a new tab and add content to it. https://wpgeodirectory.com/support/topic/details-sidebar-content-elsewhere/#post-27190

    The second part is way more complex and definitely goes beyond the scope of this support forum.

    Would you like me to move this topic in the Jobs section of the forum to see if any developer is willing to take on the challenge?

    Let us know,

    Thanks

    #29257

    merchbroker
    Expired Member
    Post count: 32

    No thanks,

    I’m very close, just need to figure out how to limit the listings to the owner or user of the geodirectory listing. How do I reference the owner?

    add_action(‘geodir_after_tab_content’ ,’geodir_my_new_tab_content’);
    function geodir_my_new_tab_content($tab_index)
    {
    if($tab_index ==’Specials’)
    {
    echo “$shop_name”;
    echo do_shortcode(‘[wcv_products vendor=”????” per_page=1]’);

    #29271

    Paolo
    Site Admin
    Post count: 31206

    If the vendor is the user ID and the user has claimed the listing or he submitted it directly, than

    the_author_meta('ID')

    should be what you are looking for. If it’s not the ID the_author_meta args are:

    
    
    
    
        user_login
        user_pass
        user_nicename
        user_email
        user_url
        user_registered
        user_activation_key
        user_status
        display_name
        nickname
        first_name
        last_name
        description
        jabber
        aim
        yim
        user_level
        user_firstname
        user_lastname
        user_description
        rich_editing
        comment_shortcuts
        admin_color
        plugins_per_page
        plugins_last_view
        ID
    

    Let us know,

    #29303

    merchbroker
    Expired Member
    Post count: 32

    This should be working….echo do_shortcode( ‘[wcv_products vendor=”‘. the_author_meta(‘author_login’) .'”]’ ); It’s just not limiting the listings.

    #29328

    Paolo
    Site Admin
    Post count: 31206

    author_login is not a valid argument.

    should be user_login.

    Thx

    #29352

    merchbroker
    Expired Member
    Post count: 32

    Im getting the same result, shouls I have a filter here instead of just the action? Sorry, I’m very new to this. Here is what I have now:

    add_action(‘geodir_after_tab_content’ ,’geodir_my_new_tab_content’);
    function geodir_my_new_tab_content($tab_index)
    {
    if($tab_index ==’specials’)
    {

    echo do_shortcode( ‘[wcv_products vendor=”user_login”]’ );

    }}

    #29387

    Paolo
    Site Admin
    Post count: 31206

    I think this is a question to submit to the WCV shortcode author. Not for us…

    Thannks

    #29402

    merchbroker
    Expired Member
    Post count: 32

    OK, Will do.

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount