[Skip to main content](#vessel-content)

#   Facebook Pixel Not Adding Products Due To Missing Microdata

##

- **[dklbwf](/forum/user/2878-dklbwf "View dklbwf's Profile")**
- [![dklbwf's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2878-dklbwf "View dklbwf's Profile") Topic Author
- [ Offline](/forum/user/2878-dklbwf)

Less More

- Posts: 130
- Thank you received: 6
-
-

2 years 3 months ago [\#362684](#362684) by [dklbwf](/forum/user/2878-dklbwf "View dklbwf's Profile")  *[Facebook Pixel Not Adding Products Due To Missing Microdata](/forum/26-product-category-display/908511-facebook-pixel-not-adding-products-due-to-missing-microdata#362684 "-- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.1.2 -- PHP version -- : 8  Hello,  I am wanting to automate how products are added to Facebook catalog using the Facebook pixel which will add products based off Microdata. I am getting errors that ID, availability &amp; price are missing and I'm just not sure what I'm missing or what I need to to tweak on the backend to make sure all is correct so that the pixel can see all the needed microdata.  Here is the error for one of the product pages I tested using Facebook Microdata Debug Tool:")* was created by *[dklbwf](/forum/user/2878-dklbwf "View dklbwf's Profile")*

-- HikaShop version -- : 5.1.0
-- Joomla version -- : 5.1.2
-- PHP version -- : 8

Hello,

I am wanting to automate how products are added to Facebook catalog using the Facebook pixel which will add products based off Microdata. I am getting errors that ID, availability &amp; price are missing and I'm just not sure what I'm missing or what I need to to tweak on the backend to make sure all is correct so that the pixel can see all the needed microdata.

Here is the error for one of the product pages I tested using Facebook Microdata Debug Tool:
[ ![Screenshot2024-08-14093742.png](/forum/attachment/59619) ](/forum/attachment/59619 "...8-14093742.png")

- [ ![Screenshot2024-08-14093742.png](/forum/attachment/59619) ](/forum/attachment/59619 "...8-14093742.png") [ ](/forum/attachment/59619?download=1 "...8-14093742.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDg1MTEtZmFjZWJvb2stcGl4ZWwtbm90LWFkZGluZy1wcm9kdWN0cy1kdWUtdG8tbWlzc2luZy1taWNyb2RhdGE/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

2 years 3 months ago [\#362688](#362688) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Facebook Pixel Not Adding Products Due To Missing Microdata](/forum/26-product-category-display/908511-facebook-pixel-not-adding-products-due-to-missing-microdata#362688 "-- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.1.2 -- PHP version -- : 8  Hello,  I am wanting to automate how products are added to Facebook catalog using the Facebook pixel which will add products based off Microdata. I am getting errors that ID, availability &amp; price are missing and I'm just not sure what I'm missing or what I need to to tweak on the backend to make sure all is correct so that the pixel can see all the needed microdata.  Here is the error for one of the product pages I tested using Facebook Microdata Debug Tool:")*

Hi,

The issue you have is that you're missing the microdata in the product view files.
It seems that the product page layout view files on your website have been customized based on an old version of HikaShop which doesn't include the schema.org tags.
For example, if you edit the view file product / show_default via the menu Display&gt;Views, you normally have this line of code which adds the id : Code:

&lt;meta itemprop="productID" content="&lt;?php echo $this-&gt;element-&gt;product_code; ?&gt;"&gt;

so normally, Facebook shouldn't complain about it missing. However, I can see that this meta tag is not on your product details pages, so I'm assuming it is due to a previous customization.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDg1MTEtZmFjZWJvb2stcGl4ZWwtbm90LWFkZGluZy1wcm9kdWN0cy1kdWUtdG8tbWlzc2luZy1taWNyb2RhdGE/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[dklbwf](/forum/user/2878-dklbwf "View dklbwf's Profile")**
- [![dklbwf's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2878-dklbwf "View dklbwf's Profile") Topic Author
- [ Offline](/forum/user/2878-dklbwf)

Less More

- Posts: 130
- Thank you received: 6
-
-

2 years 3 months ago [\#362689](#362689) by [dklbwf](/forum/user/2878-dklbwf "View dklbwf's Profile")  Replied by *[dklbwf](/forum/user/2878-dklbwf "View dklbwf's Profile")* on topic *[Facebook Pixel Not Adding Products Due To Missing Microdata](/forum/26-product-category-display/908511-facebook-pixel-not-adding-products-due-to-missing-microdata#362689 "-- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.1.2 -- PHP version -- : 8  Hello,  I am wanting to automate how products are added to Facebook catalog using the Facebook pixel which will add products based off Microdata. I am getting errors that ID, availability &amp; price are missing and I'm just not sure what I'm missing or what I need to to tweak on the backend to make sure all is correct so that the pixel can see all the needed microdata.  Here is the error for one of the product pages I tested using Facebook Microdata Debug Tool:")*

Thanks so much, I added some customization due to the default layout not looking good. I have removed the customization from that php file and cleared server cache but still getting same errors in microdata checker tool.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDg1MTEtZmFjZWJvb2stcGl4ZWwtbm90LWFkZGluZy1wcm9kdWN0cy1kdWUtdG8tbWlzc2luZy1taWNyb2RhdGE/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

2 years 3 months ago [\#362690](#362690) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Facebook Pixel Not Adding Products Due To Missing Microdata](/forum/26-product-category-display/908511-facebook-pixel-not-adding-products-due-to-missing-microdata#362690 "-- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.1.2 -- PHP version -- : 8  Hello,  I am wanting to automate how products are added to Facebook catalog using the Facebook pixel which will add products based off Microdata. I am getting errors that ID, availability &amp; price are missing and I'm just not sure what I'm missing or what I need to to tweak on the backend to make sure all is correct so that the pixel can see all the needed microdata.  Here is the error for one of the product pages I tested using Facebook Microdata Debug Tool:")*

Hi,

I still don't see the meta tag with productID in the HTML of a product page.
Can you check the code of the product / show_default view file ? It should have the line I mentioned in my previous message.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDg1MTEtZmFjZWJvb2stcGl4ZWwtbm90LWFkZGluZy1wcm9kdWN0cy1kdWUtdG8tbWlzc2luZy1taWNyb2RhdGE/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[dklbwf](/forum/user/2878-dklbwf "View dklbwf's Profile")**
- [![dklbwf's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2878-dklbwf "View dklbwf's Profile") Topic Author
- [ Offline](/forum/user/2878-dklbwf)

Less More

- Posts: 130
- Thank you received: 6
-
-

2 years 3 months ago [\#362699](#362699) by [dklbwf](/forum/user/2878-dklbwf "View dklbwf's Profile")  Replied by *[dklbwf](/forum/user/2878-dklbwf "View dklbwf's Profile")* on topic *[Facebook Pixel Not Adding Products Due To Missing Microdata](/forum/26-product-category-display/908511-facebook-pixel-not-adding-products-due-to-missing-microdata#362699 "-- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.1.2 -- PHP version -- : 8  Hello,  I am wanting to automate how products are added to Facebook catalog using the Facebook pixel which will add products based off Microdata. I am getting errors that ID, availability &amp; price are missing and I'm just not sure what I'm missing or what I need to to tweak on the backend to make sure all is correct so that the pixel can see all the needed microdata.  Here is the error for one of the product pages I tested using Facebook Microdata Debug Tool:")*

After clicking the remove customization button do I need to reinstall Hikashop to make sure this file has the latest code that includes the meta tag or does the meta tag have to be added manually no matter what? Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDg1MTEtZmFjZWJvb2stcGl4ZWwtbm90LWFkZGluZy1wcm9kdWN0cy1kdWUtdG8tbWlzc2luZy1taWNyb2RhdGE/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

2 years 3 months ago [\#362703](#362703) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Facebook Pixel Not Adding Products Due To Missing Microdata](/forum/26-product-category-display/908511-facebook-pixel-not-adding-products-due-to-missing-microdata#362703 "-- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.1.2 -- PHP version -- : 8  Hello,  I am wanting to automate how products are added to Facebook catalog using the Facebook pixel which will add products based off Microdata. I am getting errors that ID, availability &amp; price are missing and I'm just not sure what I'm missing or what I need to to tweak on the backend to make sure all is correct so that the pixel can see all the needed microdata.  Here is the error for one of the product pages I tested using Facebook Microdata Debug Tool:")*

Hi,

No, you don't need to reinstall HikaShop. You'll have the latest code with this line once you remove the customization. You can always recustomize the view after it.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDg1MTEtZmFjZWJvb2stcGl4ZWwtbm90LWFkZGluZy1wcm9kdWN0cy1kdWUtdG8tbWlzc2luZy1taWNyb2RhdGE/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[dklbwf](/forum/user/2878-dklbwf "View dklbwf's Profile")**
- [![dklbwf's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2878-dklbwf "View dklbwf's Profile") Topic Author
- [ Offline](/forum/user/2878-dklbwf)

Less More

- Posts: 130
- Thank you received: 6
-
-

2 years 3 months ago [\#362711](#362711) by [dklbwf](/forum/user/2878-dklbwf "View dklbwf's Profile")  Replied by *[dklbwf](/forum/user/2878-dklbwf "View dklbwf's Profile")* on topic *[Facebook Pixel Not Adding Products Due To Missing Microdata](/forum/26-product-category-display/908511-facebook-pixel-not-adding-products-due-to-missing-microdata#362711 "-- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.1.2 -- PHP version -- : 8  Hello,  I am wanting to automate how products are added to Facebook catalog using the Facebook pixel which will add products based off Microdata. I am getting errors that ID, availability &amp; price are missing and I'm just not sure what I'm missing or what I need to to tweak on the backend to make sure all is correct so that the pixel can see all the needed microdata.  Here is the error for one of the product pages I tested using Facebook Microdata Debug Tool:")*

This is what is showing in the show_default.php page after removing customization
Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 5.1.0 * @author hikashop.com * @copyright (C) 2010-2024 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?&gt;&lt;?php $form = ',0'; if(!$this-&gt;config-&gt;get('ajax_add_to_cart', 1)) { $form = ',\'hikashop_product_form\''; } ?&gt; &lt;div id="hikashop_product_top_part" class="hikashop_product_top_part"&gt; &lt;!-- TOP BEGIN EXTRA DATA --&gt; &lt;?php if(!empty($this-&gt;element-&gt;extraData-&gt;topBegin)) { echo implode("\r\n",$this-&gt;element-&gt;extraData-&gt;topBegin); } ?&gt; &lt;!-- EO TOP BEGIN EXTRA DATA --&gt; &lt;h1&gt; &lt;!-- NAME --&gt; &lt;span id="hikashop_product_name_main" class="hikashop_product_name_main" itemprop="name"&gt;&lt;?php if(hikashop_getCID('product_id') != $this-&gt;element-&gt;product_id &amp;&amp; isset($this-&gt;element-&gt;main-&gt;product_name)) echo $this-&gt;element-&gt;main-&gt;product_name; else echo $this-&gt;element-&gt;product_name; ?&gt;&lt;/span&gt; &lt;!-- EO NAME --&gt; &lt;!-- CODE --&gt; &lt;?php if ($this-&gt;config-&gt;get('show_code')) { ?&gt; &lt;span id="hikashop_product_code_main" class="hikashop_product_code_main"&gt;&lt;?php echo $this-&gt;element-&gt;product_code; ?&gt;&lt;/span&gt; &lt;?php } ?&gt; &lt;!-- EO CODE --&gt; &lt;meta itemprop="sku" content="&lt;?php echo $this-&gt;element-&gt;product_code; ?&gt;"&gt; &lt;meta itemprop="productID" content="&lt;?php echo $this-&gt;element-&gt;product_code; ?&gt;"&gt; &lt;/h1&gt; &lt;!-- TOP END EXTRA DATA --&gt; &lt;?php if(!empty($this-&gt;element-&gt;extraData-&gt;topEnd)) { echo implode("\r\n", $this-&gt;element-&gt;extraData-&gt;topEnd); } ?&gt; &lt;!-- EO TOP END EXTRA DATA --&gt; &lt;!-- SOCIAL NETWORKS --&gt; &lt;?php $this-&gt;setLayout('show_block_social'); echo $this-&gt;loadTemplate(); ?&gt; &lt;!-- EO SOCIAL NETWORKS --&gt; &lt;/div&gt; &lt;div class="hk-row-fluid"&gt; &lt;div id="hikashop_product_left_part" class="hikashop_product_left_part hkc-md-6"&gt; &lt;!-- LEFT BEGIN EXTRA DATA --&gt; &lt;?php if(!empty($this-&gt;element-&gt;extraData-&gt;leftBegin)) { echo implode("\r\n",$this-&gt;element-&gt;extraData-&gt;leftBegin); } ?&gt; &lt;!-- EO LEFT BEGIN EXTRA DATA --&gt; &lt;!-- IMAGE --&gt; &lt;?php $this-&gt;row =&amp; $this-&gt;element; $this-&gt;setLayout('show_block_img'); echo $this-&gt;loadTemplate(); ?&gt; &lt;!-- EO IMAGE --&gt; &lt;!-- LEFT END EXTRA DATA --&gt; &lt;?php if(!empty($this-&gt;element-&gt;extraData-&gt;leftEnd)) { echo implode("\r\n",$this-&gt;element-&gt;extraData-&gt;leftEnd); } ?&gt; &lt;!-- EO LEFT END EXTRA DATA --&gt; &lt;/div&gt; &lt;div id="hikashop_product_right_part" class="hikashop_product_right_part hkc-md-6"&gt; &lt;!-- RIGHT BEGIN EXTRA DATA --&gt; &lt;?php if(!empty($this-&gt;element-&gt;extraData-&gt;rightBegin)) { echo implode("\r\n",$this-&gt;element-&gt;extraData-&gt;rightBegin); } ?&gt; &lt;!-- EO RIGHT BEGIN EXTRA DATA --&gt; &lt;!-- VOTE --&gt; &lt;div id="hikashop_product_vote_mini" class="hikashop_product_vote_mini"&gt;&lt;?php if($this-&gt;params-&gt;get('show_vote_product')) { $js = ''; $this-&gt;params-&gt;set('vote_type', 'product'); $this-&gt;params-&gt;set('vote_ref_id', isset($this-&gt;element-&gt;main) ? (int)$this-&gt;element-&gt;main-&gt;product_id : (int)$this-&gt;element-&gt;product_id ); echo hikashop_getLayout('vote', 'mini', $this-&gt;params, $js); } ?&gt;&lt;/div&gt; &lt;!-- EO VOTE --&gt; &lt;!-- PRICE --&gt; &lt;?php $itemprop_offer = 'itemprop="offers" itemscope itemtype="https://schema.org/Offer"'; ?&gt; &lt;span id="hikashop_product_price_main" class="hikashop_product_price_main" &lt;?php echo $itemprop_offer; ?&gt;&gt; &lt;?php $main =&amp; $this-&gt;element; if(!empty($this-&gt;element-&gt;main)) $main =&amp; $this-&gt;element-&gt;main; if(!empty($main-&gt;product_condition) &amp;&amp; !empty($this-&gt;element-&gt;prices)) { ?&gt; &lt;meta itemprop="itemCondition" itemtype="https://schema.org/OfferItemCondition" content="https://schema.org/&lt;?php echo $main-&gt;product_condition; ?&gt;" /&gt; &lt;?php } if($this-&gt;params-&gt;get('show_price') &amp;&amp; (empty($this-&gt;displayVariants['prices']) &#124;&#124; $this-&gt;params-&gt;get('characteristic_display') != 'list')) { $this-&gt;row =&amp; $this-&gt;element; $this-&gt;setLayout('listing_price'); echo $this-&gt;loadTemplate(); $price = 0; if (!empty($this-&gt;element-&gt;prices)) { $price = $this-&gt;itemprop_price; } } ?&gt; &lt;meta itemprop="price" content="&lt;?php echo $price; ?&gt;" /&gt; &lt;meta itemprop="availability" content="https://schema.org/&lt;?php echo ($this-&gt;row-&gt;product_quantity != 0) ? 'InStock' : 'OutOfstock' ;?&gt;" /&gt; &lt;meta itemprop="priceCurrency" content="&lt;?php echo $this-&gt;currency-&gt;currency_code; ?&gt;" /&gt; &lt;/span&gt; &lt;!-- EO PRICE --&gt; &lt;!-- RIGHT MIDDLE EXTRA DATA --&gt; &lt;?php if(!empty($this-&gt;element-&gt;extraData-&gt;rightMiddle)) { echo implode("\r\n",$this-&gt;element-&gt;extraData-&gt;rightMiddle); } ?&gt; &lt;!-- EO RIGHT MIDDLE EXTRA DATA --&gt; &lt;!-- DIMENSIONS --&gt; &lt;?php $this-&gt;setLayout('show_block_dimensions'); echo $this-&gt;loadTemplate(); ?&gt; &lt;!-- EO DIMENSIONS --&gt; &lt;br /&gt; &lt;!-- CHARACTERISTICS --&gt; &lt;?php if($this-&gt;params-&gt;get('characteristic_display') != 'list') { $this-&gt;setLayout('show_block_characteristic'); echo $this-&gt;loadTemplate(); ?&gt; &lt;br /&gt; &lt;?php } ?&gt; &lt;!-- EO CHARACTERISTICS --&gt; &lt;!-- OPTIONS --&gt; &lt;?php if(hikashop_level(1) &amp;&amp; !empty ($this-&gt;element-&gt;options)) { ?&gt; &lt;div id="hikashop_product_options" class="hikashop_product_options"&gt;&lt;?php $this-&gt;setLayout('option'); echo $this-&gt;loadTemplate(); ?&gt;&lt;/div&gt; &lt;br /&gt; &lt;?php $form = ',\'hikashop_product_form\''; if($this-&gt;config-&gt;get('redirect_url_after_add_cart', 'stay_if_cart') == 'ask_user') { ?&gt; &lt;input type="hidden" name="popup" value="1"/&gt; &lt;?php } } ?&gt; &lt;!-- EO OPTIONS --&gt; &lt;!-- CUSTOM ITEM FIELDS --&gt; &lt;?php if(!$this-&gt;params-&gt;get('catalogue') &amp;&amp; ($this-&gt;config-&gt;get('display_add_to_cart_for_free_products') &#124;&#124; ($this-&gt;config-&gt;get('display_add_to_wishlist_for_free_products', 1) &amp;&amp; hikashop_level(1) &amp;&amp; $this-&gt;params-&gt;get('add_to_wishlist') &amp;&amp; $this-&gt;config-&gt;get('enable_wishlist', 1)) &#124;&#124; !empty($this-&gt;element-&gt;prices))) { if(!empty($this-&gt;itemFields)) { $form = ',\'hikashop_product_form\''; if ($this-&gt;config-&gt;get('redirect_url_after_add_cart', 'stay_if_cart') == 'ask_user') { ?&gt; &lt;input type="hidden" name="popup" value="1"/&gt; &lt;?php } $this-&gt;setLayout('show_block_custom_item'); echo $this-&gt;loadTemplate(); } } ?&gt; &lt;!-- EO CUSTOM ITEM FIELDS --&gt; &lt;!-- PRICE WITH OPTIONS --&gt; &lt;?php if($this-&gt;params-&gt;get('show_price')) { ?&gt; &lt;span id="hikashop_product_price_with_options_main" class="hikashop_product_price_with_options_main"&gt; &lt;/span&gt; &lt;?php } ?&gt; &lt;!-- EO PRICE WITH OPTIONS --&gt; &lt;!-- ADD TO CART BUTTON --&gt; &lt;?php if(empty($this-&gt;element-&gt;characteristics) &#124;&#124; $this-&gt;params-&gt;get('characteristic_display') != 'list') { ?&gt; &lt;div id="hikashop_product_quantity_main" class="hikashop_product_quantity_main"&gt;&lt;?php $this-&gt;row =&amp; $this-&gt;element; $this-&gt;formName = $form; $this-&gt;ajax = 'if(hikashopCheckChangeForm(\'item\',\'hikashop_product_form\')){ return hikashopModifyQuantity(\'' . (int)$this-&gt;element-&gt;product_id . '\',field,1' . $form . ',\'cart\'); } else { return false; }'; $this-&gt;setLayout('quantity'); echo $this-&gt;loadTemplate(); ?&gt;&lt;/div&gt; &lt;div id="hikashop_product_quantity_alt" class="hikashop_product_quantity_main_alt" style="display:none;"&gt; &lt;?php echo JText::_('ADD_TO_CART_AVAILABLE_AFTER_CHARACTERISTIC_SELECTION'); ?&gt; &lt;/div&gt; &lt;?php } ?&gt; &lt;!-- EO ADD TO CART BUTTON --&gt; &lt;!-- CONTACT US BUTTON --&gt; &lt;div id="hikashop_product_contact_main" class="hikashop_product_contact_main"&gt;&lt;?php $contact = (int)$this-&gt;config-&gt;get('product_contact', 0); if(hikashop_level(1) &amp;&amp; ($contact == 2 &#124;&#124; ($contact == 1 &amp;&amp; !empty($this-&gt;element-&gt;product_contact)))) { $css_button = $this-&gt;config-&gt;get('css_button', 'hikabtn'); $attributes = 'class="'.$css_button.'"'; $fallback_url = hikashop_completeLink('product&amp;task=contact&amp;cid=' . (int)$this-&gt;element-&gt;product_id . $this-&gt;url_itemid); $content = JText::_('CONTACT_US_FOR_INFO'); echo $this-&gt;loadHkLayout('button', array( 'attributes' =&gt; $attributes, 'content' =&gt; $content, 'fallback_url' =&gt; $fallback_url)); } ?&gt; &lt;/div&gt; &lt;!-- EO CONTACT US BUTTON --&gt; &lt;!-- CUSTOM PRODUCT FIELDS --&gt; &lt;?php if(!empty($this-&gt;fields)) { $this-&gt;setLayout('show_block_custom_main'); echo $this-&gt;loadTemplate(); } ?&gt; &lt;!-- EO CUSTOM PRODUCT FIELDS --&gt; &lt;!-- TAGS --&gt; &lt;?php if(HIKASHOP_J30) { $this-&gt;setLayout('show_block_tags'); echo $this-&gt;loadTemplate(); } ?&gt; &lt;!-- EO TAGS --&gt; &lt;!-- RIGHT END EXTRA DATA --&gt; &lt;?php if(!empty($this-&gt;element-&gt;extraData-&gt;rightEnd)) { echo implode("\r\n",$this-&gt;element-&gt;extraData-&gt;rightEnd); } ?&gt; &lt;!-- EO RIGHT END EXTRA DATA --&gt; &lt;span id="hikashop_product_id_main" class="hikashop_product_id_main"&gt; &lt;input type="hidden" name="product_id" value="&lt;?php echo (int)$this-&gt;element-&gt;product_id; ?&gt;" /&gt; &lt;/span&gt; &lt;/div&gt; &lt;/div&gt; &lt;!-- END GRID --&gt; &lt;div id="hikashop_product_bottom_part" class="hikashop_product_bottom_part"&gt; &lt;!-- BOTTOM BEGIN EXTRA DATA --&gt; &lt;?php if(!empty($this-&gt;element-&gt;extraData-&gt;bottomBegin)) { echo implode("\r\n",$this-&gt;element-&gt;extraData-&gt;bottomBegin); } ?&gt; &lt;!-- EO BOTTOM BEGIN EXTRA DATA --&gt; &lt;!-- DESCRIPTION --&gt; &lt;div id="hikashop_product_description_main" class="hikashop_product_description_main" itemprop="description"&gt;&lt;?php echo JHTML::_('content.prepare',preg_replace('#&lt;hr *id="system-readmore" */&gt;#i','',$this-&gt;element-&gt;product_description)); ?&gt;&lt;/div&gt; &lt;!-- EO DESCRIPTION --&gt; &lt;!-- MANUFACTURER URL --&gt; &lt;span id="hikashop_product_url_main" class="hikashop_product_url_main"&gt;&lt;?php if(!empty($this-&gt;element-&gt;product_url)) { echo JText::sprintf('MANUFACTURER_URL', '&lt;a href="' . $this-&gt;element-&gt;product_url . '" target="_blank"&gt;' . $this-&gt;element-&gt;product_url . '&lt;/a&gt;'); } ?&gt;&lt;/span&gt; &lt;!-- EO MANUFACTURER URL --&gt; &lt;!-- FILES --&gt; &lt;?php $this-&gt;setLayout('show_block_product_files'); echo $this-&gt;loadTemplate(); ?&gt; &lt;!-- EO FILES --&gt; &lt;!-- BOTTOM MIDDLE EXTRA DATA --&gt; &lt;?php if(!empty($this-&gt;element-&gt;extraData-&gt;bottomMiddle)) { echo implode("\r\n",$this-&gt;element-&gt;extraData-&gt;bottomMiddle); } ?&gt; &lt;!-- EO BOTTOM MIDDLE EXTRA DATA --&gt; &lt;!-- BOTTOM END EXTRA DATA --&gt; &lt;?php if(!empty($this-&gt;element-&gt;extraData-&gt;bottomEnd)) { echo implode("\r\n",$this-&gt;element-&gt;extraData-&gt;bottomEnd); } ?&gt; &lt;!-- EO BOTTOM END EXTRA DATA --&gt; &lt;/div&gt; &lt;?php $this-&gt;setLayout('show_microdata'); echo $this-&gt;loadTemplate(); ?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDg1MTEtZmFjZWJvb2stcGl4ZWwtbm90LWFkZGluZy1wcm9kdWN0cy1kdWUtdG8tbWlzc2luZy1taWNyb2RhdGE/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

2 years 3 months ago [\#362712](#362712) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Facebook Pixel Not Adding Products Due To Missing Microdata](/forum/26-product-category-display/908511-facebook-pixel-not-adding-products-due-to-missing-microdata#362712 "-- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.1.2 -- PHP version -- : 8  Hello,  I am wanting to automate how products are added to Facebook catalog using the Facebook pixel which will add products based off Microdata. I am getting errors that ID, availability &amp; price are missing and I'm just not sure what I'm missing or what I need to to tweak on the backend to make sure all is correct so that the pixel can see all the needed microdata.  Here is the error for one of the product pages I tested using Facebook Microdata Debug Tool:")*

Hi,

That's indeed the default code of the view file. And I can see the microdata information tags and attributes in there.
However, I still don't see them if I look on a product details page on your website.
That should not be possible, unless another extension process the HTML to remove them.
I can see that you're using 4SEO. It might be linked to that.
Could you try temporarily deactivating it ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDg1MTEtZmFjZWJvb2stcGl4ZWwtbm90LWFkZGluZy1wcm9kdWN0cy1kdWUtdG8tbWlzc2luZy1taWNyb2RhdGE/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[dklbwf](/forum/user/2878-dklbwf "View dklbwf's Profile")**
- [![dklbwf's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2878-dklbwf "View dklbwf's Profile") Topic Author
- [ Offline](/forum/user/2878-dklbwf)

Less More

- Posts: 130
- Thank you received: 6
-
-

2 years 3 months ago -  2 years 3 months ago [\#362723](#362723) by [dklbwf](/forum/user/2878-dklbwf "View dklbwf's Profile")  Replied by *[dklbwf](/forum/user/2878-dklbwf "View dklbwf's Profile")* on topic *[Facebook Pixel Not Adding Products Due To Missing Microdata](/forum/26-product-category-display/908511-facebook-pixel-not-adding-products-due-to-missing-microdata#362723 "-- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.1.2 -- PHP version -- : 8  Hello,  I am wanting to automate how products are added to Facebook catalog using the Facebook pixel which will add products based off Microdata. I am getting errors that ID, availability &amp; price are missing and I'm just not sure what I'm missing or what I need to to tweak on the backend to make sure all is correct so that the pixel can see all the needed microdata.  Here is the error for one of the product pages I tested using Facebook Microdata Debug Tool:")*

From 4SEO team:

4SEO would not do anything about microdata. 4SEO is an SEO product, and any structured data it outputs is in json-ld, the standard for SEO use. After that, any structured data in the page is from Hikashop.

Last edit: 2 years 3 months ago by [dklbwf](/forum/user/2878-dklbwf "View dklbwf's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDg1MTEtZmFjZWJvb2stcGl4ZWwtbm90LWFkZGluZy1wcm9kdWN0cy1kdWUtdG8tbWlzc2luZy1taWNyb2RhdGE/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

2 years 3 months ago [\#362724](#362724) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Facebook Pixel Not Adding Products Due To Missing Microdata](/forum/26-product-category-display/908511-facebook-pixel-not-adding-products-due-to-missing-microdata#362724 "-- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.1.2 -- PHP version -- : 8  Hello,  I am wanting to automate how products are added to Facebook catalog using the Facebook pixel which will add products based off Microdata. I am getting errors that ID, availability &amp; price are missing and I'm just not sure what I'm missing or what I need to to tweak on the backend to make sure all is correct so that the pixel can see all the needed microdata.  Here is the error for one of the product pages I tested using Facebook Microdata Debug Tool:")*

Hi,

Then, it could be caused by another extension.

Could you try deactivating the plugins of the group 'system' one by one and check if it's helps?

Note also that when you check the debugger you need to make sure it refreshes it's cache. Otherwise, the report would just be based on the old version of the page.
The best is to actually directly look at the HTML of the page with your browser inspector.
You can compare the HTML with the one of a product page of our démo website. You'll see there the méta tags and attributes for the structured data.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDg1MTEtZmFjZWJvb2stcGl4ZWwtbm90LWFkZGluZy1wcm9kdWN0cy1kdWUtdG8tbWlzc2luZy1taWNyb2RhdGE/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.081 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
