Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

How Do I Add A Google+ Badge In 4.5.0 ?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-24-2012, 04:09 PM
  puffaddering's Avatar 
puffaddering puffaddering is offline
 

Advanced Member
  
Join Date: Nov 2009
Location: Australia
Posts: 39
 

Question 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

Version 4.5.0 beta 1
http://MartialArtsSupply.com.au
Reply With Quote
  #2  
Old 04-24-2012, 05:31 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default 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,
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #3  
Old 04-24-2012, 05:59 PM
  puffaddering's Avatar 
puffaddering puffaddering is offline
 

Advanced Member
  
Join Date: Nov 2009
Location: Australia
Posts: 39
 

Default 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.
Reply With Quote
  #4  
Old 04-24-2012, 10:33 PM
  puffaddering's Avatar 
puffaddering puffaddering is offline
 

Advanced Member
  
Join Date: Nov 2009
Location: Australia
Posts: 39
 

Default Re: How Do I Add A Google+ Badge In 4.5.0 ?

Dose anyone have any ideas? Please help.
Reply With Quote
  #5  
Old 04-25-2012, 03:37 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default 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?
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #6  
Old 04-25-2012, 06:46 PM
  puffaddering's Avatar 
puffaddering puffaddering is offline
 

Advanced Member
  
Join Date: Nov 2009
Location: Australia
Posts: 39
 

Default 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.
Reply With Quote
  #7  
Old 04-25-2012, 09:36 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default 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.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #8  
Old 11-06-2013, 09:56 AM
 
fiberglass.supply fiberglass.supply is offline
 

Senior Member
  
Join Date: Dec 2012
Location: Florida
Posts: 171
 

Default Re: How Do I Add A Google+ Badge In 4.5.0 ?

Worked for me in /ideal_comfort/customer/left_bar.tpl
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:07 PM.

   

 
X-Cart forums © 2001-2020