Jump to content

sublok

Members
  • Content count

    30
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    J
  • Gender
    Male
  1. As a follow up echo '<pre>'; var_dump(exec('whoami')); echo "Current Script Owner: ".get_current_user()."\n"; outputs string(6) "apache" Current Script Owner: {username} different that "apache" It appears that Symlink needs to have the same permissions to create a link, Im not sure how to make that happen, So i know its now a permissions issue, does anyone know how to assist?
  2. On a Godaddy VPS. having an issue with the downloads controller. File is properly set in the product. I ssh'd into the server and its showing the u:g as apache:apache, its not creating a Symlink for the file, so file_exists returns false, due to server restrictions, chown and chmod have been disabled and I require safe_mode for security reasons. and I cant do direct fallback for readfile because the output of the file being downloaded outputs a custom formatted PDF, which vars are being passed in the redirect. I can get it to echo out error messages, if (DOWNLOAD_BY_REDIRECT == 'true') { // This will work only on Unix/Linux hosts tep_unlink_temp_dir(DIR_FS_DOWNLOAD_PUBLIC); $tempdir = tep_random_name(); umask(0000); //works making hidden dir mkdir(DIR_FS_DOWNLOAD_PUBLIC . $tempdir, 0777); //not working symlink(DIR_FS_DOWNLOAD . $downloads['orders_products_filename'], DIR_FS_DOWNLOAD_PUBLIC . $tempdir . '/' . $downloads['orders_products_filename']); if (file_exists(DIR_FS_DOWNLOAD_PUBLIC . $tempdir . '/' . $downloads['orders_products_filename'])) { tep_redirect(tep_href_link(DIR_WS_DOWNLOAD_PUBLIC . $tempdir . '/' . $downloads['orders_products_filename'], 'id='.$customer_id .'&token='. $token. '&oToken='. $tokenOrder. '&pid=' .$downloads['pid'])); // }else{ echo "no file found"; } } ideas?
  3. sublok

    [Contribution] Option Types v2

    for those still struggling with this you can change line ~427 in the /includes/modules/payment/paypal_ipn.php from $parameters['os' . $j . '_' . $item] = $attributes_values['products_options_values_name']; to $parameters['os' . $j . '_' . $item] = tep_decode_specialchars($order->products[$i]['attributes'][$j]['value']);
  4. sublok

    Imprint Text Options

    Has anyone fixed the single item error? ie adding another product with another text? which overwrites the first ?
  5. sublok

    stamps.com module

    duplicated my bad
  6. sublok

    stamps.com module

    Hey just wanted to drop a note in case others had the same issue. 1) Make sure that your server or hosting plan has SOAP installed. 2) if you make any changes to the shippingZoscommerce.php (ie posting back tracking numbers) make sure that the XML CDATA sent to their "priming servers" is case sensitive. As a side note if you want tracking numbers to be posted back you can do so by: 1) create a new entry in your orders table ( via phpmyAdmin or sql ) called usps_track_num varchar(40) 2) find the function //prepare $comments & save it $comments="Shipped on $shipped_on".$Carrier.$Service.", Tracking number $TrackingNumber"; if(OSCOMMERCE_SHIPPED_STATUS_SET_TO_STATUS_3_DELIVERED==1) { tep_db_query("insert into " . TABLE_ORDERS_STATUS_HISTORY . " (orders_id, orders_status_id, date_added, customer_notified, comments) values ('" . (int)$OrderNumber . "', '3', now(), '0', '" . $comments. "')"); //update order status tep_db_query(" update ".TABLE_ORDERS." set orders_status='3' where orders_id='". (int)$OrderNumber ."'"); } else { tep_db_query("insert into " . TABLE_ORDERS_STATUS_HISTORY . " (orders_id, orders_status_id, date_added, customer_notified, comments) values ('" . (int)$OrderNumber . "', '".$current_order_status."', now(), '0', '" . $comments. "')"); } $this->SetXmlMessageResponse($this->wrap_to_xml('UpdateMessage',"Success")); and replace with //prepare $comments & save it $comments="Shipped on $shipped_on".$Carrier.$Service.$TrackingNumberString; if(OSCOMMERCE_SHIPPED_STATUS_SET_TO_STATUS_3_DELIVERED==1) { tep_db_query("insert into " . TABLE_ORDERS_STATUS_HISTORY . " (orders_id, orders_status_id, date_added, customer_notified, comments) values ('" . $this->MakeSqlSafe($OrderNumber,1) . "', '3', now(), '0', '" . $this->MakeSqlSafe($comments). "')"); //update order status tep_db_query(" update ".TABLE_ORDERS." set orders_status='3' where orders_id='". $this->MakeSqlSafe($OrderNumber,1) ."'"); tep_db_query(" update ".TABLE_ORDERS." set usps_track_num='". $TrackingNumber."' where orders_id='". $this->MakeSqlSafe($OrderNumber,1) ."'"); } else { if($current_order_status==1) $change_order_status=2; else if($current_order_status==2) $change_order_status=3; else $change_order_status=$current_order_status; tep_db_query("insert into " . TABLE_ORDERS_STATUS_HISTORY . " (orders_id, orders_status_id, date_added, customer_notified, comments) values ('" . $this->MakeSqlSafe($OrderNumber,1) . "', '".$change_order_status."', now(), '0', '" . $this->MakeSqlSafe($comments). "')"); tep_db_query(" update ".TABLE_ORDERS." set orders_status='".$change_order_status."' where orders_id='".$this->MakeSqlSafe($OrderNumber,1)."'"); tep_db_query(" update ".TABLE_ORDERS." set usps_track_num='". $TrackingNumber."' where orders_id='". $this->MakeSqlSafe($OrderNumber,1) ."'"); } $this->SetXmlMessageResponse($this->wrap_to_xml('UpdateMessage',"Success")); side not to change what it adds to the history change the $comments var. happy coding
  7. sublok

    Need help with iosc3 addon

    Greetings, I am working on the same contrib you are it think the mobile iphone add on? I was going to take it over once i got this bad boy all sorted out... It was a massive pain to get it to working! Anyways I know what you saying, the check out confirmation page is actually controlled by your /includes/modules/payment/xxx [which ever one is selected} and the pre_confirmation_check; i am missing somewhere, i can get it take payments no prob. but if there is an error it sends them to the normal store page. i use paypal direct and I have isolated the code but I trying to figure out the best way to redirect it back to the mobile_checkout_confirmation.php on error. I was thinking that somethings like *psudeo* if ($ref string) == mobile_checkout_process.php then { tep_redirect(tep_mobile_link(FILENAME_MOBILE_CHECKOUT_CONFIRMATION, '', 'SSL')); }else{ tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, $payment_error_return, 'SSL', true, false)); } and then also tep_redirect(tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, 'error_message=' . MODULE_PAYMENT_PAYPAL_DIRECT_ERROR_ALL_FIELDS_REQUIRED, 'SSL')); would need the same if then.. hope that helps you out. Once i get it hammered down, I'll repost
  8. sublok

    Contribution Donation

    Burt, I am very interested in helping out with the donation module. If you could send me some code we could get a production ready module done in a few days...
  9. sublok

    Facebook Connect Support Thread

    How do you set it to not "Automaticly login in?" if someone is already signed in to facebook?
  10. sublok

    Facebook Connect Support Thread

    Never mind - jumped the gun.. The Facebook setting canvas directory needed to be longer and not directly pointed at the create_account.php As a side note, if a customer is logged in to Facebook, and does not have a user account then they are prompted create a new account (pre-filling the information available )... However, If the customer has already created an account (*in the case of returning customers, or if they update their email address from their account page), with an email other than their facebook, it does not give the customer the chance to login and automatically redirects them to the create_account page. Thus if user exists with different email, but logged into Facebook under separate email there is no way for them to login with the non-Facebook email. It just loops on the login.php page... Since we do heavy marketing and advertising through a variety of channels, thus it could confused those already registered under a different email. Is there a work around for this?
  11. sublok

    Facebook Connect Support Thread

    New to facebook dev but I have a Question: Canvas url - should that be set the the create_account.php page? if the store is running on root and not /catalog/
  12. sublok

    question about a add on

    Hi there, not sure of you site config.. but I have a template system on 5 different stores... I havent found a good sitemap mod. that works well with cron and google... however i use the "xml sitemap generator"... it is fast and easy to use, it also has the setting that you can block out parameters. Will cron and auto ping all search engines.
  13. sublok

    Admin Customer Search

    Its a pretty easy fix... just open up: /admin/customers.php look for this sql query $search = "where c.customers_lastname like '%" . $keywords . "%' or c.customers_firstname like '%" . $keywords . "%' or c.customers_email_address like '%" . $keywords . "%'"; and replace with this: $search = "where c.customers_lastname like '%" . $keywords . "%' or c.customers_firstname like '%" . $keywords . "%' or c.customers_email_address like '%" . $keywords . "%' or c.customers_telephone like '%" . $keywords . "%' or entry_postcode like '%" . $keywords . "%'"; thats is, now be able to search by phone or zip code Cheers
  14. sublok

    NEW! Complete Order Editing Tool!

    Couldn't find an answer to this... So my store allows customers to enter their first of last names as Mike "the boss" Donavan.. Which as you can see can cause a headache for many mods.. I got this mod successful installed however, if a customer has the quotes in their name, when I edit the order it deletes the "quoted text" and their last name. I've noticed that It only happens when i first click on the edit order button. However if I input the name with the quotes, it enters it in correctly. Until I edit the order again.... It seems that the function for oe_html_no_quote() is not working.. any ideas?
  15. FYI: It appears that the cron job in question, which is executing the mailhive.php file, requires HTTP sessions. Such sessions will not be available within a cron job. Additioanlly, if the script is calling for server_status information, this information will also be unavailable. We recommend checking your script and ensuring that HTTP sessions and server_status calls are not required by the script. Hows it going on that silent mailhive?
×