Topic-icon LIKE BUTTON NOT SHOWING

Support Specialist
11 years 10 months ago #23838 by alzander
Replied by alzander on topic LIKE BUTTON NOT SHOWING
Muhammad,
Just made the assumption you were using Virtumart. Sorry about that.

As for OpenCart, I'm not sure what files you'd have to modify off-hand. We've never used that extension, and aren't sure how things are organized there. I'd highly recommend contacting the developer or looking into their template structure some. Once you find the template file for the product page, you'll simply need to add the following tag:
{SCOpenGraph image=http://site.com/link-to-image.jpg}
In the details page, there should be some way to get the image out of a variable for that tag. Again though, that'd be something to ask the developer of that extension. We don't know every extension out there, and it's impossible for us to learn them all.

I hope that helps, but if you run into issues once you start trying to implement it in the template file, we can gladly help further!

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 10 months ago #23866 by fb_514882570
Hi.. Its okay no problem.. I already contacted the developer and waited almost 1 day and then as usual, they replied:-

We cant give support for this 3rd party modules.

So i dont have any other solutions.. Can you please help me ? I really want the images of the product to appear in facebook when we click the LIKE button.. I am using the default template for the opencart and i have not modified anything.. From the structure of opencart, i already went to the template product page but not sure where to add the tag and can you assist me, what is the exact code i should put ? I have sent you the AceShop component to you, can you install it and try it? Maybe by doing such, you can easily find out how to make the images appear..

My site is:-
www.qisra.com

So does that mean, i should do like this:-

{SCOpenGraph image=http://qisra.com/link-to-image.jpg}

In the above code, it contains " link-to-image.jpg " what shall i put there ? Because i want each product page to show their own images when someone click the LIKE button.. Can you visit this site and let me know how the images is showing when you press the LIKE button ?

SAMPLE

Thank you so much.. I dont know how else to get this thing work, already trying this for few months but still cant figured it out..
The topic has been locked.
Support Specialist
11 years 10 months ago #23875 by alzander
Replied by alzander on topic LIKE BUTTON NOT SHOWING
Muhammad,
We can look into it, but to understand another extension can take some time.

I'd honestly contact the developer again and not mention that you're using a 3rd party extension. Simply ask:
"I'd like to know where I can modify the template file for a product layout. Also, can you let me know how I can get the link to the product image once I'm in that file?"

With that information, we can easily help you create the right {SCOpenGraph} tag to use. Basically, there should be a variable in the layout file for the product, let's say it will be called $productImageURL. With that, you'd simply need to add the following tag to the layout file (wherever it is):
{SCOpenGraph image=<?php echo $productImageURL; ?>}

Hope that makes sense. Again, if you don't get an answer from them, just let us know. We can look into it, but it would not be a high priority task for us as it's impossible to help understand the code of every 3rd party extension. They should be able to provide the answers above about their own extension though.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 10 months ago #23946 by fb_514882570
Hi.. Thank you for willing to help, at least you are not like any other developers, who easily and quickly will dismiss us when we asked for help.. We are asking help because we dont know how to solve the problem, otherwise surely already solved everything.. To be honest, opencart is one of the most easiest extension because the structure of the folders and files is very organised and easy to edit.. Earlier i email the developer as such:-

Hi.. I'd like to know where I can modify the template file for a product layout. Also, can you let me know how I can get the link to the product image once I'm in that file? This is not thirdparty extension, this is something necessity for every website.. I contacted the Sourcecost developer, he is willing to help but he told me to ask you which file to edit.. Also he says:-

With that information, we can easily help you create the right {SCOpenGraph} tag to use. Basically, there should be a variable in the layout file for the product, let's say it will be called $productImageURL.

Please help me, give me some hint or solution and i will ask the developer to help me.. Thank you very much..


And the way they reply me, is not good.. This is what they replied:-

Please look at this file for your question:
components\com_aceshop\opencart\catalog\view\theme\default\template\product\product.tpl

And please open new ticket for your issue.
Best Regards


I dont know for what i should open a new ticket again.. It does not make sense.. Anyway, i will attach the product.tpl file and you can take a look at it..

Product.tpl
The topic has been locked.
Support Specialist
11 years 10 months ago #23949 by alzander
Replied by alzander on topic LIKE BUTTON NOT SHOWING
Thanks for the file. That helps a lot. Please modify it as below.. around line 10, you'll see:
<?php if ($thumb) { ?>
Add the following line directly after that:
{SCOpenGraph image=<?php echo $thumb;?>}
Once added, try running one of your shop pages through the Facebook debug tool to see if the image is properly detected:
developers.facebook.com/tools/debug

Either way, leave that code there and let us know how it goes. If it doesn't work, it should be easy to fix from there!

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 10 months ago #23966 by fb_514882570
Thank you.. I want to ask, do i paste the code like this:-

File Attachment:


or do i paste it like this:-

File Attachment:


And for your information, i can always see the debug showing as such:-

File Attachment:


The og:image always showing my site Logo instead of the product images.. And take a look at my admin settings:-

File Attachment:


Is the settings in the backend correct ?
The topic has been locked.
Support Specialist
11 years 10 months ago #23975 by alzander
Replied by alzander on topic LIKE BUTTON NOT SHOWING
Either way of pasting that is correct, actually. As long as the page still works, it should be fine. I just checked one of your pages with the debug tool, and the image is coming through correctly now!
developers.facebook.com/tools/debug/og/o...tton-silk-qis11-j001

Please try checking again and see if it's working for you. From here though, things look right, which is a great start!

Thanks, and good luck,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 10 months ago #23977 by fb_514882570
When i use the debug tool from your reply above, the one with this link:-

developers.facebook.com/tools/debug/og/o...tton-silk-qis11-j001

I can only see the website logo.. But when i type in other product pages, i can see the product images.. So does this mean, it takes few days to make all the product show its images ? How long does it take usually for the product images to appear in facebook ?

Also, i have something to ask.. I noticed after few times trying the debug tool, and when i view the product (the url page i type in for debug), it shows some error like this:-

File Attachment:


But after few moments like 10 minutes or less, everything is back to normal again.. The weird error codes are gone.. Why is this happening?

I would like to thank you for all the efforts made to ensure the images showing properly in the facebook.. Earlier i tried some other products, it is showing perfectly in facebook.. Thank you so much and i appreciate your every help..
The topic has been locked.
Support Specialist
11 years 10 months ago #23979 by alzander
Replied by alzander on topic LIKE BUTTON NOT SHOWING
Muhammad,
I have no clue what's causing the weird characters on the page. Using the Debug Tool won't alter your page at all, so I think that's just a coincidence.

Can you check if you have the System - Cache plugin enabled, and if so, disable it. Also, try disabling caching altogether in the Global Configuration area of Joomla. If the problem 'sticks' for 10 minutes, it may be that something bad is being cached. That won't solve the problem, but may help mask it.

If Facebook is seeing those weird characters, it may explain why it's not detecting the image either.

Let us know if that helps, and no problem for the support. It's what we're here for. Thank you for subscribing and supporting us!
Alex
The topic has been locked.