News:

AbanteCart v1.4.2 is released.

Main Menu

Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

URL available in HTML block?

Started by jimcooncat, March 08, 2019, 10:14:54 PM

Previous topic - Next topic

jimcooncat

I'd like to make a Facebook Share link on individual product pages, so visitors can share the product pages with their friends. Seems I could make a custom HTML block to show the link. Are there field codes available in the HTML editor that I can embed the current URL? Or another trick to accomplish something like the attachment here shows.


llegrand

Perhaps our free AddThis extension  would be easier for you
Here's the MarketPlace link

http://marketplace.abantecart.com/addthis?keyword=addthis&category_id=0
This is our manual of how it workds
https://abantecartextensions.com/docs/addthis

jimcooncat

Thank you. It looks like an easy implementation, but I'm hoping for something even simpler and without oversharing to fourth parties.

jimcooncat

Stumbled across this code for a Wordpress implementation. Would something similar work with AbanteCart? Are php variables accessible in this manner?

<a href="https://www.facebook.com/sharer/sharer.php?u=<?php the_permalink(); ?>" title="<?php the_title(); ?>" target="_blank">Share on Facebook</a>

jimcooncat


Basara

Quote from: jimcooncat on March 09, 2019, 05:45:12 AM
Stumbled across this code for a Wordpress implementation. Would something similar work with AbanteCart? Are php variables accessible in this manner?

<a href="https://www.facebook.com/sharer/sharer.php?u=<?php the_permalink(); ?>" title="<?php the_title(); ?>" target="_blank">Share on Facebook</a>

PHP vars are not accessible in HTML.

Forum Rules Code of conduct
AbanteCart.com 2010 -