[Skip to main content](#vessel-content)

#   Limit Title Characters on Product Listing Page

##

- **[foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")**
- [![foxy3433's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6412-foxy3433 "View foxy3433's Profile") Topic Author
- [ Offline](/forum/user/6412-foxy3433)

Less More

- Posts: 81
- Thank you received: 6
-
-

13 years 11 months ago [\#78857](#78857) by [foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")  *[Limit Title Characters on Product Listing Page](/forum/2-general-talk-about-hikashop/76174-limit-title-characters-on-product-listing-page#78857 "Is there a way to limit the amount of characters shown for products on the products listing page????")* was created by *[foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")*

Is there a way to limit the amount of characters shown for products on the products listing page????

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTc0LWxpbWl0LXRpdGxlLWNoYXJhY3RlcnMtb24tcHJvZHVjdC1saXN0aW5nLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 11 months ago [\#78893](#78893) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Limit Title Characters on Product Listing Page](/forum/2-general-talk-about-hikashop/76174-limit-title-characters-on-product-listing-page#78893 "Is there a way to limit the amount of characters shown for products on the products listing page????")*

Hi,

The best way is to modify the view and add a limitation where the product name is displayed (using "substr").

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTc0LWxpbWl0LXRpdGxlLWNoYXJhY3RlcnMtb24tcHJvZHVjdC1saXN0aW5nLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")**
- [![foxy3433's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6412-foxy3433 "View foxy3433's Profile") Topic Author
- [ Offline](/forum/user/6412-foxy3433)

Less More

- Posts: 81
- Thank you received: 6
-
-

13 years 11 months ago -  13 years 11 months ago [\#79015](#79015) by [foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")  Replied by *[foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")* on topic *[Limit Title Characters on Product Listing Page](/forum/2-general-talk-about-hikashop/76174-limit-title-characters-on-product-listing-page#79015 "Is there a way to limit the amount of characters shown for products on the products listing page????")*

So would i do somthing like :
Code:

&lt;?php $rest = substr(, 0, -7); ?&gt;

Last edit: 13 years 11 months ago by [foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTc0LWxpbWl0LXRpdGxlLWNoYXJhY3RlcnMtb24tcHJvZHVjdC1saXN0aW5nLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 11 months ago [\#79035](#79035) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Limit Title Characters on Product Listing Page](/forum/2-general-talk-about-hikashop/76174-limit-title-characters-on-product-listing-page#79035 "Is there a way to limit the amount of characters shown for products on the products listing page????")*

Hi,

Yes, something like: Code:

&lt;?php echo substr($this-&gt;row-&gt;product_name, 0, 7); //To display 7 characters. ?&gt;

or do that with "$this-&gt;row-&gt;product_description", depending on what you want
Be careful, in the string "$this-&gt;row-&gt;product_description" it could be html tags.

The following user(s) said Thank You: [foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTc0LWxpbWl0LXRpdGxlLWNoYXJhY3RlcnMtb24tcHJvZHVjdC1saXN0aW5nLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")**
- [![foxy3433's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6412-foxy3433 "View foxy3433's Profile") Topic Author
- [ Offline](/forum/user/6412-foxy3433)

Less More

- Posts: 81
- Thank you received: 6
-
-

13 years 10 months ago -  13 years 10 months ago [\#80123](#80123) by [foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")  Replied by *[foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")* on topic *[Limit Title Characters on Product Listing Page](/forum/2-general-talk-about-hikashop/76174-limit-title-characters-on-product-listing-page#80123 "Is there a way to limit the amount of characters shown for products on the products listing page????")*

When trying to edit the product listing page

i.e

Click on a category and you see all your products in that category with add to cart button..

Which file edits this file via VIEW?

Last edit: 13 years 10 months ago by [foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTc0LWxpbWl0LXRpdGxlLWNoYXJhY3RlcnMtb24tcHJvZHVjdC1saXN0aW5nLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 10 months ago [\#80172](#80172) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Limit Title Characters on Product Listing Page](/forum/2-general-talk-about-hikashop/76174-limit-title-characters-on-product-listing-page#80172 "Is there a way to limit the amount of characters shown for products on the products listing page????")*

Hi,

The view to edit is depending on your configuration, if you set a display in Div with image and title displayed, then the view is "product / listing_img_title".

The following user(s) said Thank You: [foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTc0LWxpbWl0LXRpdGxlLWNoYXJhY3RlcnMtb24tcHJvZHVjdC1saXN0aW5nLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")**
- [![foxy3433's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6412-foxy3433 "View foxy3433's Profile") Topic Author
- [ Offline](/forum/user/6412-foxy3433)

Less More

- Posts: 81
- Thank you received: 6
-
-

13 years 10 months ago [\#80198](#80198) by [foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")  Replied by *[foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")* on topic *[Limit Title Characters on Product Listing Page](/forum/2-general-talk-about-hikashop/76174-limit-title-characters-on-product-listing-page#80198 "Is there a way to limit the amount of characters shown for products on the products listing page????")*

oo my Gosh why am i going on stupid Cheers Mate

Think i need sleep

Sorry for wasting you time that was a stupid question now awake had a bit of sleep

SORRY

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTc0LWxpbWl0LXRpdGxlLWNoYXJhY3RlcnMtb24tcHJvZHVjdC1saXN0aW5nLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")**
- [![foxy3433's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6412-foxy3433 "View foxy3433's Profile") Topic Author
- [ Offline](/forum/user/6412-foxy3433)

Less More

- Posts: 81
- Thank you received: 6
-
-

13 years 10 months ago [\#80216](#80216) by [foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")  Replied by *[foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")* on topic *[Limit Title Characters on Product Listing Page](/forum/2-general-talk-about-hikashop/76174-limit-title-characters-on-product-listing-page#80216 "Is there a way to limit the amount of characters shown for products on the products listing page????")*

Right i now have five mins to implement the character limit

So we have product name listed here:

&lt;!-- PRODUCT NAME --&gt;
&lt;span class="hikashop_product_name"&gt;
&lt;?php if($this-&gt;params-&gt;get('link_to_product_page',1)){ ?&gt;
&lt;a href="&lt;?php echo $link;?&gt;"&gt;

&lt;?php }
echo $this-&gt;row-&gt;product_name;
if($this-&gt;params-&gt;get('link_to_product_page',1)){ ?&gt;
&lt;/a&gt;
&lt;?php } ?&gt;
&lt;/span&gt;
&lt;!-- EO PRODUCT NAME --&gt;

I need to insert the title limit and manufactures name at the start i.e

&lt;?php $class = hikashop_get('class.category');
$manufacturer = $class-&gt;get($this-&gt;element-&gt;product_manufacturer_id);
echo $manufacturer-&gt;category_name; ?&gt;

Any time i input the codes i get nothing, but it works fine on show_block???

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTc0LWxpbWl0LXRpdGxlLWNoYXJhY3RlcnMtb24tcHJvZHVjdC1saXN0aW5nLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")**
- [![foxy3433's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6412-foxy3433 "View foxy3433's Profile") Topic Author
- [ Offline](/forum/user/6412-foxy3433)

Less More

- Posts: 81
- Thank you received: 6
-
-

13 years 10 months ago [\#80234](#80234) by [foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")  Replied by *[foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")* on topic *[Limit Title Characters on Product Listing Page](/forum/2-general-talk-about-hikashop/76174-limit-title-characters-on-product-listing-page#80234 "Is there a way to limit the amount of characters shown for products on the products listing page????")*

&lt;!-- PRODUCT NAME --&gt;
&lt;span class="hikashop_product_name"&gt;
&lt;?php if($this-&gt;params-&gt;get('link_to_product_page',1)){ ?&gt;
&lt;a href="&lt;?php echo $link;?&gt;"&gt;

&lt;?php
echo substr($this-&gt;row-&gt;product_name, 0, 7); //To display 7 characters.
?&gt;
&lt;/a&gt;
&lt;?php } ?&gt;
&lt;/span&gt;
&lt;!-- EO PRODUCT NAME --&gt;

That's the title limited Figured it out

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTc0LWxpbWl0LXRpdGxlLWNoYXJhY3RlcnMtb24tcHJvZHVjdC1saXN0aW5nLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")**
- [![foxy3433's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6412-foxy3433 "View foxy3433's Profile") Topic Author
- [ Offline](/forum/user/6412-foxy3433)

Less More

- Posts: 81
- Thank you received: 6
-
-

13 years 10 months ago [\#80239](#80239) by [foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")  Replied by *[foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")* on topic *[Limit Title Characters on Product Listing Page](/forum/2-general-talk-about-hikashop/76174-limit-title-characters-on-product-listing-page#80239 "Is there a way to limit the amount of characters shown for products on the products listing page????")*

Unable to get Manufacture name in Title on Product listing page

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTc0LWxpbWl0LXRpdGxlLWNoYXJhY3RlcnMtb24tcHJvZHVjdC1saXN0aW5nLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 10 months ago [\#80240](#80240) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Limit Title Characters on Product Listing Page](/forum/2-general-talk-about-hikashop/76174-limit-title-characters-on-product-listing-page#80240 "Is there a way to limit the amount of characters shown for products on the products listing page????")*

Are you sure that you edit in the good view of the good template ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTc0LWxpbWl0LXRpdGxlLWNoYXJhY3RlcnMtb24tcHJvZHVjdC1saXN0aW5nLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")**
- [![foxy3433's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6412-foxy3433 "View foxy3433's Profile") Topic Author
- [ Offline](/forum/user/6412-foxy3433)

Less More

- Posts: 81
- Thank you received: 6
-
-

13 years 10 months ago [\#80241](#80241) by [foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")  Replied by *[foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")* on topic *[Limit Title Characters on Product Listing Page](/forum/2-general-talk-about-hikashop/76174-limit-title-characters-on-product-listing-page#80241 "Is there a way to limit the amount of characters shown for products on the products listing page????")*

Ye i got the Limit working fine for the title but need the brand name to appear in Title also... Code i got won't work

&lt;?php $class = hikashop_get('class.category');
$manufacturer = $class-&gt;get($this-&gt;element-&gt;product_manufacturer_id);
echo $manufacturer-&gt;category_name; ?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTc0LWxpbWl0LXRpdGxlLWNoYXJhY3RlcnMtb24tcHJvZHVjdC1saXN0aW5nLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 10 months ago [\#80256](#80256) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Limit Title Characters on Product Listing Page](/forum/2-general-talk-about-hikashop/76174-limit-title-characters-on-product-listing-page#80256 "Is there a way to limit the amount of characters shown for products on the products listing page????")*

I tried this code on my end, and it's working fine, try to add it just after the code: Code:

&lt;?php echo substr($this-&gt;row-&gt;product_name, 0, 7); //To display 7 characters. ?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTc0LWxpbWl0LXRpdGxlLWNoYXJhY3RlcnMtb24tcHJvZHVjdC1saXN0aW5nLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")**
- [![foxy3433's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6412-foxy3433 "View foxy3433's Profile") Topic Author
- [ Offline](/forum/user/6412-foxy3433)

Less More

- Posts: 81
- Thank you received: 6
-
-

13 years 10 months ago [\#80260](#80260) by [foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")  Replied by *[foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")* on topic *[Limit Title Characters on Product Listing Page](/forum/2-general-talk-about-hikashop/76174-limit-title-characters-on-product-listing-page#80260 "Is there a way to limit the amount of characters shown for products on the products listing page????")*

Right we are confused i Sorted The Limit out i need the BRAND name to come up before title is this possible~????

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTc0LWxpbWl0LXRpdGxlLWNoYXJhY3RlcnMtb24tcHJvZHVjdC1saXN0aW5nLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 10 months ago [\#80338](#80338) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Limit Title Characters on Product Listing Page](/forum/2-general-talk-about-hikashop/76174-limit-title-characters-on-product-listing-page#80338 "Is there a way to limit the amount of characters shown for products on the products listing page????")*

Hi,

Yes I understood that you have solved the limit problem, and I was telling you to try to add the code: Code:

&lt;?php $class = hikashop_get('class.category'); $manufacturer = $class-&gt;get($this-&gt;element-&gt;product_manufacturer_id); echo $manufacturer-&gt;category_name; ?&gt;

Before: Code:

&lt;?php echo substr($this-&gt;row-&gt;product_name, 0, 7); //To display 7 characters. ?&gt;

Because I tried the code: Code:

&lt;?php $class = hikashop_get('class.category'); $manufacturer = $class-&gt;get($this-&gt;element-&gt;product_manufacturer_id); echo $manufacturer-&gt;category_name; ?&gt;

And it's working fine on my end. ![;)](/media/kunena/emoticons/24.png ";)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTc0LWxpbWl0LXRpdGxlLWNoYXJhY3RlcnMtb24tcHJvZHVjdC1saXN0aW5nLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")**
- [![foxy3433's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6412-foxy3433 "View foxy3433's Profile") Topic Author
- [ Offline](/forum/user/6412-foxy3433)

Less More

- Posts: 81
- Thank you received: 6
-
-

13 years 10 months ago [\#80363](#80363) by [foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")  Replied by *[foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")* on topic *[Limit Title Characters on Product Listing Page](/forum/2-general-talk-about-hikashop/76174-limit-title-characters-on-product-listing-page#80363 "Is there a way to limit the amount of characters shown for products on the products listing page????")*

ooo ok i'll try it now cheers mate

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTc0LWxpbWl0LXRpdGxlLWNoYXJhY3RlcnMtb24tcHJvZHVjdC1saXN0aW5nLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")**
- [![foxy3433's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6412-foxy3433 "View foxy3433's Profile") Topic Author
- [ Offline](/forum/user/6412-foxy3433)

Less More

- Posts: 81
- Thank you received: 6
-
-

13 years 10 months ago [\#80405](#80405) by [foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")  Replied by *[foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")* on topic *[Limit Title Characters on Product Listing Page](/forum/2-general-talk-about-hikashop/76174-limit-title-characters-on-product-listing-page#80405 "Is there a way to limit the amount of characters shown for products on the products listing page????")*

Nunno whats going on but that don't work my end, plus i have to be in the correct file as the limit is working

&lt;!-- PRODUCT NAME --&gt;
&lt;span class="hikashop_product_name"&gt;
&lt;?php if($this-&gt;params-&gt;get('link_to_product_page',1)){ ?&gt;
&lt;a href="&lt;?php echo $link;?&gt;"&gt;

&lt;?php $class = hikashop_get('class.category');
$manufacturer = $class-&gt;get($this-&gt;element-&gt;product_manufacturer_id);
echo $manufacturer-&gt;category_name; ?&gt;&lt;?php echo substr($this-&gt;row-&gt;product_name, 0, 30); //To display 7 characters.
?&gt;
&lt;/a&gt;
&lt;?php } ?&gt;
&lt;/span&gt;
&lt;!-- EO PRODUCT NAME --&gt;

You want BK-End Access to explore or url to page to view source?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTc0LWxpbWl0LXRpdGxlLWNoYXJhY3RlcnMtb24tcHJvZHVjdC1saXN0aW5nLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 10 months ago -  13 years 10 months ago [\#80454](#80454) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Limit Title Characters on Product Listing Page](/forum/2-general-talk-about-hikashop/76174-limit-title-characters-on-product-listing-page#80454 "Is there a way to limit the amount of characters shown for products on the products listing page????")*

Hi,
Code:

&lt;!-- PRODUCT NAME --&gt; &lt;span class="hikashop_product_name"&gt; &lt;?php if($this-&gt;params-&gt;get('link_to_product_page',1)){ ?&gt; &lt;a href="&lt;?php echo $link;?&gt;"&gt; &lt;?php $categoryClass = hikashop_get('class.category'); $manufacturer = $categoryClass-&gt;get($this-&gt;row-&gt;product_manufacturer_id); echo $manufacturer-&gt;category_name; echo substr($this-&gt;row-&gt;product_name, 0, 30); ?&gt; &lt;/a&gt; &lt;?php } ?&gt; &lt;/span&gt; &lt;!-- EO PRODUCT NAME --&gt;

PS : You can use the tag "code" for pasting your code, it would be easier to read ![:)](/media/kunena/emoticons/3.png ":)")

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Last edit: 13 years 10 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

The following user(s) said Thank You: [foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTc0LWxpbWl0LXRpdGxlLWNoYXJhY3RlcnMtb24tcHJvZHVjdC1saXN0aW5nLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")**
- [![foxy3433's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6412-foxy3433 "View foxy3433's Profile") Topic Author
- [ Offline](/forum/user/6412-foxy3433)

Less More

- Posts: 81
- Thank you received: 6
-
-

13 years 10 months ago [\#80487](#80487) by [foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")  Replied by *[foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")* on topic *[Limit Title Characters on Product Listing Page](/forum/2-general-talk-about-hikashop/76174-limit-title-characters-on-product-listing-page#80487 "Is there a way to limit the amount of characters shown for products on the products listing page????")*

That worked..... Thank you..

Have we not got a MYSQL Query to just bang the brand name in title of product cause i need it on checkout and cart...

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTc0LWxpbWl0LXRpdGxlLWNoYXJhY3RlcnMtb24tcHJvZHVjdC1saXN0aW5nLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14280
-
-

13 years 10 months ago [\#80558](#80558) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Limit Title Characters on Product Listing Page](/forum/2-general-talk-about-hikashop/76174-limit-title-characters-on-product-listing-page#80558 "Is there a way to limit the amount of characters shown for products on the products listing page????")*

The code is the same there too:
&lt;?php $class = hikashop_get('class.category');
$manufacturer = $class-&gt;get($this-&gt;element-&gt;product_manufacturer_id);
echo $manufacturer-&gt;category_name; ?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTc0LWxpbWl0LXRpdGxlLWNoYXJhY3RlcnMtb24tcHJvZHVjdC1saXN0aW5nLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.119 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
