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

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

×