We offer professional Design/Code Customisation and Website Optimisation Service Request Customisation
  • Status: Closed
  • Closed by: Marek (marek)
  • Closed on: 13.07.18, 20:36
  • Reason: Closed
  • Comment: Glad to help!

Ticket #12366 - A short description in the category code page.

I have trouble downloading a short description of products on the category page. In the theme configuration module, I have disabled the Display Product Description option, but the descriptions are still in the page code. I would like them not to be on category pages, only on product pages due to duplicate content and seo.

This ticket does not depend on any other tickets.

Łukasz (lukaszwojcik) 13 Jun 2018, 13:54

The same in other places where products are displayed as a list. For example, a module for new products, a list of products from a selected brand, and a search

Marek (marek) 13 Jun 2018, 18:24

Hi, Łukasz.
Do you mean this category description http://take.ms/2wwLA ?

Łukasz (lukaszwojcik) 13 Jun 2018, 18:38

No, I mean product descriptions. For example in the category https://daars.pl/audio-15

in the page code there are descriptions of products taken from a short description (attach screen).

Google will treat this as duplicate content.

code.jpg (150.3 KiB)
Marek (marek) 13 Jun 2018, 19:16

Ok, I see.
You can remove following code in the file /public_html/themes/alysum/templates/catalog/product.tpl

Łukasz (lukaszwojcik) 13 Jun 2018, 19:31

Deleting this line removes a short description from the product page. The only thing I want to do is to remove a short description from the code from product listing websites (categories, searches, brand pages, new products)

hidden.jpg (334 KiB)
Łukasz (lukaszwojcik) 13 Jun 2018, 19:52

ok I found /public_html/themes/alysum/templates/catalog/_partials/miniatures/product.tpl

I removed

{block name='product_description_short'}
          <div class="short-desc product-description-short{if (isset($smarty.cookies.pm_desc) && ($smarty.cookies.pm_desc == true)) || (isset($pkts.pm_desc) && $pkts.pm_desc == true)} shown{else} hidden{/if}" itemprop="description">
            {$product.description_short nofilter}

it should be OK

Marek (marek) 13 Jun 2018, 21:26

Ok, let me know if you will have a problem with that