Zen Cart Logo
Forums / Addon Admin Tools / Edit Orders v4.0 Support Thread

Edit Orders v4.0 Support Thread

Views: 345,919

Results 581 to 600 of 1,927
08 Aug 2014, 15:59
#581
iqbal007 avatar

iqbal007

New Zenner

Join Date:
Aug 2014
Location:
Indonesia
Posts:
7
Plugin Contributions:
0

Edit Orders v4.0 Support Thread

Hello Everybody.
how to add new inputs and can be displayed on the packing slips and invoices?

I want to add a phone number section that can be edited on "the delivery section"
so the phone number into a billing and shipping is different

What files should I change / add?

thx :smile:

12 Aug 2014, 21:51
#582
laurelsstitchery avatar

laurelsstitchery

Zen Follower

Join Date:
Jun 2010
Posts:
145
Plugin Contributions:
0

Re: Edit Orders v4.0 Support Thread

lat9:

That's a known issue. See the quoted correction.

Just had this issue too and fixed it using your instructions - thanks! :)

13 Aug 2014, 12:48
#583
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Edit Orders v4.0 Support Thread

No problem, there's a bunch of pages to be read to find that!

14 Aug 2014, 08:24
#584
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Edit Orders v4.0 Support Thread

lat9:

No problem, there's a bunch of pages to be read to find that!

Hot tip for all who installed this mod (and other plugins):

Simply subscribe to this thread with instant email notifications and you won't be left in the dark. All you need to do is read the latest updates :smile:

To subscribe click on 'Thread Tools' on the header bar of this thread.

18 Aug 2014, 09:54
#585
moosesoom avatar

moosesoom

New Zenner

Join Date:
Dec 2008
Location:
Rimini, Italy, Italy
Posts:
67
Plugin Contributions:
0

Re: Edit Orders v4.0 Support Thread

Hi everybody,
ZC 1.5.1 + Super Orders 4.1.4

I have no problems in VAT calculation when inserting new orders, but problems come while editing exixting orders.
Here's some exmple pic:

This is the order right after its creation:

Attachment 14412
Attachment 14413

1 item, net price is 1.64, gross price is 2.00, VAT is 22%, gross shipping is 7.00, net shipping is 5.7377

Following is the same order after editing it by modifying gross shipping to 8,00

Attachment 14414

Total is ok, but not VAT (it should be 1.80, not 2.12)

And now the "surprise":

Attachment 14415

I just put net shipping in shipping box instead of gross shipping: now VAT is OK, but Total is wrong.

Any idea about that?
Thanks in advance

18 Aug 2014, 17:04
#586
rued avatar

rued

Zen Follower

Join Date:
Oct 2005
Location:
Finland
Posts:
186
Plugin Contributions:
0

Re: Edit Orders v4.0 Support Thread

Seems like there is a bug in Edit Orders 4.1.4 in the file admin/includes/functions/extra_functions/edit_orders_functions.php

Line 1025 - 1028:

				$check = $db->Execute(
					'SELECT `p`.`products_quantity` FROM `' . TABLE_PRODUCTS . '` ' .
				 	'WHERE `p`.`products_id` = \'' . (int)$query->fields['products_id'] . '\''
				);

Which probably instead should be (a p isn't defined):

				$check = $db->Execute(
					'SELECT `products_quantity` FROM `' . TABLE_PRODUCTS . '` ' .
				 	'WHERE `products_id` = \'' . (int)$query->fields['products_id'] . '\''
				);

Else it trows an error like:

PHP Fatal error: 1054:Unknown column 'p.products_quantity' in 'field list' :: SELECT p.products_quantity FROM products WHERE p.products_id = '32' ==> (as called by) /public_html/admin/includes/functions/extra_functions/edit_orders_functions.php on line 1028 <== in /public_html/includes/classes/db/mysql/query_factory.php on line 155

18 Aug 2014, 17:56
#587
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Edit Orders v4.0 Support Thread

rued:

Seems like there is a bug in Edit Orders 4.1.4 in the file admin/includes/functions/extra_functions/edit_orders_functions.php

Line 1025 - 1028:

			$check = $db->Execute(
				'SELECT `p`.`products_quantity` FROM `' . TABLE_PRODUCTS . '` ' .
			 	'WHERE `p`.`products_id` = \'' . (int)$query->fields['products_id'] . '\''
			);
> 
> Which probably instead should be (a p isn't defined):
> ```
				$check = $db->Execute(
					'SELECT `products_quantity` FROM `' . TABLE_PRODUCTS . '` ' .
				 	'WHERE `products_id` = \'' . (int)$query->fields['products_id'] . '\''
				);

Else it trows an error like:
Known issue; see post #577.

18 Aug 2014, 18:04
#588
rued avatar

rued

Zen Follower

Join Date:
Oct 2005
Location:
Finland
Posts:
186
Plugin Contributions:
0

Re: Edit Orders v4.0 Support Thread

lat9:

Known issue; see post #577.

Hehe ... this tread is 59 pages, I surely didn't bother or take time to go trough it (as search didn't give me anything for some reason), I just fixed it. :)

23 Aug 2014, 01:13
#589
yaseent avatar

yaseent

Zen Follower

Join Date:
Mar 2009
Posts:
169
Plugin Contributions:
1

Re: Edit Orders v4.0 Support Thread

Just wanted to ask a rather basic question...

I noticed that older versions of Edit Orders installs data into the SQL - but when going through the files of Edit Orders 4 I don't see anything that adds new columns or tables. I assume this version doesn't require SQL changes for installation? Or am I missing it...

23 Aug 2014, 15:14
#590
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Edit Orders v4.0 Support Thread

yaseent:

Just wanted to ask a rather basic question...

I noticed that older versions of Edit Orders installs data into the SQL - but when going through the files of Edit Orders 4 I don't see anything that adds new columns or tables. I assume this version doesn't require SQL changes for installation? Or am I missing it...
v4.1.4 installs some items in the configuration menu (Configuration->Edit Orders) via the file /YOUR_ADMIN/includes/classes/eo_plugin.php.

24 Aug 2014, 04:48
#591
yaseent avatar

yaseent

Zen Follower

Join Date:
Mar 2009
Posts:
169
Plugin Contributions:
1

Re: Edit Orders v4.0 Support Thread

lat9:

v4.1.4 installs some items in the configuration menu (Configuration->Edit Orders) via the file /YOUR_ADMIN/includes/classes/eo_plugin.php.

Thanks :)

11 Sep 2014, 15:10
#592
shopville avatar

shopville

Zen Follower

Join Date:
Aug 2012
Posts:
331
Plugin Contributions:
0

Re: Edit Orders v4.0 Support Thread

Hi TIA.
My store is using text attributes with multiple lines of text, when editing a order the attribute looses the line breaks and combines into one line without spaces, is there any fix for it to keep the formatting?

16 Sep 2014, 16:36
#593
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Edit Orders v4.0 Support Thread

ShopVille:

Hi TIA.
My store is using text attributes with multiple lines of text, when editing a order the attribute looses the line breaks and combines into one line without spaces, is there any fix for it to keep the formatting?
Try changing the "text" input box into a "textarea" (/admin/edit_orders.php). Most browsers strip newlines and extraneous spaces from "text" input boxes.

16 Sep 2014, 18:22
#594
shopville avatar

shopville

Zen Follower

Join Date:
Aug 2012
Posts:
331
Plugin Contributions:
0

Re: Edit Orders v4.0 Support Thread

lhungil:

Try changing the "text" input box into a "textarea" (/admin/edit_orders.php). Most browsers strip newlines and extraneous spaces from "text" input boxes.
Thanks can you help with where in the file i have to edit?

16 Sep 2014, 19:06
#595
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Edit Orders v4.0 Support Thread

ShopVille:

Thanks can you help with where in the file i have to edit?
Change the field type of your text attributes to a textarea..

16 Sep 2014, 19:51
#596
shopville avatar

shopville

Zen Follower

Join Date:
Aug 2012
Posts:
331
Plugin Contributions:
0

Re: Edit Orders v4.0 Support Thread

DivaVocals:

Change the field type of your text attributes to a textarea..

I only have the following options:
Dropdown
Text
Radio
Checkbox
File
Read Only

16 Sep 2014, 23:23
#597
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Edit Orders v4.0 Support Thread

ShopVille:

I only have the following options:
Dropdown
Text
Radio
Checkbox
File
Read Only

Not sure if there is a "fix" for your issue.. As lhungil pointed out "Most browsers strip newlines and extraneous spaces from "text" input boxes.". Not an issue caused persay by Edit Orders..

17 Sep 2014, 13:29
#598
shopville avatar

shopville

Zen Follower

Join Date:
Aug 2012
Posts:
331
Plugin Contributions:
0

Re: Edit Orders v4.0 Support Thread

DivaVocals:

Not sure if there is a "fix" for your issue.. As lhungil pointed out "Most browsers strip newlines and extraneous spaces from "text" input boxes.". Not an issue caused persay by Edit Orders..
Right not caused by Edit Orders but only happens when editing since the browser will strip the lines

17 Sep 2014, 16:10
#599
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Edit Orders v4.0 Support Thread

After looking a bit further, there is a real easy option to allow product attributes with user entered multiline text. So I was wrong earlier, no need to edit "/admin/edit_orders.php" (it has been awhile since I have looked through the product attribute display code in Zen Cart).

Zen Cart out of box supports changing individual "text" option names (attributes) to use a textarea HTML element instead of an input HTML element (with a type attribute of text). As Edit Orders uses almost the exact same code as a stock Zen Cart product page (minor modifications for handling of downloads), turning this option on for the "text" option name in Zen Cart will also switch to using a textarea HTML element.

How to enable support for multiline "text" product options:

  1. Log into the Zen Cart administrative interface.
  2. Navigate the menu's to "Catalog" -> "Option Name Manager".
  3. Find the option name (option type: text) and click the associated "edit" button.
  4. Change "rows" to the number of rows to display (for multiline input must be greater than 1).
  5. Click the "update" button.

NOTE: Tested and verified to work under Zen Cart 1.5.1+ and Edit Orders 4.1.3+ (probably earlier as well - but these are my current test environments. The setting is documented in the wiki (Google FTW).

17 Sep 2014, 16:14
#600
shopville avatar

shopville

Zen Follower

Join Date:
Aug 2012
Posts:
331
Plugin Contributions:
0

Re: Edit Orders v4.0 Support Thread

lhungil:

After looking a bit further, there is a real easy option to allow product attributes with user entered multiline text. So I was wrong earlier, no need to edit "/admin/edit_orders.php" (it has been awhile since I have looked through the product attribute display code in Zen Cart).

Zen Cart out of box supports changing individual "text" option names (attributes) to use a textarea HTML element instead of an input HTML element (with a type attribute of text). As Edit Orders uses almost the exact same code as a stock Zen Cart product page (minor modifications for handling of downloads), turning this option on for the "text" option name in Zen Cart will also switch to using a textarea HTML element.

How to enable support for multiline "text" product options:

  1. Log into the Zen Cart administrative interface.
  1. Navigate the menu's to "Catalog" -> "Option Name Manager".
  1. Find the option name (option type: text) and click the associated "edit" button.
  1. Change "rows" to the number of rows to display (for multiline input must be greater than 1).
  1. Click the "update" button.

NOTE: Tested and verified to work under Zen Cart 1.5.1+ and Edit Orders 4.1.3+ (probably earlier as well - but these are my current test environments. The setting is documented in the wiki (Google FTW).

This is how i'm set up it keeps the line formatting in the order, however when editing it displays as one line