Frank Ferris

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 69 total)
  • Author
    Posts
  • in reply to: Business Hours Cached #376432

    Frank Ferris
    Buyer
    Post count: 76

    Hi Jeff and Stiofan,

    Has this major issue been fixed yet? We’ve had multiple premium listings submit complaints about this bug and we’re worried about losing business because of it. We’ve been forced to disable GD Booster for now to avoid the bug, but this slows down our website a lot and is obviously not a good solution. I imagine this affects nearly every user of the Business Hours plugin.

    Very grateful for your support.

    Frank

    in reply to: Business Hours Cached #375261

    Frank Ferris
    Buyer
    Post count: 76

    Thanks for investigating, Stiofan!

    Please do let me know if you hear back or when it gets fixed.

    in reply to: Combining Detail Tabs #373562

    Frank Ferris
    Buyer
    Post count: 76

    Thanks Stiofan! Always so grateful for your team’s outstanding support.

    For anyone who finds this thread and wants to do something similar, here’s what we ended up doing:
    (see it live at https://ethicaltree.com/places/ottawa/restaurants/cafe-nostalgica/ – we still have some minor CSS things to fix with reviews today)

    Settings:
    GD>Design>Detail> uncheck “Show as list instead of tabs” and Exclude tabs (we excluded More info, Photos, Map, Reviews)

    PHP Code:
    In wp-content/themes/[your child theme] (we use Kleo theme)
    functions.php – add the following codes as needed:

    Add custom field to profile section of detail page (our custom field admin name is ‘ethicalcriteria’ – Replace All with your custom field name)

    
    
    add_filter('geodir_detail_page_tab_list_extend', 'geodir_detail_page_tab_list_extend_profile') ;
    
    function geodir_detail_page_tab_list_extend_profile($tab_array)
    { global $post;
    // here is where we check the tab we want has info and then assign it to a global $post value.
    // you would change the 'geodir_ethicalcriteria' to your tab key.
    if(isset($tab_array['geodir_ethicalcriteria']['tab_content']) && $tab_array['geodir_ethicalcriteria']['tab_content']){
    $post->my_profile_extend = $tab_array['geodir_ethicalcriteria']['tab_content']; // assign the content to global value
    $tab_array['geodir_ethicalcriteria']['is_display']= false;// don't display the tab 
    }
    
    // here we call a function that will get the global value and echo it.
    add_action('geodir_after_description_on_listing_detail','gd_extra_profile_tab_info');
    
    return $tab_array;
    }
    
    // function that will get the global value and echo it.
    function gd_extra_profile_tab_info(){
    global $post;
    if(isset($post->my_profile_extend) && $post->my_profile_extend){echo $post->my_profile_extend;}

    Add Review and Map sections below Profile Tab (the first line (comments_template) is for just reviews section and all the rest is for the map):

    
    
    add_action('geodir_after_description_on_listing_detail','comments_template',12);
    
    add_action('geodir_after_description_on_listing_detail','_my_details_map',11);
    
    function _my_details_map(){
    global $post;
    
    global $map_jason;
    		$marker_json      = $post->marker_json != '' ? json_decode( $post->marker_json, true ) : array();
    		$marker_icon      = ( ! empty( $marker_json ) && ! empty( $marker_json['i'] ) ) ? $marker_json['i'] : '';
    		$icon_size        = geodir_get_marker_size( $marker_icon );
    		$marker_json['w'] = $icon_size['w'];
    		$marker_json['h'] = $icon_size['h'];
    		$map_jason[]      = json_encode( $marker_json );
    
    		$address_latitude  = isset( $post->post_latitude ) ? $post->post_latitude : '';
    		$address_longitude = isset( $post->post_longitude ) ? $post->post_longitude : '';
    		$mapview           = isset( $post->post_mapview ) ? $post->post_mapview : '';
    		$mapzoom           = isset( $post->post_mapzoom ) ? $post->post_mapzoom : '';
    		if ( ! $mapzoom ) {
    			$mapzoom = 12;
    		}
    
    		$map_args                             = array();
    		$map_args['map_canvas_name']          = 'preview_map_canvas';
    		$map_args['width']                    = '950';
    		$map_args['height']                   = '300';
    		$map_args['child_collapse']           = '0';
    		$map_args['maptype']                  = $mapview;
    		$map_args['autozoom']                 = false;
    		$map_args['zoom']                     = "$mapzoom";
    		$map_args['latitude']                 = $address_latitude;
    		$map_args['longitude']                = $address_longitude;
    		$map_args['enable_cat_filters']       = false;
    		$map_args['enable_text_search']       = false;
    		$map_args['enable_post_type_filters'] = false;
    		$map_args['enable_location_filters']  = false;
    		$map_args['enable_jason_on_load']     = true;
    		$map_args['enable_map_direction']     = true;
    		$map_args['map_class_name']           = 'geodir-map-preview-page';
    
    geodir_draw_map( $map_args );
    
    }
    }

    Thanks again!

    in reply to: Combining Detail Tabs #373128

    Frank Ferris
    Buyer
    Post count: 76

    Is it possible to add the map under the profile tab?

    in reply to: Combining Detail Tabs #372882

    Frank Ferris
    Buyer
    Post count: 76

    That’s super helpful, thanks Stiofan!

    If it’s possible to do the same with Maps then that’s all we need.

    Could we add a second line like this?

    ('geodir_after_description_on_listing_detail','post_map');

    I know my code above doesn’t work, but I’m not sure how to refer to the map. If we can get Profile, Reviews and Map all under the ‘Profile’ tab, then we can figure out the rest ourselves.

    Thanks!

    in reply to: Combining Detail Tabs #372748

    Frank Ferris
    Buyer
    Post count: 76

    Does the link I shared above with PHP code from Paolo not accomplish this? Maybe I misunderstood what it does.

    Thanks

    in reply to: Combining Detail Tabs #372710

    Frank Ferris
    Buyer
    Post count: 76

    That’s what we’re using now on http://www.ethicaltree.com but what we want is this:

    Tab View

    3 tabs:
    1. Profile/map/custom field (ethical criteria)/reviews (all combined in one tab)
    2. Related Listings Tab
    3. Menu Tab (Custom image/text field)


    Frank Ferris
    Buyer
    Post count: 76

    Thank you Stiofan! It actually works perfectly with the popular posts widget. We appreciate the help.

    in reply to: Free month isn't working #372279

    Frank Ferris
    Buyer
    Post count: 76

    Thanks, Kiran!

    We don’t have a development site, only a live one, so I don’t think we’ll test this, but looking forward to this capability. Thanks for the answer!

    in reply to: Free month isn't working #372157

    Frank Ferris
    Buyer
    Post count: 76

    Kiran or Stiofan, have you had a chance to look at this?

    If there is no quick fix, in the meantime, can you tell me if we will be able to give customers an entirely free month BUT obtain their credit card/paypal info so that we can charge them full price for the 2nd month (and recurring)? The only option I can currently see to get credit card info during first “free” month is to charge them $0.01 for their first month instead of entirely free.

    Thanks!


    Frank Ferris
    Buyer
    Post count: 76
    This reply has been marked as private.

    Frank Ferris
    Buyer
    Post count: 76

    Thanks for looking into this, Stiofan. Any suggestion on how we can determine or fix the cause?

    I’m not entirely sure what you mean, but our only caching plugin is GD Booster. I just tried disabling GD Booster and it did not fix the issue. Do you believe this is not GD-related?

    Thanks for your help!

    Frank


    Frank Ferris
    Buyer
    Post count: 76
    This reply has been marked as private.
    in reply to: GD Booster Caching Issue #369983

    Frank Ferris
    Buyer
    Post count: 76

    Should we have to clear GD Booster settings every time we make changes? If I reset GD Booster settings after making changes then the changes show up properly, but if I just leave GD Booster enabled and don’t touch it, our backend changes don’t show up for non-logged in visitors.

    There is no issue for logged-in visitors, only non-logged-in ones.

    in reply to: GD Booster Caching Issue #369975

    Frank Ferris
    Buyer
    Post count: 76
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 69 total)