Hi,
it is quite easy in general to change the module output, because the templates resemble conventional HTML code. For the module to prevent it from displaying the stock level please have a look at
- lines 112 through 119 in mod_goodrelations/rdfa/templates/template-product.html, and
- lines 155 through 157 in mod_goodrelations/rdfa/templates/template-product.html
{% if stock_level %}
|
<div rel="gr:hasInventoryLevel">
|
<div about="{{product_uri}}#inventory_level" typeof="gr:QuantitativeValue">
|
<div property="gr:hasUnitOfMeasurement" content="{{stock_unit}}" datatype="xsd:string"></div>
|
<div property="gr:hasMinValue" content="{{stock_level}}" datatype="xsd:float"></div>
|
</div>
|
</div>
|
{% endif %} |
{% if stock_level %}
|
<div rel="gr:hasInventoryLevel" resource="{{product_uri}}#inventory_level"></div>
|
{% endif %} |
Taking the first code snippet, you could change it to sth. like (note the False in the if-clause)
{% if False %}
|
<div rel="gr:hasInventoryLevel">
|
<div about="{{product_uri}}#inventory_level" typeof="gr:QuantitativeValue">
|
<div property="gr:hasUnitOfMeasurement" content="{{stock_unit}}" datatype="xsd:string"></div>
|
<div property="gr:hasMinValue" content="{{stock_level}}" datatype="xsd:float"></div>
|
</div>
|
</div>
|
{% endif %} |
or, similarly in HTML
<!--
{% if stock_level %}
|
<div rel="gr:hasInventoryLevel">
|
<div about="{{product_uri}}#inventory_level" typeof="gr:QuantitativeValue">
|
<div property="gr:hasUnitOfMeasurement" content="{{stock_unit}}" datatype="xsd:string"></div>
|
<div property="gr:hasMinValue" content="{{stock_level}}" datatype="xsd:float"></div>
|
</div>
|
</div>
|
{% endif %}
--> |
where I think the former solution is the better one since it will not produce any output anymore (if in doubt you may also remove the whole block).
Don't forget to do the same with the second code snippet!
Best