Description and Free/Premium Price packages
This topic contains 14 replies, has 3 voices, and was last updated by Alex Rollin 6 years, 8 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: description, disable, free, hide, premium, price package, remove
-
AuthorPosts
-
February 19, 2018 at 6:20 pm #418274
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!
February 19, 2018 at 6:21 pm #418280This reply has been marked as private.February 19, 2018 at 6:23 pm #418282This reply has been marked as private.February 19, 2018 at 6:37 pm #418288The 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.
February 19, 2018 at 8:27 pm #4183101. 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!
February 19, 2018 at 8:39 pm #418313This reply has been marked as private.February 21, 2018 at 11:48 pm #418684Any ideas on way ‘remove’ the description field completely for free packages?
Am I using the DropDown values improperly? What is their purpose?
February 22, 2018 at 2:37 pm #418757Thanks 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
February 22, 2018 at 6:09 pm #418787This reply has been marked as private.February 22, 2018 at 6:22 pm #418788It 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() {..}
February 22, 2018 at 9:34 pm #418823You 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/
February 23, 2018 at 12:46 am #418866Interesting 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.
February 23, 2018 at 9:18 am #418901Good 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.
February 23, 2018 at 7:02 pm #418954Just 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.
February 24, 2018 at 9:54 am #419036Hello,
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/
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket