freakystreak Posted October 18, 2019 Share Posted October 18, 2019 @JcMagpie will these alternative invoices run on 'frozen'? Ah, the world wide web. What a wonderful place. Link to comment Share on other sites More sharing options...
♥JcMagpie Posted October 18, 2019 Author Share Posted October 18, 2019 10 minutes ago, freakystreak said: run on 'frozen'? Sure should work fine, not much has changed on the admin side. Link to comment Share on other sites More sharing options...
freakystreak Posted October 18, 2019 Share Posted October 18, 2019 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. Link to comment Share on other sites More sharing options...
♥JcMagpie Posted October 18, 2019 Author Share Posted October 18, 2019 No nothing else needed just press the export as pdf button and save pdf file. Link to comment Share on other sites More sharing options...
freakystreak Posted October 21, 2019 Share Posted October 21, 2019 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. Link to comment Share on other sites More sharing options...
♥JcMagpie Posted October 21, 2019 Author Share Posted October 21, 2019 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, Link to comment Share on other sites More sharing options...
♥JcMagpie Posted October 21, 2019 Author Share Posted October 21, 2019 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" /> Link to comment Share on other sites More sharing options...
freakystreak Posted October 22, 2019 Share Posted October 22, 2019 @JcMagpie cheers pal, working now... Ah, the world wide web. What a wonderful place. Link to comment Share on other sites More sharing options...
♥JcMagpie Posted November 5, 2019 Author Share Posted November 5, 2019 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 Link to comment Share on other sites More sharing options...
Lochlann Posted November 18, 2019 Share Posted November 18, 2019 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". Link to comment Share on other sites More sharing options...
♥JcMagpie Posted November 18, 2019 Author Share Posted November 18, 2019 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. Link to comment Share on other sites More sharing options...
Lochlann Posted November 18, 2019 Share Posted November 18, 2019 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. Link to comment Share on other sites More sharing options...
burt Posted November 19, 2019 Share Posted November 19, 2019 Removal of off-topic chit-chat. Let's stay on topic if possible. Link to comment Share on other sites More sharing options...
♥JcMagpie Posted November 19, 2019 Author Share Posted November 19, 2019 Have updated the invoice file to fix small error on total layout and link to terms. invoice.php Link to comment Share on other sites More sharing options...
♥JcMagpie Posted November 19, 2019 Author Share Posted November 19, 2019 Packing Slip has also been updated and a stray </a> removed from invoice. Both files attached. invoice.php packingslip.php Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.