X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   How Do I Add A Google+ Badge In 4.5.0 ? (https://forum.x-cart.com/showthread.php?t=63398)

puffaddering 04-24-2012 04:09 PM

How Do I Add A Google+ Badge In 4.5.0 ?
 
Hello

I have been trying to add the Google+ Badge for my Google+ Page to my website but it dose not show I put the code in the header for the badge and the other part of the code where I would like the badge to render which I have been trying to add to /common_files/modules/Manufacturers/menu_manufacturers.tpl

I also tried to add literal tags and still not luck, I done the same thing on my other website and it worked so not sure whats going on there any help I would be very thankful :D

Version 4.5.0 beta 1
http://MartialArtsSupply.com.au

totaltec 04-24-2012 05:31 PM

Re: How Do I Add A Google+ Badge In 4.5.0 ?
 
Any info you can provide will help. https://developers.google.com/+/plugins/badge/ looks like a simple little code snippet that needs to be added.

What template are you trying to add it to? Are you using Webmaster mode to identify the proper template? Are you using a custom skin? Can you provide a link to the page where it should display? (So we can inspect the source)

Ready to help,

puffaddering 04-24-2012 05:59 PM

Re: How Do I Add A Google+ Badge In 4.5.0 ?
 
Hello TotalTec
I am using Ideal Comfort template. I have tried to add it when in webmaster mode with no luck. I want the badge to go on the left hand side navigation just under gift certificates on all pages of our website.

puffaddering 04-24-2012 10:33 PM

Re: How Do I Add A Google+ Badge In 4.5.0 ?
 
Dose anyone have any ideas? Please help.

totaltec 04-25-2012 03:37 AM

Re: How Do I Add A Google+ Badge In 4.5.0 ?
 
Well lets see, I am going to assume that you are talking about the martial arts site in your signature.

I am not familiar with your template, but we can safely guess that the code needs to go in **Your-Skin-Directory**/customer/left_bar.tpl

Take a look at this template and see where the gift certificates are called:
<div class="gift-certificate">
<a href="giftcert.php"><img width="250" height="53" alt="Gift Certificates" src="./skin/ideal_comfort/images/custom/gc_link.png"></a><br><br>
</div>

Then below that create a new div:
<div class="google-plus">
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
<g:plus href="https://plus.google.com/{profileId}" rel="author"></g:plus>
</div>

Of course I don't know what your profile ID is.

When you try this what happens? If nothing displays, what happens when you replace the script with the words hello world? Does anything show up?

puffaddering 04-25-2012 06:46 PM

Re: How Do I Add A Google+ Badge In 4.5.0 ?
 
Still no luck I tried to add it again in **Your-Skin-Directory**/customer/left_bar.tpl then I tried typing Hello world in the same area of the code and still nothing shows on the website.

totaltec 04-25-2012 09:36 PM

Re: How Do I Add A Google+ Badge In 4.5.0 ?
 
Well that is actually a good thing. To ensure that they are not showing up, view source and use CTRL-F to search the source code of the page. They could be hiding behind something due to CSS.

Once you are certain that your changes are not affecting anything, then we can assume a couple of things: Either your templates are compiled and you need to refresh them by clearing the templates cache and/or running cleanup.php. Or you are simply editing the wrong template.

When you use webmaster mode, do you see the left_bar.tpl I mentioned? Can you search in the debugging console window for the words left_bar.tpl?

BTW: it would help if you updated your signature to include your xcart version.

fiberglass.supply 11-06-2013 09:56 AM

Re: How Do I Add A Google+ Badge In 4.5.0 ?
 
Worked for me in /ideal_comfort/customer/left_bar.tpl


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

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