Post by hamidj » Tue Jul 24, 2018 12:01 am

Hi all,
I need a help. I'm using opencart 3.0.2 version and Pavtheme store. i want to decrease the number of character of 'products name' in category in opencart 3.0.2? Need help urgent!

Newbie

Posts

Joined
Fri Jan 19, 2018 9:31 pm

Post by DigitCart » Tue Jul 24, 2018 12:19 am

Hi,
In this file:

Code: Select all

catalog\controller\product\category.php
Find:

Code: Select all

$result['name'],
Change it to:

Code: Select all

utf8_substr(trim($result['name']), 0, 10) . (utf8_strlen(trim($result['name'])) > 10 ? '..' : ''),
Use you actual number instead of 10.
Last edited by DigitCart on Tue Jul 24, 2018 12:36 am, edited 1 time in total.

My Extensions / DigitCart


User avatar
Active Member
Online

Posts

Joined
Thu Jun 22, 2017 5:32 pm


Post by hamidj » Tue Jul 24, 2018 12:28 am

it didn't work! any more tips? ???

Newbie

Posts

Joined
Fri Jan 19, 2018 9:31 pm

Post by DigitCart » Tue Jul 24, 2018 12:32 am

I tested and it's working on my localhost, it shows "Apple Cine.." instead of "Apple Cinema 30".
Did you clear your caches?

My Extensions / DigitCart


User avatar
Active Member
Online

Posts

Joined
Thu Jun 22, 2017 5:32 pm


Post by hamidj » Tue Jul 24, 2018 12:40 am

Yes i have tested it on 3 different browsers and cleared the chrome history. i'm using a custom theme by pavthemes.

Newbie

Posts

Joined
Fri Jan 19, 2018 9:31 pm

Post by DigitCart » Tue Jul 24, 2018 12:42 am

Try this:
- Go to Extensions > Modifications and click Refresh

My Extensions / DigitCart


User avatar
Active Member
Online

Posts

Joined
Thu Jun 22, 2017 5:32 pm


Post by hamidj » Tue Jul 24, 2018 12:52 am

It worked thanks man! your life saver ;D

Newbie

Posts

Joined
Fri Jan 19, 2018 9:31 pm

Post by DigitCart » Tue Jul 24, 2018 2:05 am

You're welcome.

My Extensions / DigitCart


User avatar
Active Member
Online

Posts

Joined
Thu Jun 22, 2017 5:32 pm


Post by olahmyde » Wed Jul 25, 2018 12:47 am

DigitCart wrote:
Tue Jul 24, 2018 2:05 am
You're welcome.
Hello, how can i put categories at the side when viewing products, i am also using PavTheme....Simtech to be precise, i don't have categories at the left side when i enter a certain category, its all only at the top. I hope you get me

New member

Posts

Joined
Tue Apr 10, 2018 1:24 am

Post by zibet » Tue Jul 31, 2018 2:26 pm

HI,

i tried your method, but no luck. Is there anything else I am missing?

MY code currently:

'name' => utf8_substr(trim($result['name']), 0, 100) . (utf8_strlen(trim($result['name'])) > 100 ? '..' : ''),

Newbie

Posts

Joined
Sat May 14, 2016 9:46 pm

Post by sanshay » Tue Jul 31, 2018 5:12 pm

olahmyde wrote:
Wed Jul 25, 2018 12:47 am
DigitCart wrote:
Tue Jul 24, 2018 2:05 am
You're welcome.
Hello, how can i put categories at the side when viewing products, i am also using PavTheme....Simtech to be precise, i don't have categories at the left side when i enter a certain category, its all only at the top. I hope you get me
In admin/design/layout and click products.
Column Left or right add categories and save.
If you dont see this, than you need to activate the categories in extensions / modules
Refresh cache after

Active Member

Posts

Joined
Fri Jan 25, 2013 8:49 pm
Who is online

Users browsing this forum: No registered users and 32 guests