django-shop
django-shop copied to clipboard
rendering product.placeholder
I set up a shop acoording to tutorial https://django-shop.readthedocs.io/en/latest/ Then I copied the model SmartPhoneModel to ScooterModel and changed the set of fields. The new model is different from the previous only by the set of fields. The problem is that newly created model is not rendered in product_detail.html
.... {% render_placeholder product.placeholder %}{% render_placeholder product.placeholder as product_details %}
{% if not product_details %}
<p class="lead">Edit this page, then switch into <em>Structure</em> mode and add plugins to placeholder <code> {{ product.placeholder.slot }} </code>.</p>
{% endif %}
....
So as the result we see the emty page with text "Edit this page, then switch into Structure mode and add plugins to placeholder"
difficult to say, since I don't know anything about the remaining context.