Results 1 to 9 of 9
  1. #1
    Join Date
    Apr 2012
    Location
    Fossil, OR
    Posts
    35
    Plugin Contributions
    0

    Default Issue with Store Locator adding db location to store website urls

    We are presently using: v1.3.9h. Our Store Locator seems to be working just fine with one exception. The location of our database is added to the url for each store in the results making it impossible for users to follow the link to the store. *See example below.
    For instance, entering the zipcode 97006 in Oregon and selecting a 25 mile search range displays the correct results. All the contact info shows and the links to google maps work but the links to each store's website does not.
    http://www.natural-beef.com/locator/...mbsmarkets.net

    I have looked through the various .php pages in the Locator folder thinking I could figure it out...unfortnately I don't know what I am looking for.

    Thank you in advance for your assistance.
    Christine
    "I believe the most important single thing, beyond discipline and creativity is daring to dare." ~Maya Angelou

  2. #2
    Join Date
    Oct 2011
    Location
    AZ
    Posts
    384
    Plugin Contributions
    0

    Default Re: Issue with Store Locator adding db location to store website urls

    I didn't think ZC came with a store locator. Is it extra software you installed? If so, the answer would probably lie there in the installation configuration. The only plug-in I saw for ZC was "Where to Buy" and that was for version 1.3.8. I don't know if it's good for use on 1.3.9 but if that's what you're using there should be a support thread hidden here somewhere.

  3. #3
    Join Date
    Apr 2012
    Location
    Fossil, OR
    Posts
    35
    Plugin Contributions
    0

    Default Re: Issue with Store Locator adding db location to store website urls

    After investing several hours searching the forum for an answer to this question, my greatest fear was this would be the reply I received. You see, I inherited this project. I am unsure of what plug-ins or customizations have been made.

    I assume the issue is located somewhere in the locator.php or def.php pages in the way the data is fetched unfortunately, my knowledge of php is unequal to this challenge.

    The plan is to upgrade to v1.5.0 this Fall/Winter, once business has slowed. I do realize I will need this information before going through any upgrades. I am reading everything I can now in preparation.

    In the meantime, if someone would be so kind as to offer direction on how to figure out the current status of the site regarding plug-ins and customizations (especially in regards to this issue) I would be so very grateful.
    Christine
    "I believe the most important single thing, beyond discipline and creativity is daring to dare." ~Maya Angelou

  4. #4
    Join Date
    Oct 2011
    Location
    AZ
    Posts
    384
    Plugin Contributions
    0

    Default Re: Issue with Store Locator adding db location to store website urls

    If your predecessor didn't keep track of what add-ons were added then you are out of luck. I tried looking at the page source and just saw java.
    Whatever the addon is, it's in a folder (yourwebsite)/locator and the file is of course index.php, so you might try looking at all the files in that folder, starting with the index one. The author probably bragged about his work somewhere - a text file in that folder, or some commented out lines in the index.php or somewhere else that will have the copyright and title and you can google from there. The error looks pretty basic and shouldn't be too hard to spot.

  5. #5
    Join Date
    Oct 2011
    Location
    AZ
    Posts
    384
    Plugin Contributions
    0

    Default Re: Issue with Store Locator adding db location to store website urls

    Tried to edit my last reply but I was too slow and it wouldn't let me.
    The /locator/index.php file IS the culprit. There is some code up top that is saying that given URLs are relative and not absolute....
    My HTML is rustier than a 72 Datsun, but it looks like this:
    <a href="../"
    is your problem.
    That's my final guess unless I get to buy a vowel...

  6. #6
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Issue with Store Locator adding db location to store website urls

    joejoejoe is right. A relative URL is exactly what's causing the symptoms described in your first post.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Apr 2012
    Location
    Fossil, OR
    Posts
    35
    Plugin Contributions
    0

    Default Re: Issue with Store Locator adding db location to store website urls

    Hey, my first car was a 72 Datsun...yep, the rusted out gas tank was just one of its many issues. Rather like this website.

    So, I tried changing the suspect URL - or at least the one I believe is suspect
    HTML Code:
    base href="http://www.natural-beef.com/locator/" /
    but got nowhere. I tried everything from adding . and .. to /// to removing the bugger all together. Finally I figure I must be looking at the incorrect line of code???

    Then, as I toggled between making changes in the editor and refreshing the page I noticed that in the db results some of the store websites begin with www and some with http://. The latter present no issue. Simple fix, change all store websites to the latter format in the db. So I guess this is sorta fixed.

    However, I can't let go of whatever it is I am not getting in the relative URL...this is gonna bug me.
    Christine
    "I believe the most important single thing, beyond discipline and creativity is daring to dare." ~Maya Angelou

  8. #8
    Join Date
    Apr 2012
    Location
    Fossil, OR
    Posts
    35
    Plugin Contributions
    0

    Default Re: Issue with Store Locator adding db location to store website urls

    The site is using AZ Store Locator. Since I didn't set it up I don't know how well the install went, but it definitely gives the desired results.
    http://www.php4script.com/store-locator-script/
    Christine
    "I believe the most important single thing, beyond discipline and creativity is daring to dare." ~Maya Angelou

  9. #9
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Issue with Store Locator adding db location to store website urls

    I've never used the programs you're talking about nor read its documentation, but it doesn't surprise me that the problem is resolved by simply not using relative URLs. Including the http:// when entering the URLs in the database makes sense.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Store Locator
    By Mustang302 in forum General Questions
    Replies: 0
    Last Post: 7 Nov 2011, 10:23 PM
  2. url error with php http get (Store locator)
    By malissaf in forum General Questions
    Replies: 7
    Last Post: 6 Jan 2008, 02:37 PM
  3. store locator
    By etoile03 in forum General Questions
    Replies: 1
    Last Post: 15 Dec 2007, 01:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg