Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8361445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:42:10+00:00 2026-06-09T11:42:10+00:00

I am currently developing a website for an art gallery which sells artworks online.

  • 0

I am currently developing a website for an art gallery which sells artworks online. I need to develop some code to gather and display information about artists (bio, mail, email, dates of exhibition,…). I first tried to use the manufacturers function and to only adapt the translations, replacing “manufacturer” by “artist” but I soon realized that I was limited. I do not need to associate an artist with its address and I need additional information. The problem is I do not know what would be the best way to implement this, while keeping my code clean and make prestashop upgrades easy to do.

I think I will need to make new database tables, as follows (exhibition dates, not implemented yet):

CREATE TABLE `artist` (
  `id_artist` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(64) NOT NULL,
  `date_add` datetime NOT NULL,
  `date_upd` datetime NOT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '0',
  `email` varchar(255) DEFAULT NULL,
  `phone` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id_artist`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;


CREATE TABLE `artist_lang` (
  `id_artist` int(11) NOT NULL,
  `id_lang` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `short_description` text NOT NULL,
  `meta_title` varchar(128) NOT NULL,
  `meta_keywords` varchar(255) NOT NULL,
  `meta_description` varchar(255) NOT NULL,
  PRIMARY KEY (`id_artist`,`id_lang`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

Should I make this a module, or directly add an artist module and controllers in the core classes? If I do so, I will have to override the product class. Since I do not need the manufacturers, should I override the manufacturer class?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T11:42:12+00:00Added an answer on June 9, 2026 at 11:42 am

    I asked the same question on the Prestashop forum and got good advice that I will summarize here if someone had the same problem.

    There is no way around modifying core classes but override should be used as much as possible.


    Back-office functions

    • Create the database table, as mentioned in the question.
    • Create an Artist class in overrides/classes by copy-pasting the ManufacturerCore class and and substituting mentions of manufacturer by artist as well as specifying the additional fields as instance variables.
    • Create an ArtistController class in overrides/controllers and substitute mentions of manufacturer by artist
    • Override the Product class and add id_artist and artist_name as instance variables. Modify the following functions so that a product is linked with its artist: __construct, getFields and getProducts
    • Create a ArtistsAdmin subclass of AdminTab in admin/tabs so that the back-office can be used to add new/edit artists
    • Enable the tab in the back-office (employees -> tab -> add new)
    • Modify admin/ajax.php so that the artists can be queries form the back-office
    • Modify ProductsAdmin in admin/tabs so that the user can choose an artist when adding/editing a product
    • Create a logo for the artists tab and copy it in img/admin/artist.gif and img/admin/artists.gif
    • Handle the image folder in config/defines.inc.php:

      define(‘_ARTI_DIR_’, _PS_IMG_.’ar/’);
      define(‘_PS_ARTI_IMG_DIR_’, _PS_IMG_DIR_.’ar/’);

    • Crate the ar folder in img and set write permissions for everyone

    Front-Office functions (not tested yet, might lack some info):

    • Override Link with a function called getDistributorLink that models the getSupplierLink
    • Override Tools to update the generateHtaccess function to include redirects for the artist that models the supplier redirects. I used 3 underscores (___), where the manufacturer uses 1 underscore (_) and supplier uses 2 underscores (__).
    • Theme files (templates, css) to support the new core files.
    • If you want to display the artist on the product page, you could also create a module that hooks extraRight, or one or more of the product page hooks.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently developing a large ecommerce website and I also need to develop
I'm currently developing a website which stores bookmarks in a MySQL database using PHP
I am currently developing a website for an electrical company. They would like some
I am currently developing a website and i need that the pages loads dynamically
I am currently developing a Website in which user may buy gift cards. I
I'm currently developing a PM system for a website, in which users must be
I'm currently developing a website which will have heavy load, and a certain amount
I'm currently developing a website which allows the users to upload presentations, documents and
I'm currently developing a website in HTML and I want to copy some of
I'm currently developing a mobile website which is heavy on the images, css and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.