Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2006
    Posts
    26
    Plugin Contributions
    0

    Default Replace "Call for price" text links with image button, how?

    Hi all!

    Working through the files....
    I want to replace the "Call for price" text link that shows in product info pages and product list if a product is call for price.
    However, this seems more complex than I first thought. Replacing the "More info" text link for product with price-affecting attributes was no problem, but the only place I can find any reference at all to call for price is in functions_prices.php which is not in the override system... I'm designing for template so I want all modifications to stay off of the core files. Anyone has any creative ideas?

  2. #2
    Join Date
    Nov 2004
    Location
    Deal, Kent, UK
    Posts
    332
    Plugin Contributions
    0

    Default Re: Replace "Call for price" text links with image button, how?

    Just done this.

    In product listing change the following lines round about 173:

    $the_button = $lc_button;
    $products_link = '<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'products_id=' . $listing->fields['products_id']) . '">' . MORE_INFO_TEXT . '</a>';
    to:

    $the_button = $lc_button; {
    if ($listing->fields['product_is_call'] == 1 ){
    $products_link = '<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'products_id=' . $listing->fields['products_id']) . '">' . YOUR_CALL_PRICE_IMG . '</a>';
    } else {

    $products_link = '<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'products_id=' . $listing->fields['products_id']) . '">' . MORE_INFO_TEXT . '</a>'; }
    Set up the new define for YOUR_CALL_PRICE_IMAGE in includes/languages/yourtemplate/english.php eg:

    define('MORE_INFO_CART_IMG','<img src="includes/templates/yourtemplate/images/callprice.gif" alt="Call for price" />');
    I also changed the define:

    define('TEXT_CALL_FOR_PRICE','');

    but you could use that for the image if you wanted. Not sure whether you wanted that as well. You posted a while ago but in case you or someone else has the same query, hope that helps.

 

 

Similar Threads

  1. v151 How to make all products show with "call for price" image
    By stoneroses6300 in forum General Questions
    Replies: 13
    Last Post: 20 Oct 2014, 11:16 AM
  2. remove the border around "call for price" and reposition "ask us" button
    By b90702098 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 2 May 2012, 10:45 AM
  3. Replace product-listing price with "Click for Price" button
    By jpmagee in forum General Questions
    Replies: 0
    Last Post: 29 Mar 2010, 01:11 PM
  4. Can I replace "larger image" text with a .gif image button?
    By limelites in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 24 Oct 2009, 10:11 AM
  5. Removing the "Tell A Friend About Us Image" And Call for price text
    By Outlawlb in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 26 Jun 2009, 05:52 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