Post by jiao » Sat Apr 04, 2015 1:19 am

Not sure why this is a requirement. Wasn't before 2.0

Anyhow, how do I disable this nonsense? It is taking up too much space, and knocking my products all over the page, what a flipping mess.... (╯°□°)╯︵ ┻━┻

Active Member

Posts

Joined
Mon Apr 23, 2012 12:11 am

Post by yodapt » Sat Apr 04, 2015 1:44 am

You just need to edit the product's controller not to make it a requirement, and possibly (not sure) change the value in the database to be optional.

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by jiao » Sat Apr 04, 2015 9:08 am

Thanks for the reply, but can you tell me specifically what to do? I am a newbie here. Looked under all related .php files in controller, did not find "required"

Active Member

Posts

Joined
Mon Apr 23, 2012 12:11 am

Post by yodapt » Sat Apr 04, 2015 2:46 pm

What is exacly the short description you are talking about? Can you show a printscreen?

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by jiao » Sat Apr 04, 2015 3:13 pm

this one here:
Untitled.png

Untitled.png (7.06 KiB) Viewed 2832 times


Active Member

Posts

Joined
Mon Apr 23, 2012 12:11 am

Post by yodapt » Sat Apr 04, 2015 3:54 pm

I ment in the admin section. If your question is about displaying you just need to edit the template.

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by jiao » Sun Apr 05, 2015 10:47 am

Here is the section in admin forcing me to add a description..
wtf2.jpg

wtf2.jpg (78.98 KiB) Viewed 2815 times


Active Member

Posts

Joined
Mon Apr 23, 2012 12:11 am

Post by jiao » Tue Apr 07, 2015 12:04 am

Anyone? I would really really really like to fix this.

Active Member

Posts

Joined
Mon Apr 23, 2012 12:11 am

Post by yodapt » Tue Apr 07, 2015 12:40 am

Replace

Code: Select all

'description' => utf8_substr(strip_tags(html_entity_decode($product_info['description'], ENT_QUOTES, 'UTF-8')), 0, $this->config->get('config_product_description_length')) . '..',
with

Code: Select all

'description' => (int) $this->config->get('config_product_description_length') == 0 ? '' : utf8_substr(strip_tags(html_entity_decode($product_info['description'], ENT_QUOTES, 'UTF-8')), 0, $this->config->get('config_product_description_length')) . '..',
in /catalog/controller/common/content_bottom.php

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by jiao » Tue Apr 07, 2015 10:22 am

Thanks for the detailed reply.

However, I forgot to mention, I just upgraded to opencart 2.0.2

Not sure if that is the reason why, but the line you told me to find is not located in the file you mention. I am using the default theme.

Active Member

Posts

Joined
Mon Apr 23, 2012 12:11 am

Post by yodapt » Tue Apr 07, 2015 3:29 pm

My mistake :

/catalog/controller/module/featured.php

Next time inform about the OC version, as the files can be different.

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by jiao » Tue Apr 07, 2015 5:46 pm

Thanks, but after following the directions nothing changed.

But I suspect I am still editing the wrong file. I don't even use the "featured" module.

The issue I am having is when looking at products in the best sellers module, latest and categories view.

I looked for that code in those .php files and didn't find anything. What a headache.

Active Member

Posts

Joined
Mon Apr 23, 2012 12:11 am

Post by OSWorX » Tue Apr 07, 2015 6:03 pm

Basically it should make no matter which module or not is used.
Change that in the product model and you will have it everywhere.
Best make this either with VQMod or OCMod.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Guru Member
Online

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by yodapt » Tue Apr 07, 2015 7:25 pm

It would be useful in the future to mention all the information you have, it helps to debug.

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by jiao » Wed Apr 08, 2015 9:02 am

What else do I need to mention? Default theme, oc 2.0.2 fresh install, short description on the product preview as show in the picture has useless quotes stuck in it because I am being forced to set a limit of 00 for the "list description limit (catalog)" how to remove this and reclaim the extra space. I tried your method, did not work.

Active Member

Posts

Joined
Mon Apr 23, 2012 12:11 am

Post by jiao » Fri Apr 10, 2015 10:20 am

It worked! I followed the steps outlined by yodapt, thanks man!

The only difference was I actually had to edit more than one file. I edited the following files

in
catalog\controller\product
category.php
product.php
search.php


in
catalog\controller\module
latest.php
featured.php
bestseller.php

Active Member

Posts

Joined
Mon Apr 23, 2012 12:11 am
Who is online

Users browsing this forum: No registered users and 84 guests