List stores in a centre

This topic contains 15 replies, has 3 voices, and was last updated by  Guust 9 years, 4 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #25033

    Fiskani Chirwa
    Expired Member
    Post count: 29

    Hi GD Team,

    I was wondering if I could have a tab like “Related Lsting” except instead of listing the related listings, I could add my own listings in this tab.

    This would be a tab showing the available stores in the listing.

    Thank you

    #25036

    Simone
    Expired Member
    Post count: 3515

    Hmm….what you could to is to create a custom field, set it to Show as a tab and use a “link” where you would paste the address of other listing.
    Otherwise it will require custom modifications.

    #25045

    Fiskani Chirwa
    Expired Member
    Post count: 29

    How would i create a custom field? Through GD>Place Settings?

    #25046

    Simone
    Expired Member
    Post count: 3515

    Yes, going there you will be able to create/manage custom fields.

    #25048

    Fiskani Chirwa
    Expired Member
    Post count: 29

    How would I add another photo tab

    #25049

    Simone
    Expired Member
    Post count: 3515

    Hmm. a photo tab cannot be added without custom modification….you can add photos in the details tab, by adding a custom field (File Upload) and clicking Yes on the “Show on detail page” dropdown

    #25050

    Fiskani Chirwa
    Expired Member
    Post count: 29

    That could work nicely, thanks. Just need help with the stores tab mentioned above.
    Also has there been a booking system added for restaurants, clubs, accomodation?

    #25052

    Simone
    Expired Member
    Post count: 3515

    About the accommodation system…I think something is boiling in the big caldron ….so maybe in the future it will be released. I have to ask to Paolo or Stiofan to confirm that.

    #25059

    Simone
    Expired Member
    Post count: 3515

    I’ve asked to Paolo, and Kiran’s been working on it since almost a month now, so it shouldn’t be much longer.
    I know it will be a simple one to start with probably suitable for b&b and small lodges

    #25063

    Fiskani Chirwa
    Expired Member
    Post count: 29

    Lol the caldron…. Just 1 more question, if i were to get technical about the “Stores” tab, how would i do it.

    #25065

    Simone
    Expired Member
    Post count: 3515

    You could add a function that will add a custom tab, and inside you could post the custom field one by one 🙂

    #25066

    Simone
    Expired Member
    Post count: 3515

    for example:

    
    
    add_filter('geodir_detail_page_tab_list_extend', 'geodir_detail_page_tab_list_extend') ;
        	
        	function geodir_detail_page_tab_list_extend3($tab_array)
        	{
        	 	$tab_array3['custom_tab'] = array( 
        											'heading_text' =>  __('<b>CUSTOM TAB</b>',GEODIRECTORY_TEXTDOMAIN),
        											'is_active_tab' => false,
        											'is_display' =>  apply_filters('geodir_detail_page_tab_is_display', true, 'custom_tab'),
        											'tab_content' => ''
        										);
        		return $tab_array ;
        	}
        	
        	add_action('geodir_after_tab_content' ,'geodir_my_new_tab_content');
        	function geodir_my_new_tab_content($tab_index)
        	{
        	global $post;
        	
        	global $wp_query;
        	
        	$postid = $wp_query->post->ID;
        	
        	
        	
        	
        		if($tab_index =='CUSTOM')
        		{
        		        $CUSTOM_FIELD= geodir_get_post_meta($postid,'geodir_customfield',true); 
        
                    echo "<b>custom field:</b> € ".$CUSTOM_FIELD;
                    
                
        		}
        	
        		} 
    #25069

    Fiskani Chirwa
    Expired Member
    Post count: 29

    The “Show as a tab on detail” option is not showing in the custom field. How would i fix this?

    #25094

    Guust
    Moderator
    Post count: 29970

    The tab setting should be there:
    http://docs.wpgeodirectory.com/core-place-settings/#tab

    Just chipping in with a different solution: use the favorite system, and rename it to MyStore or something. Then a listing owner can add all his stores as “favourite” and add a link to that as a custom field for example.
    Then the only thing they need to do is to favorite their stores, and they will be added.

    #25115

    Fiskani Chirwa
    Expired Member
    Post count: 29

    No its not showing. “Show on detail page” is there but the “Show as a tab on Detail page?” option is not.

    Should I upgrade my GD plugins? Ive seen that most people are getting errors and crashes when they update

Viewing 15 posts - 1 through 15 (of 16 total)

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

Open Support Ticket