Forum Replies Created
- AuthorPosts
-
Absolutely great!! works perfect !
Hey Olli, I’ve added the filter to the functions.php, and put the original wppizza-order-email-html.php file back to make sure not to have any mistakes, but it doesnt display the content below each product, or anywhere.
What I did was copy paste the email .php to the theme folder so I could edit the layout.
I tried adding the filter and then make it show up through the php form but no succes. When i add this filter. What exactly do i put in the php ?
I changed back to the original code and found when ordering, this shows up above the email:
% @%% @%% @%% @%It looks like its three symbols for each ordered product (in this case 4 products)
The only thing that I changed is adding the filter.
Hey Olly, so far I have tried but failed to pull the content from the product. My coding isnt great at all.
<?php /***allow filtering of items (sort, add categories and whatnot)****/ $order_items = apply_filters('wppizza_emailhtml_filter_items', $order_items, 'htmlemail'); foreach($order_items as $itemKey=>$item){ /***allow action per item - probably to use in conjunction with filter above****/ do_action('wppizza_emailhtml_item', $item, $htmlEmailStyle); /**added 2.10.2*/ /**construct the markup display of this item**/ $itemMarkup=array(); $itemMarkup['trtd'] ='<tr><td style="'.$htmlEmailStyle['mailPadding']['2x15'].'">'; $itemMarkup['quantity'] =''.$item['quantity'].'x '; $itemMarkup['name'] =''.$item['name'].' '; $itemMarkup['size'] =''.$item['size'].' '; $itemMarkup['price'] ='['.$currency_left.''.$item['price'].''.$currency_right.']'; $itemMarkup['tdtd'] ='</td><td>'; $itemMarkup['price_total'] =''.$currency_left.''.$item['pricetotal'].''.$currency_right.''; $itemMarkup['tdtr'] ='</td></tr>'; $itemMarkup['trtd'] ='<tr><td>'; $itemMarkup['postId'] =['postid']; $itemMarkup['tdtr'] ='</td></tr>'; if($item['additional_info']!=''){ $itemMarkup['additionalinfo']='<tr><td colspan="2" style="'.$htmlEmailStyle['mailPadding']['0x15x15x30'].';font-size:90%">'. $item['additional_info'].'</td></tr>'; } /************************************************************************************************** [added filter for customisation v2.10.2] if you wish to customise the output, i would suggest you use the filter below in your functions.php instead of editing this file (or a copy thereof in your themes directory) /**************************************************************************************************/ $itemMarkup = apply_filters('wppizza_filter_htmlemail_item_markup', $itemMarkup, $item, $itemKey, $options['order']); /**output markup**/ echo''.implode("",$itemMarkup).''; ?>
Olly I am always stoked about your quick replies. Respect 🙂
I have added the filter to the functions.php file however not sure how to actually use it. I dont have an extra page or something to setup the email? (right?)
Thanks again.
Regards,
BartHey Olly thanks. We have added the way we sell our products and this is not needed anymore :).
I have set a static mail now (b ) i think the one who set up the page has forcefully shut it off . We will soon see if it helped or not .
So far i say thanks and if anything changes you’ll see me back ; )
regards
No, I think it is more like an online form is sending an e-mail filled with prices to a cc address having the spam blocker persume its an automated online form being a dick and sending pay your bill spam.
Is there a way to say “we are legit”? Maybe then not through your form but in another way?
If you know anyhting that would be very helpful. In the mean time i’ve send another mail to the admin
Thanks again
Dear sir, thanks for your response.
This message came from our hosting giving us this exact advice.
“The form puts the addressed as CC. This means that some servers don’t accept the email”.
So how can we switch it around?
Thanks for your help
Bart - AuthorPosts