PrestaShop change APE length

A few days ago I faced the problem regarding PrestaShop change APE length. So I think it will be better to share the solution with you all. There are no ways to change the APE length from PHP file you have to change the length. You need to modify the default PrestaShop table ps_customer. Running the following query will change the length of the APE field.

Run following SQL query and change the length accordingly. I am setting the length to 16.

ALTER TABLE `ps_customer` CHANGE `ape` `ape` VARCHAR( 16 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL

That’s it from this article. I strongly believe there is always room for improvement. So I am open to any suggestion and feedback. Please feel free to leave what you are thinking in the comments section below. Cheers.

Qaisar Satti

Hi, I'm Qaisar Satti! I've been a developer for over 20 years, and now I love sharing what I've learned through tutorials and guides. Whether you're working with Magento, PrestaShop, or WooCommerce, my goal is to make your development journey a bit easier and more fun. When I'm not coding or writing, you can find me exploring new tech trends and hanging out with the amazing developer community. Thanks for stopping by, and happy coding!

Leave a Reply

Recent Blogs

Categories