Jump to content

sashaben

Members
  • Content count

    62
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    asdadsads
  • Gender
    Male
  1. sashaben

    ### POINTS AND REWARDS MODULE V1.00 ###

    I also had the same problem, I believe this will fix it includes/modules/order_total/ot_redemption.php Find $order->info['total'] = number_format($order->info['total'] - tep_calc_shopping_pvalue($customer_shopping_points_spending), 4); Replace With $order->info['total'] -= tep_calc_shopping_pvalue($customer_shopping_points_spending); Can someone confirm?
  2. Thanks for this contribution, it's very handy. For my site I've noticed the following is possible, can anyone confirm or is it just me? mystore.com/my-product-name-p-123.html mystore.com/my-product-name-p-123blahblahblah.html
  3. sashaben

    2gether Discount

    I had a small issue that the module was not being disabled on the product info page when turned off in the admin. To fix all I did was change if (MODULE_2GETHER_DISCOUNT_STATUS ) { to if (MODULE_2GETHER_DISCOUNT_STATUS == 'true') {
  4. sashaben

    Contribution Tracker

    In admin/contrib_tracker.php try changing require(DIR_WS_FUNCTIONS . 'contrib_tracker.php'); to require('includes/functions/contrib_tracker.php'); Or just to see if this does anything Try pasting this at the end of your admin/includes/functions/general.php // check to see if the address is a valid url function get_http_headers ($url,$proto= "HTTP/1.0") { if(!eregi( "^http://", $url)) { $url = "http://".$url; } $uri = parse_url($url); $port = ( $uri[ "port"] ? $uri[ "port"] : 80 ); # open a socket to the server $sock = fsockopen($uri[host],$port); if(!$sock) { return(-1); } if (!strlen($uri[path])) {$uri[path] = "/";} $req=sprintf( "HEAD %s %s\n\n", $uri[path], $proto); # send the request fputs($sock, $req); # get the headers while(!feof($sock)): $this_out = fgets($sock,100); $output.= $this_out; endwhile; fclose($sock); # parse them into a hash $hdr=split( "\n",$output); list($array[ "protocol"], $array[ "result"], $array[ "message"]) = split("[[:space:]]+", $hdr[0], 3); for($i=1,$num=count($hdr);$i<$num;$i++) { list($key, $val)=split( ":[[:space:]]*", $hdr[$i],2); $array[strtolower($key)]=$val; } return($array); } Save the general.php file Then got to your contrib_tracker page and see if it makes a difference to anything. Make a note of what happens then go back to your general.php file and remove what you just added.
  5. sashaben

    Contribution Tracker

    Do you have a contrib_tracker.php function file in admin/includes/functions/ Do you gave this line at the top of your admin/contrib_tracker.php require(DIR_WS_FUNCTIONS . 'contrib_tracker.php'); What does the define('DIR_WS_FUNCTIONS') line look like in your admin/includes/configure.php?
  6. sashaben

    Contribution Tracker

    Sounds like it's not looking in the right directory, is your configure file set correctly? How about in your admin/contrib_tracker.php file did you accidently add a "/" after one of the DIR_FS_CATALOG. 'rsscache/contrib_rss.html
  7. sashaben

    Contribution Tracker

    Does your webhost have cpanel or something similar?
  8. sashaben

    Contribution Tracker

    Make a folder named "rsscache" in your catalog directory and chmod it to 777 Also In catalog & admin/contrib_tracker.php change all instances of DIR_WS_CATALOG. 'rsscache/contrib_rss.html to DIR_FS_CATALOG. 'rsscache/contrib_rss.html
  9. sashaben

    Contribution Tracker

    Thanks so much for your help! Seems to have done the job :)
  10. sashaben

    Contribution Tracker

    It just clears all the fields when you try to update an item. It still there but it has no name etc. Doesn't show any errors. It does update the time for "Last official update" to the current time though.
  11. sashaben

    Contribution Tracker

    Changing the line to either $sInfo_array = array_merge($admin_quer); or $sInfo_array = array_merge((array)$admin_quer); Make no errors appear
  12. sashaben

    Contribution Tracker

    That still clears all the details as well. I'm pretty sure RC1 is stable its the only one you can download at the moment http://www.oscommerce.com/solutions/downloads
  13. sashaben

    Contribution Tracker

    its around line 331 in admin/contrib_tracker.php I searched google and I think this is the proper way to do it $sInfo_array = array_merge((array)$admin_quer); If I delete it completely I get this error Warning: reset() [function.reset]: Passed variable is not an array or object in /home/sashaben/public_html/store/admin/includes/classes/object_info.php on line 17 Warning: Variable passed to each() is not an array or object in /home/sashaben/public_html/store/admin/includes/classes/object_info.php on line 18 Everything with this contribution seems to work (inserting etc.), except when I click edit and then try to update the details, it wipes all the details that were in there.
  14. sashaben

    Contribution Tracker

    Looks like I messed up the update function, I'm not a programmer so I'm just guessing really. I'm think it's with that array thing I edited. Can anyone help out?
  15. sashaben

    Contribution Tracker

    Ok the error I posted above was a problem with the contribution, something to do with PHP5 compatibility. Anyways to fix it this is what I did In catalog & admin / contrib_tracker.php I changed all instances of DIR_WS_CATALOG. 'rsscache/contrib_rss.html to DIR_FS_CATALOG. 'rsscache/contrib_rss.html There was 6 in total For the PHP5 thing, in admin/contrib_tracker.php I changed $sInfo_array = array_merge($admin_quer, ''); To $sInfo_array = array_merge((array)$admin_quer); Seems to be working ok now
×