Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2007
    Location
    Bronx, New York, United States
    Posts
    932
    Plugin Contributions
    9

    Default Call For Price Image

    I'm writing a template file and I wanted to know if there is a way to make the "Call For Price" image NOT show up as an image but as plain text without editing the functions_prices.php file. (Especially since I plan on releasing this template to everyone. If it was just for me, I wouldn't mind.)

    Does anyone have a suggestion?

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

    Default Re: Call For Price Image

    There is a setting in the Configuration ... Product Info ...
    Product Info - Price is Call for Price Image or Text Status
    Product Info - Show the Price is Call for Price Image or Text on Displayed Price
    0= Text
    1= 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!]
    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
    Jun 2007
    Location
    Bronx, New York, United States
    Posts
    932
    Plugin Contributions
    9

    Default Re: Call For Price Image

    Quote Originally Posted by Ajeh View Post
    There is a setting in the Configuration ... Product Info ...
    Hmm... is there a way that I can "low-jack this so that it doesn't show the image? I trying not to make too many/any images at all with it. It's also causing an unsightly <br /> to be used.

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

    Default Re: Call For Price Image

    That <br /> is added to both the image and the text in the functions file:
    /includes/functions/functions_prices.php

    Code:
        // If Call for Price, Show it
        if ($product_check->fields['product_is_call']) {
          if (PRODUCTS_PRICE_IS_CALL_IMAGE_ON=='0') {
            $call_tag = '<br />' . PRODUCTS_PRICE_IS_CALL_FOR_PRICE_TEXT;
          } else {
            $call_tag = '<br />' . zen_image(DIR_WS_TEMPLATE_IMAGES . OTHER_IMAGE_CALL_FOR_PRICE, PRODUCTS_PRICE_IS_CALL_FOR_PRICE_TEXT);
          }
        }
    You would need to alter the code to change that ...

    NOTE: function files do NOT use override files ...
    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!]
    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!

  5. #5
    Join Date
    Jun 2007
    Location
    Bronx, New York, United States
    Posts
    932
    Plugin Contributions
    9

    Default Re: Call For Price Image

    Quote Originally Posted by Ajeh View Post
    NOTE: function files do NOT use override files ...
    Okay this leads to the next idea I had to get around it, that would be create a copy of the functions_prices.php code block, renaming the function that calls the price, using that to call the price instead. It's a bit much, but that's all I got. I'm trying really hard to make this a "drag and drop" kind of installation and don't feel its fair to ask anyone using this edit their core files solely to use this template.

    Also thanks Ajeh for your help in this.

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

    Default Re: Call For Price Image

    I am not keen on renaming functions ... especially functions that are used everywhere ...

    The change you need is pretty simple ... I'd go for just changing the original file and mark the code that you have changed it ... or, to add the change to your install read me ...
    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!]
    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!

 

 

Similar Threads

  1. v150 Adding a link to the 'Call for Price' image
    By Stizzed in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 29 Feb 2012, 01:03 AM
  2. Disable Call for price url below Call for price image?
    By IllusionGuy in forum General Questions
    Replies: 0
    Last Post: 6 Jan 2009, 10:36 PM
  3. Call For Price Image & Css Buttons an enigma
    By JosephKola in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 Dec 2008, 11:14 PM
  4. Adding a link to Call For Price image?
    By gabstero in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 17 Jun 2008, 06:51 PM
  5. Call for Price Image Gif instead of Jpeg
    By websightdesign in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 10 Oct 2006, 11:55 AM

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