[SOLVED] No Metadata when variant on product

  • Posts: 75
  • Thank you received: 3
11 years 6 months ago #104294

Hallo.

I changed from virtuemart to hikashop because youre solution is more intuitive and easier to handle for my needs. Compliments. I'im still experiencing before to change to paid plans because i need some features you offer with these.

I have only one big problem with the metadata.

When i ad variants to the product there are shown the genereal joomla metadatas. Only product with no variants show the right metadata put in the product section.

Now my question. How do i get the mainproduct metadata. I think the product keeps the same also if it changes color or size don't you agree?

Please give me some advice how i can fix this.

best regards

Last edit: 11 years 5 months ago by kubwit.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 6 months ago #104324

Hi,

I just tried on local, and the metadata used even if the product has variants is the product metadata.
You are talking about the "Meta description" and "Keywords" parameters present in the product edition page ?

Please Log in or Create an account to join the conversation.

  • Posts: 75
  • Thank you received: 3
11 years 6 months ago #104330

Thanks for reply.

I rechecked various products and they are also not showing the metadatas. also switching off sh404sef they are not showing

Please Log in or Create an account to join the conversation.

  • Posts: 75
  • Thank you received: 3
11 years 6 months ago #104333

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 6 months ago #104337

Hi,

As you can see on the screenshot, the good metadatas are used for the products:

Attachments:
Last edit: 11 years 6 months ago by Xavier.

Please Log in or Create an account to join the conversation.

  • Posts: 75
  • Thank you received: 3
11 years 6 months ago #104341

Thanks for reply you are right with the ones with NO variants

i attach a variant product and it does not show the meta description not even the meta keywords.
I also tried to swith of sh404sef but no change

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 6 months ago #104775

Hi,

I do not understand your problem and I can't reproduce such error during my tests.

Please provide some screenshots from your backend in order to understand which data is wrong.
Your currently screenshot in the front-end show that, there is some meta data but we can't know if there are right or wrong.
How could we know without seeing the information in the backend ?

Thanks,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 75
  • Thank you received: 3
11 years 6 months ago #104785

Ok.

This this one of the products
www.ilmondodiwit.com/shop/artigianali/67...-in-argento-925.html

I attach one screenshot of the backend where you can see the setting of the metadescription and metakeywords

Please let me know if i can supply more information

Thanks



Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 75
  • Thank you received: 3
11 years 6 months ago #104793

Hallo.

I payed no more attention of reproducing.

I insert new product WITHOUT VARIANTS
I save it - and it is ok (the metadatas are showing as excpected the specific product metadata)

I insert Variant.
I save it and reloda the page and the Metadata is changing and gets the Main site metadata.

Please let me know if i can give more help

Thanks

Please Log in or Create an account to join the conversation.

  • Posts: 75
  • Thank you received: 3
11 years 6 months ago #104812

Yes i can confirm now.

I inserted five products paying attention on the procedure.

All Product specific metadata inserted in the product admin page are shown until you add an variant. After adding the variant the global site metadata are shown.

You tried to reproduce this?

Regards

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 6 months ago #104848

Hi,

I already have some products with variants in some local websites.
I updated them in order to change the "metadata" and the data is right updated in my front-end product page.

So I can't reproduce your problem and I don't understand from where your wrong metadata come from.
The data must be stored somewhere in the database. But where ?

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 75
  • Thank you received: 3
11 years 6 months ago #104853

This is a good question. Where they are stored i don't know. If i put on the debug option does it show where it stores the informations?

Please Log in or Create an account to join the conversation.

  • Posts: 75
  • Thank you received: 3
11 years 6 months ago #104860

Hallo.

Can you post me the debug query of your sample site. Or tell me the string i have to search whem i have the debug on.

As i mentioned in a post before i have the sh404sef installed.

I found some querys with meta like this:

SHOW FULL COLUMNS
      FROM `someprefix_sh404sef_metas`
    SELECT *
      FROM someprefix_sh404sef_metas
      WHERE `newurl`='index.php?option=com_hikashop&Itemid=376&cid=670&ctrl=product&lang=it&name=ciondolo-ganesh-in-argento-925&task=show';
    SELECT b.id
      FROM someprefix_usergroups AS a

 1 × SELECT *
      FROM someprefix_sh404sef_metas
    1 × SELECT b.id

Is there any other query where hikashop gets the metadata?

Thanks for your reply

Please Log in or Create an account to join the conversation.

  • Posts: 75
  • Thank you received: 3
11 years 6 months ago #104888

i opened also discussion on sh404 forum here. anything-digital.com/forum/extension/sh4...hikashop.html#p45068

maybe it can be help for both sides

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 6 months ago #105151

On HikaShop's end, the metadata is taken directly from the product data object which contains all the information of the product and which is loaded before displaying the page.
If you add a <?php echo $this->element->main; ?> in the file "show" of the view "product" via the menu display>Views, you will see all the data of the product which contains the meta data (product_page_title, product_meta_description and product_keywords) on the product page.

But looking at your traces, the query:
SELECT *
FROM someprefix_sh404sef_metas
WHERE `newurl`='index.php?option=com_hikashop&Itemid=376&cid=670&ctrl=product&lang=it&name=ciondolo-ganesh-in-argento-925&task=show';

sounds to be loading the metadata for the current page from sh404sef, so it could potentially mean that sh404sef is overwriting the metadata that HikaShop sets on the page by the metadata configured in sh404sef for that URL.

Please Log in or Create an account to join the conversation.

  • Posts: 75
  • Thank you received: 3
11 years 6 months ago #105327

Thanks for reply.

Yes, that's what i thought also. That's why i opened an discussion on sh404sef forum on the link i posted before.

The situation is as you describe and the result when you use joomla 2.5 + sh404sef + hikashop the the metadata of an product with variant become overrided with the default page metadatas until you don't specifie them extra each product in the metadata secton of sh404sef. It's extremley timeintensive and non very useful for users which an high amount of products.

I don't know if it is for you interesteing to fin and solution of this.

I thought to pass to the paid version of hikashop but if the situation is like this i think i need to return to virtuemart although i find your solution more useful for me.

Thanks for you replys

regards

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 6 months ago #105383

Hi,

I don't see why SH404SEF reacts differently when the product has variants and I don't see what we could do in HikaShop to avoid that since it seems to be sh404sef which do that on its end.

Please Log in or Create an account to join the conversation.

  • Posts: 75
  • Thank you received: 3
11 years 6 months ago #105527

I don't know why also. I wanted only to notice you this. maybe it is for your interest. My interest is that i get custom metadata for my different variants of my products which is not possibel in the actual conditions.

Best regards

The following user(s) said Thank You: nicolas

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 5 months ago #105963

I've looked a bit deeper into the problem on our end.

Can you try to add the line:
if(!in_array($field, array('product_keywords','product_description','product_page_title','product_canonical','product_alias','product_url')))

after the line:
else $element->main->$field ='';

in the file components/com_hikashop/views/product/view.html.php and try again ?

Please Log in or Create an account to join the conversation.

  • Posts: 75
  • Thank you received: 3
11 years 5 months ago #106093

Hallo!

Yes sure if i can help to improve i'm very pleased.

I searched the line else

else $element-&gt;main-&gt;$field ='';
but i didn't find it. I only found the line
else $element->main->$field ='';
and i inserted after the code you asked me to insert.

I controled and there was a pleasureful change: The Keywords of the variant product were read !!! :woohoo: :woohoo:

I kept the file so you can control here: url
This is the category of products were i started to migrate the shop........ I keep it until further comunication.

The only problem remaining is the Description ! it still takes the default joomla description. If you find a solution for this it would be perfect !!!!!!

My best regards and i renew the often read compliments for your support in various reviews.

Last edit: 11 years 5 months ago by kubwit.

Please Log in or Create an account to join the conversation.

Time to create page: 0.108 seconds
Powered by Kunena Forum