
jimleeder123
Members-
Content Count
84 -
Joined
-
Last visited
Community Reputation
0 NeutralAbout jimleeder123
-
Rank
Regular Member
-
Ok you have permission to send an army after me, you were right. I swear it wasn't working yesterday. Very odd, but it works now!
-
I'm editing the Woocommerce e-mail files, and have got a session working. When it's echoed on the e-mail it appears as expected - "1 Day Health & Safety Awareness Chelmsford". However the if statement is not working. This is shown below, can anyone tell me where I'm going wrong? if (strpos($_SESSION['ahsname'], 'safety awareness') !== false) { // This is what I want to happen, the session should (and does) contain the string shown above //include( get_template_directory() . '/instructions/chelmsford-hsa-ahs.html'); echo "YES"; }else{ // This should not happen but it does!
-
I decided to ditch this idea, and had success with another method instantly. Thanks for the help though, do appreciate it
-
Sorry, I'm using WooCommerce, and my own custom theme. I'm trying to enter this into the admin order e-mail file, and will carry it into the customer one later when ready. I've googled a lot and tried a lot, but nothings working. What I need is the product name(s) in the order. Because of the nature of the business, it's likely only one product will be bought (or multiple of a single product).
-
Paste variables onto a Word doc on order submission
jimleeder123 replied to jimleeder123's topic in PHP Coding Help
I've had a quick look. Can this be used with an existing word document in my web files? -
I've hit a real wall here. I've got your code working ok outside the required function. This means that it goes through all of the same elements. However the function uses the event ID of the required item. Therefore it's just one event, so there should be just one name to check. The name of the event I'm testing contains "SSSTS" in the title, so below is my code. (by the way this is a function in my functions.php in WordPress. function attach_doc_to_email ( $attachments , $event_id, $object ) { // This function attaches a word doc to the order confirm e-mail based on an if statement /
-
It's an array because thats what the plugin makes it. Has been a nightmare trying to get people in a different timezone to help with it! Thanks for that, will try to work something out.
-
I'm using WordPress and Tribe's Event Calendar and Event ticket plus plugins. Their website is http://theeventscalendar.co.uk. I've been using their forums but it's taking a while to sort this out, so though someone on here might be able to help. I've got an array that I need to echo out part of. Inside each key (0, 1, 2, 3 and so on) there are numerous parts like ["ID"], ["name"] and so on. I want to echo out the ["name"] part of the key. I have a var dump for 10 keys in the array, each of which have their own ["name"] set. In the situation I'm using it, it will always have just
-
Ok, was wondering if there is a CSS hack for it or anything?
-
I've got an HTML 5 date input box working on my site. Anyone know how to make the whole thing selectable like a drop down (select) box? Currently you can only select it by clicking on the arrow at the far right of it. I don't mind about losing the cross or up and down arrows. I just want the field to be fully selectable like a drop down box. Any ideas please? Thanks.
-
Paste variables onto a Word doc on order submission
jimleeder123 replied to jimleeder123's topic in PHP Coding Help
The data will be going through WooCommerce. Also the file type is .docx. So how would I go about using this PHPWord thing please? -
I've got a function in my WordPress functions file that sends a Word doc based on what venue the ordered product is from. However I also need to be able to paste variables such as the customer name and others onto the specified word document. It also needs to be in specific places. How can I go about doing this? Please let me know if you have any idea or don't understand me! Thanks!