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

New Post: Serial numbers

$
0
0
To hide the models dropdown selector, u can try and do a role check and make the dropdown selector section hidden from anyone but the Administrators role?
Find this part in productdetail.template:
<!-- Models Dropdown Selector -->
    [TAG:TEST:<prop TestType="setting" TestName="modelselector.flag" TestValue="0" Action="Hide" />]    
        <div class="Models Row">
            <div class="Label">Models</div>
            <div class="Value">[TAG:MODELS:<prop CssClass="Model NormalTextBox" />]</div>
        </div>
    [TAG:END]
    [TAG:END]
<!-- End Model Selector -->
Modify so it looks like this:
<!-- Models Dropdown Selector -->
                  [TAG:TEST:<prop TestType="isinrole" TestValue="Administrators" Action="Show" />]<!-- Hide from non Admins -->
    [TAG:TEST:<prop TestType="setting" TestName="modelselector.flag" TestValue="0" Action="Hide" />]    
        <div class="Models Row">
            <div class="Label">Models</div>
            <div class="Value">[TAG:MODELS:<prop CssClass="Model NormalTextBox" />]</div>
        </div>
    [TAG:END]
    [TAG:END]
                  [TAG:END]
<!-- End Model Selector -->
I didn't try it, but I assume it would work and u shd be able to do the same about the quantity field.
Note that if u want to show the qty field and model selector on other products, u have to create another template for them.
Easy way is to copy the one u have and maybe call it productdetailsn.template and then set that to be used for the serial number products only and go with the original template for other products.


Regards
Jake

Viewing all articles
Browse latest Browse all 4081

Trending Articles



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