File tree Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Original file line number Diff line number Diff line change 29
29
<meta property =" og:url" content =" { $urls .current_url} " />
30
30
<meta property =" og:site_name" content =" { $shop .name} " />
31
31
32
- { if isset($product ) && $page .page_name === ' product' }
33
- { if $product .images|count > 0}
34
- { foreach from= $product .images item= p_img name= " p_img_list" }
35
- <meta property =" og:image" content =" { $p_img .large.url} " />
36
- { /foreach }
32
+ { if isset($product ) && $page .page_name == ' product' }
33
+ <meta property =" og:type" content =" product" />
34
+ { if $product .images|count > 0}
35
+ { foreach from= $product .images item= p_img name= " p_img_list" }
36
+ <meta property =" og:image" content =" { $p_img .large.url} " />
37
+ { /foreach }
38
+ <meta property =" og:image:height" content =" { $p_img .large.height} " />
39
+ <meta property =" og:image:width" content =" { $p_img .large.width} " />
40
+
41
+ { /if }
42
+ { if $product .show_price}
43
+ <meta property =" product:price:amount" content =" { $product .price_amount} " />
44
+ <meta property =" product:price:currency" content =" { $currency .iso_code} " />
45
+ { if $product .has_discount}
46
+ <meta property =" product:price:standard_amount" content =" { $product .regular_price_amount} " />
37
47
{ /if }
48
+ { /if }
49
+ { if $product_manufacturer -> name }
50
+ <meta property =" product:brand" content =" { $product_manufacturer -> name |escape :' html' :' UTF-8' } " />
51
+ { /if }
52
+ <meta property =" og:availability" content =" { if $product .quantity_all_versions > 0 || $product .allow_oosp > 0} instock{ else } out of stock{ /if } " />
38
53
{ elseif $page .page_name === ' category' && isset($category ) && $category .image.large.url}
39
54
<meta property =" og:image" content =" { $category .image.large.url} " />
40
55
{ else }
You can’t perform that action at this time.
0 commit comments