Stefan Vasiljevic
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Internal server error on checkoutHi @sebstar82,
bad news it doesn’t have anything to do with breadcrumb-navxt it’s triggering a fatal error from WooCommerce WC_Emails class. What version of WooCommerce are you using and do you have any email customization plugins active?
- This reply was modified 3 years, 6 months ago by Stefan Vasiljevic.
Forum: Plugins
In reply to: [WooCommerce] Email Restricted CouponsHi there,
basically if you restrict the usage to one or few emails it should work only for those emails. Coupons are verified by ajax and there is verification of them.
You can try with your own email and you will see it in action.
I hope this helps.
Forum: Plugins
In reply to: [WooCommerce] Serbian Curreny – Dinar, Latin and CyrillicHi @brada8m, you can add the following snippet to your theme’s functions.php
add_filter('woocommerce_currency_symbol', 'wdc_change_currency_symbol', 10, 2); function wdc_change_currency_symbol( $currency_symbol, $currency ) { if($currency == "RSD"){ // don't change this $currency_symbol = 'RSD'; // change name here } return $currency_symbol; }
Also please check this out:
https://sr.www.ads-software.com/latinisation/Hi @slimmyweight,
Please add this snippet to your theme’s functions.php file
function wdc_send_calceled_order_email_to_customer( $recipient, $order ){ // Get billing email from order object $billing_email = $order->get_billing_email(); return $recipient . ', ' . $billing_email; } // This adds customer email for canceled orders add_filter( 'woocommerce_email_recipient_cancelled_order', 'wdc_send_calceled_order_email_to_customer', 10, 2 ); // This adds customer email for failed orders add_filter( 'woocommerce_email_recipient_failed_order', 'wdc_send_calceled_order_email_to_customer', 10, 2 );
The easiest way to test it is to enable BACS or COD payment methods and create a sample order. The status of that order will be “On Hold”, you can then change the order status manually from On Hold to Failed and you should get the email and the customer should. To test again change the status again to on hold and then to Cancelled.
P.S. After changing the status you should click on the Update button,
- This reply was modified 3 years, 6 months ago by Stefan Vasiljevic. Reason: code formatting
Forum: Plugins
In reply to: [WooCommerce] Cannot access the Home/setup wizardHi,
can you please try to disable W3 Total Cache and WP Encryption and check if the issue is still there?
Also if you have JetPack enabled sometimes it can trigger that error.
Forum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] Fatal ErrorHi @dougaitken,
thanks for your quick reply!
I’m using the default template Twenty Nineteen v1.4, so that one is up to date.
This is happening only on certain scenarios. I’m not using the gateway on web as a website but to process payments from the iOS app, and this error is triggered only when you should get an error from Stripe (response code is not 200).
For example error will be triggered if insufficient_funds or card declined and so on. So instead of displaying the message from Stipe response it will display
Site is Experiencing a Technical Issue
because the error response callswc_add_notice
to display the error, and that one is undefined. If i comment out the line the response message will pass. But it breaks the web.I have Stripe logs enabled, but everything looks good over there. Basically it the code isn’t 200, fatal error will be triggered from the app, because
wc_add_notice
will try to display the message.and for the last thing, yup, that’s an exact copy/paste the line is cut-off, looked strange to me too.
If helps, here’s the flow how the app to gateway works:
1. User enters card info
2. token is generated in the app
3.process_payment
endpoint is called and passed data
4. gateway does what it does and returns a response
5. app gets the responseThanks, Stefan!
Forum: Plugins
In reply to: [Meta Box] Image Advanced property is not working@rilwis it’s working now perfectly.
Forum: Plugins
In reply to: [Meta Box] Image Advanced property is not workingHi There, same over here.
It’s working if you have
max_file_uploads
, but if you remove it (want to have ability to upload unlimited images) it doesn’t add any selected images from the media library.So my idea over here is that the
max_file_uploads
attribute is not treated as an optional attribute any more.Forum: Plugins
In reply to: [W3 Total Cache] Error 500 on flushing cacheHi There,
i managed to fix this by turning off the “FSD CDN” option from General Settings.
It was a really simple and quick fix.
Step 1:
Right click on grayed-out checkbox -> InspectStep 2:
Expand <label> elementStep 3:
Change to following<label> <input type="hidden" name="cdnfsd__enabled" value="0"> <input class="enabled" type="checkbox" id="cdnfsd__enabled" name="cdnfsd__enabled" value="0"> Enable </label>
Step 4:
Save settingsStep 5:
It’s workingForum: Plugins
In reply to: [Open Social Share] Plugin not sharing on FacebookI had the same issue, but i fixed it by editing the plugin.
I used php to strip the line breaks and double spaces and it is fixed.
Because i’m using only the shortcode i edited the shortcode file located in:
oss-social-sharing/includes/shortcode/shortcode.php
after the line 82 i added
$string_cln = trim(preg_replace('/\s\s+/', ' ', substr(wp_strip_all_tags($post->post_content), '0', 100)));
and then changed the line below to follow:
$share = '<div class="oss_title_replace oss_horizontal_share" ' . $style . ' data-share-titles="'.get_the_title($post->ID).'" data-share-description="'.$string_cln.'" data-share-imageurl="'.wp_get_attachment_url( get_post_thumbnail_id() ).'" data-share-url="' . get_permalink($post->ID) . '"></div>';
Hope it helps as a temp fix, while @loginradius-dev fixes it permanently and make it even more awesome ??
Forum: Plugins
In reply to: [WooCommerce] Site broken in Chrome (SSL issue)Hi guys,
sorry if you have the impression i copied something. I spent the entire afternoon yesterday trying to diagnose what’s the issue with chrome, because half of my websites were broken, and as you already may know, my phone started ringing because my clients were outraged.
So when i finally found what’s the issue by printing the $_SERVER var, the solution was very straightforward. I used this article to help me to write a plugin, and decided to add a donation box because I spent a lot of time on this one.
Then some users pointed out on my twitter account that the plugin mixes http with https requests on websites that use SSL, and that you can’t dismiss the donation box notice. So i added a simple if !ssl() and a option to dismiss the notice.
My goal isn’t to make money on this, it’s to help people who are having the same issue i had. Donations are optional, and everybody who feels that should donate he oe she can do it, either way i will use that money to help some other people that need it more then i do.
I hope i cleared this with you, and i think we should sometimes work together on some projects.
Forum: Plugins
In reply to: [WooCommerce] Site broken in Chrome (SSL issue)Hi guys, this plugin will fix this issue for you.
https://www.wdc.me/chrome-ssl-fix.zipForum: Plugins
In reply to: [Polylang] Posts mixup in categories with same nameWell,
Not tried with categories or tags. Just with cpt. I’ll try with cats and tags as well and I will let you know.
Thank you ??
Forum: Plugins
In reply to: [Polylang] Polylang and WordPress SEO by YoastGreat,
It works like clockwork!
thank you, you saved me ??
I found another small bug regarding to taxonomy terms, but i will open a new thread because it isn’t related to SEO by Yoast plugin.
Forum: Plugins
In reply to: [Polylang] Polylang and WordPress SEO by YoastHehe,
sorry, didn’t understand ??
I’m using a custom taxonomy, but i think you may try on post categories. While editing a category you will see the metabox on the bottom of the page try to add something to it ??
Everything else is working fine, awesome plugin ??