Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Sep 2006
    Posts
    542
    Plugin Contributions
    0

    Default PHP expert needed

    I am trying to change this code which displays product info text under the images that is in the products new, specials and featured products, to an image in templates/my_template_name/images/buttons.

    I want it to be a more info button that links to product info.

    Here is the

    Code:
    <a href="' . zen_href_link(zen_get_info_page($new_products->fields['products_id']), 'products_id=' . $new_products->fields['products_id']) . '">' . $new_products->fields['products_name'] . '</a>
    thanks

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: PHP expert needed

    I think the easiest is to find the current text that is displayed might be 'more...'

    and replace the defines for this with 'my_image.gif'

    See this used for the logo in /includes/languages/english/header.php
    Code:
    define('HEADER_LOGO_IMAGE', 'logo.gif');

  3. #3
    Join Date
    Sep 2006
    Posts
    542
    Plugin Contributions
    0

    Default Re: PHP expert needed

    I know where the text is. It is in the modules/featured_products.php and the specials and the new products.

    The product and images are random display in the center boxe on the index page.

    This is the section of the code that displays the product text under those images.

    <a href="' . zen_href_link(zen_get_info_page($new_products->fields['products_id']), 'products_id=' . $new_products->fields['products_id']) . '">' . $new_products->fields['products_name'] . '</a>

    Instead of the product text under the image I would like no wording but an image that is located in my template images buttons and linked to the product info page that the random image is displaying at the time. There is no defines there.

    Thanks again

  4. #4
    Join Date
    Sep 2006
    Posts
    542
    Plugin Contributions
    0

    Default Re: PHP expert needed

    Would it be easier to take the next part of the code the price and make that the link to the product info?

    . $products_price

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: PHP expert needed

    I could be wrong but I think that the file that you are looking at is not the file that controls the display but the one that grabs the information.

    tpl_modules_products_featured_listing.php is one of several that I think defines the display for featured and others for the rest

  6. #6
    Join Date
    Sep 2006
    Posts
    542
    Plugin Contributions
    0

    Default Re: PHP expert needed

    So the above code it drawing the product info form another file and displaying the text and price?

    All I know is when this code is cut out there isn't a discription link or price under the inage.

    I will look where you suggest and see what.......... Well, I don't know what.

 

 

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