Hi,
In the code will be really difficult to hide the price or/and the add to cart button. But, you can easily do that via CSS. Just add this code in your theme Custom Head Styles setting:
.instant-search-item .detail .price,
.search-page .item-box .add-info {
display: none;
}
Hi,
As I said, the browser will require permission (a popup should appear to ask) from the user to enable the GeoLocation. Also your browser should support it - all modern browsers support it (IE9+, Chrome, Mozilla, Opera, Safari).
In order to hide the element, just modify the previous code to be like this:
$('.getUserGeoLocation').click().hide().next('span').hide();
This will also hide and the hint. If you want to keep the hint, make the code like this:
$('.getUserGeoLocation').click().hide();
I hope this helped!
Hi,
I have just checked this and it is working fine - it is not throwing an error. Let us know if you got this resolved.
Hi,
We made some mark-up re-factoring and we missed to update this comment. It should look like this:
<li>
<span title="Topics">Topics</span>
<div class="sublist-wrap">
<ul class="sublist">
@foreach (var topic in Model.Topics)
{
<li><a href="@Url.RouteUrl("Topic", new {SeName = topic.SeName})" title="@topic.Name">@topic.Name</a></li>
}
</ul>
</div>
</li>
.shops-list li:nth-child(n+4) {
display: none;
}
$(document).ready(function () {
$('.getUserGeoLocation').click();
});