dontbewillful Posted May 12, 2009 Posted May 12, 2009 Sorry for asking this, but I've looked all around the code to the best of my ability (I'm noobish on php) as well as on the forums and can't figure this one out. I inherited the administration of our osc shopping cart. My boss would like me to configure it so when we have a pay by check order, that an email does NOT forward to the vendor for that product, but that it will still forward to the vendor as normal for every other type of payment. Can anyone please help me figure out how to do this, or at least point me in the right direction? I would greatly appreciate it.
germ Posted May 14, 2009 Posted May 14, 2009 I'm not sure what code you use to <fwd> the email (it's not "standard osC") but that code is probably in /catalog/checkout_process.php I believe if you wrapped it inside the "if statement" below it would do what you want: if ( strpos( strtolower( $order->info['payment_method'] ), 'check') === FALSE ) { // code to fwd email to vendor here because it's NOT a "pay by check" order } BACKUP THE FILE IF AND BEFORE YOU DECIDE TO ALTER IT. I haven't actually tried this code. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.