Product with three Variants: Description 4 times in the page source!

  • Posts: 73
  • Thank you received: 0
8 years 6 months ago #257656

-- url of the page with the problem -- : www.sokart.ch/cms/e-shop/nach-kategorien...allon-burgunder.html
-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.5
-- PHP version -- : 5.6.28
-- Browser(s) name and version -- : Mozilla firefox last

Hello

I try to optimize my shop for SEO and saw following in the page source:

Product has 3 Variants (different only in the price). Description is only in main product and empty in variants. When I check page source with Developer Tools i may see that main description is 4 times within.

That's very bad for Google SEO.,

Main Product with description CHF 13.90)
Variant 1 (Product delivered from us)
Variant 1 (Customer bring it CHF 1.0)
Variant 2 (Customer send it to us CHF 1.0)

Please help!

Regards,
Petar Ristanovic

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

  • Posts: 83993
  • Thank you received: 13605
  • MODERATOR
8 years 6 months ago #257670

Hi,

That's because the characteristic system updates dynamically the description of the product for the one of the selected variant and if you didn't enter any, it uses the main product one.
If you don't want that, you can edit the file "show" of the view "product" via the menu Display>Views and remove the code:

if(!empty($variant->product_description)) {
?>
		<div id="hikashop_product_description_<?php echo $variant_name;?>" style="display:none;"><?php
			echo JHTML::_('content.prepare',preg_replace('#<hr *id="system-readmore" */>#i','',$variant->product_description));
		?></div>
<?php
		}

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

  • Posts: 73
  • Thank you received: 0
8 years 6 months ago #257741

Sorry

This don't work for me.
I need the same description for all variants but not four times in the page source!

Regards
Petar Ristanovic
www.sokart.ch

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

  • Posts: 83993
  • Thank you received: 13605
  • MODERATOR
8 years 6 months ago #257746

Hi,

The modification I gave you is precisely to have the same description for all variants.
Why do you say this doesn't work for you ?

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

  • Posts: 73
  • Thank you received: 0
8 years 6 months ago #257819

Hello

Yes, it solves my problem. I not saw "and remove the code" in the night :)
I thought that this one little change was.

THANK you!

Petar Ristanovic
www.sokart.ch

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

Time to create page: 0.040 seconds
Powered by Kunena Forum