Description and Free/Premium Price packages

This topic contains 14 replies, has 3 voices, and was last updated by  Alex Rollin 6 years, 2 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #418274

    jahusdtc
    Expired Member
    Post count: 162

    Overview: On the Input/Editing Screens, I want to remove the TinyMce field (Description?) from Free packages, but leave that field there for Premium package.

    1A. To remove the Description field for the FREE package, I have tried setting up the Price Package and using the dropdown approach in Geo>Prices and Payments>Prices.
    (See attached – Description-Disabled-Via-Dropdown-For-Free-Price-Package).

    1B. But, then, on a Free package…on INPUT Screens (Add Listing/Edit Listing)…I still get the Description input box.
    See attached (Description-Disabled-Add-Listing-Screen-for-Free-Price-Package).

    2A. On PREMIUM package, I WANT a Description, so have tried setting up the Price Package and said NO to Disable Editor.
    You will see that on attached image (Description-EnAbled-Via-Dropdown-For-Premium-Price-Package).

    BTW…does this Description limit relate to what they can INPUT or what shows, say, on Listing page before single listing says “Read More”?

    2B. On a Premium package…on INPUT Screens (Add Listing/Edit Listing)…I correctly get the Description input box with TinyMce.
    See attached (Description-EnAabled-Add-Listing-Screen-for-Premium-Price-Package).

    3. Can you tell me what I need to do to alter this functionality?

    4. Regarding Details Page and an associated question to above…

    When I change (currently am in testing mode) from fully-entered Premium Package to Free package, I still see the Lengthy Description on the Profile tab.

    I have added a little “incentive” to top of the Free package in the Profile tab via following hook:

    Add_action (‘geodir_before_description_on_listing_detail’, ‘geodir_show_custom_text_constant_for_free_price_package’ );
    function geodir_show_custom_text_constant_for_free_price_package() {}

    When package changes from Premium to FREE, I get my little “incentive” message for Free customers…ABOVE the lengthy previous message for Premium.

    5. Is there a way to replace the content for display purposes via hook in this location? (i.e., get rid of the content stuff so only my little incentive message shows?

    Thanks for checking this out. Sure I’ve missed a step somewhere…but not quite sure WHERE!

    #418280

    jahusdtc
    Expired Member
    Post count: 162
    This reply has been marked as private.
    #418282

    jahusdtc
    Expired Member
    Post count: 162
    This reply has been marked as private.
    #418288

    Alex Rollin
    Moderator
    Post count: 27815

    The limit applies to what is shown, not what is input.

    You want to ‘remove’ the description field completely for free packages?

    The developers can let us know if there is a way to alter this page, but I will share from experience that this page is going to change a lot with V2.

    #418310

    jahusdtc
    Expired Member
    Post count: 162

    1. Limit to what shows on Listing page (before Read More) — or what shows on Detail Page (in Profile tab)?

    Logically, would think you’d be chopping what is saved in database?

    2. I would love to wait until V2 comes online, but know you’re keeping that under wraps until fully debugged and tested. Since we don’t know when that will be, I think it would be better for now to know how to hide the_content (assume that’s Description) in some sort of hook.

    3. I just tried to put a div and class around my little geodir_show_custom_text_constant_for_free_price_package function — idea was I could then delete everything on the tab EXCEPT for that little string, but :not wasn’t working properly (or I was USING improperly!)

    Thanks for sticking with me on this query!

    #418313

    jahusdtc
    Expired Member
    Post count: 162
    This reply has been marked as private.
    #418684

    jahusdtc
    Expired Member
    Post count: 162

    Any ideas on way ‘remove’ the description field completely for free packages?

    Am I using the DropDown values improperly? What is their purpose?

    #418757

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Thanks for the feedback, one of the main goals of GDv2 is to make it easier to use 🙂

    For the free package have u set the “Apply description limit” to yes and then the limit to 0?

    Stiofan

    #418787

    jahusdtc
    Expired Member
    Post count: 162
    This reply has been marked as private.
    #418788

    jahusdtc
    Expired Member
    Post count: 162

    It worked splendidly…thank you!

    Now, a side-effect of that working is the (very proper!) removal of the Profile tab in Detail Page.

    However, I was using the below action to echo out a little message on the freebie packages who did NOT get descriptions input. Can I FORCE a profile tab for these people in some way?

    Your suggestion WAS a success. Guess I’m being a little unorthodox here.

    I’ll do without the little message if I have to…the input part was more critical.

    On the Geo>Prices and Payments>Prices>Free page, I see “Hide related listing tab” — can you tell me where I might check that out and see how it’s implemented, so I could do the OPPOSITE for the Profile tab for this usage?

    Or…any other suggestion?

    
    
    add_action ('geodir_before_description_on_listing_detail', 'geodir_show_custom_text_constant_for_free_price_package' );
    function geodir_show_custom_text_constant_for_free_price_package() {..}
    #418823

    Alex Rollin
    Moderator
    Post count: 27815

    You could create your own tab for the special message?
    Then re-order the tabs?

    https://wpgeodirectory.com/re-order-tabs-in-a-listing-detail-page/

    #418866

    jahusdtc
    Expired Member
    Post count: 162

    Interesting idea.

    This might be an even better reference:
    https://wpgeodirectory.com/add-a-new-tab-in-the-listing-detail-page/

    Another idea — if the incentive wording added were same for EVERY Free listing —
    would be to add custom field with that wording in it and make it Details Own Tab.

    You could set price package to Free only in Place Settings and should only show that tab on Free Packages. Could set “Default Value” in Place Settings to particular wording…but wouldn’t be able to add HTML in it.

    Of course, could add HTML custom field! Then, I guess WOULD be able to put in divs and things!

    Think I’ll go with the add-new-tab with custom content, just in case I want to customize it.

    Interesting…thanks for your suggestions. Always appreciate your thinking.

    #418901

    Alex Rollin
    Moderator
    Post count: 27815

    Good points, I hope it works out for you.

    Where possible we encourage the use of the plugin as designed with custom fields etc for backwards compatibility for upgrades, of course.

    #418954

    jahusdtc
    Expired Member
    Post count: 162

    Just as follow-up, I’m working on the add my own tab bit, but for the heck of it I tried the custom field in its own detail tab approach — just to see if it would work to make just a “message to the freebie” tab.

    I set default field to my HTML code content and set to not required. Didn’t see a tab.

    Then went into editing of a listing and realized I had to put text in field for tab to materialize. Makes sense it would work that way, but wouldn’t be useful to hand-put in that code for every customer!

    Interesting idea, but think couldn’t work out as I envisioned. It was just an idea :}

    Am following second trail — thank you for suggestion.

    #419036

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    Ye, the link you sent, again below, would be useful for making the new tab, and setting the value:

    https://wpgeodirectory.com/add-a-new-tab-in-the-listing-detail-page/

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

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

Open Support Ticket