- Posts: 41
- Thank you received: 1
No microdata visible in HTML code
-- Joomla version -- : 3.4
-- PHP version -- : 5.3.29
-- Browser(s) name and version -- : Firefox 35.0.1
-- Error-message(debug-mod must be tuned on) -- : no errors
I have build my Hikashop webshop and changed some php-files (product/show_default.php). I thought microdata / Rich Snippets is standard installed in Hikashop. But it was not.
Now I installed the HikaShop Microdata on Product Page plugin and enabled it.
But microdata for product picture and prices are not vissible.
I thought this is because I changed product/show_default.php so this file automaticcaly is an override.
I checked the components/com_hikashop/views/product/tmpl/show_default.php with the override file, but can not see any changes. It looks like both files are the same.
What to do to get microdata on product page?
Please Log in or Create an account to join the conversation.
Please try with that version of the plugin:
Please log in or register to see it.
Please Log in or Create an account to join the conversation.
But... there are some errors: price is not a valid specification for the itemprop="price"
I think you only may use the value and not the whole description: Prijs (incl. BTW): € 16,50 (Prijs (excl. BTW): € 13,64
I will send a PM with link of a test product.
Please Log in or Create an account to join the conversation.
To have a simple price and not the full price information, you can potentially edit the view "product / listing_price " and add a div with a specific class, like:
By:
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
Did you use the plugin version that Xavier gave on that thread with the modification of his last message ?
Do you have the last Hikashop version ?
Please Log in or Create an account to join the conversation.
After a day of hikashop customization I try to re-enable this plugin and now the problem is solved...
Thanks
Please Log in or Create an account to join the conversation.
Today I also disabled the plugin. Result: 'Add to cart' button is visible.
When I enable the plugin and clear the servers cache, the 'Add to cart' button disappear.
So this plugin is not a solution. (and I lost 1,5 hour searching and testing... :S )
I am using Hikashop 2.4.0 and have changed product / listing_price.php but not the changes in this thread.
Please Log in or Create an account to join the conversation.
We found the issue and patched HikaShop. Download again the latest version install package via the menu My account>My subscriptions on our website and install it on yours via the Joomla installer and it will add the patch and it will work fine again.
Please Log in or Create an account to join the conversation.
- Product - price : is missing and is required (260 errors)
- Review - author: is missing and is required (1307 errors)
- Review: There's not been reviewed for the review item specified
Where can I find the Hikashop Product Tag plugin. It is not in the folder plugins (I could not find it)
Please Log in or Create an account to join the conversation.
Please try to use the latest version of our product tag plugin here:
Please log in or register to see it.
Please Log in or Create an account to join the conversation.
But still have many errors in GWT.
If I look at the HTML code of a product in Hikashop, I see this:
A friend of my also installed the new plugin and he gets good microdata in his HTML.
Note: I have changed product listing_price.php and other views
What to do to get good microdata?
Please Log in or Create an account to join the conversation.
If you have changed the view "product / listing_price" that can potentially be the reason of that issue.
Please try to backup this view, and delete it in order to use the default one.
If it is working fine, so it come from your changes, as you can see in the plugin we are using "regex" based on the classes of the elements, so please keep these classes when editing the view
Please Log in or Create an account to join the conversation.
I have deleted the product / listing_price.php in the override HTL dir and then I got the proper microdata. After that I have looked for the diferences in my version of listing_price.php and the original. But can not find the solution.
Because I am not a PHP-programmer, this is to difficult for me.
Is there a possibility to do the changes by Hikashop-crew if I tell you what I want?
Please Log in or Create an account to join the conversation.
In the view product / listing_price you just have to check that there is a span/div present with the class "hikashop_product_price_main" and inside this span/div another one with the classes "hikashop_product_price hikashop_product_price_0". If you have that, the micro data will work correctly.
This don't require PHP skills, only HTML ones
If you are still in trouble, you can send us a backend access via our contact form with the link to that topic in your message.
Please Log in or Create an account to join the conversation.