Skip to main content

Posts

Showing posts from 2020

Unzip Zip file from PHP code Extract the Zip file with PHP

You don’t need to require any other extra plugin for working with Zip files. // Get Project path define('_PATH', dirname(__FILE__)); // Zip file name $filename = 'zipfile.zip'; $zip = new ZipArchive; $res = $zip->open($filename); if ($res === TRUE) { // Unzip path $path = _PATH."/files/"; // Extract file $zip->extractTo($path); $zip->close(); echo 'Unzip!'; } else { echo 'failed!'; }

Hide Div. on click body element in toggle

$(".toggle-tt").click(function(e){       e.stopPropagation()       $(".hover-tooltip1").toggle();       return false;     });  $(window).click(function() {     if($(".hover-tooltip1").length) {       $(".hover-tooltip1").hide();     }   }); Hide Div on click body element in toggle 

Change Contact Us email subject line or the email address Shopify

It would be great to be able to change the subject line via the form inputs. Please allow us to put a hidden input and set the subject line where possible. Also great would be to change the to email. <input type = "hidden" name = "contact[subject]" value "My New subject line" /> <input type = "hidden" name = "contact[send-to]" value " bob@someemail.com " />