+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Flatty template - make other type than price to show on top with special decoration

  1. #1

    Flatty template - make other type than price to show on top with special decoration

    Dear Flynax Developer,

    I'm using general flatty template.
    Please look at the screenshot 1, it is the default showing of listing field type: 'price'


    I have another listing field (mixed type) with key: "rentalrate," please look at screenshot 2. This listing field is served as a price as well, but a mixed type.



    Would you please help me to include that listing field: "rentalrate" to show on top and big, similar text decoration just like the price in screenshot 1.

    Similarly in listing carousel:



    Thank you
    Last edited by Wei Hong; April 13, 2015 at 03:26 AM.

  2. #2
    Guru
    Join Date
    Jan 2013
    Location
    Australia
    Posts
    2,028
    Have a look in your category / build forms / short form and you should see price in there so just drag and drop the new one over as well ? not sure if its that or the image is from the featured form ? if so then check that one / all should be good

  3. #3
    it doesn't work Pete, as I stated above, the looks only work for 'price' key, and it is preset. No matter what order in your short form. It only work for the listing field which has key: 'price'
    I need to add another listing field key beside 'price', which is 'rentalrate' in my case

  4. #4

    Talking

    Hello Wei Hong,

    You can make the following to change the price field to your custom field:
    1. open file >>your_template/tpl/blocks/listing.tpl
    2. find row (~29):
    Code:
    Only registered members can view the code.
    ad replace it:
    Code:
    Only registered members can view the code.
    3. find row (~50)
    Code:
    Only registered members can view the code.
    and replace to:
    Code:
    Only registered members can view the code.
    Thank you, Curtis.
    @Flynax Company

  5. #5
    Quote Originally Posted by Curtis View Post
    Hello Wei Hong,

    You can make the following to change the price field to your custom field:
    1. open file >>your_template/tpl/blocks/listing.tpl
    2. find row (~29):
    Code:
    Only registered members can view the code.
    ad replace it:
    Code:
    Only registered members can view the code.
    3. find row (~50)
    Code:
    Only registered members can view the code.
    and replace to:
    Code:
    Only registered members can view the code.

    Hi Curtis, thank you for your suggestion. But this method will replace the 'price' key with 'rentalrate' key. I actually want the format to stay with 'price', and in addition to 'rentalrate' key. If I do as your suggestion, the 'price' listing field key will lose its format.

  6. #6
    Quote Originally Posted by Wei Hong View Post
    Hi Curtis, thank you for your suggestion. But this method will replace the 'price' key with 'rentalrate' key. I actually want the format to stay with 'price', and in addition to 'rentalrate' key. If I do as your suggestion, the 'price' listing field key will lose its format.
    Hmm. Do you want add your custom field together with a price field?
    Give me more details about it and draw a screen with example.
    Thank you, Curtis.
    @Flynax Company

  7. #7
    Quote Originally Posted by Curtis View Post
    Hmm. Do you want add your custom field together with a price field?
    Give me more details about it and draw a screen with example.
    Hi Curtis, I want the listing field "rentalrate" to have the same display format as "price" field. Both of them with same display format.

    I have explained everything with screenshot in post 1
    Here it is:

    Please look at the screenshot 1, it is the default showing of listing field type: 'price'
    Attachment 1250

    I have another listing field (mixed type) with key: "rentalrate," please look at screenshot 2. This listing field is served as a price as well, but a mixed type.

    Attachment 1249

    Would you please help me to include that listing field: "rentalrate" to show on top and big, similar text decoration just like the price in screenshot 1.

    Similarly in listing carousel:

    Attachment 1248

    I want the "rentalrate" to have the same decoration as "price"

  8. #8
    Hello Wei Hong,

    OK. Our developer return to you as soon, please wait.
    Thank you, Curtis.
    @Flynax Company

  9. #9
    Quote Originally Posted by Curtis View Post
    Hello Wei Hong,

    OK. Our developer return to you as soon, please wait.
    Excellent, I'm looking forward to the change. Thank you

  10. #10
    Quote Originally Posted by Curtis View Post
    Hello Wei Hong,

    OK. Our developer return to you as soon, please wait.
    Hi Curtis, so a developer is helping me on this request and from what I see, it's a css custom change, which is not perfect, since you have to change it in several places. Then same with the listing carousel, you need to make change there also.

    My question is, is there anyway if you could use a code function as "and" command, to add listing field 'rentalrate' and 'price' to have that display format and setting?

    For example you add this code earlier:

    {assign var='price_value' value=''}{foreach from=$listing.fields item='item' key='field' name='fListings'} {if !empty($item.value) && $item.Details_page && $item.Key|strpos:'rentalrate' !== false} <div class="price-tag">{$item.value}</div> {assign var='price_value' value=$item.value} {break} {/if}{/foreach}
    Is there anyway if I could do this:

    {assign var='price_value' value=''}{foreach from=$listing.fields item='item' key='field' name='fListings'} {if !empty($item.value) && $item.Details_page && $item.Key|strpos:'rentalrate' and&& 'price' !== false} <div class="price-tag">{$item.value}</div> {assign var='price_value' value=$item.value} {break} {/if}{/foreach}

+ Reply to Thread