Jump to content

Claudia M

Member
  • Posts

    847
  • Joined

  • Last visited

  • Days Won

    13

Everything posted by Claudia M

  1. This is what I did to BCC the emails. I did a test after I added it yesterday and it worked -received the email in Outlook on my PC and on my smartphone email. With today's order I didn't get an email when I manually changed the order to processing. Customer did. In admin, Manage Hooks, Code Snippets tab, click Add Snippet. Create 1st Code Snippet Enabled: Checked Unique ID: classize_mailer@cubecart Execution Order: 99 Description: Class-izes the Mailer instantiation so that it can be seen outside the orderStatus() method. Trigger: class.order.order_status Version: 1.0 Author: https://forums.cubecart.com/topic/52330-how-to-add-admin-as-bcc-of-all-customers-order-status-emails/ PHP Code: <?php $this->_mailer =& $mailer; Save. Create 2nd Code Snippet. Enabled: Checked Unique ID: bcc_admin@cubecart Execution Order: 99 Description: BCC's the admins on all customer emails. Trigger: class.order.assign_order_details Version: 1.0 Author: https://forums.cubecart.com/topic/52330-how-to-add-admin-as-bcc-of-all-customers-order-status-emails/ PHP Code: <?php //$this->_mailer->SMTPDebug = 2; //$this->_mailer->Debugoutput = 'error_log'; $addBCC_notify_admins = explode(',', $this->_notifyAdmins()); foreach ($addBCC_notify_admins as $admin) { $this->_mailer->addBCC($admin); } Save.
  2. Hi, I received an order today paid for thru PayPal Pro (1.1.9). I received an email from PayPal showing the payment had been paid and it does show up in my PayPal transactions. However, in my admin the order is showing pending and I had to manually update it to processing. Also, yesterday I added BSmithers code snippet so I receive (bcc) all the customer's emails sent thru CubeCart. I did not receive the customer's email though it does show in the email log it was sent to the customer. Any suggestions? Claudia
  3. So is this all I do? Reading the post I don't know if it ever worked correctly. In admin, Manage Hooks, Code Snippets tab, click Add Snippet. Nevermind! Adding the Code Snippets worked. Thank You!! Enabled: Checked Unique ID: classize_mailer@cubecart Execution Order: 99 Description: Class-izes the Mailer instantiation so that it can be seen outside the orderStatus() method. Trigger: class.order.order_status Version: 1.0 Author: https://forums.cubecart.com/topic/52330-how-to-add-admin-as-bcc-of-all-customers-order-status-emails/ PHP Code: <?php $this->_mailer =& $mailer; Save. Start another Code Snippet. Enabled: Checked Unique ID: bcc_admin@cubecart Execution Order: 99 Description: BCC's the admins on all customer emails. Trigger: class.order.assign_order_details Version: 1.0 Author: https://forums.cubecart.com/topic/52330-how-to-add-admin-as-bcc-of-all-customers-order-status-emails/ PHP Code: <?php //$this->_mailer->SMTPDebug = 2; //$this->_mailer->Debugoutput = 'error_log'; $addBCC_notify_admins = explode(',', $this->_notifyAdmins()); foreach ($addBCC_notify_admins as $admin) { $this->_mailer->addBCC($admin); } Save.
  4. Hi, I use to have coding that would send customer emails to me also. Now that we have the email log, the emails aren't sent to me. I would still like the order complete email sent to me as I use this to check for delivery. Saves time from having to log in to admin ..... I have the tracking link in the email. Can this still be done? Thanks in advance, Claudia
  5. What caused all my errors was a bot called Baidu. Business is located in China, but the IP is from Brazil. This is concerning. Ian from Havenswift thinks it might be a spider making itself look like it is from Baidu when it actually isn’t. We both read that Baidu does not respect robots. txt, but this may be why. It isnt Baidu at all ! Anyway, I added the following to my robots.txt. I’m going to clear my error log and see what happens. No more errors we know it’s Baidu. Lots more errors we know it isn’t and .htaccess changes come into play. Thank you Ian for all your help. User-agent: Baiduspider Disallow: / and User-agent: Baiduspider-image Disallow: /
  6. I did find this: The IP address A LOT!!! I didn't know who they were so I looked them up. IP 104.131.50.243 belongs to Digial Ocean, Inc. a cloud service. Never heard of them. also that OpenLinkProfiler.org Don't know about them 104.131.50.243 - - [10/Jul/2017:18:40:14 +0100] "GET /deer-or-buck-in-the-woods-small-dreamcatcher.html HTTP/1.1" 200 18041 "https://www.claudiasbargains.com/sitemap.html" "Mozilla/5.0 (compatible; spbot/5.0.3; +http://OpenLinkProfiler.org/bot )"
  7. I looked at the CubeCart's admin, Statistics, Users Online tab and didn't find any times that matched my Cpanel access log. I've contacted Havenswift (my host) and Ian is looking into it. Thanks Brian, may still need your help! Claudia
  8. Hi I just checked my error log and found thousands of these errors just for today! Help please! Claudia [10-Jul-2017 16:02:55 UTC] PHP Warning: Security Warning: Illegal array key &quot;$Path&quot; was detected and was removed. in /home/claudias/public_html/classes/sanitize.class.php on line 111 [10-Jul-2017 16:02:55 UTC] PHP Warning: Security Warning: Illegal array key &quot;$Domain&quot; was detected and was removed. in /home/claudias/public_html/classes/sanitize.class.php on line 111 [10-Jul-2017 16:02:55 UTC] PHP Warning: Security Warning: Illegal array key &quot;$Version&quot; was detected and was removed. in /home/claudias/public_html/classes/sanitize.class.php on line 111 [10-Jul-2017 16:02:55 UTC] PHP Warning: Security Warning: Illegal array key &quot;$Path&quot; was detected and was removed. in /home/claudias/public_html/classes/sanitize.class.php on line 111 [10-Jul-2017 16:02:55 UTC] PHP Warning: Security Warning: Illegal array key &quot;$Domain&quot; was detected and was removed. in /home/claudias/public_html/classes/sanitize.class.php on line 111
  9. Yes, Keat, I cleared my cache. The plugin is working so maybe it's not a big deal? But a PHP warning - I don't like those. Oh and Keats, thanks for commenting on my post. Claudia
  10. I just did the upgrade for the All in One Shipping plugin (haven't changed anything) and am getting this error: Anyway to fix this? Thanks in advance! [27-Jun-2017 16:06:53 America/Louisville] PHP Warning: Invalid argument supplied for foreach() in /home/claudias/public_html/modules/shipping/All_In_One_Shipping/shipping.class.php on line 46 Here is the code: $this->_item_count = 0; LINE 46 foreach ($this->_basket['contents'] as $item) { // XXX May want to exclude digital products from the item count, i.e. // if ($item['digital']) continue; $this->_item_count += $item['quantity']; }
  11. I don't know if this will help, but this is what I did. On the dropdown mini basket I added this. Then on the checkout page I did this: The tip (?) says: Checkout quickly and easily using your secure PayPal account. Just be sure your correct delivery address is used. By the by, the secure checkout sends them to the checkout page where they furnish contact / billing info. Claudia
  12. I took out the "please ship to" and added the slots in admin. I had previously made the changes thru cPanel. I had already moved my language to the definitions file ( from the en_US). Cleared the cache many times and guess what!! I works!! Yeah once again to Brian!!!!! Do you think it would be okay to move the language back to en_US? Thank you!!!!
  13. I did everything you said, Brian, and it is still not working. This is the return email I got: Claudia <[email protected]> wrote to : --------------- dsg --------------- This email is sent from the stores master email address but it is possible to reply directly to the sender using the reply button on your email software. I added the {DEBUG} at the end of the contact file and everything was okay. All fields showed up. this is a sample of my skins/content.contact NOTE I did change the fields to one word, which I also did went I tried your fix. <div class="row"> <div class="small-12 columns"> <div class="row"> <div class="large-3 columns"><label for="contact_shipfullname" class="bold right inline show-for-medium-up">{$LANG.contact.shipfullname}</label></div> <div class="small-12 large-8 left columns"> <input type="text" name="contact[shipfullname]" id="contact_shipfullname" value="{$MESSAGE.shipfullname}" placeholder="{$LANG.contact.shipfullname}"></div> </div></div> </div>
  14. Dirty Butter and Brian I have done what you both suggested. No difference and nothing in my error log. Everything green and my fields show. What about this. email_content => "%s <%s> wrote to %s: --------------- %s ----------" Thanks, Claudia Are there more files or lines of code I need to edit or something?
  15. Hi Brian!!!!!!! Well, if the statements are okay is there something else I need to do to get this to work? Thanks so much!
  16. Well that would have been helpful to show you line 1434 wouldn't it. LOL Here it is $mailer->Shiptoname = strip_tags($_POST['contact']['shipto_name']);
  17. According to the {DEBUG} my fields are available, if I'm reading it right. I did get the following in my FTP error log: [12-Jun-2017 16:12:30 UTC] PHP Parse error: syntax error, unexpected '[', expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /home/claudias/public_html/classes/cubecart.class.php on line 1434 Any suggestions? By the by .... where is bsmithers?
  18. Hi, I am trying to add additional fields to the contact form. I can get them to show up in the contact form, but when it is sent I the email does not include the fields I just added. Here is an example of what I have done. Any ideas how I can receive the information in the email? Thanks in advance. /classes/cubecart.class.php Line 1431 in the private function _contact() { $mailer->addReplyTo($_POST['contact']['email'], strip_tags($_POST['contact']['name'])); $mailer->Subject = html_entity_decode(strip_tags($_POST['contact']['subject']),ENT_QUOTES); $mailer->Body = sprintf($GLOBALS['language']->contact['email_content'], $_POST['contact']['name'], $_POST['contact']['email'], $department, html_entity_decode(strip_tags($_POST['contact']['enquiry']),ENT_QUOTES)); $mailer->Shiptoname = strip_tags($_POST['contact']['shipto_name']); $mailer->shiptoaddress1 = $_POST['contact']['shipto_address1']; $mailer->shiptoaddress2 = $_POST['contact']['shipto_address2']; $mailer->shipto_town = $_POST['contact']['shipto_town']; $mailer->shipto_state = $_POST['contact']['shipto_state']; $mailer->shipto_country = $_POST['contact']['shipto_country']; $mailer->shipto_postalcode = $_POST['contact']['shipto_postalcode']; $mailer->shipto_other = $_POST['contact']['shipto_other']; foreach ($GLOBALS['hooks']->load('class.cubecart.contact.mailer') as $hook) include $hook; // Send Added this to the language/en-US.xml ( I put all my edits in this file – put all from the above /classes/cubecart.class.php ) <group name="email_en"> <string name="email_macro_shipto_address1"><![CDATA[The first ship to address of the customer asking for an international shipping quote.]]></string> <string name="shipto_address1"><![CDATA[Ship to Address1]]></string> </group> modified the skin/content.contact.php by adding the following - put all from the above /classes/cubecart.class.php <p>{$LANG.common_en.intl_ship} </p> <div class="row"> <div class="small-12 columns"> <div class="row"> <div class="large-3 columns"><label for="shipto_address1" class="t5 bold right inline show-for-medium-up">{$LANG.email_en.shipto_address1}</label></div> <div class="small-12 large-8 left columns"> <input type="text" name="contact[shipto_address1]" id="shipto_address1" value="{$MESSAGE.shipto_address1}"placeholder="Shipping Address 1"></div> </div></div> </div>
  19. Hi, How can I make the mini basket that pops up closable with an X rather than just fade away? Remove the arrow but keep the location the same. Thanks in advance!
  20. I placed a test order in my store today and did not pay for it. When logged in as the test customer I went to order history and was shown the options: complete payment – cancel order – view details. I had removed reorder as I sell mostly one off items. Anyway, I clicked cancel order and got the red error message – The following errors were detected: Your order has been cancelled. Is there anyway to remove the first line, The following errors were detected:, as this is really not an error. Customer chose to cancel the order. Also can a popup, or something, be added saying something like are you sure you want to cancel this order before it is actually cancelled. Give the customer a little extra thought time before cancelling the order. Thanks for any and all help
  21. Hummm ... It's still not showing on my phone until I refresh the page.
×
×
  • Create New...