Jump to content
JcMagpie

Making Phoenix Invoice look a bit better

Recommended Posts

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

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

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,

image.thumb.png.171430a259bd46ef016ed7dc01cf4f7d.png

Edited by JcMagpie

 

Share this post


Link to post
Share on other sites
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" />

 


 

Share this post


Link to post
Share on other sites

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
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
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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×