Brendavo
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce Poor Guys Swiss Knife] Custom fields to show in InvoiceHello ul,
Thanks for looking in to this.
I did also ask this on the plugins support and Ewout was very kind to answer me how to get this working.
He has a very nice plugin, so if you are looking for one for your sites. I really recommend it.With Regards
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Adding custom field dataHello Ewout.
Thank you very much for your assistance. Your code helped me to get all 3 fields showing up on the invoice.
May i ask how to show the product image in the invoice or slip?
My website will also do wholesale, so i know from experience, that an p-slip or invoice without product images is a very big pain in the ***, if there are dozens of products on it and only names / sku’s.I would really appreciate it.
With Regards
Thanks ulihake,
I already figured this part out, by changing the _postServiceOption.value
I do learn fast, its just that i never worked with code in my life. Imagine you going to a different country where everyone speaks a strange language and you have to figure out what each word means by yourself and then how to putt it together to make full sentences.
Hiring someone is out of the question for this.
Well, as you have implemented that all custom made fields get displayed in the customer Emails/Receipts ( if not checked to hide ), then the value in those Emails/Receipts for the CUSTOMER should be value + text.
It makes absolutly no sense for the customer, when reviewing his Emails/Receipts to see for example “Custom Delivery Address: 3”.
He should see the text, that he specified during checkout !As i see it, this is a lacking function or even bug of the plugin.
e.g. joining value and text for the value (value=”3 – Post Station somewhere in nowhere”), if this is suitable for you in the back-end.
This would be perfect, not just for me, but for EVERYONE who uses your plugin.
Please tell me how to fix this.Ok, for some reason putting this
jQuery(document).ready(function(){ jQuery('#billing_piegadatajs_field') jQuery('#billing_piegadatajs_field').find('input[name="billing_piegadatajs"]').each(function() { jQuery(this).prop('checked', false); }); });
directly in wcpgsk-user.js above the var for the drop-down list worked now, but it DOES NOT work when i put it in Checkout Settings > Checkout Scrip box.
It display errorerror!And it doesnt work either if i wp_enqueue it from functions.php and putting the script in a js file.
Very strange
Your code does not work. It is not unchecking the radio.
People on Stackoverflow suggested this code:
jQuery("#billing_piegadatajs_field").find("input[name=\"billing_piegadatajs\"]").each(function() { jQuery(this).prop("checked", false);
did not work either.
Someone else there edited your code that did not work to this, but still not working:
jQuery('#billing_piegadatajs_field') .find('input[name="billing_piegadatajs"]') .prop('checked', false);
Also. does not matter what i put in your Checkout Settings > Checkout Scrip box – it ALWAYS returns “errorerror”.
Forum: Plugins
In reply to: [WooCommerce Poor Guys Swiss Knife] Dropdown list from APIThank you for your help, again.
I will try to get this working.P.s. If you said that you made this work yourself, can’t you just copy paste exactly what you put in wcpgsk-user.js ?
As said before, i have no experience with this and it would take me hours or days to get this working without help, i assume.
Forum: Plugins
In reply to: [WooCommerce Poor Guys Swiss Knife] Adding custom class to fieldsThank you for your reply and sorry for opening this again.
I have almost no experience with jquery scripting, could you please write in detail how to do this?
I tried adding this to the checkout script box, but after saving it just dissapears. I also tried pasting it in wcpgsk-user.js but that did not change anything either.
$("#billing_pastastacija_field").addClass("secondxxx");
Forum: Plugins
In reply to: [WooCommerce Poor Guys Swiss Knife] Select Options from xml, json, csvHi, thank you very much for the reply.
I tried to do what you told me, but for some reason it doesnt work.
I created a select field with the id=billing_pastastacija, then changed the var to _postServiceTerminalsSelect = document.getElementById(‘billing_pastastacija’);
and pasted
<script type=”text/javascript” src=”https://klients.pastastacija.lv/api/terminals.js”></script>in to the select Options box, for the new field.
But in the checkout it just shows the script text.
Here is how the wcpgsk_user.js file looks like. If i would paste the script into the wcpgsk_user.js file, where and how should i do that?
/* * Please paste your custom functions for WooCommerce checkout here * You may use this file to run your own client side validation for the checkout form * Example code to fill a select option: var _postServiceTerminals = [ {id: '1', name: 'Rīga, Pasta Stacija 101, A. Saharova iela 20a (Maxima XX)'},{id: '6', name: 'Rīga, Pasta Stacija 106, āzenes iela 5 (T/C Olimpia)'},{id: '24', name: 'Rīga, Pasta Stacija 124, Brīvības 434b (T/C Juglas Centrs)'},{id: '39', name: 'Rīga, Pasta Stacija 139, Dzirnavu iela 67 (Galleria Riga)'},{id: '2', name: 'Rīga, Pasta Stacija 102, K. Ulma?a gatve 88a (Maxima XXX)'},{id: '42', name: 'Rīga, Pasta Stacija 142, Krasta iela 46 (T/C MOLS)'},{id: '29', name: 'Rīga, Pasta Stacija 129, Mūkusalas iela 95 (T/C IKI)'},{id: '40', name: 'Rīga, Pasta Stacija 140, Rīga, Stacijas laukums 2 (T/C Origo)'},{id: '3', name: 'Rīga, Pasta Stacija 103, Slokas iela 115 (Maxima XXX)'},{id: '7', name: 'Rīga, Pasta Stacija 107, Stirnu iela 26'},{id: '15', name: 'Rīga, Pasta Stacija 115, Tilta iela 32 (Rimi)'},{id: '30', name: 'Aizkraukle, Pasta Stacija 130, Spīdolas iela 17 (T/C SuperNetto)'},{id: '27', name: 'Alūksne, Pasta Stacija 127, Pils iela 9b (t/c Maxima)'},{id: '21', name: 'Bauska, Pasta Stacija 121, Pionieru iela 2 (Rimi)'},{id: '31', name: 'Cēsis, Pasta Stacija 131, Lapsu iela 23 (Mego)'},{id: '17', name: 'Daugavpils, Pasta Stacija 117, Rīgas iela 9 (t/c SOLO)'},{id: '26', name: 'Dobele, Pasta Stacija 126, Muldavas iela 3a (T/C Forums)'},{id: '36', name: 'Gulbene, Pasta Stacija 136, Skolas iela 7 (t/c Maxima X)'},{id: '16', name: 'Jēkabpils, Pasta Stacija 116, Vienības iela 1a, T/C "MEGO"'},{id: '8', name: 'Jelgava, Pasta Stacija 108, Kato?u iela 7, (Kanclera nams)'},{id: '20', name: 'Jūrmala, Pasta Stacija 120, Artilērijas iela 2 (IKI)'},{id: '28', name: '?ekava, Pasta Stacija 128, Rīgas iela 22 (T/C Liiba)'},{id: '22', name: 'Kuldīga, Pasta Stacija 122, Smil?u iela 20 (ELVI)'},{id: '4', name: 'Liepāja, Pasta Stacija 104, K. Zāles laukums 8 (T/C Ostmala)'},{id: '41', name: 'Liepāja, Pasta Stacija 141, Klaipēdas iela 62 (t/c XL Sala)'},{id: '32', name: 'Limba?i, Pasta Stacija 132, Stacijas iela 8 (T/C Maxima XX)'},{id: '25', name: 'Madona, Pasta Stacija 125, Rūpniecības iela 49 (Maxima XX)'},{id: '18', name: 'Ogre, Pasta Stacija 118, Rīgas iela 23 (T/C Dauga)'},{id: '38', name: 'Prei?i, Pasta Stacija 138, Rēzeknes iela 4a (Maxima X)'},{id: '14', name: 'Rēzekne, Pasta Stacija 114, Pulkve?a Brie?a iela 26 (Maxima X)'},{id: '5', name: 'Saldus, Pasta Stacija 105, Stri?u iela 10c (T/C Akvārijs)'},{id: '12', name: 'Sigulda, Pasta Stacija 112, Vidzemes ?oseja 16 (T/C Raibais suns)'},{id: '23', name: 'Talsi, Pasta Stacija 123, Rīgas iela 8 (Maxima XX)'},{id: '19', name: 'Tukums, Pasta Stacija 119, Pasta iela 14 (T/C Rimi)'},{id: '10', name: 'Valka, Pasta Stacija 110, Ausek?a iela 54 (T/C Walk)'},{id: '9', name: 'Valmiera, Pasta Stacija 109, Rīgas iela 4 (T/C Valleta)'},{id: '13', name: 'Ventspils, Pasta Stacija 113, Lielais prospekts 3/5 (T/C Tobago)'} ]; var _postServiceTerminalsSelect = document.getElementById('billing_pastastacija'); for (var _ps_index = 0; _ps_index < _postServiceTerminals.length; _ps_index++ ) { var _psTerminal = _postServiceTerminals[_ps_index]; var _postServiceOption = document.createElement('option'); _postServiceOption.value = _psTerminal.id; _postServiceOption.text = _psTerminal.name; try { _postServiceTerminalsSelect.add(_postServiceOption, _postServiceTerminalsSelect.options[null]); } catch (e) { _postServiceTerminalsSelect.add(_postServiceOption, null); } } */
BUMP…
I have the same issue, plugin loads on every page except starting page ( homepage ) which is set up like main activity page.
thickbox also does not work for homepage.Any ideas how to fix this?