Re: Super Orders + Edit Orders (VAT problem)
Quote:
Originally Posted by
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 :)
Re: Super Orders + Edit Orders (VAT problem)
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?
Re: Super Orders + Edit Orders (VAT problem)
Quote:
Originally Posted by
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.
Re: Super Orders + Edit Orders (VAT problem)
Quote:
Originally Posted by
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?
Re: Super Orders + Edit Orders (VAT problem)
Quote:
Originally Posted by
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..
Re: Super Orders + Edit Orders (VAT problem)
Quote:
Originally Posted by
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
Re: Super Orders + Edit Orders (VAT problem)
Quote:
Originally Posted by
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..
Re: Super Orders + Edit Orders (VAT problem)
Quote:
Originally Posted by
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
Re: Super Orders + Edit Orders (VAT problem)
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:
- Log into the Zen Cart administrative interface.
- Navigate the menu's to "Catalog" -> "Option Name Manager".
- Find the option name (option type: text) and click the associated "edit" button.
- Change "rows" to the number of rows to display (for multiline input must be greater than 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).
Re: Super Orders + Edit Orders (VAT problem)
Quote:
Originally Posted by
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:
- Log into the Zen Cart administrative interface.
- Navigate the menu's to "Catalog" -> "Option Name Manager".
- Find the option name (option type: text) and click the associated "edit" button.
- Change "rows" to the number of rows to display (for multiline input must be greater than 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