I looked everywhere, but I couldn't find a solution, so I'll ask here;
Does anyone knows how to create a variable share link for each product; so I can have a share link to facebook? I know the like button, but I prefer the share link;
So what I want is to insert a link like this: http://www.facebook.com/sharer.php?u=$url&t=$title
As it says; I need to know the complete url of a product. Now in my quickcart; the url is based on the product name.
Basically; These are my questions: - Where can I put this link (in what file) - How can I generate the complete/correct url?
The URL without the http://www.yoursite.com/ prefix should be the variable $aData[sLinkName]. But it changes depending on the context (template block) it is used in. This won't help you though as you need a complete link, so you should put before it the full path to the QC webshop like this: http://www.yoursite.com/shop/$aData[sLinkName]
Do let me know how this works, because if not, other users may get confused.
Hi, so put it in both pages_default.tpl and products_default.tpl, not sure about specific locations but it must be LIST blocks. In case you can't figure it out, I'll have a look into the sources.
Thank you beholder, it works like a charm. I placed it at the product description at the pages_default.tpl and in de product div at products_default.tpl. Great! Thanks a lot.
beholder jak powinien wyglądać ten link? czy dokładnie tak: http://www.facebook.com/sharer.php?u=http://www.mojadomena.pl/$aData[sLinkName] kiedy wstawiam ten link w pliku product_default.tpl w divie content, ale jedyny efekt to pojawienie się treści linku na stronie produktu. Co poprawić? pozdrawiam G
Grzdak> if you can't speak EN, use http://translate.google.com , so I understand you better. Did you put the link to the correct place in pages_default.tpl or products_default.tpl?? It's the block PRODUCTS_LIST in pages_default.tpl or CONTAINER in products_default.tpl.
You can't do this in admin, you have to use FTP to directly edit files, of course.
Hi beholder, yes I do speak EN, sorry - just thouht you're polish :) don't now why..... The problem was not where to put it, but what exactly put there. from FB I received 2 parts of code: - javascript sdk - code with the link described above I know that code with link I shoud put to both files mentioned above, but where to put the JS part - just before link in both files?