Results 1 to 10 of 14

Hybrid View

  1. #1
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: PHP question on /includes/templates/mytemplate/templates/tpl_product_info_display

    In my above recoding I forgot that there is a function also to provide the image html through ZC as well... So the above falls short of a truly Zen response.

    zen_image( $src, [ $alt = ''], [ $width = ''], [ $height = ''], [ $parameters = ''])
    Where $src would be everything provided above at and after the
    Code:
    <img src=
    section related to the image....

    Quote Originally Posted by mc12345678 View Post
    As to a possibly more rounded approach to the solution now that it is more clearly represented than in a previous related thread:

    Code:
    <?php
    
    $manufacturers_name = zen_get_products_manufacturers_name($product_info->fields['products_id']);
    
    ?>
    <a href="<?php echo zen_href_link(FILENAME_DEFAULT, "manufacturers_id=" . zen_get_products_manufacturers_id($product_info->fields['products_id']), $request_type); ?>"><?php echo zen_image(zen_get_manufacturers_image($product_info->fields['products_id'])); ?></a>
    This is untested, so may have some error(s)...
    Last edited by mc12345678; 13 May 2015 at 09:36 PM. Reason: forgot a closing parentheses
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. v151 Question regarding $manufacturers_id in tpl_product_info_display.php
    By shirster in forum General Questions
    Replies: 2
    Last Post: 9 Jul 2013, 04:59 AM
  2. Problems with includes/config.php and admin/includes.php
    By Scott83 in forum Basic Configuration
    Replies: 2
    Last Post: 23 Oct 2009, 07:09 PM
  3. PhP question about a line of code in includes/classes/order.php
    By dbrewster in forum Managing Customers and Orders
    Replies: 12
    Last Post: 1 Feb 2007, 03:30 PM

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