| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Facebook & Twitter Friendly XC 4.5.5 | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Facebook & Twitter Friendly XC 4.5.5
Just wanted to share with everyone the custom code we used on our XC 4.5.5 site to integrate Facebook Open Graph and Twitter Cards for mostly every page.
Let us know if you have questions or suggestions! 9-10-2014: Added fix for categories, php pages, static pages, and manufacturer pages. Also cleaned up coding. 10-27-2014: Added compatibility for special offers module pages Code:
Note that for Code:
AFTER around line 115: Code:
AND AFTER around line 150: Code:
INPUT: Code:
Be sure to add twitter bot to your robots.txt file: Code:
ALSO: This code becomes a little bit tricky if using CDSEO Pro, as the meta title,descriptions,keywords are all from CDSEO and will have to be assigned to a variable in php. If you'd like to see this work (we have ours working) PM me.
__________________
Marcello Canitano New Site: X-Cart v4.5.5 GOLD X-Cart Mobile v1.4.3 X-Payments v1.0.6 CDSEO Pro v2 Total Server Solutions xCDN www.silverhorseracing.com |
|||||||||
#2
|
|||||||||
|
|||||||||
Re: Facebook & Twitter Friendly XC 4.5.5
Very nice of you to share this. Its a hole in my knowledge, I appreciate it.
__________________
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. |
|||||||||
#3
|
|||||||
|
|||||||
Re: Facebook & Twitter Friendly XC 4.5.5
Quote:
Will it work on 4.6.1 Platinum?
__________________
X-cart Platinum 4.6.1 Reboot template |
|||||||
#4
|
|||||||||
|
|||||||||
Re: Facebook & Twitter Friendly XC 4.5.5
Quote:
I have not tested it, but I don't see there being any major issues using this on 4.6.1 since it is all meta tags. The only problem you may have is finding the code in /include/templater/plugins/func.get_title.php.
__________________
Marcello Canitano New Site: X-Cart v4.5.5 GOLD X-Cart Mobile v1.4.3 X-Payments v1.0.6 CDSEO Pro v2 Total Server Solutions xCDN www.silverhorseracing.com |
|||||||||
#5
|
|||||||||
|
|||||||||
Re: Facebook & Twitter Friendly XC 4.5.5
Edited first post. func.get_title.php needs the smarty variable assigned in two sections (was not passing title variable to smarty with static pages, now works)
__________________
Marcello Canitano New Site: X-Cart v4.5.5 GOLD X-Cart Mobile v1.4.3 X-Payments v1.0.6 CDSEO Pro v2 Total Server Solutions xCDN www.silverhorseracing.com |
|||||||||
#6
|
|||||||||
|
|||||||||
Re: Facebook & Twitter Friendly XC 4.5.5
Edited first post again. The only change here is the coding in smarty tpl.
9-10-2014: Category, php, static, and manufacturer pages now work as they should, and the code has been cleaned up 10-15-2014: Manufacturer page images now work correctly
__________________
Marcello Canitano New Site: X-Cart v4.5.5 GOLD X-Cart Mobile v1.4.3 X-Payments v1.0.6 CDSEO Pro v2 Total Server Solutions xCDN www.silverhorseracing.com |
|||||||||
#7
|
|||||||||
|
|||||||||
Re: Facebook & Twitter Friendly XC 4.5.5
Added Special Offers compatibility
(i.e. if posting a link like: www.example.com/offers.php?mode=offer&offerid=31)
__________________
Marcello Canitano New Site: X-Cart v4.5.5 GOLD X-Cart Mobile v1.4.3 X-Payments v1.0.6 CDSEO Pro v2 Total Server Solutions xCDN www.silverhorseracing.com |
|||||||||
#8
|
|||||||||
|
|||||||||
Re: Facebook & Twitter Friendly XC 4.5.5
Any update on this for 4.7.x branch? With and without CDSEO Pro?
Figured I'd ask before I play with it, as it might save some time.
__________________
Chris Tindall x-cart 4.7.5 Gold Plus www.theweedpatchstore.com AlteredCart: On-Sale, One Page Checkout, Checkout One Payments (although that's not working yet) BCSE: Back in stock Notify, Checkbox Radio Mod, Upselling Links SMACK: CDSEO Pro, Product Map X-Cart: Gold+, Mobile (still trying to get working: Gahela Support Suite) |
|||||||||
|
|||
X-Cart forums © 2001-2020
|