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

how are image url created?

Started by Sam_78, May 31, 2018, 06:46:01 PM

Previous topic - Next topic

Sam_78

Hello,

I am using AbanteCart 1.2.11 and while pasting url to Facebook or sharing it to twitter I don't get product images rest everything works fine.
on my website when I view page source I do see that <meta property="og:image" content="//www.websitename.com/image/thumbnails/18/e5/product_image_600x600_png_png-101976-280x280.png" />
and there is image on this path.
I think issue is with content as it starts with //www.. You think I need to add https before that? if yes then how?
another strange thing is when I share my website on 'whatsapp' it does pull the correct image so the issue is only with facebook and twitter
Note: I am using share_button extension that populates og tags and thats how it is working on 'whatsapp'
in code of seo_pack there is this line $fb_image = $root_image['thumb_url'];  so I believe he is using abanteCarts default thumb_url so can someone suggest me how to change abanteCarts default url so that path can be "www.websitename.com/image" or "https://www.websitename/image"
If you think there is different issue then let me know maybe I can try that
In my settings->store details I have store url as http://www.websitename.com/ and secure url as https://www.websitename.com/
Can someone help me with this?

Basara

Quote from: Sam_78 on May 31, 2018, 06:46:01 PM
Hello,

I am using AbanteCart 1.2.11 and while pasting url to Facebook or sharing it to twitter I don't get product images rest everything works fine.
on my website when I view page source I do see that <meta property="og:image" content="//www.websitename.com/image/thumbnails/18/e5/product_image_600x600_png_png-101976-280x280.png" />
and there is image on this path.
I think issue is with content as it starts with //www.. You think I need to add https before that? if yes then how?
No, It is not an issue. // this mean url is compatible with both http or https


Quote from: Sam_78 on May 31, 2018, 06:46:01 PM
another strange thing is when I share my website on 'whatsapp' it does pull the correct image so the issue is only with facebook and twitter
Facebook engine have own logic and parse pages to find images or images og:tag
Somethimes it glitch try this tool to debug https://developers.facebook.com/tools/debug/sharing/

Sam_78

Thanks for your reply
It loads default AbanteCart's no_image and showed this warning
Inferred Property - The 'og:image' property should be explicitly provided, even if a value can be inferred from other tags

CTGO.co


Basara

Quote from: SAMY on April 05, 2019, 04:01:28 AM
HI!

did you fixed that ???

regards

og:image is something related to facebook. There are several plugins in marketplace to improve facebook behaviour
http://marketplace.abantecart.com/index.php?rt=product/search&keyword=facebook&category_id=0

CTGO.co

Quote from: Basara on April 05, 2019, 07:08:19 AM
Quote from: SAMY on April 05, 2019, 04:01:28 AM
HI!

did you fixed that ???

regards

og:image is something related to facebook. There are several plugins in marketplace to improve facebook behaviour
http://marketplace.abantecart.com/index.php?rt=product/search&keyword=facebook&category_id=0


Hi Dear!

Any alternative solution please???

Basara

#6
Hello.
If you dont want to use plugins you can implement facebook tags yourself. Please follow facebook guides https://developers.facebook.com/docs/sharing/webmasters/images/

CTGO.co

Quote from: Basara on July 29, 2019, 01:01:57 AM
Hello.
If you dont want to use plugins you can implement facebook tags yourself. Please follow facebook guides https://developers.facebook.com/docs/sharing/webmasters/images/

Thank you for taking time and reply, I configured Facebook pixel on website but you know what?? it is really long story to resize each photo to be satisfying each social media website in the globe. I think there is should be a tool within Abantecart Application to resize each photo automatically. Is there any ideas about this future in the next upgrade version ???


Thanks
 

Basara

Hello.

All product images you see in AbanteCart storefront resized automatically to fit the page requested (listing, basket, product info page etc.)

CTGO.co

Quote from: Basara on August 05, 2019, 02:28:20 AM
Hello.

All product images you see in AbanteCart storefront resized automatically to fit the page requested (listing, basket, product info page etc.)

hi Sir!

Then can you tell me why the images not appearing for example on Facebook??

note:
I integrated manually Facebook pixel on my website.


Regards




Forum Rules Code of conduct
AbanteCart.com 2010 -