Close

General Discussion

kaka135
8 years ago
#9107 Quote
Avatar
  • 16
Hi Deni,

This method works perfectly. Thank you for providing me such a smart advice.

Thanks again for your help.

regards,
Lee Ka

Deni wrote:


Hi, 

I came up with an idea how to achieve it:

You can call the All Shops action anywhere on the home page - open the Index.cshtml view and place this code, where you want to show the Store Locator functionality:
@Html.Action("AllShops", "StoreLocator", new { isStoreLocatorCalledFromHomePage = true })

Now, go to the AllShops.cshtml view and find this row:
Layout = "~/Views/Shared/_ColumnsOne.cshtml";


Place this code right after it:
if (Url.RequestContext.RouteData.Values["isStoreLocatorCalledFromHomePage"] != null && bool.Parse(Url.RequestContext.RouteData.Values["isStoreLocatorCalledFromHomePage"].ToString()))
    {
        Layout = "";
    }


That is all !
embryo
7 years ago
#12450 Quote
Avatar
  • 55
Hello-
Can somebody please tell me what the class is named for the short description that appears in the little pop-up on the map that happens when you click the red map markers?
I can't seem to find where to change it's color...

Thanks,
Steve
embryo
7 years ago
#12451 Quote
Avatar
  • 55
embryo wrote:
Hello-
Can somebody please tell me what the class is named for the short description that appears in the little pop-up on the map that happens when you click the red map markers?
I can't seem to find where to change it's color...

Thanks,
Steve


Ok, well..I figured out that it a class related to Google maps, and overrode it by placing this class into the top section of the /Plugins/SevenSpikes.Nop.Plugins.StoreLocator/Themes/DefaultClean/Content/StoreLocator.css file:

.gm-style {
  color:#000;
}
gruddle
6 years ago
#14215 Quote
Avatar
  • 7
Can I change the menu text from "All Shops" to "Store Locations" ?
anton_ivanov
6 years ago
#14216 Quote
Avatar
  • Moderator
  • 277
Hello,

Yes, you can change it. This is a resource that can be changed from Administration -> Configuration -> Languages > Edit Language -> String resources. The name of the resource is sevenspikes.storelocator.public.allshops.linktitle

Hope that helps!
Regards,
Anton Ivanov
Nop-Templates.com
storis
5 years ago
#14795 Quote
Avatar
  • 1
Can I change the URL from /allshops to something like /ourstores or something to that effect?
SDobrev
5 years ago
#14796 Quote
Avatar
  • Moderator
  • 283
Hi,

Unfortunately, it is not possible to change this route. A change in the source code of the plugin is required.
Best Regards,
Stoyan Dobrev
Nop-Templates.com
JRon
5 years ago
#14797 Quote
Avatar
  • 67
I would be great if we could add an SEO url to use instead of AllShops, it would help my sites alot.
embryo
5 years ago
#14799 Quote
Avatar
  • 55
I was able to do this pretty easily.
Here's how:
create a topic page named "Stores" or "Locations" or whatever...leave it blank and save it.
Remember what you set as "Title" for the next step.

Next, open this view in notepad:
views\topic\topicdetails.cshtml

find this line:
<div class="page topic-page" id="ph-topic">


Now replace the all the code below that with this code:

  @if (Model.Title == "Locations")
            {
    @* do nothing *@
            }
    else
      {
        <div class="page-title" id="ph-title">
          <h1>@Model.Title</h1>
    </div>
  }
    <div class="page-body">
  @if (Model.Title == "Locations")
            {
    @Html.Action("AllShops", "StoreLocator")
            }

    else
      {
          @Html.Raw(Model.Body)
  }
    </div>
</div>


If the title of your topic page is Locations", then save it and close it...if not, then change the word "Locations" with your topic page title, then save it and close it.


Last step:
Open up this view in your plugin folder:
plugins\sevenspikes.nop.plugins.storelocator\views\storelocator\allshops.cshtml

Find this line near the top:
Layout = "~/Views/Shared/_ColumnsOne.cshtml";


comment it out, like this:
@*    Layout = "~/Views/Shared/_ColumnsOne.cshtml"; *@


Now, whenever anybody goes to http://www.yourdomain.com/locations they will see the allshops page content.
randika
4 years ago
#20905 Quote
Avatar
  • 9
Hi, In Nop Store Locator 4.2 version, i can see Map Zoom level is not working. I tried with entering maximum and minimum zoom levels. But it's not working. In 4.1 it's working fine.