Jump to content

Changing What is Printed On Orders


LaughingHorse

Recommended Posts

I'm wondering if there is a way to change what is being printed on the orders.

Right now it looks like it just shows the Ship to address

I would like to show the Ship to and the Bill to Address

Also is there a way to print a packing slip along with notes on the packing slip, or text at the bottom that i want the customer to see.

For example, the current print order at the bottom shows our address,

It shows at the top
Return Address

but the returns address we use is different, and i want to add a note about returns. 

The main issue though is the layout and what prints on the order sheet we use for internal processing.

How do I change that.

Thanks!

Link to comment
Share on other sites

  • 4 months later...

On this same topic, how can one change, move boxes, or edit  /admin/skins/default/templates/orders.print.php? Every time I try to change anything on this template, all I get is a blank page.

I looked through admin/sources/orders.index.inc.php, and see the notes as to what is done with the page when generated, but see nothing there that would keep an altered templates/orders.print.php from printing.

Any suggestions on altering this template and having it print?

Thanks....

Link to comment
Share on other sites

Without seeing a copy of the edited file, I can only make an educated guess that the code is getting messed up with respect to the Smarty {statements}. It would be no different than any programming language where, for example, the cart was put before the horse.

Please check the admin, Error Log, System Error Log tab to see if Smarty logged the problem it was having with the template.

Send me a PM with your email address and we can solve your objective by email.

Link to comment
Share on other sites

You shed some light where I had not looked. I have been working with another open source cart for 12 years, only starting a few months ago moving to CubeCart. They did not use Smarty, and I never really did more than play with it a little.

There is no text, other than html tags, on this page that is not processed through Smarty. It appears perhaps I did not watch brackets closely enough.

A quick test on what you said, IE: about line 36, if I do

    <div id="storeLabel">
          <img src="{$STORE_LOGO}" alt="">
          hello text
        </div>

That prints okay. I am going to work a little with understanding how to send what I need to smarty. Also sending you the PM you asked for.

 

 

Link to comment
Share on other sites

  • 1 month later...

I read issue 538 where I think it said it was resolved, however, I am still not getting the billing address printing on the invoice.

Is there something i can do with the skin as opposed to the changing core files, as I'm concerned that when the next update comes out, it will wipe out any changes to core files I made.

Link to comment
Share on other sites

Further, to add to this... When I did a test order the CC emailed me the receipt. On my emailed Customer Receipt it gave me both the billing and shipping address.

 

In other words, the Customer gets the Bill to address and Ship to address  in their email receipt from the cart, but when I go in from Admin to print the order, I only get the Ship to address printed.

Link to comment
Share on other sites

The packing list you can print does not have billing info included in the data passed to it. You would have to make a call to another function, or change the called function, to add billing info then place it in the header area of admin/skins/default/order.print php so that it can be passed to the smarty template system to create the page. But, as noted above, it is not a simple operation and appears to be currently left to the authors to fix/change/update the core funtionality

I guess a quick and dirty fix would be to include your email address on a cc or bcc to the email that sends the invoice to the customer.

Link to comment
Share on other sites

I'm wondering if there can be another button added for printing, and it would print the order for internal work.

The information for the order is being displayed when you look at the "Order Summary"

I tried to just print the page, but it turned into three pages.

Anyway, if there was a way to print everything in the Order Summary and have a button called "Print Order" and Label the Packing List that is currently printing as "Print Packing List" that would be great.

Is there a way to add this?

Link to comment
Share on other sites

HI

I read that link, and probably am a little confused as to what that user was trying to accomplish. Perhaps he was billing open account, and did not have an invoicing program? I did some tests just to see what I remembered correctly from the basic set up on my test store and stores for 2 now live shops. What I (and at least one customer gets) is a copy of the INVOICE sent to the customer when they pay for their order. It shows billing and shipping addresses, all order details, minus the method of payment. It gives the link to check details in the admin panel which, if removed from this document could be used to mail or send an invoice with the shipment. Since this is a copy of the invoice the customer received, we should be able to recreate the invoice in the customer and/or orders section if needed, allowing generation of both an invoice and the current (not well-defined) packing list. I am pursuing that option now as this is especially needed if we change an order amount or quantities from the admin panel. It would also be useful as users coming from another ecommerce system are expecting this feature.

Link to comment
Share on other sites

Let's work on it. As I say, all the information is right there in the Order Summary.

So a fast down and dirty way would be just to be able to print off that info.

If it was going to be fancy, then the option of printing the store logo too. But I don't know that the store logo is really necessary at this point as the contact info is already there.

Link to comment
Share on other sites

We are just about to release a new plugin called Enhanced Admin Order Entry that adds a lot of extra functionality but one small part is the addition of four different printed documents from within the admin order entry screen - Proforma Invoice, Packing List, Standard Invoice and Order Summary.  The first three of these and fully templated and therefore can be easily changed by the user with a little knowledge of html code.

More details are available on our website and the plugin will be listed on the CubeCart Extension store shortly

Ian

Link to comment
Share on other sites

Sounds interesting. I know sometimes we get asked to include the invoice in  the package. And sometimes on non USA orders we are asked to email a ProForma.

The tricky thing on a ProForma is all the notes and extra terms that sometimes have to be included.

If you are doing a ProForma you also need to generate a Commercial Invoice as opposed to a standard Invoice. The invoice is the same, just the title has to say "Commercial invoice" (govenments and banks you know :) )

Link to comment
Share on other sites

  • 4 weeks later...

I have functional invoice and packing lists almost ready to publish. Although there are work arounds, I would like to have  the store city and store phone numbers entered into the database.

Fields for town/city and phone number were not defined in the Store Settings/General tab. I have set up the fields, can enter, store and retrieve the correct info in the General Tab, but need to know which file(s) is called to insert into and retrieve from the data base, so I can have the keys properly assigned to the $STORE array called and referenced in admin/skins/default/templates/orders.print.php.

Thanks for any input on this...

Never mind, found it. thanks for looking

 

Edited by Geotex
solved issue
Link to comment
Share on other sites

Most (if not all) Store Settings are stored in the database table CubeCart_config, in the row with the column 'name' having "config". Whatever form elements that are name="config[name_of_element]" will get saved to this column 'array' value.

These settings are given to the Smarty template variable $CONFIG. Some of it will need to be managed, because the value recorded is an ID index into an array -- such as the store's country code and state code.

In admin/sources/orders.index.inc.php, near line 524, you will find where $STORE is assembled. Likewise, in /classes/cubecart.class.php, in the _receipt() function, near line 2651, $STORE is assembled here for the customer to print a receipt from their account.

Link to comment
Share on other sites

Thanks for the really quick update. I got as far as admin/sources/orders.index.inc.php, near line 524, but had not looked at the Customer receipt functions yet. Thanks for pointing me in that direction!

As to the data stored in the database, the proper defining of the city ({$CONFIG.store_town}) and phone ({$CONFIG.store_phone}) in admin/skins/[default]/templates/settings.index.php entered the data into the database without error, then defining in admin/sources/orders.index.inc.php as:

'town' => $GLOBALS['config']->get('config', 'store_town'),

allowed them to be properly called in admin/skins/[default]/templates/orders.print.php

once I see how to do a plugin with hooks and test it, I will pursue putting up a plugin for the changes since at least one of the altered files can be changed to a default during a version update.

Link to comment
Share on other sites

  • 1 year later...

Hi,

Hope this thread is no stale in any way...?

I am new to cubebart and I struggle to remove a field on the order form.

 

In my country, we do not use 'state/county' in any way, so having this field set as 'required' per default is annoying.

 

I have tried to remove the filed by editing in the '/orders.index.php' and the '/orders.print.php' but it keeps being on the order form?

 

How to get rid of it?

Link to comment
Share on other sites

These templates may have had their rendered format "cached" by CubeCart. The rendered format will only populate the template with current values of variables, but the HTML of the template, once rendered and put in the cache, does not change.

Please try this: in admin, Maintenance, Rebuild tab, check Clear Cache and click Submit.

Link to comment
Share on other sites

Thanks for replying...

 

Followed the advice, but unfortunately it does not dissapear, even after clearing the cache and having checked in a browser that has not previously visited the page.

Have removed all 'state' and 'county' references but to no avail...?

Link to comment
Share on other sites

I still struggle to get rid of the 'state/county' on the orderform...

I have searched high and low, I have changed everywhere I can find it, butno matter what I do it stays on the orderfrom and do not get away - I can´t even change its 'required' status to non-required...

 

Any help is much appreciated....

 

 

Link to comment
Share on other sites

  • 2 weeks later...
 

These templates may have had their rendered format "cached" by CubeCart. The rendered format will only populate the template with current values of variables, but the HTML of the template, once rendered and put in the cache, does not change.

Please try this: in admin, Maintenance, Rebuild tab, check Clear Cache and click Submit.

BSmither, could you please have a look at topic

'Customize fields on order'

 

created by me?

I really need your qualified input to solve a problem...?

 

Thanks.

Link to comment
Share on other sites

Accept appologies for jumping in on this conversation, but many functions, especially form functions, are controlled by individual templates.

I wonder, have you looked at skins/[your active template]/templates/content.adressbook.php?

Lines 103 through 113 deal with country and state.

<div class="row">   <div class="small-12 large-8 columns">      <label for="country-list">{$LANG.address.country}</label><select name="country" id="country-list">      {foreach from=$COUNTRIES item=country}      <option value="{$country.numcode}" {$country.selected}>{$country.name}</option>      {/foreach}</select>   </div></div><div class="row">   <div class="small-12 large-8 columns"><label for="state-list">{$LANG.address.state}</label><input type="text" name="state" id="state-list" required value="{$DATA.state}" placeholder="{$LANG.address.state} {$LANG.form.required}"></div></div>
	

Although I have not played with this as all the carts I manage do need both state and country,  you might look at the following:

There is a "required" on State. Both items could possibly be removed by careful placement  of <!-- and -->

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...