X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Google maps & Changing free Shipping wording (https://forum.x-cart.com/showthread.php?t=74104)

Doherty 06-22-2016 01:46 AM

Google maps & Changing free Shipping wording
 
Hello xCarters,

two separate questions -thought i'd keep the forum clean by only posting in one thread.


First;
I'm trying to add google maps to our "Contact us page" using this website http://embedgooglemaps.com/en/

When i enter webmaster mode and copy the code generated from that website into "default/en/layout/main.center.center.tpl" it completely breaks the website. I assume i'm adding it into the wrong place?

Second;
The "Free Shipping" logo that displays next to anything that has free shipping - We want to change the wording so it reads something like "Free Shipping per our T+Cs" i'll work on the exact wording but where can i edit the text to do that?

Thanks

razortw 06-24-2016 11:54 AM

Re: Google maps & Changing free Shipping wording
 
Quote:

Originally Posted by Doherty
First;
I'm trying to add google maps to our "Contact us page" using this website http://embedgooglemaps.com/en/

When i enter webmaster mode and copy the code generated from that website into "default/en/layout/main.center.center.tpl" it completely breaks the website. I assume i'm adding it into the wrong place?

Hello there.
After you generate the Google Maps code, you should add a white space before and after each curly bracket. This seems to be a Flexy bug, but it won't work otherwise.

Quote:

Second;
The "Free Shipping" logo that displays next to anything that has free shipping - We want to change the wording so it reads something like "Free Shipping per our T+Cs" i'll work on the exact wording but where can i edit the text to do that?

Thanks
You can change this text in the 'Store setup' > 'Translations' section in your back end. This is where every piece of text in X-Cart can be changed actually.
Try searching for 'Free shipping'.
For more information, please check this article
* http://kb.x-cart.com/display/XDD/Managing+texts+labels+in+your+store

Doherty 06-27-2016 06:05 AM

Re: Google maps & Changing free Shipping wording
 
Quote:

Originally Posted by razortw
Hello there.
After you generate the Google Maps code, you should add a white space before and after each curly bracket. This seems to be a Flexy bug, but it won't work otherwise.


You can change this text in the 'Store setup' > 'Translations' section in your back end. This is where every piece of text in X-Cart can be changed actually.
Try searching for 'Free shipping'.
For more information, please check this article
* http://kb.x-cart.com/display/XDD/Managing+texts+labels+in+your+store


Been trying to figure this out of morning heres the code i played with:

Code:

<script src='https://maps.googleapis.com/maps/api/js?v=3.exp'>
</script>
<div style='overflow:hidden;height:440px;width:700px;'>
<div id='gmap_canvas' style='height:440px;width:700px;'>
</div>
<div><small><a href="http://embedgooglemaps.com">       
embed google maps                                                       
</a></small></div>
<div><small>
<a href="https://termsandcondiitionssample.com">terms and conditions sample</a></small>
</div>
<style>#gmap_canvas img
{max-width:none!important;background:none!important}
</style>
</div><script type='text/javascript'>function init_map()
{var myOptions =
{zoom:10,center:new google.maps.LatLng(52.237596,-0.9249144999999999),mapTypeId: google.maps.MapTypeId.ROADMAP};map = new google.maps.Map(document.getElementById('gmap_canvas'), myOptions);marker = new google.maps.Marker(
{map: map,position: new google.maps.LatLng(52.237596,-0.9249144999999999)}
);infowindow = new google.maps.InfoWindow(
{content:'<strong>Dynamic Office Solutions</strong><br>leo house, ross road, northampon<br>'}
);google.maps.event.addListener(marker, 'click', function()
{infowindow.open(map,marker);}
);infowindow.open(map,marker);}google.maps.event.addDomListener(window, 'load', init_map);
</script>


Still breaks the website...

however i did manage to find the translator and change the text, thanks for that!


All times are GMT -8. The time now is 11:51 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.