Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Join Date
    Mar 2007
    Location
    Cambridge, MA
    Posts
    59
    Plugin Contributions
    0

    Default Record Company image

    Anyone know how to get record company icons to appear? While there's a field to enter an image in Admin/Extras/Record Companies, I cannot see anywhere to actually turn the image on..

    Actually I'd love to have the record company logo be the link in the "product URL".

    Currently that area in tpl_product_music_info_display.php reads:

    Code:
    <!--bof Product URL -->
    <?php
      if (zen_not_null($products_record_company_url)) {
        if ($flag_show_product_music_info_record_company == 1) {
    ?>
        <li id="productInfoLink"><?php echo sprintf(TEXT_RECORD_COMPANY_URL, zen_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($products_record_company_url), 'NONSSL', true, false)); ?></li>
    <?php
        } // $flag_show_product_info_record_company
      }
    ?>
    <!--eof Product URL -->
    I've tried a number of ideas to call up products_record_company_image, but have not succeeded.

    Any idea would be awesome. Thanks!

    -SWW

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Record Company image

    You should be able to get the name of the image with:
    $record_company->fields['record_company_image']
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Mar 2007
    Location
    Cambridge, MA
    Posts
    59
    Plugin Contributions
    0

    Default Re: Record Company image

    Seems like the logical place (i.e. least desctructive to the original code) to change that might be /includes/langues/english/product_music_info.php?

    And then change the definition of TEXT_RECORD_COMPANY_URL to something like:

    Code:
    define('TEXT_RECORD_COMPANY_URL', '<a href="%s">' . zen_image($record_company->fields['record_company_image']) . '</a>.');
    Alas, not working. The image is not appearing. Don't I need a 'require' function in there or something?

    (I apologize for being such a php and SQL spaz..)

  4. #4
    Join Date
    Mar 2007
    Location
    Cambridge, MA
    Posts
    59
    Plugin Contributions
    0

    Default Re: Record Company image

    Actually, I just noticed that the 'record artist url' (web site for the recording artist, added in the Admin control panel) also has no way of being shown either.. And.. come to think of it... neither can the artist picture.....

    I do believe the the Product Music addition is in need of tweeks.

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Record Company image

    I was rather noticing that too ...

    The fields are available but not in the variable format like the others ...

    Look in the /pages/product_music__infp/header_php

    PHP Code:
      $products_record_company_url $record_company_info->fields['record_company_url']; 
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Mar 2007
    Location
    Cambridge, MA
    Posts
    59
    Plugin Contributions
    0

    Default Re: Record Company image

    Probably a number of (better) ways of doing this, but I went with:

    Changed the Product URL area in [my template]/templates/tpl_product_music_info.php to:

    Code:
    <!--bof Product URL -->
    
    <?php
      if (zen_not_null($products_record_company_url)) {
        if ($flag_show_product_music_info_record_company == 1) {
    ?>
    <?php echo sprintf('<a href="' . TEXT_RECORD_COMPANY_URL, zen_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($products_record_company_url), 'NONSSL', true, false) . '">' . zen_image(DIR_WS_IMAGES . $record_company->fields['record_company_image']) . '</a>'); ?>
    
    <?php
        } // $flag_show_product_info_record_company
      }
    ?>
    
    <!--eof Product URL -->
    And then changing the define TEXT_RECORD_COMPANY_URL line in /includes/languages/english/product_music-info.php, to:

    Code:
    define('TEXT_RECORD_COMPANY_URL', '%s');
    And viola, now every music product indeed shows the record company logo which links to their web site.

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Record Company image

    Thanks for sharing the solution that works for you ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  8. #8
    Join Date
    Aug 2006
    Posts
    166
    Plugin Contributions
    2

    Default Re: Record Company image, Artists image,

    hi
    I am still looking for finding the reason of adding images for artist and recorrding company for music products if there is no place that you can show them?

    anyway that we can show their images on the pages? the explanation above was not enough to get solve yhis problem.
    please if somebody wants to give solution, write it complete that be understandable for everybody.

  9. #9
    Join Date
    Aug 2006
    Posts
    166
    Plugin Contributions
    2

    Default Re: Record Company image

    I could get the image of record company on the product music info.
    I could make a line to show the product artist url and also its image which is hyperlinked to its url. the problem is that the image of artist does not been displayed?
    I checked the table of record artists and fields therein, and there is an image in the fields of this table for a defined artists, but on page it displays "image not available.gif)

    any idea about the reason:

    this is what I put in tpl_product_music_info_display.php

    <?php echo sprintf('<a href="' . TEXT_ARTIST_IMAGE_URL, zen_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($products_artist_url), 'NONSSL', true, false) . '">' . zen_image(DIR_WS_IMAGES . $record_artists->fields['artists_image']). '</a>'); ?>

  10. #10
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Record Company image

    Where are you building the data for obtaining: $record_artists->fields['artists_image']
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Adding description to Record Company or Record Artist
    By koesbong in forum General Questions
    Replies: 3
    Last Post: 21 Apr 2009, 04:25 AM
  2. Show record company in product listing
    By taguchi_isara in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 15 Dec 2007, 10:13 AM
  3. artist and record company
    By amopro in forum General Questions
    Replies: 0
    Last Post: 3 Feb 2007, 10:02 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR