Jump to content
ugottasalsa

[Contribution] osC-PrintOrder with Store Logo v1.0

Recommended Posts

Yep ok, sounds good Tom,

 

I looked through the code stuff, and i figured it would involve taking quite a few files from the admin and changeing the names of them, to for example admin_application_top.php and putting them in the catalog. Then just modifying them a bit and it would all work good.

 

Will be good if we can get it to work though.


Don't die with the music in you!!!

 

Failure is just another boundary to sucess!!! But that doesn't mean your getting somewhere...

Share this post


Link to post
Share on other sites

Yeh and i almost forgot,

 

Randy, do you have a screenshot of what the printorder is meant to look like, just incase it does look right and that we dont need to do all this modification.

 

Thanks

 

Kristofor


Don't die with the music in you!!!

 

Failure is just another boundary to sucess!!! But that doesn't mean your getting somewhere...

Share this post


Link to post
Share on other sites

Randy, the reason it wotn work, is because there is big problems wit the printorder.php, i just changed back to the original files, and now if i click printorder details button, then it opens the javascript window up, and then takes an exact copy of my whole store and puts it into there and goes to the login pages, and if i login, it still shows most of the normal layout, not the printo order layout. , Now can i ask what exactly does the printorder.php file need from application_top.php, i think it wont work because iit is asking for application_top, and i have toher mods installed that changed application-top, is there a way that i could seperate the stuff neeeded into a seperate file to make this work.

 

Please let me know.

 

Thanks

 

Kristofor


Don't die with the music in you!!!

 

Failure is just another boundary to sucess!!! But that doesn't mean your getting somewhere...

Share this post


Link to post
Share on other sites

Ok, iv almost gotten it worked out, i made a copy of application_top, and called it application_top_printorder because i use STS i had a feeling that it would stuff it up, now the next problem is i cant figure out what is calling header.php, because if i can find that and change it to header_printorder and copy header.php to header_printorder and remove some stuff, then it woul dwork, i just need to work out where its being called from, but i will figure it out, hehehe,

 

Thanks, looking like a better mod every second


Don't die with the music in you!!!

 

Failure is just another boundary to sucess!!! But that doesn't mean your getting somewhere...

Share this post


Link to post
Share on other sites

Kristofor,

 

I recommend following the suggestion I posted above. That should hpefully take care of your problems.

 

-R


"Courage is not the absence of fear, but the awareness of fear and the ability to get past it."

 

It's difficult to diagnose an issue when the patient says, "I have this pain right here Doc, what do you think it is?"

Share this post


Link to post
Share on other sites

Ok,

i totally fixed the problem now.

This is what i did, i performed the sujested things about the security, but it still didnt make a difference, so, i made a copy of application_top and called it application_top_printorder. and removed any code relatign to sts, if anyone else is usuing sts aswell this could be helpful. i then changed

 

 require('includes/application_top.php');

in printorder.php to

require('includes/application_top_printorder.php');

 

and then also removed

 

  if (!tep_session_is_registered('customer_id')) {
   $navigation->set_snapshot();
   tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
 }

 

and

 

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

 

 

This cleared everythign up, and now the printorder shows perfectly.

 

And it is a great mod, the security stuff doesnt matter because i have security on the admin.

 

Hope this helps someone

 

thanks

 

kristofor


Don't die with the music in you!!!

 

Failure is just another boundary to sucess!!! But that doesn't mean your getting somewhere...

Share this post


Link to post
Share on other sites

kristofor

 

I took a simular apraoch as you

 

much easier than reworking the invoice.php to work there.

 

As long as we are working,, thats all that counts

 

Regards

Tom


no bugs in my stuff,,, just random features ;)

Share this post


Link to post
Share on other sites

Minor problem I can use some help with -- everything works fine on my test site (windows xp with oreilly web server) but on the real home to be, I get a this page cannot be displayed error, showing cannot find server -- what am i missing? any ideas? thnx for the help!

Share this post


Link to post
Share on other sites
Minor problem I can use some help with -- everything works fine on my test site (windows xp with oreilly web server) but on the real home to be, I get a this page cannot be displayed error, showing cannot find server -- what am i missing? any ideas? thnx for the help!

i would double check to make sure all the files got put in the proper location,, and then check the links for path errors.

 

that should be the only thing that could go wrong,,,

 

 

Tom


no bugs in my stuff,,, just random features ;)

Share this post


Link to post
Share on other sites

im getting this error in checkout_process.php

 

2000 - Unknown column 'payment_info' in 'field list'

 

i'm using ms 2.2 and did the install to the letter, even checked it twice, all the proper code is in place

Edited by joekushner

Share this post


Link to post
Share on other sites
im getting this error in checkout_process.php

 

2000 - Unknown column 'payment_info' in 'field list'

 

i'm using ms 2.2 and did the install to the letter, even checked it twice, all the proper code is in place

nevermind i'm retarded.... completly missed the SQL entry, works fine now

Share this post


Link to post
Share on other sites

Hello....I'm having trouble with v2.0 of this mod. When I click to Print an invoice on the customers side, I get the following error....

 

Fatal error: Cannot redeclare tep_db_connect() (previously declared in /home/lockedsa/public_html/shop/includes/functions/database.php:13) in /home/lockedsa/public_html/shop/includes/functions/database.php on line 13

 

Any help would be greatly appreciated.

 

Trent

:blink:

Share this post


Link to post
Share on other sites

Make sure you copied the printorder.php language file into your language directory and not the /catalog/printorder.php... and vice-versa.

 

-R


"Courage is not the absence of fear, but the awareness of fear and the ability to get past it."

 

It's difficult to diagnose an issue when the patient says, "I have this pain right here Doc, what do you think it is?"

Share this post


Link to post
Share on other sites
Next,,

open catalog/admin/includes/languages/english.php

add

define('TITLE_PRINT_ORDER', 'Order #');

 

I did that and 'TITLE_PRINT_ORDER' changed to just "Order # #" now. There is no order # listed when I print the customer invoice, just Order # #.

 

I also have a lil red x where my logo should go. Right clicking the red x I get

 

http://xxxxxxxx/osCommerce/images/STORE_LOGO

 

I'm guessing I need to define STORE_LOGO ???

 

THanks for any help.


~spectr17

Share this post


Link to post
Share on other sites
Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/almat/public_html/catalog/includes/functions/general.php on line 42

 

I am getting the above error when I click th eprint button any help.

Share this post


Link to post
Share on other sites

This is a great contrib. Does anyone know how to add the customer's comments to:

  • the invoice
  • the packing slip

Customers use this box to give us special delivery instructions that are vital.

 

Any help would be greatly appreciated.

 

http://www.gogogrocery.com

 

groceryguy

Edited by ptrau

"Aliiiiive, it's alive, it's ALIIIIIIIIIIIIIVE!!!"

Share this post


Link to post
Share on other sites

I just finished installing PrintOrder w/ StoreLogo v2 but when I go into the Admin section Configuration, My Store...there is no title line for Store Logo. Any suggestions as to where I should look to correct this? Oh the OSC logo is gone just have a "red x" with title Oscommerce on the catalog side and "red x" with my site title on the Admin side, I must have missed something.

Share this post


Link to post
Share on other sites

Try copying your store logo image to admin/images.

 

-R


"Courage is not the absence of fear, but the awareness of fear and the ability to get past it."

 

It's difficult to diagnose an issue when the patient says, "I have this pain right here Doc, what do you think it is?"

Share this post


Link to post
Share on other sites

My store logos are already in the image directories. The Readme fiel for this contribution says that it includes the My Store Logo contribution but I do not see link under My Store configs.

Share this post


Link to post
Share on other sites

########## CATALOG/INCLUDES/LANGUAGES/ENGLISH.PHP ##########

 

Add this to admin/includes/languages/english.php

 

define('IMAGE_BUTTON_PRINT_ORDER', 'Order printable');

 

this should be minus admin/

 

the images seem to vary between print_order.gif and printorder.gif

 

great mod though, mouseovers are a bit uneccessary though i think. I'd like to be able to print direct from the confirm page too without the popup. whats the purpose of payment_info btw?

 

g,

Share this post


Link to post
Share on other sites

Hi Randy,

 

I have installed this contribution and followed the instructions and also double checked my work. I admin print invoice and packing slip works, except for PRINT_TITLE_ORDER_1 shows in the middle of the window, but I don't see any buttons for print for the customers, not in check_out _success or history info pages.

 

Any idea what have I missed? I'm using osC2.2 MS2

 

Thank you

Share this post


Link to post
Share on other sites

Hi Randy,

 

Thanks for the great mod, except for a few problems it works great.

 

The main problems I am having is that the popup window displays the login screen for the accounts when I select the 'Print Order Detail' Button in the Account History Page. The link for the button is to my normal web site, not using SSL, the account page is using SSL.

 

I managed to get it to work by changing the code to the same as the back button.

 

Pasted Code:

 

<td align="right" class="main"><?php echo '<a href="java script:popupWindow(\'' . (HTTP_SERVER . DIR_WS_CATALOG . FILENAME_ORDERS_PRINTABLE) . '?' . (tep_get_all_get_params(array('order_id')) . 'order_id=' . $HTTP_GET_VARS['order_id']) . '\')">' . tep_image_button('button_printorder.gif', IMAGE_BUTTON_PRINT_ORDER) . '</a>'; ?></td>

 

New Code:

 

<td align="right" class="main"><?php echo '<a href="java script:popupWindow(\'' . tep_href_link(FILENAME_ORDERS_PRINTABLE, tep_get_all_get_params(), 'SSL') . '\')">' . tep_image_button('button_printorder.gif', IMAGE_BUTTON_PRINT_ORDER) . '</a>'; ?></td>

 

The part I can't get to work is the admin side, both my HTTP and HTTPS defines are the same of the admin side, so I am not worried about security.

 

The invoice button reads that it is trying to access my secure site but all I get is the admin login box.

 

I am running osCommerce 2.2 Milestone 2 Release with the following addons.

 

Administration Access Level Accounts 2.0

Big Images

Australian Zones

osC-PrintOrder with Store Logo v1.0

 

Any help would be appreciated.

 

Regards,

 

Tom.

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

×