Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rendering search results #847

Open
markusmo opened this issue Feb 20, 2021 · 1 comment
Open

Rendering search results #847

markusmo opened this issue Feb 20, 2021 · 1 comment

Comments

@markusmo
Copy link

Hi
I wierdly encountered a strange problem. I upgraded to latest version of dango-shop and encountered the following:
When using the fulltext search it does not render anything on my site anymore. There is no error and it shows that it found entries properly, but it does not list any of them:

Bildschirmfoto 2021-02-03 um 22 16 32

I am using:

django-shop==1.2.4
django-angular==2.3
djangocms-bootstrap==1.1.2
djangocms-cascade==1.3.7
django-elasticsearch-dsl==7.1.4
elasticsearch==7.10.1
elasticsearch-dsl==7.3.0
@markusmo
Copy link
Author

I found my Issue with this. Somehow there is a problem with these lines

{% block search-results-head %}
<div class="row lead text-muted py-1" ng-if="search_data.count>0">
<div class="col-7" ng-cloak>{% trans "{{ search_data.count }} matching products found" %}</div>
<div class="col-3 text-right">{% trans "Base Price" %}</div>
</div>
<div class="row lead text-muted" ng-if="search_data.count==0">
<div class="col" ng-cloak>{% trans "Searching for <em>{{ searchQuery }}</em> has revealed nothing." %}</div>
</div>
{% endblock search-results-head %}

I do not yet understand it, but when I will I will push a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant