I know I could edit
template/catalog/product/product.tpl
But I assumed there would be a place to insert the required Addthis username.
Cheers
jem
Hand Dryers
Bookstore Mod
QuickShop Module
Restricted Access - Compulsory Login
Template Override - Category Specific (vQmod)
Template Override - Brand Specific (vQmod)
How did you find out about us register question mod
Compulsory Login vQmod
Brands In Top Menu
zoom - Product Image - Auto on hover
That answer makes no sense, how on earth then is any tracking possible via the addthis control panel if it has no username to assign the stats to.
I've been adding the addthis plugin for 5 years on numerous websites. And the embed code has a username assigned.
But there appears to be no such facility within OC admin panel.
Karl
All I did for my website was go to the http://AddThis.com website, signed up and then got the code to put onto the website which has a tracking code in the script. Just a couple of things to keep in mind though...karlopencart wrote:Sorry Jem
That answer makes no sense, how on earth then is any tracking possible via the addthis control panel if it has no username to assign the stats to.
I've been adding the addthis plugin for 5 years on numerous websites. And the embed code has a username assigned.
But there appears to be no such facility within OC admin panel.
Karl
1. It is capable of tracking if the URL gets copied and pasted by someone but it will but a hash-tag code at the end so if you don't want that then make sure to change it to 'false'...
Code: Select all
<script type="text/javascript">var addthis_config = {"data_track_addressbar":false};</script>
Code: Select all
<script type="text/javascript" src="https://s7.addthis.com/js/250/addthis_widget.js#pubid=ThisIsTheTrackingCode"></script>
Code: Select all
<script type="text/javascript" src="//s7.addthis.com/js/250/addthis_widget.js#pubid=ThisIsTheTrackingCode"></script>
As you so rightly point out there is a #pubid=thisisyourtrackingcode within the addthis script but other than editing the OC \catalog\view\theme\default\template\product\product.tpl to include the code which of course I could do. But I can't find a logical place within the admin panel to add the "thisisthetrackingcode" or maybe it got left out of the build or maybe there is a vqmod that would add it.
During this shop build I was determine not to end up with numerous tpl edits.
Thanks Karl
Thanks that has answered the question fully, will just mod the product.tpl. Not really played with the vqmod stuff but will set aside some time to look at it.
For those of you reading this you will need to edit the following file
\catalog\view\theme\default\template\product\product.tpl
around line 223 or search for AddThis Button END
then replace the code
Code: Select all
<script type="text/javascript" src="//s7.addthis.com/js/250/addthis_widget.js"></script>
Code: Select all
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username= THIS WILL BE THE USER NAME"></script>
bigchilli - Thanks again
Karl
Not a problem. Really the vQmod shouldn't take you more than 5 or 10 minutes to pick up. It's quite easy and that's not an exaggeration.karlopencart wrote:Thanks that has answered the question fully, will just mod the product.tpl. Not really played with the vqmod stuff but will set aside some time to look at it.
Hey it's Sunday roast time in the UK. yum yum !!!
Thanks for the time to answer my ?, mostly I can find everything on the forum which is why I don't post that much but the addthis code had me stumped Because I knew I could hardcode the result. Which was the answer anyway.
So tomorrow it will be a 1.4.7 to 1.5.3.1 upgrade on 3 sites
Karl
Sorry for my earlier answer... i didn't get what you meant...karlopencart wrote:Ok I will set aside 5-10 mins tomorrow and give it go. Client requests permitting. But your name may well be taken in vain but I apologies in advance
Hey it's Sunday roast time in the UK. yum yum !!!
Thanks for the time to answer my ?, mostly I can find everything on the forum which is why I don't post that much but the addthis code had me stumped Because I knew I could hardcode the result. Which was the answer anyway.
So tomorrow it will be a 1.4.7 to 1.5.3.1 upgrade on 3 sites
Karl
try this vqmod... i have created it for you... they asre real simple...
NOTE... you will have to change "THIS WILL BE THE USER NAME" to your username
Cheers
Jem
Attachments
Add this tracking vqmod
Hand Dryers
Bookstore Mod
QuickShop Module
Restricted Access - Compulsory Login
Template Override - Category Specific (vQmod)
Template Override - Brand Specific (vQmod)
How did you find out about us register question mod
Compulsory Login vQmod
Brands In Top Menu
zoom - Product Image - Auto on hover
<file name="catalog/view/theme/*/template/product/product.tpl ">
Should be changed to
<file name="catalog/view/theme/*/template/product/product.tpl">
Jeff Severson
J.T.S. Design, Inc.
Haha, i must have made the rookie mistake.. lolsjseverson wrote:Just stumbled across this thread while searching for a way to update the AddThis plugin to use a specific account. The VQMod works great but I thought I should point out that on line 6, there is a trailing space after the file name that was preventing the original line from being replaced.
<file name="catalog/view/theme/*/template/product/product.tpl ">
Should be changed to
<file name="catalog/view/theme/*/template/product/product.tpl">
Hand Dryers
Bookstore Mod
QuickShop Module
Restricted Access - Compulsory Login
Template Override - Category Specific (vQmod)
Template Override - Brand Specific (vQmod)
How did you find out about us register question mod
Compulsory Login vQmod
Brands In Top Menu
zoom - Product Image - Auto on hover
Users browsing this forum: Semrush [Bot] and 202 guests