Short Descriptions Don't Appear

Discussion in 'TemplateCodes' started by TStuff, Apr 21, 2011.

Thread Status:
Not open for further replies.
  1. TStuff New Member

    When an ad displays, we only see:

    Title
    Price
    Long Description
    Thumbs

    It was turned on by default in the settings, but is turned off now until we know what might cause it not to appear

    Any advice please?
  2. Lhotch curmudgeon

  3. seymourjames All Hands On Deck

    There is no TC template for showlistings2.tpl or viewlistings2.tpl. You will need to use the default template which displays the short description. Alternatively, code, a new template for showlistings2.tpl in the TC style or simply code it into your existing Sigma template for showlistings.tpl. Its the addition of one small piece of code {$entry.shortDescription} wherever you wish it to display.

    Don't forget to empty your templates_c folder and clear cookies/cache in the borwser.

    Again - wrong forum - thread being moved to TC.
  4. seymourjames All Hands On Deck

    As an update - {$entry.shortDescription} will be added to the TC templates by default. Seems like a reasonable thing to add in although it is only one small pice of code to add if wanted.
  5. TStuff New Member


    I thought this would be in the package I bought

    can you tell me what pages to edit, and where this addition goes ?

    How do I code a new template ?
  6. TStuff New Member

  7. Mike-N-Tosh Developer & Moderator

    You just need to simply copy the showlistings2.tpl from the default template folder into the template folder that you are using REPLACING the one that is there.

    Then style the template however you want to as you would would with any other template file.
  8. seymourjames All Hands On Deck

    What rubbish - I thought this would be the package I bought. It does not show short descriptions on the TC demo and neither does it show it on the 68C demo - this means it is your NEW requirement.


    Why do you not read the online documentation that 68C and TC spent hours putting together so that you can understand the system and how it works?


    Code it into your existing Sigma template for showlistings.tpl. Its the addition of one small piece of code {$entry.shortDescription} wherever you wish it to display. For example, open showlistings.tpl in your template folder and place that piece of code. I think that is pretty clear on what to do and actually helpful e.g.


    <td{if $entry.class<>""} class="{$entry.class}"{/if}><a href="{$entry.link}" title="{$entry.title}">{$entry.title}</a><br /><em>{$entry.shortDescription}</em></td>

    OR you could do nothing and just use the default template for showlistings2. It happens automatically In other words, read the online documentation. Search settings (select template - short description display), checkout settings (short description required Y).

    I think you really should invest time in reading the online documentation about 68C and how the admin control panel works.


    The TC demo system and TC downloads have never showed short descriptions by default. You need to select that in your admin control panel (this is standard 68C - select template in search settings, set short description in checkoutsettings). It behaved as 68C behaves.

    So in conclusion you have choices - use the default template or make a minor modification to the Sigma showlistings.tpl file. Read about templates - if a template file in the template folder is not found (does not exist) it automatically goes to the default template to find it.
  9. TStuff New Member

    How demeaning is 'what rubbish' ?



    I came here because I seek help to get a product working.

    It's not a new requirement. It's in the User's Create A New Ad panel.

    Where it says, on purchase, enter Visa details, it DOES NOT SAY are you a html, php, mysql, asp programmer ?

    I bought a product, I don't expect to have to decode and reconstruct it. I am happy to post a request on behalf of my web designer, but I don't need your disdain.

    If a simple request for help can't be found here, what forum should I go to?
  10. Lhotch curmudgeon

    Why dont you deactivate the template codes product and try and get the desired behavior with the default 68C template and see what happens.
  11. TStuff New Member

    Thanks

    Will try that

  12. TStuff New Member

    U can see from the screenshot attached that the short description field is enabled.

    I tried pasting the code in viewlisting.tpl, as suggested, both with and without <tr> brackets, but all it did was inject a line break.

    I tried the default 3 col template and it made no difference.

    I uploaded viewlisting2.tpl and it made no difference.

    Attached Files:

  13. Mike-N-Tosh Developer & Moderator

    I think you are confusing which templates show what. The short description doesn't show in ANY viewlisting page. It only shows in the showlistings2.tpl template file (the template used when you browse by category or a search result).

    The short description isn't included in the viewlistings pages because that wouldn't make sense to have BOTH the short description AND the full description.

    Also, you may want to check that you actually filled in the short description in the listing as well (easy to forget when troubleshooting issues like this). If you are going to modify what is being shown in a template file, you may also want to review the online documentation for working with template files. (From memory, I think the smarty variables are different between the showlisting(2).tpl files and the viewlisting(2).tpl files). You may need to use the smarty debug to see what the variables are.
  14. TStuff New Member

    Aha, yes that makes sense !

    Reading now

    Thanks very much
  15. TStuff New Member

    And it's a beautiful set of templates.

    I'm glad we could pinpoint the password problem - it will help others in the future.

    This is the final problem to fix, and we're done I hope.

    The QC module will not do what it's being asked to do
  16. TStuff New Member

  17. seymourjames All Hands On Deck

    There is nothing wrong with your system.

    I just placed adverts on it (having to login and go to admin through an advert because your main admin urls are blocked) and all the steps are suppressed as they should be. You had not activated the quick checkout module and image upload module. I am not sure what you were doing but it works for me.

    As for your other problem with short descriptions. You had not set your checkout settings for short description and neither had you set to display showlistings2.tpl file in your admin control panel (i.e display short descriptions in search settings). Standard 68C settings.

    Thread now closed.
Thread Status:
Not open for further replies.

Share This Page