e107inc / vstore

Simple shopping cart system for e107 v2.x Bootstrap CMS
GNU General Public License v3.0
17 stars 12 forks source link

Email cc for order submitted not happening after latest update #159

Closed martyshep closed 1 year ago

martyshep commented 5 years ago

My store is set so it cc's the originating email address so the guys who post out my goods know to send our an item. Now when a sale is made, only the purchaser gets the email, not the CC email address.

CaMer0n commented 3 years ago

@martyshep I believe this is fixed in the current version. (which requires the latest e107 git btw)

parsfounder commented 3 years ago

@CaMer0n I enabled (CC to yourself) option in Vstore >> Email Templates and didn't receive any email.

CaMer0n commented 3 years ago

Thank you for the update. I will check on that.

tgtje commented 3 years ago

Just info in regards to CC > $eml = array( 'subject' => $tp->lanVars($subject, varset($this->data['order_ref'])), 'sender_email' => $sender_email, 'sender_name' => $sender_name, 'html' => true, 'template' => 'default', 'body' => $tp->parseTemplate($template, true, $this->sc) );

    Might there be a conflict between HTML while e107 uses Text+Html ? Or reply-to like in mail manager class?
CaMer0n commented 3 years ago

@tgtje @martyshep @realmontazeri I believe this commit should fix it. Please test again if you don't mind.

tgtje commented 3 years ago

Yes thank you @CaMer0n 👍 While i was running live mode with language (used this to test) run only on English, replacing those 3 files in question (ok some LAN's not present, but runs). Email setting all on ON. I placed an order and voila Buy > received mail as client and also as admin. Order completed > mail as client and as admin (trigger=update (ok) ) Refund > mail as client and as admin (trigger=update (ok) ) Canceled > mail as client and as admin (trigger=update (ok) ) (even an old one in list now did react on setting /cancel) 👍

Grrr... files need LAN's ( and i thought i was done..hihi) back to design > pull r. closed .

CaMer0n commented 3 years ago

Thank you @tgtje !! I left some more comments for the LANs. (sorry, more work)

When you test your purchases, are you using a paypal sandbox, or something else?

tgtje commented 3 years ago

I (since i do have no real gateway accounts (after your message i looked at paypal (sandbox) i might get a developer account..Have to read in.

On question : from the start i always used Bank transfer (that is why i kept away trying to change too much ( i think) what might interfere with the gateway communication).