Andy McCoy
Forum Replies Created
-
Hi,
It’s html encoding of the producttitle that is missing. If the producttitle contains double quotes it will give really starnge results.
I found the it here:
..\classes\class-woo-product-stock-alert-frontend.php:
Line 147:
<input type="hidden" class="current_product_name" value="'.$product->post->post_title.'" />
Line 155:
<input type="hidden" class="current_product_name" value="'.$product->post->post_title.'" />
It hould probably be something like this to solve the problem:
Line 147:
<input type="hidden" class="current_product_name" value="'.htmlentities($product->post->post_title).'" />
Line 155:
<input type="hidden" class="current_product_name" value="'.htmlentities($product->post->post_title).'" />
Best/
Andy- This reply was modified 7 years, 11 months ago by Andy McCoy.
Forum: Plugins
In reply to: [Downloadable Product from Amazon S3 for WooCommerce] File not found error?Exelent! It works without replacing the spaces with plus-signs ??
Thank you very much for your help!
?? Andy
Forum: Plugins
In reply to: [Downloadable Product from Amazon S3 for WooCommerce] File not found error?I mean …I did’nt replace the spaces in the filename. I replaced the spaces with plus-signs (+) in the input box in the product variations file box.
Forum: Plugins
In reply to: [Downloadable Product from Amazon S3 for WooCommerce] File not found error?Hi Emran,
I found the error …the filename has spaces in it. I replaced the spaces with a plus-sign (+), and it works ??
Maybee consider implementing that somehow? Replacing spaces with plus-signs, and some other characters that are allowed in filenames but has to be translated to work.
Nice pligin you made!
Best/
AndyForum: Plugins
In reply to: [Woocommerce Radio Buttons] Adding new options doesent workThis might be a issue with the way WordPress / WooCommerce stores data in the latest releases !?
Forum: Plugins
In reply to: [Yoast SEO] IMG OpenGraph parsing of oEmbed contentSomething like this:
function amx_itunes_parse_oembed($content, $post) { preg_match('/(https:|https:)\/\/itunes\.apple\.com\/.?.?\/album\/.*\/id(.*)\?.*/i', $content, $matches); if(count($matches) > 0) { $oembed = wp_oembed_get($matches[0]); $content = preg_replace( '/(https:|https:)\/\/itunes\.apple\.com\/.?.?\/album\/.*\/id(.*)\?.*/i', $oembed, $content, 1 ); } return $content; } add_filter('wpseo_pre_analysis_post_content', 'amx_itunes_parse_oembed', 10, 2);
Forum: Plugins
In reply to: [WP Download Codes] Downloads, Zips CorruptedI did a rewrite on this one …i have the files in two folders, the folders are renamed every two hours. Well …one of the folders are renamed every 2 hours …so there is at least 2 hours download from a shared folder. The files in the folder are static files and users are redirected to them.
Forum: Plugins
In reply to: [WP Download Codes] Downloads, Zips CorruptedThe problem with the readfile function is; it loads the file into memory …so, 2 users downloading 64MB uses 128MB of RAM given to your site. Most WordPress hosts only use 128MB sites. Downloading a 250MB ZIP (an album) will fail …not a solution.
Forum: Plugins
In reply to: [WP Download Codes] Downloads, Zips CorruptedI have the same issue …it’s in the fopen() / fread() part of the dc_headers() function it goes wrong. Empty ZIP’s …I tried to replace it with a simple readfile() funtion, and it works for small files.
I would love to see this one worked out as well …spend a day debugging with no results :-/
Forum: Hacks
In reply to: How do I insertsomething into the section from a plugin?Well …I would like to insert some html <meta> tags into the html <head> section from a plugin.
The plugin is parsing the content for videos, and I would like to insert the proper Open Graph <meta> tags, so that Facebook can discover embeded video.
/Andy