Page 1 of 3 123 LastLast
Results 1 to 10 of 25
  1. #1
    Join Date
    Oct 2012
    Posts
    48
    Plugin Contributions
    0

    Default Help Changing the call for price option

    Hi Everyone

    Hope you are all well

    I currently have some products listed that are infact service which do not have a fixed price. I have listed them as call for price and the call for rice gif apppears when called for.
    What I would like to do is on a whole category find away of displaying a price from £**** in place of the call for price tag.
    This would be easy to do by just altering the call for price gif however if i do that the price from £**** will apppear on all products like this and unfortuently they a from rice is different on each product.
    I have 12 products in total that I would like to do this for and if possible would like some idea and pointers to how it could be done perhaps with a selection of *if statements

    Any ideas would be greatly appreciated here is a link to one of the product lists I am tryoing to modify

    http://www.avinstalls.co.uk/tv-insta...ces-c-1_2.html

    All help is greatly appreciated :)

    Many Thanks

    Boyd

  2. #2
    Join Date
    Oct 2012
    Posts
    48
    Plugin Contributions
    0

    Default Re: Help Changing the call for price option

    I have been looking into this further and wonered if this could be a possible solution

    I the languages other images name it defines the use of the call for price jpg

    Is it possible to use a if page = statement and turn this image off for certain pages and use another if statement to recall a seperate call for price image that could be modified to reflect a price from jpg

    or can you make an if statement for each product i want to modify that both turns of the existing definition and recalls the alternative defined image


    Hope I have explaine dthis well enough

    Thanks for any advice



    <?php
    /**
    * @package languageDefines
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: other_images_names.php 3056 2006-02-21 06:41:36Z birdbrain $
    */

    /*
    * define the other images used in the project
    */

    define('OTHER_IMAGE_BLACK_SEPARATOR', 'pixel_black.gif');
    define('OTHER_IMAGE_BOX_NOTIFY_REMOVE', 'box_products_notifications_remove.gif');
    define('OTHER_IMAGE_BOX_NOTIFY_YES', 'box_products_notifications.gif');
    define('OTHER_IMAGE_BOX_WRITE_REVIEW', 'box_write_review.gif');
    define('OTHER_IMAGE_CALL_FOR_PRICE', 'call_for_prices.jpg');
    define('OTHER_IMAGE_DOWN_FOR_MAINTENANCE', 'down_for_maintenance.gif');
    define('OTHER_IMAGE_PRICE_IS_FREE', 'free.gif');
    define('OTHER_IMAGE_TRANPARENT', 'pixel_trans.gif');
    define('OTHER_IMAGE_CUSTOMERS_AUTHORIZATION', 'customer_authorization.gif');
    define('OTHER_IMAGE_REVIEWS_RATING_STARS_FIVE', 'stars_5_small.gif');
    define('OTHER_IMAGE_REVIEWS_RATING_STARS_FOUR', 'stars_4_small.gif');
    define('OTHER_IMAGE_REVIEWS_RATING_STARS_THREE', 'stars_3_small.gif');
    define('OTHER_IMAGE_REVIEWS_RATING_STARS_TWO', 'stars_2_small.gif');
    define('OTHER_IMAGE_REVIEWS_RATING_STARS_ONE', 'stars_1_small.gif');
    //define('OTHER_IMAGE_', '');

    /*
    * ALT tags for other images
    */

    define('OTHER_BOX_NOTIFY_REMOVE_ALT', 'Remove this product notification.');
    define('OTHER_BOX_NOTIFY_YES_ALT', 'Notify me of updates to this product.');
    define('OTHER_BOX_WRITE_REVIEW_ALT', 'Write a review on this product.');
    define('OTHER_CALL_FOR_PRICE_ALT', 'Please Call for the Current Price.');
    define('OTHER_DOWN_FOR_MAINTENANCE_ALT', 'The site is currently down for maintenance. Please come back later.');
    define('OTHER_TRANPARENT_ALT', '');
    define('OTHER_IMAGE_CUSTOMERS_AUTHORIZATION_ALT', 'CUSTOMER APPROVAL IS PENDING ...');
    define('OTHER_REVIEWS_RATING_STARS_FIVE_ALT', 'Five Stars');
    define('OTHER_REVIEWS_RATING_STARS_FOUR_ALT', 'Four Stars');
    define('OTHER_REVIEWS_RATING_STARS_THREE_ALT', 'Three Stars');
    define('OTHER_REVIEWS_RATING_STARS_TWO_ALT', 'Two Stars');
    define('OTHER_REVIEWS_RATING_STARS_ONE_ALT', 'One Star');
    //define('OTHER_xxx_ALT', '');

    ?>

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

    Default Re: Help Changing the call for price option

    Are you saying on Call for Price products that you want to show either the Call for Price tag *or* an actual Price for the Product on a specific Category?

    If so, just adding a Price to the Product with show both the Price and the Call for Price tag ...
    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: v1.5.5]
    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!

  4. #4
    Join Date
    Oct 2012
    Posts
    48
    Plugin Contributions
    0

    Default Re: Help Changing the call for price option

    Hi Ajeh

    Lets say I have 20 products that are call for price
    Out of them 20 there are six product that have a from and to price eg 99.99 to 199.99 there is no fixed price hence why I am using call for price
    What I wont to do for those six individual product is display an image or text with a from 99.99 to 199.99 instead of call for price the next snag each of those six products have a different from and to price so need to be handled individual as that paricular product page is called

    I hope I am making sense lol

    kind regards Boyd

    I hope that makes sense

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

    Default Re: Help Changing the call for price option

    The Call for Price image is managed in the file:
    /includes/functions/functions_price.php

    in the function zen_get_products_output_price ...

    The image itself is down in the code around 288:
    Code:
        // If Call for Price, Show it
        if ($product_check->fields['product_is_call']) {
          if (PRODUCTS_PRICE_IS_CALL_IMAGE_ON=='0') {
    //         $priceinfo['call_tag'] = PRODUCTS_PRICE_IS_CALL_FOR_PRICE_TEXT;
            $priceinfo['call_tag'] = '<a class="btn-callforprice" href="' . zen_href_link(FILENAME_CONTACT_US, '', 'SSL') . '">' . PRODUCTS_PRICE_IS_CALL_FOR_PRICE_TEXT . '</a>';
            $call_tag = '<br />' . $priceinfo['call_tag'];
          } else {
            $priceinfo['call_tag'] = zen_image(DIR_WS_TEMPLATE_IMAGES . OTHER_IMAGE_CALL_FOR_PRICE, PRODUCTS_PRICE_IS_CALL_FOR_PRICE_TEXT);
            $call_tag = '<br />' . $priceinfo['call_tag'];
          }
        }
    You could add in there a check for the Product's products_id based on the variable $products_id and display your own image, when needed ...
    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: v1.5.5]
    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
    Oct 2012
    Posts
    48
    Plugin Contributions
    0

    Default Re: Help Changing the call for price option

    Hi Ajeh

    Thanks for this not sure how to complete it but below is what I would do with my limited knowledge

    // If Call for Price, Show it
    if ($product_check->fields['product_is_call']) {
    if (PRODUCTS_PRICE_IS_CALL_IMAGE_ON=='0') {
    // $priceinfo['call_tag'] = PRODUCTS_PRICE_IS_CALL_FOR_PRICE_TEXT;
    $priceinfo['call_tag'] = '<a class="btn-callforprice" href="' . zen_href_link(FILENAME_CONTACT_US, '', 'SSL') . '">' . PRODUCTS_PRICE_IS_CALL_FOR_PRICE_TEXT . '</a>';
    $call_tag = '<br />' . $priceinfo['call_tag'];
    } else {
    $priceinfo['call_tag'] = zen_image(DIR_WS_TEMPLATE_IMAGES . OTHER_IMAGE_CALL_FOR_PRICE, PRODUCTS_PRICE_IS_CALL_FOR_PRICE_TEXT);
    $call_tag = '<br />' . $priceinfo['call_tag'];
    }else {
    if ($current_page_base == 'product_info' and $_GET['products_id'] == '4' = zen_image(DIR_WS_TEMPLATE_IMAGES . OTHER_IMAGE_NEW_IMAGE_FOR_PRICE, PRODUCTS_PRICE_IS_CALL_FOR_PRICE_TEXT);
    $call_tag = '<br />' . $priceinfo['call_tag'];

    }


    not sure if that is the sort of thing you mean sorry

  7. #7
    Join Date
    Oct 2012
    Posts
    48
    Plugin Contributions
    0

    Default Re: Help Changing the call for price option

    or possibly


    / If Call for Price, Show it
    if ($product_check->fields['product_is_call']) {
    if (PRODUCTS_PRICE_IS_CALL_IMAGE_ON=='0') {
    // $priceinfo['call_tag'] = PRODUCTS_PRICE_IS_CALL_FOR_PRICE_TEXT;
    $priceinfo['call_tag'] = '<a class="btn-callforprice" href="' . zen_href_link(FILENAME_CONTACT_US, '', 'SSL') . '">' . PRODUCTS_PRICE_IS_CALL_FOR_PRICE_TEXT . '</a>';
    $call_tag = '<br />' . $priceinfo['call_tag'];
    } else {
    $priceinfo['call_tag'] = zen_image(DIR_WS_TEMPLATE_IMAGES . OTHER_IMAGE_CALL_FOR_PRICE, PRODUCTS_PRICE_IS_CALL_FOR_PRICE_TEXT);
    $call_tag = '<br />' . $priceinfo['call_tag'];
    }else {
    if ($current_page_base == 'product_info' and $_GET['products_id'] == '4' )
    $priceinfo['call_tag'] = zen_image(DIR_WS_TEMPLATE_IMAGES . OTHER_IMAGE_NEW_IMAGE_PRICE, PRODUCTS_PRICE_IS_CALL_FOR_PRICE_TEXT);
    $call_tag = '<br />' . $priceinfo['call_tag'];

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

    Default Re: Help Changing the call for price option

    It might be easier to read/manage with:
    Code:
        // If Call for Price, Show it
        if ($product_check->fields['product_is_call']) {
          if (PRODUCTS_PRICE_IS_CALL_IMAGE_ON=='0') {
    //         $priceinfo['call_tag'] = PRODUCTS_PRICE_IS_CALL_FOR_PRICE_TEXT;
            $priceinfo['call_tag'] = '<a class="btn-callforprice" href="' . zen_href_link(FILENAME_CONTACT_US, '', 'SSL') . '">' . PRODUCTS_PRICE_IS_CALL_FOR_PRICE_TEXT . '</a>';
            $call_tag = '<br />' . $priceinfo['call_tag'];
          } else {
            $priceinfo['call_tag'] = zen_image(DIR_WS_TEMPLATE_IMAGES . OTHER_IMAGE_CALL_FOR_PRICE, PRODUCTS_PRICE_IS_CALL_FOR_PRICE_TEXT);
            $call_tag = '<br />' . $priceinfo['call_tag'];
          }
          
    // bof: custom Call for Price image override
            switch (true) {
                case ($products_id == 33):
              $priceinfo['call_tag'] = zen_image(DIR_WS_TEMPLATE_IMAGES . 'call_for_price_33.jpg', PRODUCTS_PRICE_IS_CALL_FOR_PRICE_TEXT);
              $call_tag = '<br />' . $priceinfo['call_tag'];
                  break;
                case ($products_id == 72):
              $priceinfo['call_tag'] = zen_image(DIR_WS_TEMPLATE_IMAGES . 'call_for_price_72.jpg', PRODUCTS_PRICE_IS_CALL_FOR_PRICE_TEXT);
              $call_tag = '<br />' . $priceinfo['call_tag'];
                  break;
                case ($products_id == 84):
              $priceinfo['call_tag'] = zen_image(DIR_WS_TEMPLATE_IMAGES . 'call_for_price_84.jpg', PRODUCTS_PRICE_IS_CALL_FOR_PRICE_TEXT);
              $call_tag = '<br />' . $priceinfo['call_tag'];
                  break;
          }
    // eof: custom Call for Price image override
        }
    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: v1.5.5]
    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!

  9. #9
    Join Date
    Oct 2012
    Posts
    48
    Plugin Contributions
    0

    Default Re: Help Changing the call for price option

    Hi AJeh

    thanks fopr this I havetried it but it sends the site completly blank I have noticed though that my

    // 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);
    }
    }

    is different to the one you have displayed above

    I have tried replacing all of the call for the text above but that also sends the site blank

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

    Default Re: Help Changing the call for price option

    You are in v151, correct?
    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: v1.5.5]
    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!

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Quantity Discounts Question: Call For Price option?
    By ray-the-otter in forum General Questions
    Replies: 2
    Last Post: 1 Dec 2011, 12:30 PM
  2. Changing the "Call for Price" Wording Across Entire Site
    By pattie1970 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 3 Oct 2009, 12:44 PM
  3. can I have call for price depending on option value?
    By mrbert in forum General Questions
    Replies: 2
    Last Post: 6 Apr 2007, 06:48 PM

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