Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Making Phoenix Invoice look a bit better


JcMagpie

Recommended Posts

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

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

 

Link to comment
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" />

 

 

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...