ovisoftblue
Forum Replies Created
-
I have tried to modify the php code to echo the table, but it doesn’t get generated in the first place when “total cart” is active. At least tell me what I should modify to get it working. I know it’s not hard, if you know what to push.
Please, I insist – I can pay for this function. I am losing customers every day because they can’t get the discount from the different colors they add. Your plugin is for the moment the only one that does things right very simply. Please help me.
Can you please implement this function? I need it badly, customers are walking away from the cart because they can’t get a discount from wanting different colors. They have to order the same thing x times to get the discount.
Thank you!
Forum: Plugins
In reply to: [Dynamic Pricing With Discount Rules for WooCommerce] AUD sign changeplease ignore/delete this, it was posted in error
Hi,
I used plugins, various methods described on www.remarpro.com by other users, nothing worked. Finally, I decided to take things into my own hands.
I discovered that some attachments have lost the “attachment” status to the locally-installed WP (probably because of DB rebuilds or migrations) and the links in posts have thus remained orphaned, issuing 404s. So using Yoast’s solution did not work, neither did that image.php trick, because the request didn’t reach image.php or attachment.php, just the 404 page.
So I took things straight and edited the 404 template. All you have to do is put this code at the very beginning of 404.php, ahead of the get_header() line:
<?php $path=$_SERVER['REQUEST_URI']; $a=explode('/',$path); if($a[5]!=''){ if(substr($a[5],0,1)!='?') {header('HTTP/1.1 301 Moved Permanently'); header('Location: https://www.yoursite.com/'.$a[1].'/'.$a[2].'/'.$a[3].'/'.$a[4]); } } ?>
If you know a bit of php, you already got the picture: the code above takes the string after https://www.yoursite.com, removes the dashes, stores the /year/day/month/title/attachment in $a[1], $a[2], etc. and then if it doesn’t detect parameter calls (which usually start with ?) it then redirects (301) whatever it encounters to a rebuilt URL minus the last part ($a[5]), which is usually the orphaned attachment.
Don’t forget to replace https://www.yoursite.com with your actual domain, or with a php function that gives you the domain name (am too lazy to look up for that). Customize “if”s at will, after your requirements.
Try this link, for example: https://www.greenoptimistic.com/2015/01/01/future-volkswagen-electric-vehicles-to-triple-their-range/fdsfdsfdsfds
Forum: Fixing WordPress
In reply to: Media-Upload in plugins broken after WordPress 3.8 updatehi guys, the solution is here: https://www.carnfieldwebdesign.co.uk/blog/wordpress-fix-add-media-button-not-working/