Store Locator Plus® for WordPress › Forums › Premier Support › SLP Search url control
- This topic has 9 replies, 2 voices, and was last updated 7 years ago by Cici.
-
AuthorPosts
-
November 10, 2017 at 11:13 AM #54959jay5Participant
Hey guys,
Got another question for you.
Is there any kind of code snippet, or shortcode, similar to the SLP Search Form widget that can be used in custom HTML? For instance our footer area is all custom HTML and we would like to add it to the dealer locator spot. Also on our product pages we have a spot for the dealer locator and would like to add it there.
Home Page (Footer): http://www.kuat.work/
Product Page : http://www.kuat.work/products/nv-2-0/We also have the same footer on our shop/support page that is separate from our WP install and would love to be able to place the code there as well.
Shop Page: http://www.kuat.store/shop/category/accessories-6
- This topic was modified 7 years ago by Cici.
November 10, 2017 at 2:13 PM #54962CiciKeymasterWhat theme are you using? WP themes allow Widgets to be used anywhere , usually a sidebar but also a footer etc.
November 14, 2017 at 1:34 PM #54992jay5ParticipantHey Cici,
We are using the Salient theme. (https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266)
I was able to get it working properly in our footer by using widgets (http://www.kuat.work/), and should be able to widgetize for our product pages but unfortunately our footer on the support forms and shop pages (http://www.kuat.store/) are not built in WordPress, they are built in our CRM/Helpdesk software to allow direct integration.
Is it possible to submit a URL to our dealer locator page with URL parameters to get the locations to show? For instance if we have a basic HTML form that submits to our dealer locator URL with the zip code and radius as a parameter, would this show the locations correctly?
November 15, 2017 at 11:48 AM #55003CiciKeymasteryou cannot embed WP widgets in custom HTML loading from other sites. The proper way to do that is to write your own custom widget to include the HTML you need from third party (non-WordPress) services or fix your custom footer so it can display both traditional WordPress widgets AND third-party assets.
There is pass url parameter control (Premier feature) but it does not sound like that is the functionality you are looking for. I’m confused by your question.
November 15, 2017 at 12:33 PM #55005jay5ParticipantThanks for the info Cici,
I know you can’t embed WP widgets in non WP sites which is why I was asking about some sort of HTML snippet I could add to my other website.
The URL parameters are actually exactly what I was looking for, just couldn’t find this info through docs.storelocatorplus.com. The links for all the Premier plugins just link back to the same page.
I just had to enable “Allow Address In URL” under General > User Interface then I created a simple HTML form to append the address parameter to the current dealer locator URL. Below is how it all works.
Go to http://www.kuat.store and scroll to the footer of the page and it is the field called “DEALER LOCATOR”. Just input an address or zip code and press GO. This submits the value of the input to our dealer locator page on WP with the address appended to the URL and shows the locations in that area.
Here is the code for the form in case anyone else needs it.
<form action=”Your_WP_SLP_Dealer_Locator_URL_Page” method=”get”>
<input type=”text” name=”address” placeholder=”DEALER LOCATOR”>
<input type=”submit” value=”Submit”>
</form>November 16, 2017 at 12:13 PM #55013CiciKeymasterOh, Ok, I misunderstood you. Thanks for the feedback. The docs site has become pretty large, might be time to delete or hide some old [osts that are not applicable. If you would like to join the Slack channel where the developer is available when he is not in coding , send an email to contact us. You will see the latest beta releases and things he is working on.
November 16, 2017 at 12:23 PM #55014CiciKeymasterKudos on your site btw. Its looking pretty awesome!
November 16, 2017 at 12:31 PM #55016CiciKeymasterPlus Lance is much more knowledgeable about all things in coding, WP and non -wordpress, software development, etc. he can talk the tech jargon part that is beyond my knowledge base. Again thanks for providing the snippet and feedback.
November 20, 2017 at 10:32 AM #55048jay5ParticipantNo worries Cici,
It can be hard to convey everything in a few sentences, especially when I wasn’t sure on the exact terms. 🙂
As for the site, thank you, it is coming along. We still quite a bit of work to do but we are getting closer. The dealer locator was something I was dreading but this plugin saved us a ton of time, especially with all the add-ons.
And thanks for the info on the Slack channel, I will send over an email today.
Cheers,
JayNovember 20, 2017 at 11:15 AM #55049CiciKeymasterAwesome! Hey, if you have a moment could you leave a quick review , even just a few words ? I will email you the link.
-
AuthorPosts
- The topic ‘SLP Search url control’ is closed to new replies.