Post by everetts1969 » Tue Oct 08, 2019 11:57 pm

Hello. I'm looking to remove the product description from the product thumbs but still want to keep the product description on the main product page. I'm running OC 3.0.3.2. What files do I change and what code would I delete?
Thanks
Steve.

New member

Posts

Joined
Sun Apr 16, 2017 8:12 pm

Post by labeshops » Wed Oct 09, 2019 12:16 am

Product thumbs on which modules - latest, featured, what??

You can delete the line

Code: Select all

<p>{{ product.description }}</p>
tag from catalog/view/theme/yourtheme/template/extension/module/latest.twig for example to remove it from the latest product module.

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by thekrotek » Wed Oct 09, 2019 12:26 am

Or you can simply hide it with CSS like this (valid for all modules):

.product-thumb h4 + p {
display: none;
}

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by cyclops12 » Wed Oct 09, 2019 1:46 am

I thought of that but it also hides the price, what if you wanted to keep the price, could this still be done with css?

Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by thekrotek » Wed Oct 09, 2019 1:54 am

cyclops12 wrote:
Wed Oct 09, 2019 1:46 am
I thought of that but it also hides the price, what if you wanted to keep the price, could this still be done with css?
Nope, it doesn't hide the price because "+" is used, which means the next element of a kind only, not all of them.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by cyclops12 » Wed Oct 09, 2019 2:35 am

Aha i see.... clever
I was trying just with p but it also hid the price
Thank you thekrotek
sorry for hijacking the thread :)

Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by thekrotek » Wed Oct 09, 2019 2:45 am

You're welcome, bro!

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by paulfeakins » Wed Oct 09, 2019 4:51 pm

thekrotek wrote:
Wed Oct 09, 2019 2:45 am
You're welcome, bro!
Image

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by everetts1969 » Wed Oct 09, 2019 5:22 pm

OK so I have deleted the code in the modules Category. Featured etc but the product description is still showing. I have refreshed the cache. if you go to matilia-london.com I have featured module working with todays popular buys. The product description is showing.

Any ideas of where i'm going wrong?

New member

Posts

Joined
Sun Apr 16, 2017 8:12 pm

Post by thekrotek » Wed Oct 09, 2019 5:36 pm

everetts1969 wrote:
Wed Oct 09, 2019 5:22 pm
Any ideas of where i'm going wrong?
Use CSS instead.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by everetts1969 » Wed Oct 09, 2019 9:56 pm

so just input the code to the stylesheet.ccs?

New member

Posts

Joined
Sun Apr 16, 2017 8:12 pm

Post by everetts1969 » Wed Oct 09, 2019 10:03 pm

Perfect works a treat. Thanks for your help!

New member

Posts

Joined
Sun Apr 16, 2017 8:12 pm

Post by mitrecyclers » Tue Jan 14, 2020 11:39 pm

thekrotek wrote:
Wed Oct 09, 2019 12:26 am
Or you can simply hide it with CSS like this (valid for all modules):

.product-thumb h4 + p {
display: none;
}
Worked nicely. Thanks.

For all of your Mobile phone needs.
https://mitrecyclers.com


Active Member

Posts

Joined
Tue Sep 25, 2018 5:34 pm

Post by gcextreme » Mon Jan 09, 2023 11:28 am

mitrecyclers wrote:
Tue Jan 14, 2020 11:39 pm
thekrotek wrote:
Wed Oct 09, 2019 12:26 am
Or you can simply hide it with CSS like this (valid for all modules):

.product-thumb h4 + p {
display: none;
}
Worked nicely. Thanks.
i tried this and cant get it to work. v3.0.3.8

Opencart Default Theme Version 3.0.3.8
www.gcextreme.com
Fergus Falls, Mn. USA
AAS Degree in E-Com Web Design Development
Old School: Dreamweaver, Fireworks, Flash, Photoshop


User avatar
New member

Posts

Joined
Mon Jul 14, 2014 6:31 am


Post by xxvirusxx » Mon Jan 09, 2023 3:00 pm

gcextreme wrote:
Mon Jan 09, 2023 11:28 am

i tried this and cant get it to work. v3.0.3.8
You have Default theme?

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by gcextreme » Tue Jan 10, 2023 9:30 am

xxvirusxx wrote:
Mon Jan 09, 2023 3:00 pm
gcextreme wrote:
Mon Jan 09, 2023 11:28 am

i tried this and cant get it to work. v3.0.3.8
You have Default theme?
Yes Default theme.

Opencart Default Theme Version 3.0.3.8
www.gcextreme.com
Fergus Falls, Mn. USA
AAS Degree in E-Com Web Design Development
Old School: Dreamweaver, Fireworks, Flash, Photoshop


User avatar
New member

Posts

Joined
Mon Jul 14, 2014 6:31 am


Post by xxvirusxx » Tue Jan 10, 2023 4:12 pm

gcextreme wrote:
Tue Jan 10, 2023 9:30 am
Yes Default theme.
And you have added that code in stylesheet.css?

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by paulfeakins » Tue Jan 10, 2023 6:53 pm

gcextreme wrote:
Mon Jan 09, 2023 11:28 am
i tried this and cant get it to work. v3.0.3.8
Give us the URL of your shop?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by gcextreme » Fri Jan 13, 2023 10:04 am

paulfeakins wrote:
Tue Jan 10, 2023 6:53 pm
gcextreme wrote:
Mon Jan 09, 2023 11:28 am
i tried this and cant get it to work. v3.0.3.8
Give us the URL of your shop?
www.gcextreme.com

Opencart Default Theme Version 3.0.3.8
www.gcextreme.com
Fergus Falls, Mn. USA
AAS Degree in E-Com Web Design Development
Old School: Dreamweaver, Fireworks, Flash, Photoshop


User avatar
New member

Posts

Joined
Mon Jul 14, 2014 6:31 am


Post by gcextreme » Fri Jan 13, 2023 10:06 am

xxvirusxx wrote:
Tue Jan 10, 2023 4:12 pm
gcextreme wrote:
Tue Jan 10, 2023 9:30 am
Yes Default theme.
And you have added that code in stylesheet.css?
yes, and it didnt do anything. also tried another solution i found here on the forum for editing the product.twig file. that didnt work either.

Opencart Default Theme Version 3.0.3.8
www.gcextreme.com
Fergus Falls, Mn. USA
AAS Degree in E-Com Web Design Development
Old School: Dreamweaver, Fireworks, Flash, Photoshop


User avatar
New member

Posts

Joined
Mon Jul 14, 2014 6:31 am

Who is online

Users browsing this forum: Amazon [Bot] and 70 guests