freakystreak 7 Posted October 18 @JcMagpie will these alternative invoices run on 'frozen'? Ah, the world wide web. What a wonderful place. Share this post Link to post Share on other sites
♥JcMagpie 1,430 Posted October 18 10 minutes ago, freakystreak said: run on 'frozen'? Sure should work fine, not much has changed on the admin side. 1 freakystreak reacted to this Share this post Link to post Share on other sites
freakystreak 7 Posted October 18 Cheers pal. Working fine. How does the generate PDF work? Is that another add-on that needs to be added? Ah, the world wide web. What a wonderful place. Share this post Link to post Share on other sites
♥JcMagpie 1,430 Posted October 18 (edited) No nothing else needed just press the export as pdf button and save pdf file. Edited October 18 by JcMagpie 1 valquiria23 reacted to this Share this post Link to post Share on other sites
freakystreak 7 Posted October 21 Hi there @JcMagpie, love these new invoice and packing layouts. Noticed though that the 'Export to PDF' does nothing when pressed. I have not changed anything regarding the script or the links that are used to generate a PDF. Any ideas as to why is does nothing at all? Ah, the world wide web. What a wonderful place. Share this post Link to post Share on other sites
♥JcMagpie 1,430 Posted October 21 (edited) As it's admin side I'm not in a position to test or check. The code uses cdn's for all the scripts so as long as you have internet access and full read write acess to your admin a files you should have no problems. I have only tested them on 1.2 but as the admin side is unchanged should work on anything. Try with one of my copies they both worked as of 5 mins ago. Remenber to remove the (1) of the names. packingslip(1).php invoice(1).php clicking the button will give, Edited October 21 by JcMagpie Share this post Link to post Share on other sites
♥JcMagpie 1,430 Posted October 21 57 minutes ago, freakystreak said: Any ideas as to why is does nothing at all? Yes sorry my mistake. It's a security issue as it's running in admin. I have an image in my files which links to my website, remove that in your files and make sure the image you use is in your admin/images and it should work fine. Sorry just an oversite by me. it's around line 50 ish, just a cross origin security issue. <div class="col"> <a target="_blank" href="https://jcmagpie.com"> <img src="images/jcmagpie-2.png" data-holder-rendered="true" /> 1 freakystreak reacted to this Share this post Link to post Share on other sites
freakystreak 7 Posted October 22 @JcMagpie cheers pal, working now... Ah, the world wide web. What a wonderful place. Share this post Link to post Share on other sites
♥JcMagpie 1,430 Posted November 5 Add the buttons to account_history_info, this allows the customer when logged in to print off or save as pdf any orders in the account. Just backup the old file and replace with this. It's for Phoinex 1.0.3.0. account_history_info.php 1 valquiria23 reacted to this Share this post Link to post Share on other sites
Lochlann 1 Posted November 18 Excellent find these were. Thanks so much. I'm new to Phoenix (haven't created any osCommerce sites since 2.3.0). The only thing that I think could make the invoice better is a call to display a different "NOTICE" & "TERMS" at the bottom "if" the customer entered a "Company Name" in their account otherwise it would just show the default "NOTICE" & "TERMS". Share this post Link to post Share on other sites
♥JcMagpie 1,430 Posted November 18 1 hour ago, Lochlann said: The only thing that I think could make the invoice better is a call to display a different "NOTICE" & "TERMS" at the bottom "if" the customer entered a "Company Name" in their account otherwise it would just show the default "NOTICE" & "TERMS". I don't think that the core code makes any distinction between a customer if the company name is used or not so you would need to do this as a mod. 1) Simple opton have two sections in your stock terms file so no code change required. 2) Add a simple "if" statment to check if company name sothing like "if ($company == 'true')" and if used show second terms. Share this post Link to post Share on other sites
Lochlann 1 Posted November 18 10 minutes ago, JcMagpie said: I don't think that the core code makes any distinction between a customer if the company name is used or not so you would need to do this as a mod. 1) Simple opton have two sections in your stock terms file so no code change required. 2) Add a simple "if" statment to check if company name sothing like "if ($company == 'true')" and if used show second terms. I wish my coding skills were of such. I'm more of a grab a module and follow the directions precisely kind of person. Share this post Link to post Share on other sites
burt 3,846 Posted November 19 Removal of off-topic chit-chat. Let's stay on topic if possible. This is a signature that appears on all my posts. IF YOU MAKE A POST REQUESTING HELP...please state the exact version of osCommerce that you are using. THANKS Get the latest Responsive osCommerce CE (community edition) here Share this post Link to post Share on other sites
♥JcMagpie 1,430 Posted November 19 Have updated the invoice file to fix small error on total layout and link to terms. invoice.php 1 valquiria23 reacted to this Share this post Link to post Share on other sites
♥JcMagpie 1,430 Posted November 19 Packing Slip has also been updated and a stray </a> removed from invoice. Both files attached. invoice.php packingslip.php 1 valquiria23 reacted to this Share this post Link to post Share on other sites