Jump to content

Increase Link_rewrite length


chief

Recommended Posts

Hi,

My site is 9.0.2, i deal in IT tech, our names are longer that 128 characters, how can i make it take upto 255 characters?

I have old info for 1.7.* which did state:

1.change db ps_product_lang increase length of name

2.change "prestashop\src\PrestaShopBundle\Form\Admin\Product\ProductInformation.php" and alter 'max' => 128  to 255

the above no longer exists.

3. change "classes/Product.php" and change link_rewrite to 255

All these changes did work, but no longer work when importing for version 9.0.*

what do i need to change to allow long name and link_rewrite

 

dave

Link to comment
Share on other sites

have you tried in \src\Core\Domain\Category\SeoSettings.php - around line 57 "public const MAX_LINK_REWRITE_LENGTH = 128;"

Also in \src\Core\Domain\Product\ProductSettings.php - line 61 public const MAX_LINK_REWRITE_LENGTH = 128;

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...