henrischiltz
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce Gift Coupon] Email spam on YahooYep.
i added
$message = "My message here, like download blablabla...";
and replayced
wp_mail( $mailto, $woocommerce_gift_coupon_subject, $body, $headers, $attachment );
by
wp_mail( $mailto, $woocommerce_gift_coupon_subject, $message, $headers, $attachment );
The $body is still used for the pdf generation, but not as the actual email.
Forum: Plugins
In reply to: [WooCommerce Gift Coupon] Email spam on YahooI’ve finally managed to crawl out of the spams !
Yeah !!
But i made some changes to your plugins and it’s fonctions in order to make that happen.
So the idea is that “they” don’t like html emails. So what i did is seperated the pdf from the mail itself.
I replace $body by $message and define message as “Hello, blabla my message blabal”.
That also allowed me to free myself from mail client display nightmares. I was able to reduce the size of the mail so it didn’t overflow in the pdf (don’t know if i’m the only one to have this problem, but dompdf renders to about 595px only) and i could set a super nice image as a background.Pretty heavy changes i guess but if someone have the same problem in the futur, that’s the solution i went for.
Forum: Plugins
In reply to: [WooCommerce Gift Coupon] Page builder (s) conflictYou are awesome =)
I made a small donation, can’t afford more, but you really deserve it (and more).
Keep up the good work ??Forum: Plugins
In reply to: [WooCommerce Gift Coupon] Page builder (s) conflictYep, That did the trick !
I’ll do some more extensive tests tonigth, but the couple test i made have all worked so far ??
THANKS !!Forum: Plugins
In reply to: [WooCommerce Gift Coupon] Page builder (s) conflictHi, yes i did the update.
Here is the content of woocommerce-gift-coupon.jsjQuery(document).ready(function($){ //Add ColorPicker if ($('.woocommerce-gift-coupon-color').length > 0) { $('.woocommerce-gift-coupon-color').wpColorPicker(); } //Selector visibility var selectors = { woocommerce_gift_coupon_title_type: 'woocommerce_gift_coupon_title_h', woocommerce_gift_coupon_info_paragraph_type: 'woocommerce_gift_coupon_info_paragraph', }; $.each( selectors, function( key, value ) { if ($('#'+key).length > 0) { //Initial if ($('#'+key)[0].value > 0) { $('#wp-'+value+'-wrap').hide(); } //Onchage if ($('#wp-'+value+'-wrap').length > 0) { $('#'+key).change(function() { if ($(this).val() > 0) { $('#wp-'+value+'-wrap').hide(); } else { $('#wp-'+value+'-wrap').show(); } }); } } }); });
Forum: Plugins
In reply to: [WooCommerce Gift Coupon] Page builder (s) conflictThank you @studiosweb
But i still have the same “TypeError: $(…)[0] is undefined woocommerce-gift-coupon.js:12:8” and the problem is still there :/Well there is an improvment, i can switch between visual and text when i don’t use either elementor or bold builder. But i still have the error message on the console with them.
Forum: Plugins
In reply to: [WooCommerce Gift Coupon] Page builder (s) conflictHi,
I didn’t know such console existed, cool ??
I found this :
“TypeError: $(…)[0] is undefined woocommerce-gift-coupon.js:12:8”
From a firefox console (if that matters)
CheersForum: Plugins
In reply to: [WooCommerce Gift Coupon] Page builder (s) conflictYour plugins works fine, it’s the “page builders” that don’t work.
But i tried a bunch and they all had this problem when your plugins was activated. And the problem is gone as soon as i disable your plugin. So… even if your end works… it causes problems elsewhere :/ (i can actually edit any product just fine, it’s when i edit a page or standart post that there is a problem)I tried a lot but i’m interested in particular by “Elementor Page Builder” and “Bold Page Builder”.
PS : little update, i don’t always lose info from your plugin page setings when i disable / activate it again. Don’t know what changed…
- This reply was modified 6 years, 11 months ago by henrischiltz.
Forum: Plugins
In reply to: [WooCommerce Gift Coupon] Email spam on YahooHello, I reinstalled everything (well, copy paste) on a different domain (a brand new one) and it works like a charm.
So i’m guessing that the reputation of the domain had been tarnished by the previous owner. Not much i can do about it aparently appart from waiting to get my reputation up slowly.
Thanks a lot for your help, and sorry for waisting your time :/PS : But from what i gathered yahoo have uped there spam filters. As an exemple, any email notification comming from wordpress about a forum reply goes strait to junk mail ! So if wordpress doesn’t get out of the spam filter, i don’t have high hopes ??
Forum: Plugins
In reply to: [WooCommerce Gift Coupon] Coupon description (suggestion)Wow, so elegant and simple.
And i can even keep my custom coupon_excerpt AND use your solution.
Clap
Clap
Clap ??PS : @roelvdp if you want to hide the price, open mail-template.php and delete line 76 :
`<h2 style=”text-transform:uppercase; color:#fff; text-align:center; font-size: 86px; font-family:Helvetica, Arial, sans-serif; font-weight:bold;display: block;margin: 0;”>‘ . $data[‘price’] . ‘</h2>’
That’s the line that displays the price. (And that’s how i hide it personaly)
Always keep an original of the file in case it breaks, and always have an acces to your ftp to replace the file in case the site breaks (this shouldn’t happen… but better safe than sorry)Forum: Plugins
In reply to: [WooCommerce Gift Coupon] Coupon description (suggestion)That would work, but in my case the PRODUCT description would still not be what i want to be displayed. So i added a way to set the COUPON description
On the original code in the function.php i replaced :
'post_excerpt' => 'Discount Coupon',
by
'post_excerpt' => $description,
and made a bunch of stuff to that on the product page in the admin pannel i have this box (sorry for the bits in french… i’m french… pardon) :
link to th
this field (who adds <p></p> around the text… for some reason i ignore) changes the woocommerce description of the coupon as seen on the coupon page :
link to the image
On the email template i then call this description to be displayed in place of the price (and i moved the price at the bottom)
The idea is that people can gift the coupon for a product (in my case, a hotel night) to someone.I think this is a nice addition so i thought i could make other enjoy it.
But on my end, it’s all working, no need for you to do anything.Now that i think about it, replacing the body text by the procuct description would be really cool too.
PS : sorry for my poor explenation, i blame my level of english and my lake of sleep due to the fact i worked late on this ??
- This reply was modified 6 years, 11 months ago by henrischiltz.
Forum: Plugins
In reply to: [WooCommerce Gift Coupon] Email spam on YahooYeah !!
MailGun had an option that tey said would override the sender adress and name but aparently was not working. I changed the website adress and finaly the mail worked !!
Well, now it’s a spam and the attachment is marked as a potential danger and cannot be downloaded but at least the coupon gets delivered !
Thank you for your help, and if i find a way to “unspam” my mails, i’ll post it here for futur people who might have that problem ??
CheersForum: Plugins
In reply to: [WooCommerce Gift Coupon] Email spam on YahooThanks a lot for the reply, i’ll look into configuring MailGun.
I’ll also try to delete the pdf attachment and see if that helps, i’ll try to do that tommorow and i’ll tell you if that works.
I’ve also thought that i bought an existing domain name and maybe the previous owner was spammy with his email and yahoo might remember that. I’ll try the plugin on another website.