single-listing.php different depending on the package price chosen

Discussion in 'GeoCraft WordPress Theme' started by roberto, Apr 8, 2013.

  1. roberto

    roberto New Member

    Joined:
    Feb 25, 2013
    Messages:
    8
    Likes Received:
    2
    hello friends,I need your support.
    I need depending on the price package selected to display a different design..

    that is to say, for pack free --> show single-listing.php
    and for paid pack --> show single-listing2.php

    anybody can help me?, thank you very much!
     
  2. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160
    Hello Roberto,

    Single page of both free and paid listing is design wise same because both sharing same php file.
    We have provided complete control of custom fields to admin, That which fields admin want to show for free listings.
    So designing a separate page for free listing with dynamic fields will increase complication.
     
  3. roberto

    roberto New Member

    Joined:
    Feb 25, 2013
    Messages:
    8
    Likes Received:
    2
    the information will be the same I want to change is the design, there is usually a single.php from which you call the file has to be opened and you can create a variable depending on eg the ID of the selected pack.
    need to know what would depensiendo that variable to the ID pack is opened single-listing.php or single-listing2.php, because it is vital for my project

    also in the absence of the single.php need to be told that the file is single.php makes

    thank you very much support.
     
  4. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160
    Hello,
    There aren't any separate pages for Free & Paid Listings. The php page is same for both type of listing. The user is redirected to the same page for both. However we hide few custom fields based on settings by the users in theme options for the free listings.
     

Share This Page