Jump to content



* * * * - 2 votes

How Did You Hear About Us - Support


  • Please log in to reply
317 replies to this topic

#261   NedFlandersUSA

NedFlandersUSA
  • Members
  • 3 posts
  • Real Name:NEd

Posted 16 July 2007 - 10:41 AM

Has anyone added the ability to edit their original answer once they've already registered? I'd like my customers to be able to view/edit their "referral" on their edit customer screen. (i.e. account_edit.php)

And, it would be nice if it appeared in the invoice.

I already modded it so the referral appears in the email notification.

Any help would be greatly appreciated!

Ned

#262   tsvenkat

tsvenkat
  • Members
  • 131 posts
  • Real Name:Teeyes Venkat
  • Location:Madurai/Tamilnadu, India

Posted 20 July 2007 - 03:11 PM

Hi

Can you explain how you got the OTHER OPTION working ?

Venk


View PostDmacman, on Jun 4 2007, 08:23 PM, said:

Hi All,

I have this installed and working great with the 'Other' option, but I have a question, I cant seem to resolve.

I need to control the order of the options, and order by ID or by name will not do it. As a temp fix I put the number (of the position I want it to be) in front of the names.

IE

1. Google
2. ABC
3. Yahoo

etc.

If this was a procedural coding, I could just find the SQL query and change it, but I have not been able to totally 'wrap my brain' around osC yet.

Thanks for the help in advance,

Don


#263   varnco

varnco
  • Members
  • 359 posts
  • Real Name:varnco
  • Gender:Male

Posted 20 July 2007 - 05:15 PM

View PostNedFlandersUSA, on Jul 16 2007, 06:41 AM, said:

Has anyone added the ability to edit their original answer once they've already registered? I'd like my customers to be able to view/edit their "referral" on their edit customer screen. (i.e. account_edit.php)

And, it would be nice if it appeared in the invoice.

I already modded it so the referral appears in the email notification.

Any help would be greatly appreciated!

Ned

Wouldn't use simply use the same code that was used to add it to the email and instead add it in an appropriate area on invoice.php?

BTW, what was the code you used so it displayed in the email notification?

Thanks.

#264   fisheyesoup

fisheyesoup
  • Members
  • 1 posts
  • Real Name:kevin

Posted 01 August 2007 - 01:55 AM

I'm getting an error on my site when installing:

Parse error: syntax error, unexpected '"' in /home/queenb/public_html/shop/includes/functions/html_output.php on line 134

I can't track down the " anywhere around line 134... can you help?  (please)

_____________

Here is the code for the file "html_output.php" that has the error in it

_____________

////

<?php
/*
$Id: html_output.php,v 1.56 2003/07/09 01:15:48 hpdl Exp $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright © 2003 osCommerce

Released under the GNU General Public License
*/

////
// The HTML href link wrapper function
function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) {
    global $request_type, $session_started, $SID;

    if (!tep_not_null($page)) {
        die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>');
    }

    if ($connection == 'NONSSL') {
        $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG;
    } elseif ($connection == 'SSL') {
        if (ENABLE_SSL == true) {
            $link = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG;
        } else {
            $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG;
        }
    } else {
        die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL</b><br><br>');
    }

    if (tep_not_null($parameters)) {
        $link .= $page . '?' . tep_output_string($parameters);
        $separator = '&';
    } else {
        $link .= $page;
        $separator = '?';
    }

    while ( (substr($link, -1) == '&') || (substr($link, -1) == '?') ) $link = substr($link, 0, -1);

    // Add the session ID when moving from different HTTP and HTTPS servers, or when SID is defined
    if ( ($add_session_id == true) && ($session_started == true) && (SESSION_FORCE_COOKIE_USE == 'False') ) {
        if (tep_not_null($SID)) {
            $_sid = $SID;
        } elseif ( ( ($request_type == 'NONSSL') && ($connection == 'SSL') && (ENABLE_SSL == true) ) || ( ($request_type == 'SSL') && ($connection == 'NONSSL') ) ) {
            if (HTTP_COOKIE_DOMAIN != HTTPS_COOKIE_DOMAIN) {
                $_sid = tep_session_name() . '=' . tep_session_id();
            }
        }
    }

    if ( (SEARCH_ENGINE_FRIENDLY_URLS == 'true') && ($search_engine_safe == true) ) {
        while (strstr($link, '&&')) $link = str_replace('&&', '&', $link);

        $link = str_replace('?', '/', $link);
        $link = str_replace('&', '/', $link);
        $link = str_replace('=', '/', $link);

        $separator = '?';
    }

    if (isset($_sid)) {
        $link .= $separator . $_sid;
    }

    return $link;
}

////


function calculateCacheSubDir($width, $height)
{
    if ($width == SMALL_IMAGE_WIDTH && $height == SMALL_IMAGE_HEIGHT)               return 'small';
    if ($width == HEADING_IMAGE_WIDTH && $height == HEADING_IMAGE_HEIGHT)           return 'heading';
    if ($width == SUBCATEGORY_IMAGE_WIDTH && $height == SUBCATEGORY_IMAGE_HEIGHT)   return 'subcategory';
    if ($width == ULT_THUMB_IMAGE_WIDTH && $height == ULT_THUMB_IMAGE_HEIGHT)       return 'additional';
    if ($width == MEDIUM_IMAGE_WIDTH && $height == MEDIUM_IMAGE_HEIGHT)             return 'medium';
    if ($width == LARGE_IMAGE_WIDTH && $height == LARGE_IMAGE_HEIGHT)               return 'large';

    return 'imagecache';
}

// The HTML image wrapper function
function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '')
{
    if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') )
    {
        return false;
    }

    if ($image_size = @getimagesize($src))
    {
        if (CONFIG_CALCULATE_IMAGE_SIZE == 'true' &&
        $src != DIR_WS_IMAGES . 'pixel_black.gif' &&
        $src != DIR_WS_IMAGES . 'pixel_trans.gif' &&
        $src != DIR_WS_IMAGES . 'pixel_silver.gif' )
        {
            if ( ($width) || ($height))
            {
                if ( $width=="100%" )
                {
                    $width = $image_size[0];
                }
                elseif ( $height=="100%" )
                {
                    $height = $image_size[1];
                }
                elseif ( $width==0 )
                {
                    unset($width);
                }
                elseif ( $height==0 )
                {
                    unset($height);
                }

                $imagePath = DIR_FS_CATALOG . '/' .$src;
                $cacheDir = DIR_FS_CATALOG . '/' . DIR_WS_IMAGES . 'imagecache';
                $cacheDir = DIR_FS_CATALOG . '/' . DIR_WS_IMAGES . calculateCacheSubDir($width, $height);

                $src = thumbimage($imagePath, $width, $height, 1, 1, $cacheDir);

                if ((($image_size[1]/$height) > ($image_size[0]/$width) ) && $height>0)
                {
                    $width=ceil(($image_size[0]/$image_size[1])* $height);
                }
                elseif ($width>0)
                {
                    $height=ceil($width/($image_size[0]/$image_size[1]));
                }
            }
        }
    }
    elseif (IMAGE_REQUIRED == 'false')
    {
        return '';
    }

    // alt is added to the img tag even if it is null to prevent browsers from outputting
    // the image filename as default
    $image = '<img src="' . tep_output_string($src) . '" border="0" alt="' . tep_output_string($alt) . '"';

    if (tep_not_null($alt))
    {
        $image .= ' title=" ' . tep_output_string($alt) . ' '"';
    }


    // BEGIN Code Keep Image Proportions
    if (tep_not_null($width) && tep_not_null($height))
    {
        if (IMAGE_CONSTRAIN_PROPORTIONS == 'true' )
        {
            $image_size = @getimagesize($src);
            if ($image_size[0] <> 0)
            {
                $ratio = $width / $image_size[0];
                if ($image_size[1]*$ratio > $height)
                {
                    $ratio = $height / $image_size[1];
                    $width = $image_size[0] * $ratio;
                }
                else
                {
                    $height = $image_size[1] * $ratio;
                }
            }
            if (($image_size[0] < $width) && ($image_size[1] < $height)) {
                $width = $image_size[0];
                $height = $image_size[1];
            }
            $image .= ' width="' . tep_output_string($width) . '" height="' . tep_output_string($height) . '"';
        }
        else {
            $image .= ' width="' . tep_output_string($width) . '" height="' . tep_output_string($height) . '"';
        }
    }
    // END Code Keep Image Proportions

    if (tep_not_null($parameters)) $image .= ' ' . $parameters;

    $image .= '>';


    return $image;
}

////
// The HTML form submit button wrapper function
// Outputs a button in the selected language
// BEGIN: CSS Buttons Everywhere
function tep_image_submit($image, $value = '-AltValue-', $parameters = '') {
    global $language;
    $css_submit = '<input type="submit" class="cssButton" value="' . tep_output_string($value) . '" />';
    return $css_submit;
}
// END: CSS Buttons Everywhere

////
// Output a function button in the selected language
// BEGIN: CSS Buttons Everywhere
function tep_image_button($image, $value = '-AltValue-', $parameters = '') {
    global $language;
    $image = '<div class="cssButton">&nbsp;' . tep_output_string($value) . '&nbsp;</div>';
    return $image;
}
// END: CSS Buttons Everywhere

////
// Output a separator either through whitespace, or with an image
function tep_draw_separator($image = 'pixel_black.gif', $width = '100%', $height = '1') {
    return tep_image(DIR_WS_IMAGES . $image, '', $width, $height);
}

////
// Output a form
function tep_draw_form($name, $action, $method = 'post', $parameters = '') {
    $form = '<form name="' . tep_output_string($name) . '" action="' . tep_output_string($action) . '" method="' . tep_output_string($method) . '"';

    if (tep_not_null($parameters)) $form .= ' ' . $parameters;

    $form .= '>';

    return $form;
}

////
////// Output a form input field
function tep_draw_input_field($name, $value = '', $parameters = '', $type = 'text', $reinsert_value = true) {
    $field = '<input type="' . tep_output_string($type) . '" name="' . tep_output_string($name) . '"';

    if ( (isset($GLOBALS[$name])) && ($reinsert_value == true) ) {
        $field .= ' value="' . tep_output_string(stripslashes($GLOBALS[$name])) . '"';
    } elseif (tep_not_null($value)) {
        $field .= ' value="' . tep_output_string($value) . '"';
    }

    if (tep_not_null($parameters)) $field .= ' ' . $parameters;

    $field .= '>';

    return $field;
}

////
////// Output a form password field
function tep_draw_password_field($name, $value = '', $parameters = 'maxlength="40"') {
    return tep_draw_input_field($name, $value, $parameters, 'password', false);
}

////
////// Output a selection field - alias function for tep_draw_checkbox_field() and tep_draw_radio_field()
function tep_draw_selection_field($name, $type, $value = '', $checked = false, $parameters = '') {
    $selection = '<input type="' . tep_output_string($type) . '" name="' . tep_output_string($name) . '"';

    if (tep_not_null($value)) $selection .= ' value="' . tep_output_string($value) . '"';

    if ( ($checked == true) || ( isset($GLOBALS[$name]) && is_string($GLOBALS[$name]) && ( ($GLOBALS[$name] == 'on') || (isset($value) && (stripslashes($GLOBALS[$name]) == $value)) ) ) ) {
        $selection .= ' CHECKED';
    }

    if (tep_not_null($parameters)) $selection .= ' ' . $parameters;

    $selection .= '>';

    return $selection;
}

////
////// Output a form checkbox field already checked
function tep_draw_checkbox_field_checked($name, $value = '', $checked = true, $parameters = '') {
    return tep_draw_selection_field($name, 'checkbox', $value, $checked = true, $parameters);
}

////
////// Output a form checkbox field
function tep_draw_checkbox_field($name, $value = '', $checked = false, $parameters = '') {
    return tep_draw_selection_field($name, 'checkbox', $value, $checked = false, $parameters);
}

////
////// Output a form radio field
function tep_draw_radio_field($name, $value = '', $checked = false, $parameters = '') {
    return tep_draw_selection_field($name, 'radio', $value, $checked, $parameters);
}

////
////// Output a form textarea field
function tep_draw_textarea_field($name, $wrap, $width, $height, $text = '', $parameters = '', $reinsert_value = true) {
    $field = '<textarea name="' . tep_output_string($name) . '" wrap="' . tep_output_string($wrap) . '" cols="' . tep_output_string($width) . '" rows="' . tep_output_string($height) . '"';

    if (tep_not_null($parameters)) $field .= ' ' . $parameters;

    $field .= '>';

    if ( (isset($GLOBALS[$name])) && ($reinsert_value == true) ) {
        $field .= stripslashes($GLOBALS[$name]);
    } elseif (tep_not_null($text)) {
        $field .= $text;
    }

    $field .= '</textarea>';

    return $field;
}

////
////// Output a form hidden field
function tep_draw_hidden_field($name, $value = '', $parameters = '') {
    $field = '<input type="hidden" name="' . tep_output_string($name) . '"';

    if (tep_not_null($value)) {
        $field .= ' value="' . tep_output_string($value) . '"';
    } elseif (isset($GLOBALS[$name])) {
        $field .= ' value="' . tep_output_string(stripslashes($GLOBALS[$name])) . '"';
    }

    if (tep_not_null($parameters)) $field .= ' ' . $parameters;

    $field .= '>';

    return $field;
}

////
////// Hide form elements
function tep_hide_session_id() {
    global $session_started, $SID;

    if (($session_started == true) && tep_not_null($SID)) {
        return tep_draw_hidden_field(tep_session_name(), tep_session_id());
    }
}

////
////// Output a form pull down menu
function tep_draw_pull_down_menu($name, $values, $default = '', $parameters = '', $required = false) {
    $field = '<select name="' . tep_output_string($name) . '"';

    if (tep_not_null($parameters)) $field .= ' ' . $parameters;

    $field .= '>';

    if (empty($default) && isset($GLOBALS[$name])) $default = stripslashes($GLOBALS[$name]);

    for ($i=0, $n=sizeof($values); $i<$n; $i++) {
        $field .= '<option value="' . tep_output_string($values[$i]['id']) . '"';
        if ($default == $values[$i]['id']) {
            $field .= ' SELECTED';
        }

        $field .= '>' . tep_output_string($values[$i]['text'], array('"' '"'=> '&quot;', '\'' => ''', '<' => '&lt;', '>' => '&gt;')) . '</option>';
    }
    $field .= '</select>';

    if ($required == true) $field .= TEXT_FIELD_REQUIRED;

    return $field;
}

////
// Creates a pull-down list of countries
function tep_get_country_list($name, $selected = '', $parameters = '') {
    $countries_array = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT));
    $countries = tep_get_countries();

    for ($i=0, $n=sizeof($countries); $i<$n; $i++) {
        $countries_array[] = array('id' => $countries[$i]['countries_id'], 'text' => $countries[$i]['countries_name']);
    }

    return tep_draw_pull_down_menu($name, $countries_array, $selected, $parameters);
}

function thumbimage ($image, $x, $y, $aspectratio, $resize, $cachedir)
{
    $saveErrorReportingLevel = error_reporting(0);

    $types = array (1 => "gif", "jpeg", "png", "swf", "psd", "wbmp");
    $not_supported_formats = array ("GIF"); // Write in capital Letters!!
    umask(0);
    !is_dir ($cachedir)
    ? mkdir ($cachedir, 0777)
    : system ("chmod 0777 ".$cachedir);

    (!isset ($x) || ereg ('^[0-9]{1,}$', $x, $regs)) &&
    (!isset ($y) || ereg ('^[0-9]{1,}$', $y, $regs)) &&
    (isset ($x) || isset ($y))
    ? true
    : DIE ('Fehlende® oder ungültige® Größenparameter!');

    !isset ($resize) || !ereg ('^[0|1]$', $resize, $regs)
    ? $resize = 0
    : $resize;

    !isset ($aspectratio) || !ereg ('^[0|1]$', $aspectratio, $regs)
    ? isset ($x) && isset ($y)
    ? $aspectratio = 1
    : $aspectratio = 0
    : $aspectratio;

    !isset ($image)
    ? DIE ('Es wurde kein Bild angegeben!')
    : !file_exists($image)
    ? DIE ('Die angegebene Datei konnte nicht auf dem Server gefunden werden!')
    : false;

    $imagedata = getimagesize($image);


    !$imagedata[2] || $imagedata[2] == 4 || $imagedata[2] == 5
    ? DIE ('Bei der angegebenen Datei handelt es sich nicht um ein Bild!')
    : false;

    $imageTypeSupported = imagetypes() & constant("IMG_".strtoupper($types[$imagedata[2]]));

    if (!$imageTypeSupported || (in_array(strtoupper(array_pop(explode('.', basename($image)))),$not_supported_formats)))
    {
        $image = substr ($image, (strrpos (DIR_FS_CATALOG . '/', '/'))+1);

        error_reporting($saveErrorReportingLevel);
        return $image;
    }

    if (!isset ($x)) $x = floor ($y * $imagedata[0] / $imagedata[1]);
    if (!isset ($y)) $y = floor ($x * $imagedata[1] / $imagedata[0]);

    if ($aspectratio && isset ($x) && isset ($y)) {
        if ((($imagedata[1]/$y) > ($imagedata[0]/$x) )){
            $x=ceil(($imagedata[0]/$imagedata[1])* $y);
        } else {
            $y=ceil($x/($imagedata[0]/$imagedata[1]));
        }
    }
    $thumbfile =  '/' . basename($image);
    if (file_exists ($cachedir.$thumbfile)) {
        $thumbdata = getimagesize ($cachedir.$thumbfile);
        $thumbdata[0] == $x && $thumbdata[1] == $y
        ? $iscached = true
        : $iscached = false;
        if (@filemtime($cachedir.$thumbfile) < @filemtime($image))
        $iscached = false;
    } else {
        $iscached = false;
    }

    if (!$iscached) {
    ($imagedata[0] > $x || $imagedata[1] > $y) || (($imagedata[0] < $x || $imagedata[1] < $y) && $resize)
    ? $makethumb = true
    : $makethumb = false;
    } else {
        $makethumb = false;
    }


    $subdir = preg_replace('[.*/]', "", $cachedir);

    if ($makethumb)
    {
        //echo "imagecreatefrom".$types[$imagedata[2]];
        $image = call_user_func("imagecreatefrom".$types[$imagedata[2]], $image);
        if (function_exists("imagecreatetruecolor") && ($thumb = imagecreatetruecolor ($x, $y)))
        {
            imagecopyresampled ($thumb, $image, 0, 0, 0, 0, $x, $y, $imagedata[0], $imagedata[1]);
        }
        else
        {
            $thumb = imagecreate ($x, $y);
            imagecopyresized ($thumb, $image, 0, 0, 0, 0, $x, $y, $imagedata[0], $imagedata[1]);
        }
        call_user_func("image".$types[$imagedata[2]], $thumb, $cachedir.$thumbfile);
        imagedestroy ($image);
        imagedestroy ($thumb);
        $image = DIR_WS_IMAGES . $subdir . $thumbfile;
    }
    else
    {
        $iscached
        ? $image = DIR_WS_IMAGES . $subdir . $thumbfile
        : $image = substr ($image, (strrpos (DIR_FS_CATALOG . '/', '/'))+1);
    }

    error_reporting($saveErrorReportingLevel);
    return $image;
}

////rmh referral

// Creates a pull-down list of sources

  function tep_get_source_list($name, $show_other = false, $selected = '', $parameters = '') {

    $sources_array = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT));

    $sources = tep_get_sources();



    for ($i=0, $n=sizeof($sources); $i<$n; $i++) {

      $sources_array[] = array('id' => $sources[$i]['sources_id'], 'text' => $sources[$i]['sources_name']);

    }



    if ($show_other == 'true') {

      $sources_array[] = array('id' => '9999', 'text' => PULL_DOWN_OTHER);

    }



    return tep_draw_pull_down_menu($name, $sources_array, $selected, $parameters);

  }




?>

#265   janetgot

janetgot
  • Members
  • 149 posts
  • Real Name:Janet
  • Gender:Female
  • Location:Boston, MA

Posted 10 September 2007 - 05:23 PM

Hello, I have installed How Did You Hear About Us 1.6 into a fairly heavily modified shop that also has Purchase Without Account installed... If I choose to checkout without creating an account, I don't get the dropdown field, however, if I continue to the next page, I get an error stating I need to fill in this field (which doesn't show).  

I've looked through this forum for a workaround, but the only information I found was very old and no longer applicable as the file mentioned is no longer included in the base installation.

Has anybody gotten this to work with Purchase Without Account, and/or was there an alternative contribution that resolved this issue?

Many thanks,
Janet

#266   enigmabunny

enigmabunny
  • Members
  • 157 posts
  • Real Name:Eddie
  • Gender:Male
  • Location:London, UK

Posted 25 September 2007 - 11:53 PM

hi, ive just started to modify the files, but on the first one (catalog/create_account) i cant find line 495, mine only has 340 lines. i done a search for the text i was meant to replace, but thats not there neither.

#267   enigmabunny

enigmabunny
  • Members
  • 157 posts
  • Real Name:Eddie
  • Gender:Male
  • Location:London, UK

Posted 26 September 2007 - 05:44 PM

ok ive managed to install it now,  everything working fine, except the fact in the customer admin screen, where it says "referred by" it just says --none--
anyone else had this problem?

#268   enigmabunny

enigmabunny
  • Members
  • 157 posts
  • Real Name:Eddie
  • Gender:Male
  • Location:London, UK

Posted 10 October 2007 - 07:02 PM

im still having the same problem.. anyone know why im not being told where people are coming from? also, something else i want to do is add the how did you about us option to the screen where customers purchase without creating an account...

#269   enigmabunny

enigmabunny
  • Members
  • 157 posts
  • Real Name:Eddie
  • Gender:Male
  • Location:London, UK

Posted 10 October 2007 - 08:16 PM

ok looking back through what i did, i realised i forgot tot add the modifications to create_account file..
but still looking to find a way of adding the how did you hear about us to order_info.php (purchase without account)

#270   jonmck

jonmck
  • Members
  • 45 posts
  • Real Name:Jonathan

Posted 15 October 2007 - 07:38 PM

You said:
"hi, ive just started to modify the files, but on the first one (catalog/create_account) i cant find line 495, mine only has 340 lines. i done a search for the text i was meant to replace, but thats not there neither. "

I am having the same issue.  The text I am supposed to paste below is not in my file.  What did you do??

#271   enigmabunny

enigmabunny
  • Members
  • 157 posts
  • Real Name:Eddie
  • Gender:Male
  • Location:London, UK

Posted 31 October 2007 - 01:27 AM

View Postjonmck, on Oct 15 2007, 07:38 PM, said:

You said:
"hi, ive just started to modify the files, but on the first one (catalog/create_account) i cant find line 495, mine only has 340 lines. i done a search for the text i was meant to replace, but thats not there neither. "

I am having the same issue.  The text I am supposed to paste below is not in my file.  What did you do??


hi i cant remember exactly what i did, but i know the parts i needed to change were within other files... i have a heavily modified site, so i had to do a bit of searching, sorry i cant help anymore...

#272   enigmabunny

enigmabunny
  • Members
  • 157 posts
  • Real Name:Eddie
  • Gender:Male
  • Location:London, UK

Posted 31 October 2007 - 01:28 AM

also, forgot to add, i still cant find a way to add this contribution to the page where customers purchase without account. anyone have any idea how to do this?

#273   balanscs

balanscs
  • Members
  • 6 posts
  • Real Name:Max Hasson

Posted 16 November 2007 - 11:10 AM

Hello,

I executed an absolute installation of How_Did_You_Hear_1.5

Everything acts ok except for the links to the reports from the Admin to:

-Reports:
referral_sources -> stats_referral_sources.php (opend a "The webpage cannot be found" page)
-Customers:
referrals -> referrals.php (opend a "The webpage cannot be found" page)

Is someone coulde point on solution to that trouble?

Thanks, Max Hasson

#274   jeeperss98

jeeperss98
  • Members
  • 13 posts
  • Real Name:Zach Routt

Posted 17 November 2007 - 10:57 PM

Love this mod!! but I have a problem with my customers information since this mod has been installed. I get the error below at the top of the admin/customers.php page when I click to view a customer.  Also when I look at their order page it is missing the customer name, email address, and some other things that I have checked are in the database. The other thing to comment on that is a problem is that the customer information is all blank on the /admin/customers.php.  If I try to edit the information on that page by adding everything back in there it still does no good.

The error is this:

Warning: reset(): Passed variable is not an array or object in /html/admin/includes/classes/object_info.php on line 10

Warning: Variable passed to each() is not an array or object in /html/admin/includes/classes/object_info.php on line 11

Again this problem is only since adding this mod and even if I go back to a backup of my entire site except the db the admin/customers.php page still exhibits the same issue.

My next option is to go back and try a complete install of this mod from a scratch site and then on my live site and see if it works.  Please please help???

#275   wondernet

wondernet
  • Members
  • 296 posts
  • Real Name:David Hopkins
  • Gender:Male
  • Location:Bournemouth, Dorset, UK

Posted 23 December 2007 - 09:50 AM

Got the 1.5 full version working first time, not a problem.

Has anyone managed to get this working on the 'Purchase Without Account' as well .. while the basic 'how did you hear' works on the page where they register, the 'purchase without account' doesn't use the 'create account' page, rather the 'order-info.php'

I'm sure others would like this as well, anyone able to help?

#276   wondernet

wondernet
  • Members
  • 296 posts
  • Real Name:David Hopkins
  • Gender:Male
  • Location:Bournemouth, Dorset, UK

Posted 23 December 2007 - 09:52 AM

View Postbalanscs, on Nov 16 2007, 11:10 AM, said:

-Reports:
referral_sources -> stats_referral_sources.php (opend a "The webpage cannot be found" page)
-Customers:
referrals -> referrals.php (opend a "The webpage cannot be found" page)

The 'stats_referral_sources' script isnt in the list of files to upload if you've modded the standard OSC package, so I just uploaded from the files that you use if you've a clean install. This should solve it.

#277   wondernet

wondernet
  • Members
  • 296 posts
  • Real Name:David Hopkins
  • Gender:Male
  • Location:Bournemouth, Dorset, UK

Posted 23 December 2007 - 09:53 AM

View Postenigmabunny, on Oct 31 2007, 01:28 AM, said:

also, forgot to add, i still cant find a way to add this contribution to the page where customers purchase without account. anyone have any idea how to do this?

Also what I'm after (see above post).

Additional to this, how about getting the 'referral' on the admin/order page so we can see where people find us from each time they order?

#278   wondernet

wondernet
  • Members
  • 296 posts
  • Real Name:David Hopkins
  • Gender:Male
  • Location:Bournemouth, Dorset, UK

Posted 23 December 2007 - 09:55 AM

View Postenigmabunny, on Sep 26 2007, 05:44 PM, said:

ok ive managed to install it now,  everything working fine, except the fact in the customer admin screen, where it says "referred by" it just says --none--
anyone else had this problem?

I've got this as well .. but it's not a problem, it's purely because these were orders placed before you added the contribution, therefore there is no record of where they came from.

#279   wondernet

wondernet
  • Members
  • 296 posts
  • Real Name:David Hopkins
  • Gender:Male
  • Location:Bournemouth, Dorset, UK

Posted 23 December 2007 - 09:58 AM

View Postjanetgot, on Sep 10 2007, 05:23 PM, said:

Hello, I have installed How Did You Hear About Us 1.6 into a fairly heavily modified shop that also has Purchase Without Account installed... If I choose to checkout without creating an account, I don't get the dropdown field, however, if I continue to the next page, I get an error stating I need to fill in this field (which doesn't show).

I use 1.5 on a heavily modded OSC with purchase without account too, but it works fine ... what is the difference between 1.6 and 1.6, do you know?

D.

#280   none_uk

none_uk
  • Members
  • 295 posts
  • Real Name:Ron
  • Location:UK

Posted 04 January 2008 - 02:33 AM

Hi guys really want to get this installed i have a modified install so do i copy the new files over

catalog\admin\referrals.php
catalog\admin\stats_referral_sources.php
catalog\admin\includes\languages\english\referrals.php
catalog\admin\includes\languages\english\stats_referral_sources.php

and then input the mysql manually or do i use the file?

after that do i just follow instruction from this part till i get to the end? the reason i ask is some other contribution like this needs the user to manually check files and cut "referals" and paste onto shop files. I hope i'm making sense

help is appreicated

------------------###############---------------------
In catalog\create_account.php

Look for: (around line 54)
    $password = tep_db_prepare_input($HTTP_POST_VARS['password']);
    $confirmation = tep_db_prepare_input($HTTP_POST_VARS['confirmation']);
    
Add below:
//rmh referral start
    $source = tep_db_prepare_input($HTTP_POST_VARS['source']);
    if (isset($HTTP_POST_VARS['source_other'])) $source_other = tep_db_prepare_input($HTTP_POST_VARS['source_other']);
//rmh referral end........................................................