Full service web hosting, great prices and support. Starts at $1.99/month!
Results 1 to 3 of 3

Thread: Contact Us - Price Enquiry - Edit Text

  1. #1
    Deckside
    Guest


    Default Contact Us - Price Enquiry - Edit Text

    Sometimes I need to set the price to -1 so the customer needs to make a price enquiry as the shipping costs can be huge.

    When the customer clicks on "contact for price" they are presented with the contact us screen.

    Within the enquiry text box there is refilled in information saying

    Price Enquiry
    (Model)
    (product name)
    (Product ID)

    Does anyone know where I can modify this text as I would like to add
    Please include your postcode for shipping calculations.

    Thank you in advance

    Darren

    DECKSIDE Pty Ltd Marine Online | | Buy Online
    SeaDog Boat Parts Online :

  2. #2
    osCMax Development Team

    Contact Us - Price Enquiry - Edit Text

    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    3,517
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site

    Total Contributions For

    pgmarshall     $ 35.00
    Rep Power
    77


    Default Re: Contact Us - Price Enquiry - Edit Text

    The string that fills the text box is generated in catlog/includes/classes/priceformatter.php line 595-596. So edit here if you want to edit the code or see below for simpler language file change.

    PHP Code:
    if ($this->thePrice == CALL_FOR_PRICE_VALUE) { // Call for price
                
    $button_output .= '<a href="' tep_href_link(FILENAME_CONTACT_US'enquiry=' TEXT_QUESTION_PRICE_ENQUIRY '%0D%0A%0D%0A' TEXT_QUESTION_MODEL '%20' str_replace(' ''%20'$products_model) . '%0D%0A' TEXT_QUESTION_PRODUCT_NAME '%20' str_replace(' ''%20'$products_name) . '%0D%0A' TEXT_QUESTION_PRODUCT_ID '%20' $products_id '%0D%0A%0D%0A') . '">' tep_image_button('button_cfp.gif'IMAGE_BUTTON_CFP) . '</a>'
    catalog/includes/languages/english/core.php

    PHP Code:
    // Question links to contact form - %20 = space - needed to maintain W3C compliance in URLs
    define('TEXT_QUESTION_ABOUT''Question%20about:%20');
    define('TEXT_QUESTION_MODEL''Model:');
    define('TEXT_QUESTION_PRODUCT_ID''Product%20ID:');
    define('TEXT_QUESTION_TYPE''Type%20your%20question%20below:');
    define('TEXT_QUESTION_PRICE_ENQUIRY''Price%20Enquiry');
    define('TEXT_QUESTION_PRODUCT_NAME''Product%20Name:'); 
    But remember you will need to use %20 for each space and %0D for a carriage return.

    For example you could change the define for

    define('TEXT_QUESTION_PRICE_ENQUIRY', 'Price%20Enquiry');

    to

    define('TEXT_QUESTION_PRICE_ENQUIRY','Please%20
    ensure%20you%20supply%20us%20with%20your%20postcod e%20for%20accurate%20shipping%20costs.%0D%0DPrice% 20Enquiry');

    I have not tested this - so backup before you play with it!

    Regards,
    pgmarshall
    _______________________________

  3. #3
    Deckside
    Guest


    Default Re: Contact Us - Price Enquiry - Edit Text

    Thank you

    Perfect.


Similar Threads

  1. Special Price Input/Edit in Product Edit/Add Screen
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 05-11-2010, 06:10 AM
  2. Special Price Input/Edit in Product Edit/Add Screen
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 08-28-2007, 03:25 PM
  3. Special Price Input/Edit in Product Edit/Add Screen
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 08-19-2007, 05:12 AM
  4. Special Price Input/Edit in Product Edit/Add Screen
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 08-11-2007, 10:00 AM
  5. How do i edit the contact us text
    By forsythi in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 12-26-2003, 02:42 PM

Tags for this Thread

Bookmarks

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
  •