Results 1 to 9 of 9
  1. #1
    Join Date
    Jan 2007
    Location
    Mount Maunganui, New Zealand
    Posts
    419
    Plugin Contributions
    0

    Default Change Call for prices image to text...

    Hi,
    I'd like to change the call for prices button on my site, into text only.
    Is there a bit of short code that would work easily?
    I know the name of the image so can find it's location ok...
    Thanks!

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

    Default Re: Change Call for prices image to text...

    You could use the handy dandy switch for that 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
    Jan 2007
    Location
    Mount Maunganui, New Zealand
    Posts
    419
    Plugin Contributions
    0

    Default Re: Change Call for prices image to text...

    Superb! Thanks.
    I new I'd done it a couple of years ago, but was searching the wrong way to go about it this time round (obviously!)
    Appreciated.

  4. #4
    Join Date
    Jan 2007
    Location
    Mount Maunganui, New Zealand
    Posts
    419
    Plugin Contributions
    0

    Default Re: Change Call for prices image to text...

    ...on a similar question...
    If I wanted that text to show up when "call for prices" is set to off, how could I do that.

    I'd like to enable adding to cart, but show "hire price" below the cost...exactly where "call for prices" shows up if switched on.
    Any ideas that might help?

    ( I could just type it in description of product, but it has a gap which makes it separated from price and I'd have to type it for 1000s of products...)

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

    Default Re: Change Call for prices image to text...

    The price display is managed in the functions_prices ...

    The Call for Price is handled in:
    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 could add an ELSE to that IF to display something when it is not Call for Price ...
    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!

  6. #6
    Join Date
    Jan 2007
    Location
    Mount Maunganui, New Zealand
    Posts
    419
    Plugin Contributions
    0

    Default Re: Change Call for prices image to text...

    Thanks Ajeh,
    I'm not sure exactly how to do that sorry.
    (I've got the file open of course no problem)

    I've done a search around for examples but not sure if it's a quick edit or what to do.
    Is it easy to type how it should look for me?

    Many thanks

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

    Default Re: Change Call for prices image to text...

    I have not tested this but try:
    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);
          }
        } else {
          $call_tag = '<br />' . 'Hello World';
        }
    And on all products that are not Call for Price you should see: Hello World
    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!

  8. #8
    Join Date
    Jan 2007
    Location
    Mount Maunganui, New Zealand
    Posts
    419
    Plugin Contributions
    0

    Default Re: Change Call for prices image to text...

    That worked a treat thank you!!!!!!
    Thanks for sharing your knowledge :)

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

    Default Re: Change Call for prices image to text...

    You are most welcome ... thanks for the update that this was able to work for you to post text on all products that are not set to Call for Price ...
    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. Change "Call For Price" text
    By gbonney in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 24 Aug 2010, 12:03 AM
  2. Replies: 2
    Last Post: 16 Jul 2009, 02:34 PM
  3. 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
  4. Call for Price - is showing BOTH text and image on product page...
    By jpnm in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 27 Apr 2008, 06:18 PM
  5. Replace "Call for price" text links with image button, how?
    By torgil in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 7 Sep 2006, 07:37 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