django-shop icon indicating copy to clipboard operation
django-shop copied to clipboard

rendering product.placeholder

Open helvrud opened this issue 5 years ago • 1 comments

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"

helvrud avatar Aug 30 '18 20:08 helvrud

difficult to say, since I don't know anything about the remaining context.

jrief avatar Sep 15 '18 07:09 jrief