Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Music Genres nor Record Company are not displaying

Music Genres nor Record Company are not displaying

Locked

Views: 2,482

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
15 Jun 2006, 3:35 PM
#1
sketman avatar

sketman

New Zenner

Join Date:
May 2006
Posts:
13
Plugin Contributions:
0

Music Genres nor Record Company are not displaying

I am setting up my new store and will use music product type, even I sell physicall goods.

I have customized the extra´s fields Artist, Music Genre and Record Company - just changed names that now fits to my needs.

My problem is that none of these fields are showing at my product info pages. I have enabled them in Admin->Catalog->Product Types->Product Music Page layout, together with attributes like "Show Model Number" or "Show Weight". Model number and weight are displaying correctly, but artist, music genre and record company are not displaying at all.

Any suggestions why?

Thank you very much ...

18 Jan 2007, 12:21 AM
#2
darinland avatar

darinland

New Zenner

Join Date:
Jan 2007
Posts:
15
Plugin Contributions:
0

Re: Music Genres nor Record Company are not displaying

I'm having the exact same problem--no matter what I do, I can't get the Record Company or the Genre to display--or, in fact, any detail other than the Artist Name, Title and Price.

Anyone have a solution?

I haven't made any changes to the code, just made the necessary selections to turn on various things in the appropriate "Product Type".

Thanks to anyone who can figger this out!:laugh:

26 Jan 2007, 4:13 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Music Genres nor Record Company are not displaying

In a fresh install with demo products, the Music category contains a sample Product-Music item, which shows the default data:

Russ Tippins Band - The Hunter
$1.95 $3.00
Save: -54% off

**Add to Cart: ** [____]

* Model: RTBHUNTER
* Artist: The Russ Tippins Band
* Music Genre: Rock

Media Collection:
Russ Tippins - The Hunter
thehunter.mp3 (MP3)

If you wish to display more than Model / Weight / Quantity-On-Hand / Manufacturer(Publisher) / Artist / Genre for a particular product, you'll have to make some changes to your customized version of the tpl_product_music_info_display.php template file.

This is the section that displays the currently-templated data:```html

<!--bof Product details list --> <?php if ( (($flag_show_product_info_model == 1 and $products_model != '') or ($flag_show_product_info_weight == 1 and $products_weight !=0) or ($flag_show_product_info_quantity == 1) or ($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name))) or $flag_show_product_music_info_artist == 1 or $flag_show_product_music_info_genre == 1) { ?> <ul id="productDetailsList" class="floatingBox back"> <?php echo (($flag_show_product_info_model == 1 and $products_model !='') ? '<li>' . TEXT_PRODUCT_MODEL . $products_model . '</li>' : '') . "\n"; ?> <?php echo (($flag_show_product_info_weight == 1 and $products_weight !=0) ? '<li>' . TEXT_PRODUCT_WEIGHT . $products_weight . TEXT_PRODUCT_WEIGHT_UNIT . '</li>' : '') . "\n"; ?> <?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>' : '') . "\n"; ?> <?php echo (($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name)) ? '<li>' . TEXT_PRODUCT_MANUFACTURER . $manufacturers_name . '</li>' : '') . "\n"; ?> <?php echo (($flag_show_product_music_info_artist == 1 and !empty($products_artist_name)) ? '<li>' . TEXT_PRODUCT_ARTIST . $products_artist_name . '</li>' : '') . "\n"; ?> <?php echo (($flag_show_product_music_info_genre == 1 and !empty($products_music_genre_name)) ? '<li>' . TEXT_PRODUCT_MUSIC_GENRE . $products_music_genre_name . '</li>' : '') . "\n"; ?> </ul> <br class="clearBoth" /> <?php } ?> <!--eof Product details list --> ```

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.