Quantcast
Channel: NBStore Discussions Rss Feed
Viewing all articles
Browse latest Browse all 4081

New Post: Show dealer's prize in model tab only for Dealers

$
0
0
Hi,

I created the following templates:

modeltable.template:
<table class="ModelTable">
    <tbody>
    <tr class="ModelTableHead">
        <td>Model</td>
        <td>Code</td>
        <td>Retail</td>
      [TAG:TEST:<prop TestType="isinrole" TestValue="Dealer" Action="Show" />]
        <td>Dealer</td>
      [TAG:END]
    </tr>
    [TAG:TABLEROWS]
</tbody>
</table>
modeltablerow.template:
<tr>
   <td>[Model:ModelName]</td>
   <td>[Model:ModelRef]</td>
   <td style="text-align:right;">[Model:UnitCost]</td>
   [TAG:TEST:<prop TestType="isinrole" TestValue="Dealer" Action="Show" />]
   <td style="text-align:right;">[Model:DealerCost]</td>
   [TAG:END]
</tr>
My aim was to show/hide the dealer price in the model table depending on being a member of the Dealer's role (or not).

But obviously, the TAG is not interpreted correctly (or I am doing something wrong):

Image

The dealer's price is also displayed for unauthenticated users and users that are not in the dealer's role. Any help appreciated...

Thanks
Michael

Viewing all articles
Browse latest Browse all 4081

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>