Paul Ceppaglia

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 25 total)
  • Author
    Posts
  • in reply to: Upgraded to include WP Invoicing, Stripe gone #397401

    Paul Ceppaglia
    Expired Member
    Post count: 29

    Another question…

    If I don’t plan on utilizing invoices, can I downgrade my payment manager back to v1 (and disable/unistall WP Invoicing) and avoid all this? Or would you recommend I still upgrade to v2 even if I won’t be using invoices?


    Paul Ceppaglia
    Expired Member
    Post count: 29

    Hi Paolo,

    Thanks very much. That works!

    –Paul


    Paul Ceppaglia
    Expired Member
    Post count: 29

    Hi Kor,

    Thanks for replying, but I think you’ve misunderstood my request.

    I’m not trying to insert a GD shortcode.

    Basically what I want to do is display a different plugin’s shortcode (which will display a table or graphic) on a CPT listings page IF, AND ONLY IF, it’s a particular CPT.

    So, I’m wondering if there’s a solution similar to this:

    https://wpgeodirectory.com/docs/common-code-snippets/#package

    In this example, I inserted this code:

    
    
    // add the package id to the body
    add_filter( 'body_class', 'my_add_package_class',10,1 );
    function my_add_package_class($class){
        global $post;
        if (geodir_is_page('detail') && isset($post->package_id)) {
            $class[] = "gd-package-id-".$post->package_id;
        }
        return $class;
    }

    into my child theme’s functions.php to allow me to show/hide text widgets based on the value of gd-package-id.

    Is there a similar piece of code that will allow me to show/hide content elements on a listings page (and a listings detail page) based on the CPT type?

    Thanks,
    Paul

    in reply to: Featured Listings Not on Top #376870

    Paul Ceppaglia
    Expired Member
    Post count: 29

    Hi Kiran,

    Those entries were among several that I created via CSV import (I downloaded the sample CSV file and groomed my data to conform to the sample file’s structure). The sample CSV file didn’t contain the “is_featured” field.

    For subsequent imports, can I add the “is_featured” column to the CSV file, and explicitly set a value of 0 for the field? Hopefully that would prevent this from happening in the future…

    Thanks,
    Paul

    in reply to: Link CPT to 2 other CPTs? #376736

    Paul Ceppaglia
    Expired Member
    Post count: 29

    I found this link in another thread:

    https://wpgeodirectory.com/docs/creating-different-event-types/

    and I think this will allow me to do what I need it to do. I already have separate packages set up for the Education listings (since they are a separate CPT), so I’ll just need to make some adjustments and I think I’ll be okay.

    in reply to: Link CPT to 2 other CPTs? #376731

    Paul Ceppaglia
    Expired Member
    Post count: 29

    Hi Guust,

    Thanks for the reply.

    Unfortunately neither of those options are ideal, especially option 1.

    The 2 CPTs “Business” and “Education” will have some different fields, which is why I opted to create separate CPTs for them in the first place.

    Is there any way to assign custom fields to categories, and/or hide custom fields on the add listings page based on the category that is selected?

    In other words, if a user adds a listing and selects the “Eduacation” category, then they would see certain custom fields, and if they selected other categories then the Education-specific custom fields would be hidden (or not served at all)?

    in reply to: Featured Listings Not on Top #376729

    Paul Ceppaglia
    Expired Member
    Post count: 29
    This reply has been marked as private.
    in reply to: Featured Listings Not on Top #376624

    Paul Ceppaglia
    Expired Member
    Post count: 29

    Hi Paolo,

    I did disable every plugin (except for the GD plugins) and the problem persists.

    Thanks,
    Paul

    in reply to: Featured Listings Not on Top #376598

    Paul Ceppaglia
    Expired Member
    Post count: 29
    This reply has been marked as private.
    in reply to: FIle Upload Custom Field & Shortcode #376023

    Paul Ceppaglia
    Expired Member
    Post count: 29

    Excellent! That works perfectly! Thanks for your quick response and resolution!

    in reply to: Pricing Table Dynamic Listing Type? #370959

    Paul Ceppaglia
    Expired Member
    Post count: 29

    Hi Stiofan,

    Okay, I understand what you mean.

    If I did that, I would need to remove the Add Listing dropdown from the Loginbox widget. I would like to give the users the opportunity to login from the sidebar. But currently, when a logged-in user is on a page where there’s a loginbox widget active in the sidebar, it presents them with the Add Listing dropdown. If I’m going to use 2 separate pages with the pricing tables, I would like to create custom banners/links in the sidebar to add those types of listings.

    How can I remove the Add Listing dropdown from the loginbox widget? Upon inspection, it’s the select id=”geodir_add_listing”. I want to remove this dropdown select entirely. I’ll create custom banner graphics in the sidebar. Each of these will link to their respective new page with the pricing table. And then each of the select links in the pricing tables will link to the Add-Listing.php page with the correct listing_type and package_id.

    in reply to: Add Listing Page Full Width #370957

    Paul Ceppaglia
    Expired Member
    Post count: 29

    Hi,

    Actually, there’s still a problem with this…

    I’d like the contents of this div to fill the page (i.e. 100%) when the WordPress template is set to full width (on the Add Listing Page), but to be the existing 67% on pages where I’m utilizing the sidebar (directory home, listing pages, etc.).

    When I add the code that you’ve supplied:

    #geodir-wrapper-content {
    width:100%!important;
    padding:10px!important;
    }

    it forces the 100% width even when there’s a sidebar.

    This is pushing the sidebar content BELOW the full-width content.

    I want the the geodir-wrapper-content div to occupy only the space allotted…that is, if there’s a sidebar, it should use 67% of the width. If it’s a full-width page, it should use 100% of the width (the way a “normal” WordPress page template’s main content div would adapt to a full-width page or a 67% width with a sidebar).

    in reply to: Pricing Table Dynamic Listing Type? #370877

    Paul Ceppaglia
    Expired Member
    Post count: 29

    Hi Stiofan,

    I don’t understand what you mean.

    If someone chooses to add a listing form the sidebar (with the dropdown box), they are automatically sent to yourdomain/add-listing/?listing_type=gd_XXX

    Can I have more than 1 Add Listing page?

    in reply to: Pricing Table Dynamic Listing Type? #370675

    Paul Ceppaglia
    Expired Member
    Post count: 29

    Hi Stiofan,

    I’ll try reading up on the hooks…I’ll search the documentation and forums (if you can provide any specifically relevant links in your documentation, that would be great).

    I thought I had described it pretty clearly, but I guess not.

    Users can add 2 different types of listings (CPTs)…business listings (gd_place) and education listings (gd_education).

    I have set up the following pricing plans:

    Free
    Standard
    Gold
    Platinum

    I have created 2 sets of those pricing plans, one for each of the CPTs.

    The corresponding pricing plans have the same cost and features. That is:

    – The Standard plan assigned to gd_place costs $14, and the Standard plan assigned to gd_education costs $14.

    – The Gold plan assigned to gd_place costs $24, and the Gold plan assigned to gd_education also costs $24.

    …and so on.

    I’m trying to customize the Add Listing page with a pricing/features table. The table will feature the columns: Free, Standard, Gold, Platinum. Each column will contain the features of those plans (e.g. # of categories, length of description, etc.)

    At the end of each column, I will give the user a “select” this plan option, which should work the same as the default “Select Package” functionality.

    This option should select the corresponding plan for the corresponding listing type that they chose to add.

    Because there is only 1 Add Listing page, I will need to make this dynamic, so that if they’ve chosen to add a business listing, the code for the select button should be something like:

    yourdomain/add-listing/?listing_type=gd_place&package_id=1

    but if they’re adding an education listing, the code for the select button should be something like:

    yourdomain/add-listing/?listing_type=gd_educatione&package_id=5

    So, what needs to happen is I need to parse out the listing_type URL parameter from the current URL. This value will then need to be inserted into the pricing table’s select button, and I’ll have to do some additional coding that will set the package_id to the correct value.

    So, if my package ID for the Standard pricing package for CPT gd_place is 2, and the package ID for the Standard pricing package for CPT gd_education is 6, then in the pricing table, the select button in the “Standard” column should have could that would perform the following functionality:

    yourdomain/add-listing/?listing_type=<<GET-THIS-VALUE-FROM-THE-PASSED-URL-PARAMETER>>&<<IF-listing_type=’gd_place’ THEN ‘2’, IF-listing_type=’gd_education’ THEN ‘6’>>

    (I know that the above is not real code…I’m just trying to illustrate the functionality that would need to happen for this.

    If there is a shortcut that can be done using hooks that would be great.

    I hope that more clearly illustrates what I’m trying to accomplish.

    in reply to: Add Listing Page Full Width #370655

    Paul Ceppaglia
    Expired Member
    Post count: 29

    That solved it. Thank you!

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