Totally Zenned
- Join Date:
- Aug 2004
- Location:
- Fountain Hills, AZ
- Posts:
- 476
- Plugin Contributions:
- 0
Is this an error? - Product Type Music
I'm building a new product type and I'm using the existing product_type_music as my model. (version 1.38a)
In coding all the pages, I've come down to the last couple that I needed to modify and I stumbled on something that I never noticed before. In the past I've created new product types successfully but I did not use these files as a model.
In the two files, admin/record_artist.php and admin/music_genre.php, on or around lines 93, there is what looks like an incorrect reference - $manufacturer -
$manufacturer = $db->Execute("select artists_image
from " . TABLE_RECORD_ARTISTS . "
where artists_id = '" . (int)$artists_id . "'");
$image_location = DIR_FS_CATALOG_IMAGES . $manufacturer->fields['artists_image'];
If that is correct, can someone give me a bit of a programming logic explanation. I'm definitely not a Php guru, but that loses me. :blink:
Also further down in the code there are several references to: php manufacturer_inputs_string , which I would have thought should have beenphp record_artist_inputs_string or ```php
music_genre_inputs_string
Could someone clarify why the reference to manufacturer is in these two files?
Thanks a bunch
Ruth