Post by Satya - Safiramedia » Sat Jun 24, 2023 12:54 pm

i have problem when share a link my product or image on whatsapp not working. but the meta tittle and meta description work's normally.

sample of product on opencart 3.x product like this: https://safiramedia.com/headset-headpho ... afiramedia

it make me headache. i need your help
Last edited by Satya - Safiramedia on Sat Jun 24, 2023 1:20 pm, edited 1 time in total.

User avatar
New member

Posts

Joined
Tue Jun 15, 2021 10:56 am
Location - Indonesia

Post by Satya - Safiramedia » Sat Jun 24, 2023 1:11 pm

i just follow article like this :
Dir File catalog/controller/product/product.php

put this script:
$this->document->addMeta($product_info['meta_image'], $product_info['meta_title']);

putting script before:
$this->document->setImage($product_info['meta_image']);
next
Dir File controller/common/header.php

putting script after:
$data['keywords'] = $this->document->getKeywords();


put script like this:
$data['links'] = $this->document->getLinks();

// $data['thumb'] = $this->document->getImage();

// $data['price'] = $this->document->getPrice();

putting script after:
$data['styles'] = $this->document->getStyles();


putting this script:
$data['metas'] = $this->document->getMeta();
then, last
dir file template>common>header.twig

putting this script after:
<title>{{ title }}</title>

putting this script:
<base href="{{ base }}" />
{% if images %}
<meta name="image" content="{{ image }}" />
{% endif %}
{% if description %}
<meta name="description" content="{{ description }}" />
{% endif %}
{% if keywords %}
<meta name="keywords" content="{{ keywords }}" />
{% endif %}

putting script after :
<script src="catalog/view/javascript/common.js" type="text/javascript"></script>

put script like this :
{% for image in images %}
<meta property="{{ meta.image }}" content="{{ meta.image }}" />
{% endfor %}
{% for image in thumb %}
<meta property="{{ meta.image }}" content="{{ meta.thumb }}" />
{% endfor %}
{% for meta in metas %}
<meta property="{{ meta.keyword }}" content="{{ meta.value }}" />
{% endfor %}
{% for link in links %}
<link href="{{ link.href }}" rel="{{ link.rel }}" />
{% endfor %}

User avatar
New member

Posts

Joined
Tue Jun 15, 2021 10:56 am
Location - Indonesia

Post by SohBH » Sat Jun 24, 2023 6:42 pm

Your sharing code should be added here
catalog/view/theme/default/template/product/product.twig

View all extensions | Request custom work | Pricing | Contact Me


User avatar
Active Member

Posts

Joined
Mon Nov 02, 2020 12:01 am
Location - Malaysia

Post by Satya - Safiramedia » Sun Jun 25, 2023 6:55 pm

SohBH wrote:
Sat Jun 24, 2023 6:42 pm
Your sharing code should be added here
catalog/view/theme/default/template/product/product.twig
where the position code shoul i do putting? after bla bla bla... or before bla la la example.
And What code should i do putting in the dir file catalog/view/theme/default/template/product/product.twig?

User avatar
New member

Posts

Joined
Tue Jun 15, 2021 10:56 am
Location - Indonesia

Post by SohBH » Sun Jun 25, 2023 9:51 pm

It is up to you. You can place it under product reviews or having it as a floating button. Or consider get it done as paid work.

View all extensions | Request custom work | Pricing | Contact Me


User avatar
Active Member

Posts

Joined
Mon Nov 02, 2020 12:01 am
Location - Malaysia

Post by Satya - Safiramedia » Mon Jun 26, 2023 12:11 am

SohBH wrote:
Sun Jun 25, 2023 9:51 pm
It is up to you. You can place it under product reviews or having it as a floating button. Or consider get it done as paid work.
okeeyy brother... i will try it.. thanks for advice.. i will confirm at you after i do ur advice

User avatar
New member

Posts

Joined
Tue Jun 15, 2021 10:56 am
Location - Indonesia

Post by Satya - Safiramedia » Mon Jun 26, 2023 3:53 pm

SohBH wrote:
Sun Jun 25, 2023 9:51 pm
It is up to you. You can place it under product reviews or having it as a floating button. Or consider get it done as paid work.
heyy master i'm back, i was do your advice, okay picture was show on link share whatsapp. but why my picture logo has show.. I want the product image to show up master.

this example link from my device android :
Image

but when try open in my friend device iOS iPhone:
Image

my store logo image is 395px*160px
and product image original size is 800px*800px
cache image product is 500px*500px

is there something wrong with my image size? thank you big hug brother.

User avatar
New member

Posts

Joined
Tue Jun 15, 2021 10:56 am
Location - Indonesia

Post by SohBH » Mon Jun 26, 2023 5:00 pm

Open Graph meta tags are typically placed within the <head> section
Image should be under 300KB

View all extensions | Request custom work | Pricing | Contact Me


User avatar
Active Member

Posts

Joined
Mon Nov 02, 2020 12:01 am
Location - Malaysia

Post by Satya - Safiramedia » Tue Jun 27, 2023 12:27 am

SohBH wrote:
Mon Jun 26, 2023 5:00 pm
Open Graph meta tags are typically placed within the <head> section
Image should be under 300KB
yess i understand sir... my case now, size image was upload in the directory file image>common>logo(bla...bla..bla) is 17.12kb which height 97px, width : 97px
Image
my feeling is that the size, width, height are according to the standard as your suggestion master.
I asked again to you master, where it went wrong again? :'( :'( :'( :'( :'(
if i wanna checker meta link on google search, and i putting that link https://safiramedia.com/etalase-produk , a truth that i hope master.

User avatar
New member

Posts

Joined
Tue Jun 15, 2021 10:56 am
Location - Indonesia

Post by SohBH » Tue Jun 27, 2023 7:06 pm

Code: Select all

<body>
<!-- Open Graph / Facebook -->
<meta property="og:type" content="Website">
...
Need to move up to <head> section

View all extensions | Request custom work | Pricing | Contact Me


User avatar
Active Member

Posts

Joined
Mon Nov 02, 2020 12:01 am
Location - Malaysia

Post by Satya - Safiramedia » Tue Jun 27, 2023 11:54 pm

SohBH wrote:
Tue Jun 27, 2023 7:06 pm

Code: Select all

<body>
<!-- Open Graph / Facebook -->
<meta property="og:type" content="Website">
...
Need to move up to <head> section
already master. i put this script on <head> section:

<meta name="msapplication-TileImage" content="https://safiramedia.com/image/catalog/d ... hop-01.png">
<meta property="og:title" content="Headset Bando Headphone Sony MDR Q140">
<meta property="og:description" content="Sound Quality is really good. Basshead With Beautiful Sound. Fix Design, Durable Cable, Fashionable Style, Lightweight, Portable.">
<meta property="og:image:secure_url" content="https://safiramedia.com/image/catalog/d ... hop-01.png">
<meta property="og:image" itemprop="image" content="https://safiramedia.com/image/catalog/d ... hop-01.png">
<meta property="og:image:alt" content="Rp 65.000, Headset Bando Headphone Sony MDR Q140 | Safiramedia">
<meta property="og:type" content="article">
<meta property="og:locale" content="id_ID">
<meta property="og:locale:alternate" content="en_GB">
<meta property="ia:markup_url" content="{https://web.facebook.com/venomsat/posts ... tCPaeKKPrl}">
<meta property="ia:markup_url_dev" content="{https://web.facebook.com/venomsat/posts ... tCPaeKKPrl}">
<meta property="fb:pages" content="{111816388224284}">
<meta property="ia:rules_url" content="{https://safiramedia.com/headset-bando-h ... afiramedia}">
<meta property="ia:rules_url_dev" content="{https://safiramedia.com/headset-bando-h ... afiramedia}">
<meta property="og:url" content="https://safiramedia.com/headset-bando-h ... afiramedia">
<meta property="og:type" content="website">
<meta property="schema:type" content="website">
<meta property="og:image:width" content="256">
<meta property="og:image:height" content="256">
<meta property="og:url" content="https://safiramedia.com/katalog-produk/ ... afiramedia">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<!-- Primary Meta Tags -->
<title>Rp 65.000, Headset Bando Headphone Sony MDR Q140 | Safiramedia</title>
<meta name="title" content="Headset Bando Headphone Sony MDR Q140 | Safiramedia">
<meta name="description" content="Sound Quality is really good. Basshead With Beautiful Sound. Fix Design, Durable Cable, Fashionable Style, Lightweight, Portable.">
<meta property="og:image" itemprop="image" content="https://safiramedia.com/image/catalog/d ... hop-01.png">

<!-- Open Graph / Facebook -->
<meta property="og:type" content="Website">
<meta property="og:url" content="https://safiramedia.com/headset-bando-h ... afiramedia">
<meta property="og:title" content="Rp 65.000, Headset Bando Headphone Sony MDR Q140 | Safiramedia">
<meta property="og:description" content="Sound Quality is really good. Basshead With Beautiful Sound. Fix Design, Durable Cable, Fashionable Style, Lightweight, Portable.">
<meta property="og:image:secure_url" content="https://safiramedia.com/image/catalog/d ... hop-01.png">

<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="https://safiramedia.com/headset-bando-h ... afiramedia">
<meta property="twitter:title" content="Rp 65.000, Headset Bando Headphone Sony MDR Q140 | Safiramedia">
<meta property="twitter:description" content="Sound Quality is really good. Basshead With Beautiful Sound. Fix Design, Durable Cable, Fashionable Style, Lightweight, Portable.">
<meta property="twitter:image:secure_url" content="https://safiramedia.com/image/catalog/d ... hop-01.png">

<!-- Meta Tags Generated with https://metatags.io -->

<link rel="canonical" href="https://safiramedia.com/headset-bando-h ... firamedia/">
<link rel="canonical" href="https://safiramedia.com/katalog-produk/ ... firamedia/">

my problem now when share a link my image of product on Whatsapp. share metalink has shown image of product on Whatsapp is not working, but the meta title and meta description works normally at faceook share opengraph.

User avatar
New member

Posts

Joined
Tue Jun 15, 2021 10:56 am
Location - Indonesia

Post by SohBH » Wed Jun 28, 2023 5:44 pm

Check your <head> section again.

Code: Select all

<head>

<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Rp 20.000, Headset Headphone Handsfree JBL C100Si Mic Extra Bass Stereo Earphone | Safiramedia</title>
<base href="https://safiramedia.com/" />
<meta name="description" content="The Smartphone Experts Headsets mengkombinasi integrated headset technology dengan stereo sound isolating design untuk memblokir suara luar sementara menghasilkan suara jernih untuk telinga Anda. Headset JBL C100Si Mic Extra Bass Stereo, 3.5 mm, mikrofone" />
<meta name="keywords" content="Headset Headphone Handsfree JBL C100Si Mic Extra Bass Stereo Earphone, Retailer, Wholesaler, Supplier, Ecer, Grosir, Distributor, Buy, Trusted Seller, Seller Amanah, Online Store, Safiramedia Onlineshop, Sidoarjo Kota, Jawa Timur, Indonesia" />

<script src="catalog/view/javascript/jquery/jquery-2.1.1.min.js" type="text/javascript"></script>
<link href="catalog/view/javascript/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen" />
<script src="catalog/view/javascript/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<link href="catalog/view/javascript/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<link href="//fonts.googleapis.com/css?family=Open+Sans:400,400i,300,700" rel="stylesheet" type="text/css" />
<link href="catalog/view/theme/default/stylesheet/stylesheet.css" rel="stylesheet">
<link href="catalog/view/javascript/jquery/magnific/magnific-popup.css" type="text/css" rel="stylesheet" media="screen" />
<link href="catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.css" type="text/css" rel="stylesheet" media="screen" />
<script src="catalog/view/javascript/jquery/magnific/jquery.magnific-popup.min.js" type="text/javascript"></script>
<script src="catalog/view/javascript/jquery/datetimepicker/moment/moment.min.js" type="text/javascript"></script>
<script src="catalog/view/javascript/jquery/datetimepicker/moment/moment-with-locales.min.js" type="text/javascript"></script>
<script src="catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
<script src="catalog/view/javascript/common.js" type="text/javascript"></script>
<link href="https://safiramedia.com/headset-headphone-handsfree-jbl-c100si-mic-extra-bass-stereo-earphone-safiramedia" rel="canonical" />
<link href="https://safiramedia.com/image/catalog/Safiramedia-Icon.png" rel="icon" />
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-2NPK84MJ8C"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-2NPK84MJ8C');
</script>
</head>

View all extensions | Request custom work | Pricing | Contact Me


User avatar
Active Member

Posts

Joined
Mon Nov 02, 2020 12:01 am
Location - Malaysia

Post by Satya - Safiramedia » Wed Jun 28, 2023 9:47 pm

SohBH wrote:
Wed Jun 28, 2023 5:44 pm
Check your <head> section again.

Code: Select all

<head>

<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Rp 20.000, Headset Headphone Handsfree JBL C100Si Mic Extra Bass Stereo Earphone | Safiramedia</title>
<base href="https://safiramedia.com/" />
<meta name="description" content="The Smartphone Experts Headsets mengkombinasi integrated headset technology dengan stereo sound isolating design untuk memblokir suara luar sementara menghasilkan suara jernih untuk telinga Anda. Headset JBL C100Si Mic Extra Bass Stereo, 3.5 mm, mikrofone" />
<meta name="keywords" content="Headset Headphone Handsfree JBL C100Si Mic Extra Bass Stereo Earphone, Retailer, Wholesaler, Supplier, Ecer, Grosir, Distributor, Buy, Trusted Seller, Seller Amanah, Online Store, Safiramedia Onlineshop, Sidoarjo Kota, Jawa Timur, Indonesia" />

<script src="catalog/view/javascript/jquery/jquery-2.1.1.min.js" type="text/javascript"></script>
<link href="catalog/view/javascript/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen" />
<script src="catalog/view/javascript/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<link href="catalog/view/javascript/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<link href="//fonts.googleapis.com/css?family=Open+Sans:400,400i,300,700" rel="stylesheet" type="text/css" />
<link href="catalog/view/theme/default/stylesheet/stylesheet.css" rel="stylesheet">
<link href="catalog/view/javascript/jquery/magnific/magnific-popup.css" type="text/css" rel="stylesheet" media="screen" />
<link href="catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.css" type="text/css" rel="stylesheet" media="screen" />
<script src="catalog/view/javascript/jquery/magnific/jquery.magnific-popup.min.js" type="text/javascript"></script>
<script src="catalog/view/javascript/jquery/datetimepicker/moment/moment.min.js" type="text/javascript"></script>
<script src="catalog/view/javascript/jquery/datetimepicker/moment/moment-with-locales.min.js" type="text/javascript"></script>
<script src="catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
<script src="catalog/view/javascript/common.js" type="text/javascript"></script>
<link href="https://safiramedia.com/headset-headphone-handsfree-jbl-c100si-mic-extra-bass-stereo-earphone-safiramedia" rel="canonical" />
<link href="https://safiramedia.com/image/catalog/Safiramedia-Icon.png" rel="icon" />
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-2NPK84MJ8C"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-2NPK84MJ8C');
</script>
</head>
and is there any part that should be removed or edit in the script?

User avatar
New member

Posts

Joined
Tue Jun 15, 2021 10:56 am
Location - Indonesia

Post by Satya - Safiramedia » Thu Jun 29, 2023 5:51 pm

SohBH wrote:
Wed Jun 28, 2023 5:44 pm
Check your <head> section again.

Code: Select all

<head>

<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Rp 20.000, Headset Headphone Handsfree JBL C100Si Mic Extra Bass Stereo Earphone | Safiramedia</title>
<base href="https://safiramedia.com/" />
<meta name="description" content="The Smartphone Experts Headsets mengkombinasi integrated headset technology dengan stereo sound isolating design untuk memblokir suara luar sementara menghasilkan suara jernih untuk telinga Anda. Headset JBL C100Si Mic Extra Bass Stereo, 3.5 mm, mikrofone" />
<meta name="keywords" content="Headset Headphone Handsfree JBL C100Si Mic Extra Bass Stereo Earphone, Retailer, Wholesaler, Supplier, Ecer, Grosir, Distributor, Buy, Trusted Seller, Seller Amanah, Online Store, Safiramedia Onlineshop, Sidoarjo Kota, Jawa Timur, Indonesia" />

<script src="catalog/view/javascript/jquery/jquery-2.1.1.min.js" type="text/javascript"></script>
<link href="catalog/view/javascript/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen" />
<script src="catalog/view/javascript/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<link href="catalog/view/javascript/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<link href="//fonts.googleapis.com/css?family=Open+Sans:400,400i,300,700" rel="stylesheet" type="text/css" />
<link href="catalog/view/theme/default/stylesheet/stylesheet.css" rel="stylesheet">
<link href="catalog/view/javascript/jquery/magnific/magnific-popup.css" type="text/css" rel="stylesheet" media="screen" />
<link href="catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.css" type="text/css" rel="stylesheet" media="screen" />
<script src="catalog/view/javascript/jquery/magnific/jquery.magnific-popup.min.js" type="text/javascript"></script>
<script src="catalog/view/javascript/jquery/datetimepicker/moment/moment.min.js" type="text/javascript"></script>
<script src="catalog/view/javascript/jquery/datetimepicker/moment/moment-with-locales.min.js" type="text/javascript"></script>
<script src="catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
<script src="catalog/view/javascript/common.js" type="text/javascript"></script>
<link href="https://safiramedia.com/headset-headphone-handsfree-jbl-c100si-mic-extra-bass-stereo-earphone-safiramedia" rel="canonical" />
<link href="https://safiramedia.com/image/catalog/Safiramedia-Icon.png" rel="icon" />
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-2NPK84MJ8C"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-2NPK84MJ8C');
</script>
</head>
okayy master... thank you... but manually to put this script <meta property="og:image" itemprop="image" content="https://safiramedia.com/image/catalog/d ... hop-01.png"> or other words is statis not dynamic auto url.content

User avatar
New member

Posts

Joined
Tue Jun 15, 2021 10:56 am
Location - Indonesia

Post by SohBH » Thu Jun 29, 2023 6:11 pm

Due to the complexity of the task, I would recommend considering me to get it done as paid work.

View all extensions | Request custom work | Pricing | Contact Me


User avatar
Active Member

Posts

Joined
Mon Nov 02, 2020 12:01 am
Location - Malaysia

Post by Satya - Safiramedia » Thu Jun 29, 2023 6:33 pm

SohBH wrote:
Thu Jun 29, 2023 6:11 pm
Due to the complexity of the task, I would recommend considering me to get it done as paid work.
how much i paid master?

User avatar
New member

Posts

Joined
Tue Jun 15, 2021 10:56 am
Location - Indonesia

Post by SohBH » Thu Jun 29, 2023 7:13 pm

Hi
It is $50 USD for your requested task.
You can email me if you're ready to proceed.

View all extensions | Request custom work | Pricing | Contact Me


User avatar
Active Member

Posts

Joined
Mon Nov 02, 2020 12:01 am
Location - Malaysia

Post by Satya - Safiramedia » Sat Jul 08, 2023 1:56 pm

SohBH wrote:
Wed Jun 28, 2023 5:44 pm
Check your <head> section again.

Code: Select all

<head>

<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Rp 20.000, Headset Headphone Handsfree JBL C100Si Mic Extra Bass Stereo Earphone | Safiramedia</title>
<base href="https://safiramedia.com/" />
<meta name="description" content="The Smartphone Experts Headsets mengkombinasi integrated headset technology dengan stereo sound isolating design untuk memblokir suara luar sementara menghasilkan suara jernih untuk telinga Anda. Headset JBL C100Si Mic Extra Bass Stereo, 3.5 mm, mikrofone" />
<meta name="keywords" content="Headset Headphone Handsfree JBL C100Si Mic Extra Bass Stereo Earphone, Retailer, Wholesaler, Supplier, Ecer, Grosir, Distributor, Buy, Trusted Seller, Seller Amanah, Online Store, Safiramedia Onlineshop, Sidoarjo Kota, Jawa Timur, Indonesia" />

<script src="catalog/view/javascript/jquery/jquery-2.1.1.min.js" type="text/javascript"></script>
<link href="catalog/view/javascript/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen" />
<script src="catalog/view/javascript/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<link href="catalog/view/javascript/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<link href="//fonts.googleapis.com/css?family=Open+Sans:400,400i,300,700" rel="stylesheet" type="text/css" />
<link href="catalog/view/theme/default/stylesheet/stylesheet.css" rel="stylesheet">
<link href="catalog/view/javascript/jquery/magnific/magnific-popup.css" type="text/css" rel="stylesheet" media="screen" />
<link href="catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.css" type="text/css" rel="stylesheet" media="screen" />
<script src="catalog/view/javascript/jquery/magnific/jquery.magnific-popup.min.js" type="text/javascript"></script>
<script src="catalog/view/javascript/jquery/datetimepicker/moment/moment.min.js" type="text/javascript"></script>
<script src="catalog/view/javascript/jquery/datetimepicker/moment/moment-with-locales.min.js" type="text/javascript"></script>
<script src="catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
<script src="catalog/view/javascript/common.js" type="text/javascript"></script>
<link href="https://safiramedia.com/headset-headphone-handsfree-jbl-c100si-mic-extra-bass-stereo-earphone-safiramedia" rel="canonical" />
<link href="https://safiramedia.com/image/catalog/Safiramedia-Icon.png" rel="icon" />
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-2NPK84MJ8C"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-2NPK84MJ8C');
</script>
</head>
okay siirr now my problem is content=""

what is the correct script? in order to get a link image
i use this script below:
{% if image %}
<meta property="og:image" content="{{ product_info['image'] }}" />
{% endif %}

User avatar
New member

Posts

Joined
Tue Jun 15, 2021 10:56 am
Location - Indonesia

Post by Satya - Safiramedia » Sat Jul 08, 2023 2:24 pm

Satya - Safiramedia wrote:
Sat Jul 08, 2023 1:56 pm
SohBH wrote:
Wed Jun 28, 2023 5:44 pm
Check your <head> section again.

Code: Select all

<head>

<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Rp 20.000, Headset Headphone Handsfree JBL C100Si Mic Extra Bass Stereo Earphone | Safiramedia</title>
<base href="https://safiramedia.com/" />
<meta name="description" content="The Smartphone Experts Headsets mengkombinasi integrated headset technology dengan stereo sound isolating design untuk memblokir suara luar sementara menghasilkan suara jernih untuk telinga Anda. Headset JBL C100Si Mic Extra Bass Stereo, 3.5 mm, mikrofone" />
<meta name="keywords" content="Headset Headphone Handsfree JBL C100Si Mic Extra Bass Stereo Earphone, Retailer, Wholesaler, Supplier, Ecer, Grosir, Distributor, Buy, Trusted Seller, Seller Amanah, Online Store, Safiramedia Onlineshop, Sidoarjo Kota, Jawa Timur, Indonesia" />

<script src="catalog/view/javascript/jquery/jquery-2.1.1.min.js" type="text/javascript"></script>
<link href="catalog/view/javascript/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen" />
<script src="catalog/view/javascript/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<link href="catalog/view/javascript/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<link href="//fonts.googleapis.com/css?family=Open+Sans:400,400i,300,700" rel="stylesheet" type="text/css" />
<link href="catalog/view/theme/default/stylesheet/stylesheet.css" rel="stylesheet">
<link href="catalog/view/javascript/jquery/magnific/magnific-popup.css" type="text/css" rel="stylesheet" media="screen" />
<link href="catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.css" type="text/css" rel="stylesheet" media="screen" />
<script src="catalog/view/javascript/jquery/magnific/jquery.magnific-popup.min.js" type="text/javascript"></script>
<script src="catalog/view/javascript/jquery/datetimepicker/moment/moment.min.js" type="text/javascript"></script>
<script src="catalog/view/javascript/jquery/datetimepicker/moment/moment-with-locales.min.js" type="text/javascript"></script>
<script src="catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
<script src="catalog/view/javascript/common.js" type="text/javascript"></script>
<link href="https://safiramedia.com/headset-headphone-handsfree-jbl-c100si-mic-extra-bass-stereo-earphone-safiramedia" rel="canonical" />
<link href="https://safiramedia.com/image/catalog/Safiramedia-Icon.png" rel="icon" />
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-2NPK84MJ8C"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-2NPK84MJ8C');
</script>
</head>
okay siirr now my problem is content=""

what is the correct script? in order to get a link image
i use this script below:
{% if image %}
<meta property="og:image" content="{{ product_info['image'] }}" />
{% endif %}
NEW UPDATE !!
in my head case like that:
<meta property="og:image" content="<b>Notice</b>: Array to string conversion in <b>/home/u1495966/smoscart21/storage/cache/template/e3/e3e7b03d12fa73f931e03a7e90031b93d387fae679b23ab0e41c0efdcda51ad3.php</b> on line <b>64</b>Array" />

because i using script like this :
{% if image %}
<meta property="og:image" content="{{ image }}" />
{% endif %}

please help me

User avatar
New member

Posts

Joined
Tue Jun 15, 2021 10:56 am
Location - Indonesia

Post by SohBH » Sat Jul 08, 2023 3:55 pm

Hi, it requires making changes in both the controller and view files.
controller handles the logic and data processing.
view is responsible for presenting the data to the user.

View all extensions | Request custom work | Pricing | Contact Me


User avatar
Active Member

Posts

Joined
Mon Nov 02, 2020 12:01 am
Location - Malaysia
Who is online

Users browsing this forum: No registered users and 5 guests