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

Link Bait on the Fly | SEO Marketing

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #21  
Old 11-05-2009, 07:30 AM
 
lash lash is offline
 

Senior Member
  
Join Date: Oct 2006
Posts: 138
 

Default Re: Link Bait on the Fly | SEO Marketing

Quote:
Originally Posted by pig@pp
I got this to work correctly on our site by changing the "Link to this" code that is to be placed in product.tpl

Replaced this.

<P><A class="LinkToThis" href="javascript:void(0)" onClick="window.open('http://www.yoursite.com/store/linktothis.php?linkto='+escape(window.location.hre f),'','width=800,height=400,resizeable=true')">Lin k to this</a><!-- { $product.tmbn_url } --></P>

With this.

<P><A class="LinkToThis" href="javascript:void(0)" onClick="window.open('http://www.yoursite.com/store/linktothis.php?linkto=http://www.yoursite.com/store/product.php?productid={$product.productid}&tmbn_ur l={$product.tmbn_url}&product={$product.product|ur lencode|default:'#no_string_value_found'}','','wid th=800,height=400,resizeable=true')">Link to this</a></P>

Are you running this on a 4.1.9? It looks good.
Anyone knows if this integrates with a mod rewrite, for example the CDSEO?
With so many bloggers out there this is a pretty neat function that more ppl should use. This contributed code needs to get more attention..
__________________
4.1.9
www.lash.se
Reply With Quote
  #22  
Old 11-09-2009, 05:35 AM
 
lash lash is offline
 

Senior Member
  
Join Date: Oct 2006
Posts: 138
 

Default Re: Link Bait on the Fly | SEO Marketing

Ok, I have played around a bit with this mod.

So far I don't get the product picture to display in the pop up window like
pig@pp manage to on his site. I used his code but so far no picture.

Also the links is not rewritten, I don't get the clean URLs, but it works. I have CDSEO mod.

I also noticed that when clicking on a product link in the pop up window I get to the product page for that product on my site, but the size of my site is the same as the pop up window and you cannot open it any bigger. Of course this is just for me. I assume it is cause it is not opened in a new window. I see it work nicely for pig@pp. I might have some more altering to do.

But if anyone has some advice or a complete solution could perhaps post one here for others to use.
__________________
4.1.9
www.lash.se
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 07:16 PM.

   

 
X-Cart forums © 2001-2020