Jump to content

artfulweb

Members
  • Content count

    147
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by artfulweb

  1. artfulweb

    NEW! Complete Order Editing Tool!

    Deleted includes/modules/hooks/admin/orders/ and just put in includes/modules/hooks/admin/ Thanks!
  2. artfulweb

    NEW! Complete Order Editing Tool!

    Hi John, is it supposed to be in includes/modules/hooks/admin/orders/ or just includes/modules/hooks/admin/
  3. artfulweb

    Mail Manager for OSC v2.3

    After trying all the changes to tpl_n_checkout.php it is clear that changes have to be made instead to includes/modules/mail_manager/order_confirm.php so that it picks up the new way to call for products but I can not figure out what that is. If modifications are made to the tpl file the admin mail shows no products, only totals. As for attributes they have never shown in the emails on vanilla installs after 1.0.5.0.
  4. artfulweb

    Mail Manager for OSC v2.3

    That is the way it is actually working as called for in n_checkout.php, mail manager only being called for the customer's order confirmation in HTML for using only the mail manager order_confirm, and the admin copy, not in HTML format uses the n_checkout.php and tpl_n_checkout.php
  5. artfulweb

    Mail Manager for OSC v2.3

    In fact, tpl_n_checkout.php is only called for the extra order email which is not in HTML format so the above changes blitzes the products in the email to the owner.
  6. artfulweb

    Mail Manager for OSC v2.3

    A bit overwhelmed! The file tpl_n_checkout.php is not called by mail manager so I do not understand how the change would affect it… doing the rest goes beyond my competences unfortunately. It worked perfectly in 1.0.5.0
  7. artfulweb

    Mail Manager for OSC v2.3

    Hi Matt, In n_checkout.php MM is added as follows and does send the order confirmation email in beautifully with html, just the products do not get listed $parameters = ['order' => $order, 'email' => &$email_order]; echo $GLOBALS['OSCOM_Hooks']->call('siteWide', 'orderMail', $parameters); //tep_mail($order->customer['name'], $order->customer['email_address'], MODULE_NOTIFICATIONS_CHECKOUT_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); //*******start mail manager****************// if (file_exists('includes/modules/mail_manager/order_confirm.php')){ include('includes/modules/mail_manager/order_confirm.php'); }else{ tep_mail($order->customer['name'], $order->customer['email_address'], MODULE_NOTIFICATIONS_CHECKOUT_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } //*******end mail manager*****************// In the Mail Manager file includes/modules/mail_manager/order_confirm.php the code is : <?php /* order_confirm.php, 2011 mail manager for oscommerce Copyright (c) 2011 Niora http://www.css-oscommerce.com Released under the GNU General Public License */ //get status of mail manager create account email $mail_manager_status_query = tep_db_query("select status, template, htmlcontent, txtcontent from mm_responsemail where mail_id = '1'"); $mail_manager_status = tep_db_fetch_array($mail_manager_status_query); //default to tep_mail if order_confirm mailpiece inactived in admin if (isset($mail_manager_status['status']) && ($mail_manager_status['status'] == '1')) { // create the order totals variable foreach ($GLOBALS['order_totals'] as $order_total) { $mm_ordertotal .= strip_tags($order_total[$i]['title']) . ' ' . strip_tags($order_total['text']) . "\n".'<br/ >'; } //retrieve html and txt headers $header_query = tep_db_query("select htmlheader, htmlfooter, txtheader, txtfooter from mm_templates where title = '".$mail_manager_status['template']."'"); $header = tep_db_fetch_array($header_query); //build email $output_content_html = $header['htmlheader'].$mail_manager_status['htmlcontent'].$header['htmlfooter']; $output_content_txt = $header['txtheader'].$mail_manager_status['txtcontent'].$header['txtfooter']; $output_subject = EMAIL_TEXT_CONFIRM.STORE_NAME; //define values for placeholder variables $order_no = EMAIL_TEXT_ORDER_NUMBER . ' ' . $order->get_id(); $order_date = EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG); $invoice_url = EMAIL_TEXT_INVOICE_URL . ' ' . tep_href_link('account_history_info.php', 'order_id=' . $order->get_id(), 'SSL', false); $billing_address = $customer->make_address_label($billto, 0, '', '<br />'); $delivery_address = $customer->make_address_label($sendto, 0, '', '<br />'); $telephone = EMAIL_TEXT_TELEPHONE . ' ' . $order->customer['telephone']; $email = EMAIL_TEXT_EMAIL_ADDRESS . ' ' . $order->customer['email_address']; $order_comments = EMAIL_TEXT_COMMENTS . ' ' . $order->info['comments']; $paymentmethod = $order->info['payment_method']; $ccardtype = $order->info['cc_type']; $payment_class = $payment_class->email_footer; //define placeholders $placeholders= ['$storeurl','$storename','$storeemail','$separator','$orderno','$orderdate','$invoiceurl','$productsorderedhead','$productsordered','$billingaddresshead','$billingaddress','$deliveryaddresshead','$deliveryaddress','$telephonehead','$telephone','$emailaddresshead','$email','$paymethodhead','$paymentmethod','$ccardtype','$ordercommentshead','$ordercomments','$totaltext','subtotaltext','$ordertotal']; $values= [HTTP_SERVER, STORE_NAME, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SEPARATOR, $order_no, $order_date, $invoice_url, EMAIL_TEXT_PRODUCTS, $products_ordered, EMAIL_TEXT_BILLING_ADDRESS, $billing_address, EMAIL_TEXT_DELIVERY_ADDRESS, $delivery_address, EMAIL_TEXT_TELEPHONE, $telephone, EMAIL_TEXT_EMAIL_ADDRESS, $email, EMAIL_TEXT_PAYMENT_METHOD, $paymentmethod, $ccardtype, $order_comments, EMAIL_TEXT_TOTAL, EMAIL_TEXT_SUBTOTAL, $mm_ordertotal]; $output_content_html=str_replace($placeholders, $values, $output_content_html); $output_content_txt=str_replace($placeholders, $values, $output_content_txt); //send email tep_mm_sendmail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, $output_subject, $output_content_html, $output_content_txt); //send extra email to store owner tep_mm_sendmail($order->customer['firstname'] . ' ' . $order->customer['lastname'], STORE_OWNER_EMAIL_ADDRESS, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, $output_subject, $output_content_html, $output_content_txt); //if mail manager status update email 'inactive' process normally via oscommerce }else{ tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } ?> The confirmation email sent looks like this (footer reduced so the image won't take up to much room to show here). As you can see the only thing missing are the products :
  8. artfulweb

    Mail Manager for OSC v2.3

    Hello to all, do not know if anyone is still supporting this. I am adapting Mail Manager to work with PHOENIX 1.0.5.5 and have now everything working beautifully except to show the products in the order confirmation. Apparently $products_ordered does not function in PHOENIX 1.0.5.5 whereas it does in PHOENIX 1.0.5.0. Any idea of what could have changed in the call to the products?
  9. artfulweb

    NEW! Complete Order Editing Tool!

    Hi John, me again. Updated manually Phoenix to 1.0.5.5 and now Order Editor has disappeared. The order tabs revert back to having no more order editor buttons so I am not sure if it is the bootstrap button that now is used or if the problem goes deeper. Just so you know, as I know you are already very busy...
  10. Hi, that is the version I am using. The banner works on the front side, it is in the admin when installing. So I can not modify any of the settings. Have to leave the module page and it shows as installed. When going back to make changes that error shows up.
  11. Hello, on PHOENIX 1.0.5.4 getting an error with the JcM Header Banner carousel Animated V1.4 Warning: Cannot modify header information - headers already sent by (output started at /xx/xx/xx/xx/includes/languages/english/modules/content/header/cm_header_jcm_carouselbanner.php:11) in /xx/xx/xx/xx/admin/includes/functions/general.php on line 54
  12. artfulweb

    NEW! Complete Order Editing Tool!

    Thanks John, just perfect! Thanks for all your work keeping this addon updated. Can't do without it!
  13. artfulweb

    NEW! Complete Order Editing Tool!

    Hello John, in Phoenix v1.0.5.4 I am getting this (otherwise the rest is OK) Warning: Illegal string offset 'products_id' in /xx/xx/xx/xx/admin/order_editor/cart.php on line 35 lines 29-36 are: $subindex = 0; $att_array = []; $attributes_query = tep_db_query("select products_options, products_options_values, options_values_price, price_prefix from orders_products_attributes where orders_id = '" . (int)$orders_id . "' and orders_products_id = '" . (int)$products['orders_products_id'] . "'"); if (tep_db_num_rows($attributes_query)) { while ($attributes = tep_db_fetch_array($attributes_query)) { $option_id = sew_get_products_options_id($attributes['products_options']); $value_id = sew_get_products_options_values_id($option_id,$attributes['products_options_values'],0,$orders_products['products_id']); $att_array[$option_id] = $value_id;
  14. artfulweb

    Sitemap SEO

    Me again Jack, For his error "undefined function tep_image_submit()" I added back into admin/includes/functions/html_output.php that function which was stripped out in the version : //// // The HTML form submit button wrapper function // Outputs a button in the selected language function tep_image_submit($image, $alt = '', $parameters = '') { global $language; $image_submit = '<input type="image" src="' . tep_output_string('includes/languages/' . $language . '/images/buttons/' . $image) . '" border="0" alt="' . tep_output_string($alt) . '"'; if (tep_not_null($alt)) $image_submit .= ' title=" ' . tep_output_string($alt) . ' "'; if (tep_not_null($parameters)) $image_submit .= ' ' . $parameters; $image_submit .= '>'; return $image_submit; } _________________________________________ On the other hand there are more notices in the other files : Notice: Undefined offset: 2 in /xx/xx/xx/xx/admin/includes/functions/sitemap.php on line 311Notice: Undefined offset: 3 in /xx/xx/xx/xx/admin/includes/functions/sitemap.php on line 314 Notice: Undefined variable: name in /xx/xx/xx/xx/admin//sitemap_seo_page_control.php on line 163
  15. artfulweb

    Sitemap SEO

    Hi Jack, have the same problem. The Fix you gave does take care of the first problem, what remains is : Notice: Undefined index: boxfiles[] in /xx/xx/xx/xx/admin/includes/functions/sitemap.php on line 375 As for the 3rd : Uncaught Error: Call to undefined function tep_image_submit()
  16. artfulweb

    Quick Product Updates for osc 2.3+

    Perfect! Thanks John.
  17. artfulweb

    Header Tags SEO

    Yes Jack, they do work for categories and sub categories with the osComm Phoenix stock listing modules, so all ok on that end.
  18. artfulweb

    Header Tags SEO

    Ok Jack. Thank you.
  19. artfulweb

    Header Tags SEO

    Uninstalled
  20. artfulweb

    Header Tags SEO

    I uninstalled it, then no error. Put it back in and the error logged again.
  21. artfulweb

    Header Tags SEO

    It is cm_in_category_listing_hts.php
  22. artfulweb

    Header Tags SEO

    Yes Jack, Phoenix 1.0.4.3, replaced and it is still there. Category_tree was done.
  23. artfulweb

    Header Tags SEO

    Me again, Jack. Just a little error in my error logs: Invalid argument supplied for foreach() in (catalog)/includes/modules/content/index_nested/templates/tpl_cm_in_category_listing_hts.php on line 6
  24. artfulweb

    Header Tags SEO

    Perfect Jack, you are the best! Thank you ever so much.
×