*

piter

  • ****
  • 104 posts
I need to create category for personal type listings (i.e. men meets women).
For this type of listings some forms when adding new listing are irrelevant (i.e. price, sell/buy/deal transaction type, used/new).

Also not every user would want to give mobile phone nr on this type of listing (but phone nr is required globally when adding a new item)

There are 3 blocks in item-post.php which I would like to load conditionaly based on category ID nr.
This is <div class="price-wrap">, <div class="status-wrap">, <div class="location"> which I dont want to show up on the screen for a few category ID.
Could it be done using IF/ELSE? COuld someone help me with this.

Also the same way I would make mobile phone nr available but not required for some category ID when posting a new listing.

How to do this with PHP?

Or maybe is there a plugin for disabling some forms depending category ID??

*

MB Themes

Re: Post a new listing page - different forms/content based per cat ID
« Reply #1 on: April 09, 2019, 01:27:29 PM »
@piter
Easiest way is to do it via jQuery and show/hide blocks based on selected category id.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots