| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Store Locator? | ||||
|
|
Thread Tools | Search this Thread |
#11
|
|||||||
|
|||||||
Re: Store Locator?
It only works with PHP4, sadly. If your host supports it, you can revert to PHP4 by adding a php.ini file in the locator directory with this line of code...
Code:
The project was abandoned, so we can only provide minimal (if any) support for it.
__________________
xcartmods.co.uk |
|||||||
#12
|
|||||||
|
|||||||
Re: Store Locator?
I'm having issues with this mod, too. It's really frustrating, as it's almost perfect for what we need.
Our host don't support PHP4, for security reasons, so I can't use PhilJ's suggested solution. However, the only problem I really can't workaround is that this error message is displayed when a search does not find any locations: "Warning: Invalid argument supplied for foreach() in /home/healthpl/public_html/locator/phpGoogleStoreLocator-javascripts.php on line 37"If I can find some way of stopping that message from appearing, then I can continue to use the mod - even if other parts (like category searches) are not working properly. This is the file that the error message refers to: PHP Code:
The section the error message is referring to starts at "//Add all the results icons". If anyone has any suggestions how I can change this to stop the error message coming up, or how I can change it to stop the error happening in the first place, I'd be grateful.
__________________
Four sites using X-Cart 5.4.x.x. Oh the joy |
|||||||
#13
|
|||||||
|
|||||||
Re: Store Locator?
I managed to answer my own question.
To stop the error coming up, I changed this line: PHP Code:
to this: PHP Code:
I don't know whether this is suppressing the error or solving the problem that was causing the error to come up but the end result is what I wanted, so I'm going to leave it at that. You can see the Store Locator in action at www.healthplus.co.uk/locator.php.
__________________
Four sites using X-Cart 5.4.x.x. Oh the joy |
|||||||
|
#14
|
|||||||||
|
|||||||||
Re: Store Locator?
Oh, this is so annoying ... !
I've got this to work exactly as I need - it's great! But I cannot edit the templates!? As soon as I edit something in a template the whole thing disappears!! So I "Undo" and put it back to what it should be and it's still not there!! Now, I realise it sounds like I'm doing something silly, but all I did was remove a line of text, or remove a <tr> from a table. So - I just commented something out instead, but that didn't work at all! If anyone has any idea what on earth is going on here, I'll be more than grateful!
__________________
4.2.3 X-Cart Gold BCSE Address Book | XCartMods QuickFind | X-RMA | X-Offers -------[installed]----------------------[installed]--------------[installed]----[installed]-- 5: in development |
|||||||||
#15
|
|||||||||
|
|||||||||
Re: Store Locator?
Have you tried clearing the cache? Some of the line you are deleting may actually be needed for the result output, or check in firbug if the result is there but off the page or something. Or you can use this - http://www.cflsystems.com/store-locator-mod-for-x-cart.html
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#16
|
|||||||||
|
|||||||||
Re: Store Locator?
I've tried clearing the cache and looked in Firebug, but there's just no content at all. I put everything back to as it was and it's still not working.
The only way I can get it to work afterwards is to re-upload everything! Steve ... I think you're right! I will go ahead and buy that. Would this work on 4.2.3? Also - are the little location markers customisable? (That's the clincher, lol)
__________________
4.2.3 X-Cart Gold BCSE Address Book | XCartMods QuickFind | X-RMA | X-Offers -------[installed]----------------------[installed]--------------[installed]----[installed]-- 5: in development |
|||||||||
#17
|
|||||||||
|
|||||||||
Re: Store Locator?
If something doesn't work I'll help you make it work on 4.2.x. You can assign your own images to marker locations yes
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#18
|
|||||||||
|
|||||||||
Re: Store Locator?
Legend! - Thanks
I'll sort that now - Excellent news on the marker - that makes me very happy!
__________________
4.2.3 X-Cart Gold BCSE Address Book | XCartMods QuickFind | X-RMA | X-Offers -------[installed]----------------------[installed]--------------[installed]----[installed]-- 5: in development |
|||||||||
|
|||
X-Cart forums © 2001-2020
|