862 Commits

Author SHA1 Message Date
aFolletete
2efac7fc23 // CHANGELOG
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11742 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-23 00:43:53 +00:00
mMarinetti
d44cecdd50 // PS_MODE_DEV exception for install-new check
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11741 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-23 00:39:32 +00:00
rMalie
297dd87efc // Comment some debug
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11740 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-23 00:38:18 +00:00
mMarinetti
61db68ff59 // added check for install-new directory
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11739 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-23 00:35:43 +00:00
rMalie
0f5c6f264d // Remove images
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11738 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-23 00:27:20 +00:00
rMalie
7d724608c4 // Remove images
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11737 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-23 00:25:59 +00:00
vAugagneur
e8b9ba18bc //last fix before release :p thanks franky
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11736 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-23 00:19:24 +00:00
rGaillard
e5c75bc0ac //Fix logo path in installer
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11735 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-23 00:18:25 +00:00
mMarinetti
84e4d6a393 // corsica independenza
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11734 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-23 00:18:16 +00:00
rMalie
f2094d7a9c // Fix access table for old mysql configurations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11733 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-23 00:05:39 +00:00
fSerny
beb14de978 // Little fix on AdminModulesController
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11732 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 23:59:04 +00:00
jBreux
2397aed7d9 // Fix opc carriers
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11731 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 23:37:57 +00:00
rGaillard
d10418478d // Small fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11730 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 23:36:31 +00:00
rMalie
c209479a7f // Fix deliveries on new install
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11729 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 23:32:45 +00:00
rMalie
a208d6b5cd // Fix dispatcher::createURL()
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11728 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 23:28:09 +00:00
fSerny
9cf866070d [-] BO : Fix on pagination system
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11727 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 23:22:26 +00:00
rMalie
a337f004c1 // Fix null values ...
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11726 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 23:20:30 +00:00
vChabot
eee9c0dbf0 // translation
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11725 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 23:07:40 +00:00
vChabot
a397a075d1 // translations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11724 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 23:03:37 +00:00
rGaillard
93f3516b35 //Little fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11723 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 23:03:13 +00:00
mDeflotte
d2ac550c57 // BugFix : notice in module tab
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11722 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 22:52:18 +00:00
rMalie
2dd6b962cc // Fix some bugs (and tabs) on new installer
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11721 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 22:50:45 +00:00
rMalie
7cca21d762 // Fix PS_CIPHER_ALGORITHM in new install
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11720 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 22:43:51 +00:00
rGaillard
92b1427950 //Small change
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11719 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 22:41:21 +00:00
rMalie
15e41d0f77 // Fix PS_CIPHER_ALGORITHM in new install
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11718 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 22:41:01 +00:00
lLefevre
0e07893041 // fix small bug
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11717 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 22:39:26 +00:00
fSerny
87a6d574ed [-] PROJECT : PDF Order Slip now handle partial refund
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11716 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 22:30:01 +00:00
vChabot
ab407dd70b // translations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11715 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 22:27:23 +00:00
vChabot
8f06a18584 // fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11714 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 22:23:57 +00:00
rMalie
0fd8a8f32c // Fix PS_CIPHER_ALGORITHM in new install
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11713 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 22:21:11 +00:00
mMarinetti
bdd447f0f7 // yet another adminEmployeeController fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11712 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 22:20:24 +00:00
rMalie
5e476eba5a // Fix image type in new install
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11711 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 22:14:43 +00:00
rGaillard
99e1772050 // Miss on last commit
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11710 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 22:14:36 +00:00
rMalie
5508823505 // Fix delivery in new install
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11709 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 22:11:12 +00:00
rGaillard
ca3ab742f0 // ImageType is now applied to a them
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11708 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 22:08:40 +00:00
mMarinetti
0d78cfb3d2 // when upgrade, do not add theme dir if its starts by a point, or is named 'prestashop'
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11707 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 22:06:08 +00:00
mMarinetti
7038b2674b // fix admin / superadmin rights
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11706 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 22:05:08 +00:00
mDeflotte
f6e9488e74 // BugFix : encoding problems
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11705 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 22:04:04 +00:00
jBreux
04b3b0ac5e // Fix adding pack to cart O_o
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11704 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 22:03:13 +00:00
rMalie
2aeae17ba6 // Fix PS_CIPHER_ALGORITHM in new install
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11703 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 21:59:43 +00:00
aFolletete
d2f89e79ba // revert from r11699
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11702 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 21:56:00 +00:00
jBreux
16861c4d03 // Fix adding pack to cart
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11701 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 21:54:38 +00:00
rGaillard
e8a3c10175 // ImageType is now applied to a them
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11700 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 21:48:40 +00:00
rMalie
5768a6c688 // Fix combinations images with new installer
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11699 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 21:48:13 +00:00
rMalie
42e9185a4d git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11698 b9a71923-0436-4b27-9f14-aed3839534dd 2011-12-22 21:46:31 +00:00
vSchoener
bf64f9ac21 // Fix Restricted module list when module can't be instanciated
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11697 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 21:45:52 +00:00
fBrignoli
d80b3ffc8b // fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11696 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 21:29:41 +00:00
tDidierjean
7e8d640627 // Fix autosetProductAddress
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11695 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 21:25:18 +00:00
mDeflotte
aff7e275a6 // BugFix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11694 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 21:24:19 +00:00
aFolletete
45cc1929d4 // add delivery slip
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11693 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 21:21:41 +00:00
fBrignoli
3b22a2d2e6 // total_discountS
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11692 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 21:18:17 +00:00
tDidierjean
1a8596a437 // Remove table discount_shop from upgrader
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11691 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 21:17:12 +00:00
rMalie
197474aaaa // Fix on install
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11690 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 21:16:32 +00:00
jBreux
7319f54a9b // Fix product quantity
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11689 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 21:07:36 +00:00
tDidierjean
fb7980305e // More fixes to upgrader sql
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11688 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 21:05:55 +00:00
rMalie
f63eccc824 // Fix db.sql files for MySQL < 5.1
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11687 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 21:03:55 +00:00
fBrignoli
0da9ffa601 // install
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11686 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 21:00:11 +00:00
aNiassy
f236fe6494 [-] FO :#PSTEST-145 : fixed a translation bug
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11685 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 20:58:20 +00:00
vSchoener
fbbca19d52 [-] Fix Bug #PSTEST-148 for any Divide operation when a variable is equal to 0
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11684 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 20:58:01 +00:00
mDeflotte
0c077908a2 // BugFix : Encoding chars problems
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11683 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 20:55:17 +00:00
rMalie
03cf3efc9c // Fix theme install in new installer
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11682 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 20:53:03 +00:00
fSerny
9117632139 [-] BO : Admin Modules now handle simple http request for download (for server which do not handle ssl connection)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11681 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 20:47:17 +00:00
rMalie
7d169bc0fc // Fix prefix in new installer
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11680 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 20:42:58 +00:00
jBreux
186ae63083 // Fix priorities
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11679 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 20:36:47 +00:00
fBrignoli
e18450562e // speed improvements
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11678 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 20:28:40 +00:00
lLefevre
cadda17361 [-] BO : #PSTEST-84 : Bouton générer une déclinaison noyé dans la masse
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11677 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 20:10:21 +00:00
vKham
fbb969c028 // fix table extensible
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11676 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 19:45:23 +00:00
mMarinetti
7bac43b93c // fixed #PSTEST-142
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11675 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 19:21:52 +00:00
rMalie
8f8c1e705c // htaccess is not generated during install
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11674 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 19:18:08 +00:00
fSerny
7a09986e0c [-] PROJECT : Module controller now handle the column display (time to go to MacDo :)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11673 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 19:09:50 +00:00
tDidierjean
51e9c6faa1 // More fixes to upgrader sql
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11672 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 18:56:10 +00:00
jBreux
9129bdb0c0 // Fix payments module list (O_o)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11671 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 18:54:13 +00:00
vChabot
05266a9dfd // little fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11670 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 18:53:52 +00:00
jBreux
f42b9159e5 // Fix payments module list
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11669 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 18:53:44 +00:00
vChabot
4afe87e550 // BugFix : changing Name and FirstName position
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11668 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 18:53:18 +00:00
mMarinetti
bd24529ef1 // fixing some upgrader bug, optimization (php files are now loaded automatically)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11667 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 18:32:49 +00:00
aNiassy
d1b68c3c47 [-] BO: Modified treatment. now the limit of upload can be modified in the "preferences" tab
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11666 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 18:32:30 +00:00
tDidierjean
605cc1c938 // More fixes to upgrader sql
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11665 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 18:32:00 +00:00
mDeflotte
7376be6afe // Fixing problems with shopping cart and customization
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11664 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 18:26:56 +00:00
rGaillard
5517c5c9af // Fix SpecificPriceRule percent reduction
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11663 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 18:26:07 +00:00
vSchoener
7d9b03fd31 // Fixed bug #PSTEST-136, Attachement works correctly after any changements
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11662 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 18:24:38 +00:00
vChabot
ab78c51dc5 // BugFix : Group name is now displayed when we view a group
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11661 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 18:24:29 +00:00
rMalie
59aeea0b28 // Compatibility with PHP 5.1 in new installer
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11660 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 18:21:48 +00:00
mMarinetti
a5c9e152bc // moved a property declaration at the top of the class
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11659 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 18:21:31 +00:00
vChabot
597df874a0 // little fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11658 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 18:14:34 +00:00
mMarinetti
5062880e68 // add hook_alias create table in 1.5.0.1.sql and its datas
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11657 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 18:12:53 +00:00
jBreux
81259e99d7 // Fix translations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11656 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 18:11:57 +00:00
fSerny
55e9fc7a52 [-] BO : You can now download native modules even when you logged on Addons
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11655 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 18:11:37 +00:00
jBreux
c45c357f56 // Fix multi shop
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11654 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 18:03:12 +00:00
fSerny
560903fefe [-] BO : Credit slips now appear in document section
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11653 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 18:02:04 +00:00
vChabot
903c84ac8b // BugFix : french translations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11652 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 17:56:35 +00:00
mMarinetti
c4233c4c9b // fixing bad syntax
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11651 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 17:41:59 +00:00
bMancone
e7f95cbed0 // updated warning for quantities
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11650 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 17:40:31 +00:00
rMalie
e59f33705a // Fix profiles creation
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11649 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 17:40:27 +00:00
mDeflotte
d0511c3211 // Improving method getAvailableCarrierList
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11648 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 17:37:27 +00:00
vSchoener
4d288f7694 // Delete AdminMessages tab entries
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11647 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 17:32:02 +00:00
rMalie
c3526bce99 // Fix hooks, categories and tabs in new installer
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11646 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 17:14:14 +00:00
rMalie
0f9613cc65 // Add Collection::getResults() method
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11645 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 17:08:13 +00:00
lLefevre
53c1b80ec6 // fix change upgrade file sql
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11644 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 17:04:47 +00:00
vChabot
2c6e8a41c7 // BugFix : admin scenes controller translations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11643 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 17:04:01 +00:00
mDeflotte
d1f8e02485 // Fixing problems with blockcart
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11642 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 16:56:10 +00:00
tDidierjean
202d6a6a09 // More fixes to upgrader sql
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11641 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 16:55:28 +00:00
mMarinetti
500d67ef1c // redirection to new installer
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11640 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 16:53:23 +00:00
rGaillard
b74fec078e // BlockLink
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11639 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 16:46:02 +00:00
rMalie
5646de21f3 // Update new installer with last modifications from old installer
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11638 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 16:39:44 +00:00
vKham
1c7ca064eb // re add stylesheet page rules price catalogue + table
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11637 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 16:37:32 +00:00
rMalie
1f7c5e246b [+] MO: Add Module controller, Cheque and Bankwire modules use it
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11635 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 16:31:03 +00:00
bMancone
9c42712cb8 // updated homeslider
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11634 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 16:28:33 +00:00
vKham
0558a2fd5a // add stylesheet page rules price catalogue
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11633 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 16:27:55 +00:00
mMarinetti
0f3558ff9c // technical message "deprecated" are not translated anymore
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11632 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 16:22:59 +00:00
vChabot
30ef82a2bf // translations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11631 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 16:19:21 +00:00
vChabot
10f22fed70 // fix htaccess generation
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11630 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 16:18:27 +00:00
vChabot
f5ceaaf200 // BugFix : explain customer groups names with a hint
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11629 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 16:16:08 +00:00
mMarinetti
beb8fff0be // report bugfix from 1.4 to 1.5 related to memcache
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11628 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 16:13:59 +00:00
tDidierjean
8d69864933 // Fixes to upgrader sql
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11626 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 16:07:18 +00:00
mMarinetti
194c182e8c // report bugfix from trunk to 1.5.x branch
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11625 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 16:03:19 +00:00
fSerny
71f2f43ca6 [*] BO : Partial refund now handle quantity
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11624 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 15:57:30 +00:00
vChabot
99007ec463 // preference admin controller updated and tools convertbyte too
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11623 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 15:56:34 +00:00
lLefevre
60fd01ec60 [-] BO : #PSTEST-129 : FO - Erreur lors de l'upload de fichiers personnalisés
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11622 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 15:39:38 +00:00
mDeflotte
683e3fd594 // No return parent::postProcess();
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11621 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 15:32:49 +00:00
tDidierjean
b48bdb0ff6 // Fixes to upgrader upgrade scripts
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11620 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 15:31:23 +00:00
jBreux
e3a5d7fe37 [+] Project : B2B Features
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11619 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 15:30:21 +00:00
bMancone
96df495dd6 // fixed selection of warehouses
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11618 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 15:23:08 +00:00
mDeflotte
2dc8cf5974 // Translations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11617 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 15:15:31 +00:00
sThiebaut
9924aaf850 // maj
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11616 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 15:09:52 +00:00
bMancone
c197093143 // Fixed getCartProducts()
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11615 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 15:04:26 +00:00
mDeflotte
74dab4ca50 // BugFix with shiping and warehouse
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11614 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 14:57:43 +00:00
fSerny
7f1c45e1d9 [-] PROJECT : Fixing register hook retrocompatibility
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11613 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 14:47:48 +00:00
rMalie
6ab3c0a045 // Add temporary theme installation in new installer
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11612 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 14:31:57 +00:00
vKham
8527b9e12f // re add stylesheet page commande
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11611 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 14:31:21 +00:00
bMancone
92d004241c // Warehouse: fixed queries. AdminPPreferencesController: fixed advanced stock management
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11610 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 14:26:45 +00:00
tDidierjean
11380aaf32 // Fixes to installer
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11609 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 14:22:22 +00:00
lLefevre
99f6062403 [-] BO : #PSTEST-37 : Documents joints - deux boutons redondants
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11608 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 14:22:04 +00:00
lLefevre
9d8452eef0 [-] BO : #PSTEST-22 : Orthographe à revoir dans combinaisons de la fiche produit
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11607 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 14:16:11 +00:00
mDeflotte
341eefd647 // Translations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11605 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 14:04:19 +00:00
fSerny
ba041f3b20 // Preparing partial refund update
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11603 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 14:01:05 +00:00
bMancone
ac441b6ac9 // Warehouse: when being flaged as deleted, fixed deletion of associations with carriers, products, shops. StockInterfaces: fixed size of the filters
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11602 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 13:58:16 +00:00
fBrignoli
88bc90561a // fix sql
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11600 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 13:52:25 +00:00
mMarinetti
da53a0471d // add success message when deleting product image
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11599 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 13:48:47 +00:00
mMarinetti
1e1141acc8 // fix #PSTEST-125
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11598 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 13:43:23 +00:00
mMarinetti
2b5915b625 // button add-new-url for shop
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11597 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 13:42:14 +00:00
tDidierjean
10a6a2606e // Reapply translations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11596 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 13:40:53 +00:00
mDeflotte
05a12813c2 // Translations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11595 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 13:39:20 +00:00
vChabot
2a5faa0271 // Improvement : target blank on PDF
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11594 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 13:38:00 +00:00
mDeflotte
5f430e1f97 // By default virtual product don't need to have stock to be sold
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11593 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 13:29:18 +00:00
lLefevre
cddb713ba1 [-] BO : #PSTEST-102: Texte d'une fenêtre de message en anglais
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11592 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 13:29:00 +00:00
tDidierjean
f1bc6322c3 // Change translations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11589 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 13:07:40 +00:00
vKham
1c6ff9d9a3 // add stylesheet page commande
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11588 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 12:59:41 +00:00
mDeflotte
520867e0fe // Replacing some "4 spaces" by a unique tabulation
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11587 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 12:43:31 +00:00
mDeflotte
8da11c4662 // Translations for helper (2)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11586 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 12:42:43 +00:00
mDeflotte
418860718c // Translations for helper
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11585 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 12:40:57 +00:00
bMancone
ab214d4c37 // translations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11584 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 11:35:39 +00:00
bMancone
3be610fdd2 // AdminproductsController: Quantity - added checks before updating depends_on_stock & advanced_stock_management
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11583 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 11:27:50 +00:00
bMancone
6a4eb7e768 // AdminWarehousesController: fixed association with carriers. Warehouse: fixed association with carriers. Carrier: norm & tags. AdminProductsController: added warning when using the advanced stock management without assocations with warehouses/carriers
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11582 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 11:09:33 +00:00
jBreux
f1bda28edb [+] Project : Possibility to enable or disable tabs
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11581 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 11:02:55 +00:00
vAugagneur
accd9d0f19 [-] BO : fixed js global conflict for categories tree
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11580 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 11:01:24 +00:00
fBrignoli
4bd908d20a [*] PDF : PDF could now be returned as a string
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11579 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 10:54:58 +00:00
lLefevre
923af93fc3 // fix bug virtual product
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11578 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 10:30:25 +00:00
sThiebaut
631d038526 // maj
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11577 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 10:29:13 +00:00
rMalie
cb00fd4529 [-] MO: Fix displayHeader hook in homeFeatured
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11576 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 10:28:56 +00:00
tDidierjean
f39d311242 // Changes to product page confirm messages
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11575 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 10:27:18 +00:00
sThiebaut
2ce3fdf7ac // maj
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11574 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 10:26:14 +00:00
vChabot
1c382ad069 // translations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11573 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 10:16:01 +00:00
lLefevre
fa3613c5a4 [-] BO : #PSTEST-70 : Orthographe défectueuse dans fenetre de confirmation
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11572 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 10:13:29 +00:00
fBrignoli
bdfa25bc86 // Norm
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11571 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 10:11:45 +00:00
vSchoener
c26ed8f23d // update translation
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11570 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 10:09:34 +00:00
lLefevre
fda1332b58 // Change product tab loading
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11569 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 10:09:21 +00:00
fBrignoli
b907210950 [-] FO : Specific price + id_cart
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11568 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 09:54:50 +00:00
fSerny
ec93df4efa [*] BO : Addons modules are now downloaded and installed at the same time (when you click on install button)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11567 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 09:40:29 +00:00
mDeflotte
cc7584e340 // Problem with product return
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11566 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 09:39:44 +00:00
rMalie
da1326a34d // Fix synchronisation of images in new installer
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11565 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 09:38:32 +00:00
fBrignoli
59f46ddfe5 [-] BO : Cannot send test email
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11564 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 09:27:46 +00:00
vChabot
b0eff944e1 // url rewriting disallow spaces
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11563 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 09:20:55 +00:00
rGaillard
372367913b // Miss file for blockcms
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11562 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-22 09:12:28 +00:00
rMalie
25811cee65 // Update new installer
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11561 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 21:33:22 +00:00
rGaillard
8ab8ef1fec // cms_block multishop
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11560 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 21:17:36 +00:00
aFolletete
a2b15b4ea4 // add icon in order to see invoice in document table on order page
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11559 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 21:15:08 +00:00
aFolletete
d8b9f6b70e // update homeslider preview data
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11558 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 21:05:57 +00:00
aFolletete
4738bda72e // add french translations for AdminOrders
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11557 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 20:55:44 +00:00
mMarinetti
0f827d6994 // reported fix from 1.4.x
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11556 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 20:36:17 +00:00
rMalie
5b9778bd5f // Name field in Tab is no longer required since some "root" tabs have no names
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11555 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 20:29:25 +00:00
bMancone
76a270ab66 // fixed homeSlider
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11554 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 20:29:21 +00:00
rMalie
f303dabffc // Fix Language::add() when a module has bad primary key name
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11553 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 20:28:58 +00:00
rMalie
21927830bf // Fix definition on Alias and Tag objects
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11552 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 20:28:31 +00:00
rGaillard
d4f2bbc32b // Fix CMS getRecurseCategory in multishop
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11551 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 20:24:44 +00:00
rMalie
b3f683ea38 // Fix bug in search
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11550 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 20:21:58 +00:00
rGaillard
9f44210d82 // watermark is now multishop
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11549 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 20:14:46 +00:00
tDidierjean
9b449a8350 // More translations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11548 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 20:08:27 +00:00
mMarinetti
cc91b4bd60 // removed useless Tools::displayError()
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11547 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 19:58:01 +00:00
mMarinetti
0ace4281df // fix unique key in shop_url table
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11546 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 19:48:06 +00:00
rGaillard
22915d5b12 // Revert AdminShop categories
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11544 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 19:35:07 +00:00
bMancone
e960e9c413 // translations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11543 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 18:39:49 +00:00
bMancone
006e3ed14e // translations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11542 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 18:36:27 +00:00
vKham
c3dde0b518 // add stylesheet stats, commandes, new icon back to list
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11541 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 18:10:07 +00:00
mDeflotte
5866679f7c // Fix blockcart removing products
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11540 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 18:09:48 +00:00
vSchoener
f182be7896 // update translation
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11539 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 18:07:28 +00:00
fBrignoli
d41ea63e31 // FPDF removed
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11538 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 18:06:41 +00:00
vChabot
8d159c06da // translations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11537 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 17:59:07 +00:00
aFolletete
8aa88f4aab // add french translations for AdminOrders
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11536 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 17:51:37 +00:00
vChabot
0a3803c941 // translations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11535 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 17:50:52 +00:00
bMancone
2b9f2027f5 // fixed homeslider
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11534 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 17:46:31 +00:00
vSchoener
bc6b960a80 // update translation
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11533 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 17:45:07 +00:00
vSchoener
77545868c3 // update translation
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11532 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 17:43:42 +00:00
mDeflotte
cfd6918b70 // Fix smarty variable conflict
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11531 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 17:43:34 +00:00
vSchoener
a4956730c3 // update translation
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11530 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 17:37:50 +00:00
vSchoener
4cd47049fa // update translation
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11528 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 17:33:25 +00:00
tDidierjean
a5f4bb7eec // FO translations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11527 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 17:33:25 +00:00
vChabot
f402b12ce3 // translations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11526 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 17:30:42 +00:00
fSerny
b204c0f896 [*] BO : Native modules are now downloadable without login on addons
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11525 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 17:24:59 +00:00
mDeflotte
93d945d403 // Fix some problems with multishipping
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11524 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 17:24:16 +00:00
vSchoener
ce9948699a // update translation
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11523 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 17:23:12 +00:00
tDidierjean
6a2ee706d9 // Add more BO translations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11522 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 17:22:04 +00:00
mBertholino
ad79f651d8 [-] BO : fixed bug -> product/combination ergonomics
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11521 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 17:18:21 +00:00
rGaillard
739e51ce9a // Add specific_price management for backoffice order && fix installer
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11520 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 17:16:46 +00:00
vChabot
7a343196f1 // translations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11519 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 17:12:56 +00:00
tDidierjean
8099005405 // Add BO translations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11518 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 17:12:04 +00:00
lLefevre
9a37a8af4a // fix fatal error
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11517 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 17:03:01 +00:00
lLefevre
ae64ec2897 // fix stock for virtual product
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11515 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 16:49:42 +00:00
lLefevre
fd22a6233e [-] FO : #PSTEST-104 : delete button add in AdminCartsController.php
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11514 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 16:48:41 +00:00
jBreux
6bafe02714 [+] Project : Added the ability for groups to show or hide prices for their members
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11513 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 16:42:17 +00:00
fBrignoli
1ff57cb314 // OrderDetails migration
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11512 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 16:37:23 +00:00
mDeflotte
07c031260e // Fix some problems with multishipping
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11511 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 16:27:02 +00:00
bMancone
de0585128c // translations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11510 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 16:23:27 +00:00
vChabot
a089131884 // removing categories assocation with shop
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11509 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 16:18:24 +00:00
fGaillard
22945a1ba9 [-] Classes : #PSCFI-4464, #PSCFI-4494 : BugFix : smarty plugin edited, check if function mb_split exists (Ajax, add or delete into/from cart)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11508 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 16:17:33 +00:00
tDidierjean
5520f6767e // Fix SpecificPriceRule name property
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11507 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 16:17:15 +00:00
bMancone
f0544da7dc // fixed form.tpl
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11506 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 16:13:02 +00:00
vChabot
e5d53567ae // removing categories shop association
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11504 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 16:05:42 +00:00
vChabot
f4780b88ef // translation fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11503 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 15:59:00 +00:00
tDidierjean
bbaa2154de // Fix SpecificPriceRule form and multishop
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11502 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 15:40:41 +00:00
jBreux
272ce10298 [+] Project : Add Smarty console options
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11501 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 15:35:34 +00:00
rGaillard
0cc6fee10b // Fix SpecificPriceRule add id_customer
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11500 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 15:33:52 +00:00
bMancone
c1d793c10f // Quantities are now correctly setted when using the AttributeGenerator
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11499 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 15:22:20 +00:00
sThiebaut
eeb6a3b133 // maj
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11498 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 15:14:25 +00:00
vSchoener
45044d1a0c // Add the version of the module in database during the install
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11497 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 15:05:49 +00:00
bMancone
aa81ca7332 // Disable advanced stock management for virtual products
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11496 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 14:49:45 +00:00
tDidierjean
86b31d8ba7 // Change product tab loading
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11495 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 14:41:35 +00:00
jBreux
d30f723f84 // Fix : With Smarty 3 use methods rather than private members
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11494 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 14:36:38 +00:00
lLefevre
e25b8b0d95 [-] FO : #PSTEST-95 : change default combination in AdminProductsController
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11493 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 14:34:26 +00:00
mDeflotte
7ef920ce12 // Translations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11492 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 14:27:56 +00:00
bMancone
0d0f43f783 // Orders : fixed stock (available quantity & Stock)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11491 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 14:24:34 +00:00
vSchoener
8742c90560 // Update export to user Stock movement if the feature is activated and fix bug for the merge of the products order
// It Properly works :)



git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11490 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 14:21:45 +00:00
mDeflotte
b8ea4803ca // Translation
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11489 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 14:21:10 +00:00
rMalie
6b3fb2d8e4 // Improve synchronize tool in new installer
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11488 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 14:18:52 +00:00
rMalie
6ff8af5272 // Improve synchronize tool in new installer
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11487 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 14:18:38 +00:00
mDeflotte
847883c387 // BugFix : Missing params multilang
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11486 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 14:07:42 +00:00
tDidierjean
7b9a76f748 // Changes to features tab
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11485 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 14:02:01 +00:00
jBreux
edd23a9517 // Fix writable test of config.xml file
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11484 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 14:00:36 +00:00
lLefevre
cf9017f05f [-] FO : #PSTEST-92 : added display of size fields in attachments.tpl
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11483 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 13:57:08 +00:00
jBreux
386efe8428 // Fix query hook of blocksupplier
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11482 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 13:46:39 +00:00
lLefevre
2367807440 [-] FO : #PSTEST-74 : change the condition of product if is a virtual product
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11481 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 13:42:14 +00:00
jBreux
4c5806856e // Fix duplicates and standardize tab and author
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11480 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 13:32:37 +00:00
jBreux
09c678e341 // Add missing tables of blocktopmenu
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11479 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 13:21:04 +00:00
tDidierjean
63688446d5 // Changes to ajax tab loading in product page
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11478 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 13:05:29 +00:00
fSerny
9c7eab66e7 [-] PROJECT : Merge cache exec in class Hook (to maintain retrocompatibility)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11477 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 12:52:29 +00:00
lLefevre
9d74a9e989 // move call method initPack() in AdminProductsController
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11476 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 12:35:33 +00:00
lLefevre
2b38da2edd // move call method initPack() in AdminProductsController
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11475 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 12:34:55 +00:00
vChabot
59146657ab // fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11474 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 12:33:26 +00:00
jBreux
44e8ed487f // Fix bad SQL query on module_group table
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11473 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 12:07:05 +00:00
rGaillard
71d878a99c git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11472 b9a71923-0436-4b27-9f14-aed3839534dd 2011-12-21 11:42:30 +00:00
bMancone
09c22d9083 // OrderHistory : fixed r11441
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11471 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 11:10:52 +00:00
tDidierjean
3f3f99bded // Fix to translations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11470 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 11:05:55 +00:00
mBertholino
16de8f7129 // improve features in adminProduct code and product/features.tpl ; the update of a feature wasn't working
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11469 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 11:00:26 +00:00
mDeflotte
857a59ae9d // BugFix : BlockTopMenu is not visible when user is connected
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11468 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 10:56:09 +00:00
lLefevre
75f92c2846 // fix bug specifique price in price.tpl
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11467 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 10:48:03 +00:00
jmCollin
53ba841568 //
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11466 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 10:45:01 +00:00
lLefevre
50642c518f [-] FO : #PSTEST-81 : delete tab shipping if is virtual product
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11464 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 10:38:27 +00:00
rGaillard
4a32db9c86 // Fix installer && not displaying Shop fields on specific price when multishop is disabled
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11463 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 10:36:54 +00:00
aFolletete
864c8270ea // installer clean
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11462 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 10:24:21 +00:00
tDidierjean
94955a4f56 // Fix unit price calculation and display in BO
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11461 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 10:12:46 +00:00
lLefevre
5b498b35dc // Fix bug add pack
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11460 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 10:09:44 +00:00
vAugagneur
2cc4cc24e0 //added translation
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11459 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 10:08:31 +00:00
vChabot
79fce310ae // little fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11458 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 10:08:21 +00:00
vAugagneur
3bae3d127a //added translation
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11457 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 09:59:53 +00:00
mDeflotte
9637f7f409 // BugFix : Problems with blockcart
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11456 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 09:52:38 +00:00
vChabot
23aa8049c6 // adding categories with shop association
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11455 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 09:46:38 +00:00
tDidierjean
ffa3e5bd09 // Change wording on product page BO
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11454 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 09:41:01 +00:00
vAugagneur
dd0a2863a6 //added login translation
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11453 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 09:33:45 +00:00
bMancone
336ba829ab // Product : security
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11452 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 09:33:10 +00:00
aFolletete
083f1baf61 // fix issue on ajax querie on adding product
// clean code

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11451 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 09:23:31 +00:00
lLefevre
a6f2e0f638 // fix move the call method displayRequiredFields() only in display list
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11450 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 09:14:10 +00:00
mDeflotte
fce0c862bb // Add table category_shop on upgrading
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11449 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 09:07:26 +00:00
lLefevre
c7fa4db0a5 [-] FO : #PSTEST-72 : delete specific price in product tab
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11448 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-21 09:00:15 +00:00
mMarinetti
ac09b5e2bc // optmization adminshopurlcontroller
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11446 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 23:14:11 +00:00
fSerny
a1e0b74fcc [*] PROJECT : Moving partner module to another repository
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11445 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 23:05:48 +00:00
aFolletete
bb4576c4ab // when you adding a product on order, you can set a specific price
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11444 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 22:52:41 +00:00
mMarinetti
b74c003c39 // class Shop optimization in sql request
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11443 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 22:39:11 +00:00
mMarinetti
e9f57535b5 // fix toolbar bo shop controller and process delete error message
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11442 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 22:38:04 +00:00
mMarinetti
e813ea996d // minor notice fix when new order, related to OrderHistory::getLastOrderState() returning false instead of an object
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11441 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 19:04:56 +00:00
bMancone
449e6f2eb7 // Stock : translations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11440 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 18:36:58 +00:00
bMancone
6840363b9b // Stock : translations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11439 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 18:09:22 +00:00
fSerny
0b1e2ba0a3 [-] PROJECT : Moving xml files to xml directory
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11438 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 17:37:14 +00:00
vChabot
6ef2e2cc50 [*] BO : New category management with multi shop
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11437 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 17:36:08 +00:00
tDidierjean
2576abc756 // Fix bug when updating product tags
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11436 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 17:30:12 +00:00
fGaillard
b03bfc5efd // Fixed warehouse shops list
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11435 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 17:29:24 +00:00
vAugagneur
d7fe661aa4 //fixed js bug
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11434 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 17:22:35 +00:00
mMarinetti
1423fb7cea // retrocompatibility fix : displayHeader and displayFooter
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11433 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 17:17:57 +00:00
jBreux
bd9261af97 // Fix comparator
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11432 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 17:03:08 +00:00
mDeflotte
7776b7af6d // Add id_shop
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11431 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 16:58:27 +00:00
tDidierjean
549aff4ce6 // Complete the removal of Image->legend property
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11430 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 16:54:44 +00:00
tDidierjean
631e33affe // AdminTranslations: fix toolbar and remove google translate
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11429 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 16:48:05 +00:00
bMancone
94e8022772 // Stock : improvements (ergonomy/translations)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11428 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 16:45:05 +00:00
jBreux
3fda89d7c4 // Smarty 3 standardize
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11427 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 16:42:21 +00:00
fSerny
2c6f2da512 [-] BO : Filter modules system repaired and now in ajax
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11426 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 16:17:21 +00:00
mDeflotte
64d0b39bfa // Password input form login is not formated correctly
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11425 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 16:08:05 +00:00
jBreux
984c6c54ba // Smarty 3 standardize
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11424 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 16:05:59 +00:00
jBreux
c9d150b36b // Fix bug and Smarty 3 standardize
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11423 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 16:04:45 +00:00
mMarinetti
ce2a0221e0 // toolbar bug admintranslations - temporary fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11422 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 16:01:43 +00:00
tDidierjean
425b83eff8 // Fix bug with specific prices creation
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11421 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 15:37:49 +00:00
mDeflotte
f00ce25f7b // Remove "*" from require radio button
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11420 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 15:23:21 +00:00
lLefevre
c29b3acdc1 // added the name of controller as class in form.tpl
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11419 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 15:18:32 +00:00
tDidierjean
c8342112c8 // fix category autocompletion binding
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11417 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 15:13:26 +00:00
mDeflotte
68c1fb7c5d // Add translation
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11416 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 15:04:07 +00:00
mDeflotte
1415a788ad // Generate order reference durring upgrade
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11415 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 14:54:42 +00:00
mBertholino
49a1282cfb // improve authentification.tpl code, in order to display errors messages.
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11414 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 14:39:27 +00:00
aKorczak
3527399c24 [-] WS: Norm fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11413 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 14:38:18 +00:00
aKorczak
9fe70bb963 [-] WS: Norm fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11412 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 14:38:00 +00:00
lLefevre
cb07593455 [-] MO : #PSTEST-44 : Category cannot be parent of herself
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11411 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 14:28:01 +00:00
mDeflotte
348d0227f9 // Adding some translations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11410 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 14:08:43 +00:00
mDeflotte
daa8c7f8c9 // BugFix - Changing error message "name is to long (32 chars max)" + Adding context to Tools::displayError()
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11409 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 14:06:57 +00:00
bMancone
59fd81a2e2 // StockManager: fixed
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11408 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 13:51:05 +00:00
rMalie
a2ff7db3e2 // Fix default value of iterator in collections
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11407 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 13:49:59 +00:00
bMancone
4b15867b80 // Stockavailable debugged
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11406 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 13:31:45 +00:00
lLefevre
710a5018aa [-] MO : #PSTEST-41 : update ProcessAttachment method
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11405 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 13:06:28 +00:00
bMancone
7a9648775c // AdminProductsController: fixed bug on suppliers associations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11404 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 13:03:27 +00:00
mMarinetti
95eda3498f // fix minor issue about Hook::preloadHookAlias
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11403 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 12:55:33 +00:00
tDidierjean
855651d625 // Changes to AdminProducts workflow
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11400 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 10:44:25 +00:00
mDeflotte
5af57107f9 // BugFix - PSTEST-51 - Ajout dans un pack - Message d'erreur avec faute d'orthographe
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11399 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 10:19:58 +00:00
bMancone
121a314ef1 // Stock: fixed upgrade script
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11398 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 10:09:59 +00:00
mDeflotte
8fb44e6892 // BugFix - PSTEST-64 - Duplication de produit dans la liste et la fiche
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11396 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 09:43:56 +00:00
rMalie
33b340dcaa // Fix duplication of images
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11395 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 09:40:59 +00:00
mDeflotte
67dff10638 // BugFix - PSTEST-65 - bouton retour à la liste onglet paiement
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11393 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 09:00:26 +00:00
bMancone
895437e02d // Stock : updated Product
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11392 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-20 08:52:45 +00:00
aFolletete
d3a3a76421 // add payment information on Payment table
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11391 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 19:03:27 +00:00
bMancone
8af781e449 // Webservice: Stock
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11390 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 18:34:31 +00:00
aFolletete
5d7a120e50 // management of discount addition when no invoice on current order
// update the discount form when new invoice is created

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11389 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 18:24:03 +00:00
vSchoener
4b8097e154 // Add module upgrader
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11388 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 17:54:54 +00:00
vSchoener
5efc077d8d // Fix xss
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11387 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 17:47:24 +00:00
fSerny
bb28baec68 [-] BO : Bulk action management repaired
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11386 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 17:31:33 +00:00
mDeflotte
016e7b268f // Removing red error message when orders total is diferent form the total paid if there are multiple orders with the same reference
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11385 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 17:26:17 +00:00
lLefevre
bd13b988b1 [-] FO : #PSTEST-54 : price pack
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11384 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 17:04:20 +00:00
rMalie
1d2f9e44c4 // Improve collections : where() method reworked (prototype changed) + validation of fields
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11383 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 16:57:28 +00:00
tDidierjean
85ed0d2295 // Remove old AdminTabs
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11382 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 16:41:36 +00:00
lLefevre
8f9259c741 // delete call equation method in price.tpl
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11381 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 16:35:09 +00:00
mDeflotte
1c3f989220 // BugFix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11380 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 16:19:31 +00:00
lLefevre
2c60a188d9 [-] BO : #PSTEST-53 : fixed added quantities maximal for a pack
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11379 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 16:13:52 +00:00
lBrieu
4efd103b03 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11378 b9a71923-0436-4b27-9f14-aed3839534dd 2011-12-19 16:06:24 +00:00
lBrieu
327308a9d1 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11377 b9a71923-0436-4b27-9f14-aed3839534dd 2011-12-19 16:05:03 +00:00
lBrieu
1e47744868 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11376 b9a71923-0436-4b27-9f14-aed3839534dd 2011-12-19 16:04:47 +00:00
mDeflotte
772147a6ee // Removing some id_warehouse
// Adding some checks with advanced_stock_management product attribute

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11375 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 16:01:41 +00:00
lBrieu
f1af46cfa6 [*] Update messages notifications to display customer threads
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11374 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 16:00:50 +00:00
mDeflotte
9a97abf0e9 // BugFix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11373 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 15:58:40 +00:00
fGaillard
72db8c8f42 [-] BO : Reinitialized H.T prices precision (decimals)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11372 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 15:58:03 +00:00
lBrieu
7e82f7a9cc git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11370 b9a71923-0436-4b27-9f14-aed3839534dd 2011-12-19 15:49:10 +00:00
lBrieu
af51b8aa87 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11369 b9a71923-0436-4b27-9f14-aed3839534dd 2011-12-19 15:46:47 +00:00
mBertholino
91d3e6f391 // improve authController code, in processSubmitAccount, the method checks if the email address already exists and if it's a valid one.
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11368 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 15:40:57 +00:00
lBrieu
041b1a9f17 [*] Update messages notifications to display customer threads
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11367 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 15:38:59 +00:00
lBrieu
85916455a6 [*] Update messages notifications to display customer threads
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11366 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 15:37:09 +00:00
lBrieu
74b6c9c628 [*] Update messages notifications to display customer threads
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11365 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 15:35:13 +00:00
jBreux
4e810c850c [+] Project : Add specific prices to a specific customer
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11364 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 15:31:18 +00:00
lLefevre
42bad872d7 [-] BO : #PSTEST-31 : update in AdminProductsController : available_date
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11363 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 14:42:58 +00:00
fGaillard
8dff8f9969 [-] BO : #PSTEST-8 : Javascript - Rounded prices (2 digits only)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11362 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 14:42:23 +00:00
mBertholino
4d8db42292 // improve adminShopController adminShopUrlController and adminGroupShopController code, in order to have a default Status value activated.
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11361 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 14:36:29 +00:00
jmCollin
5720e0190f // Fix bug in preg_match
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11359 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 14:23:08 +00:00
tDidierjean
dac7c7795c // Fix bug with specific prices creation
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11358 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 13:53:56 +00:00
lLefevre
800b9f164d [-] BO : #PSTEST-56 : fixed incorrect request in shop filters
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11357 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 13:35:58 +00:00
lLefevre
373232aa93 // small bugs in combinaitions of virtual products
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11356 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 13:20:30 +00:00
mBertholino
d66074cdfc // improve config.inc.php code, add in cookie id_cart if there's a current order in a different shop that shares orders
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11355 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 13:20:15 +00:00
rMalie
5e60b5eada // Protect $table and $alias in DbQuery
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11354 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 13:15:53 +00:00
fGaillard
d601a74b8b [-] BO : #PSTEST-24 : BugFix date picker for combinations products (display & date format)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11353 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 13:03:22 +00:00
rMalie
b7ae37f6d7 // Change prototype of methods from(), leftJoin(), innerJoin(), leftOuterJoin() and naturalJoin() for DbQuery class
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11351 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 11:13:13 +00:00
fGaillard
09d15124b0 [-] BO : #PSTEST-8 : Changed prices.tpl digits precision //last commit omit modification
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11350 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 10:40:13 +00:00
fGaillard
6d6f46ad4d [-] BO : #PSTEST-8 : H.T prices precision changed (2 digits instead of 6)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11349 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 10:34:46 +00:00
tDidierjean
26f835a0ac // Small fixes to BO
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11348 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 10:33:13 +00:00
mDeflotte
39ee8e03ae // $required_fields must not be static
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11347 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 10:28:53 +00:00
fBrignoli
2139d3983d [*] CO : Additional Shipping Cost / Purchase Price / Reduction Amount texc in OrderDetails
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11345 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 10:16:04 +00:00
mDeflotte
d33fcc2da6 // DisplayDate don't have to 'die' if date == '0000-00-00'
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11344 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 10:14:42 +00:00
mDeflotte
9688e7741f // Fixing bugs in admin cart
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11343 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 09:51:59 +00:00
jmCollin
b432570f9d //
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11342 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 09:51:26 +00:00
jmCollin
8bca38ad20 Fix memory bug with Prestafraud configuration
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11340 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 09:41:39 +00:00
fGaillard
82419c80aa [-] Classes : #PSCFI-4477 : BugFix GSiteMap priority - Decimals no longer take care about local numeric separator
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11338 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 09:37:38 +00:00
mDeflotte
21d4c051bd // Traductions files
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11336 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 09:25:37 +00:00
lLefevre
03c143b316 [-] BO : #PSTEST-52 : update display of pack.tpl
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11335 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 09:21:36 +00:00
bMancone
f0a1fc667b // StockMvt : added id_warehouse as part of the params of getNegativeStockMvts()
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11334 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-19 09:10:21 +00:00
vAugagneur
1d545efe66 //move jquery plugin in the good folder
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11333 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-18 21:17:06 +00:00
aFolletete
92805dc869 [+] BO : on order edition, you can add a discount
[+] BO : on order edition, you can delete a discount
// Adding two new columns in order_cart_rule table: id_order_invoice, value_tax_excl

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11330 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-18 17:18:54 +00:00
aFolletete
d446d77261 // fix bug on Cart rule update in validateOrder
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11326 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-17 17:13:48 +00:00
aFolletete
073e0fbbc4 // clean code
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11325 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-17 16:53:50 +00:00
aFolletete
4b4a4bbfce // fix notice error on payment validation
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11324 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-17 16:44:48 +00:00
aFolletete
538cb58556 // clean code
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11323 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-17 16:26:59 +00:00
aFolletete
9038c4ea68 // fix calculation issue on product addition
// all elements are correctly updated when we adding, editing or deleting a product

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11322 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-17 16:20:03 +00:00
aFolletete
8415b8136d // fixed bug on automatic payment addition when put the order to a paid status
// fix "Free shipping" when create a new invoice

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11321 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-16 17:17:13 +00:00
fSerny
ccc51353ce [-] BO : Warnings are now displayed on Modules Tab
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11319 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-16 16:16:30 +00:00
lLefevre
a15214a04e [-] BO : #PSTEST-18 : smalls improvements
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11316 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-16 16:03:44 +00:00
lLefevre
26032dc8bd [-] BO : #PSTEST-14 : translations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11315 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-16 15:46:08 +00:00
aFolletete
41f7ae4d3a // add message when no payment is present
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11314 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-16 15:31:14 +00:00
aFolletete
896b62978f // fix bug on tracking number value
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11311 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-16 15:22:38 +00:00
mDeflotte
3391591fd2 // BugFix : Change footer link
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11310 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-16 15:18:48 +00:00
jBreux
3c7de270c5 // Fix orders view icons
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11309 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-16 15:18:01 +00:00
tDidierjean
31f3a71b9d // Fix product attributes
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11308 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-16 15:06:53 +00:00
aFolletete
5a4bc80867 // improve invoice and order payment
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11306 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-16 15:00:43 +00:00
rMalie
eb14c43722 // Norm + improve ObjectModel
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11305 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-16 14:55:05 +00:00
lLefevre
a45921e1ea [-] BO : #PSTEST-15 : translations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11304 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-16 14:44:57 +00:00
lLefevre
8dbd57dd20 // small corrections
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11303 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-16 14:13:50 +00:00
mDeflotte
3a3684a3ed // BugFix : AdminSearch dont generate urls with good token
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11302 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-16 14:01:00 +00:00
lLefevre
00b878d868 // added pack.tpl in AdminProductsController
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11301 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-16 13:57:27 +00:00
fSerny
e390031c83 // Adding an error message in class Module
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11300 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-16 10:57:50 +00:00
fSerny
2ab9ff175d [-] PROJECT : Cleaning Class Module
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11299 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-16 10:52:45 +00:00
rGaillard
c5c699548a // Fix submit button
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11298 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-16 10:47:31 +00:00
mDeflotte
14f931f6d5 // BugFix : AdminSearch dont find features
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11297 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-16 10:36:06 +00:00
aFolletete
6f03353f96 [*] BO : no payment is registered on order creation for check and bankwire payment
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11296 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-16 10:10:48 +00:00
mDeflotte
d6c85b63d5 // BugFix : summary-cart + Change a translation
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11295 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-16 10:08:17 +00:00
mDeflotte
1d393f8e97 // BugFix : Adding some backquote to protect SQL reserved word
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11294 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-16 09:57:03 +00:00
mDeflotte
879186f936 // BugFix : summary-cart
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11293 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-16 09:42:23 +00:00
jBreux
2db96b625d // Fix scroll and add missing image
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11292 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-16 09:33:36 +00:00
jBreux
8a73986a76 [*] BO : Improvement invoices management
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11291 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-16 09:14:11 +00:00
lLefevre
b14b35d67f // update virtual_product.tpl in AdminProductsController
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11290 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-16 09:12:12 +00:00
fSerny
5f639b3319 [-] PROJECT : Modules now handle PrestaShop version compliancy and dependencies check
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11289 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 20:11:43 +00:00
lLefevre
2ede4caa48 // added pack.tpl and virtualproduct.tpl
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11288 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 17:54:59 +00:00
mMarinetti
1346ca3e46 // when upgrade process (INSTALL_VERSION defined), initialize return now an empty shop object (+ die2Exception)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11287 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 17:42:24 +00:00
dSevere
9a58359cb6 // bug fix with suppliers and warehouses on product save action in back-office
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11286 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 17:36:54 +00:00
lBrieu
db959d2334 // Fix potential SQL injection
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11285 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 17:34:38 +00:00
rMalie
3381a99a0e // Fix bug on collections when an item was deleted in iteration
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11284 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 17:27:37 +00:00
rMalie
52df492c25 // Remove retrocompatibility stripslashes in ObjectModel
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11282 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 17:02:55 +00:00
tDidierjean
382bcb986b // Changes to product prices tab
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11280 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 16:58:28 +00:00
mMarinetti
4053ce9df6 // retrompatibility 1.4 theme
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11279 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 16:52:22 +00:00
rMalie
30ae6fc8e2 // Browse collections as associative arrays and not as iterative arrays anymore
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11278 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 16:48:20 +00:00
sThiebaut
d5f3da5550 // maj
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11277 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 16:44:44 +00:00
vChabot
7d0942bcc2 [*] BO : Required fields improved (with a white list)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11276 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 16:37:08 +00:00
tDidierjean
79bf1d6d5c // Changes to the product associations page
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11275 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 16:36:39 +00:00
mDeflotte
b53b621808 // BugFix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11274 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 16:23:04 +00:00
rMalie
deb4932850 [*] Classes: refactoring of ObjectModel::validateFields() && ObjectModel::validateFieldsLang()
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11273 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 16:19:55 +00:00
tDidierjean
7fcbd00819 // Changes to manufacturers and accessories in BO product page
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11272 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 15:57:50 +00:00
fBrignoli
a252da7448 // pdf configuration fields
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11271 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 15:51:15 +00:00
mDeflotte
7343f80834 // Some translations + Split multi-shipping activation in two differente option (one for allowing multi-delivering and one for allowing to deliver the available products first)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11270 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 15:26:13 +00:00
rMalie
b7abb129c8 // littlefix on ProductDownload
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11269 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 15:18:08 +00:00
vChabot
f98bb890cf // little fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11268 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 15:07:10 +00:00
jBreux
1207ab6607 // Fix bad colspan and add form label
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11267 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 15:05:53 +00:00
lLefevre
88eb0e2a95 // fix bug display image in product.tpl
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11266 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 14:34:20 +00:00
lLefevre
fd1ad0f57a // FO : enable languages if > 1
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11265 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 14:30:05 +00:00
jBreux
97a23174af // Fix bad indent
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11264 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 14:28:21 +00:00
lLefevre
b13c0c4bae // Bo translation && FO btn add to cart in product.tpl
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11263 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 14:22:25 +00:00
dSevere
268a14f425 // bug fix on cart button disply in frotn office
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11261 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 14:08:20 +00:00
rMalie
259eeb6c27 // Fix lang bug on collections + use definitions on hydrateCollection
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11260 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 13:56:15 +00:00
mDeflotte
86aa61d3c0 // BugFix : Blocklayered little fix with product order
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11258 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 13:41:53 +00:00
rMalie
13a70e1044 [*] Classes: ObjectModel::getTranslationsField|Child() is now deprecated, use ObjectModel::getFieldsLang() if need instead
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11256 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 13:24:03 +00:00
jBreux
af2feac665 // Add a note on invoice (icon)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11254 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 11:38:51 +00:00
jBreux
cb984199fc [+] BO : Add a note on invoice
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11253 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 11:38:01 +00:00
fSerny
29a90b29d1 [-] BO : Now display a question mark when there is no module logo
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11252 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 11:29:59 +00:00
fSerny
c3602f3278 [-] PROJECT : Replacing some Context::getContext() by $context in class Hook
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11251 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 11:20:32 +00:00
mMarinetti
f5aefc80ad // fixed hook::exec when no controller exists, bis
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11250 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 11:09:34 +00:00
mMarinetti
5aea0ddca0 // fixed hook::exec when no controller exists
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11249 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 11:08:17 +00:00
mDeflotte
5d941ccc26 // BugFix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11247 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 10:50:42 +00:00
fSerny
664ab24dd7 [-] Project - Fix on hook retrocompatibility
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11246 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 10:49:10 +00:00
dMetzger
6c7337d2cb // Fixed rounding bug on cart rules
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11245 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 10:41:00 +00:00
sThiebaut
51e342d140 // maj
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11244 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 09:50:56 +00:00
fBrignoli
7c2f4774d1 [*] PDF : You can now enable diskcache
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11241 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 09:05:16 +00:00
fBrignoli
c4715dd6a0 [*] PDF : TCPDF Tweak
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11240 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-15 09:02:28 +00:00
bMancone
89213574d0 // Added one field in Product object, so one product can be managed independantly from the stock management (advanced) if necessary
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11239 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-14 18:49:30 +00:00
aFolletete
c16aed3424 // you can define invoice on payment addition
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11238 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-14 18:42:50 +00:00
tDidierjean
92147c45ee // Small changes to product page text/layout
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11237 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-14 18:39:11 +00:00
tDidierjean
efd4132415 // Fix some XSS
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11236 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-14 18:34:59 +00:00
mMarinetti
3fc8ef3d88 [*] BO : optimization of liveEdit system
[+] FO : new theme file for front-office layout.tpl, designers have now more possibilities

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11235 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-14 18:18:57 +00:00
mMarinetti
d905e14fde // removed not useful code
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11234 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-14 18:06:29 +00:00
rMalie
49129f85dc // Format definitions
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11230 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-14 17:21:18 +00:00
vChabot
3f814a3cf0 // little fix about generating first John Doe invoice
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11229 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-14 17:09:52 +00:00
sThiebaut
8bb31dc34a // maj
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11228 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-14 17:05:22 +00:00
sThiebaut
de5977a415 // maj
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11227 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-14 17:05:07 +00:00
bMancone
4e8fa347f7 // Updated type in definition for product_supplier_reference (Thanks R.)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11226 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-14 16:57:40 +00:00
bMancone
2a888cbd8a // Reverted modifications on product
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11225 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-14 16:55:12 +00:00
bMancone
1f74b8a56e // Fixed bugs when editing Warehouses & Suppliers for a product
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11224 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-14 16:54:02 +00:00
fSerny
313b46212f [-] Project : fix on template
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11223 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-14 16:53:50 +00:00
bMancone
931d79ac7f // Fixed bugs when editing Warehouses & Suppliers for a product
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11222 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-14 16:52:33 +00:00
aKorczak
342f6b58b6 // Merge from 1.4.X
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11221 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-14 16:48:37 +00:00
aKorczak
30b5d4fb82 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11220 b9a71923-0436-4b27-9f14-aed3839534dd 2011-12-14 16:46:30 +00:00
aFolletete
d1fae41a4d // fix bug on product line edition
// put new ressource in getRessources method of Webservice

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11216 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-14 16:24:35 +00:00
mMarinetti
abc215a343 // Add missing call of parent::initContent() in all front class (when initContent exists)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11215 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-14 16:22:50 +00:00
mDeflotte
b48c20d1d5 // BugFix : Adding warehouse on order edition
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11214 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-14 16:19:05 +00:00
lLefevre
6d99193df7 // added seo.tpl
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11213 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-14 15:59:10 +00:00
lLefevre
b73482843a // added tab SEO in AdminProductsController
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11212 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-14 15:57:29 +00:00
lLefevre
551bce2ac2 // Fixed bug save warehouse, supplier, and accounting in AdminProductsController
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11209 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-14 15:33:43 +00:00
lLefevre
f037bf9ac3 // fix bugs save and stay in AdminProductsController
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11208 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-14 15:09:05 +00:00
vChabot
dc29921f7e [+] BO : You can now have UTF-8 URL Rewriting
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11207 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-14 15:00:47 +00:00
lLefevre
91c95d7146 // fix bug tag image in AdminProductsController
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11206 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-14 14:37:28 +00:00
tDidierjean
12386a5b57 // Refactoring AdminProduct postProcess
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11205 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-14 14:29:50 +00:00
lLefevre
940f886fd3 // translation && fixed small bugs in AdminProductsController
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11204 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-14 14:01:41 +00:00
rGaillard
10b112483e // Fix localization import
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11203 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-14 13:52:03 +00:00
mMarinetti
26c8f164a9 [*] MO : mailjet is now in advertising_marketing category (instead of front_office_features)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11202 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-14 12:24:42 +00:00
lLefevre
082c1440c7 // fix bug display customization of products in FO
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11201 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-14 10:25:34 +00:00
lLefevre
405265730d // Press "enter" is now blocked for AdminProductsController templates
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11200 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-14 10:05:49 +00:00
sThiebaut
086f71a852 // maj
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11199 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-14 09:49:25 +00:00
sThiebaut
89df86c166 // maj
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11198 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-14 09:48:33 +00:00
sThiebaut
d1b2ed88ad // maj
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11197 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-14 09:18:25 +00:00
sThiebaut
668f117382 // maj
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11196 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-14 09:17:50 +00:00
lLefevre
e3d0661240 // fixed bug javascript for upload image in AdminProductsController
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11195 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-14 09:16:29 +00:00
mBertholino
0a1e6cf127 // improve config.inc.php code, id_shop is inserted in the cookie name. Debug in Carrier class, max_deep is now max_depth
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11194 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-14 08:59:55 +00:00
fSerny
d1baa08bf8 [-] PROJECT : Class Hook cleaned
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11187 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-13 17:28:13 +00:00
lLefevre
7661185d2a // added selected categories in AdminProductsController & normalize
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11186 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-13 17:12:45 +00:00
mDeflotte
b6b190de65 // BugFix : Problem with delivery otion and opc when user is not connected
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11185 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-13 17:01:40 +00:00
rMalie
dff66a14cd // Format definitions
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11184 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-13 16:34:09 +00:00
lLefevre
e816494ec2 // adding counter for short description and adding size of image files in AdminProductsController
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11183 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-13 15:31:17 +00:00
fBrignoli
be2c1e4436 [-] PDF : Logo path
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11182 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-13 15:15:28 +00:00
bMancone
9424a41bea // Improved StockInstantState/StockMvt/SupplyOrders interfaces
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11181 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-13 14:50:57 +00:00
lLefevre
71fcbec454 // adding plugins 'implode' in Smarty tool
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11180 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-13 14:01:16 +00:00
bMancone
39edd1f064 // Supply Orders : Fixed issue #PSFV-214
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11179 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-13 13:57:28 +00:00
lLefevre
7f19043b63 // fix bug in AdminCategoriesController
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11178 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-13 13:55:22 +00:00
rGaillard
3f5f0bb897 // Update to Smarty 3.1.6
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11177 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-13 13:53:36 +00:00
rGaillard
e4fe3c41a3 // Delete smarty before update
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11176 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-13 13:53:01 +00:00
lLefevre
178eeb8e26 // Fix small bugs in AdminProductsController and adding plugins 'implode' in Smarty tool
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11175 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-13 13:43:41 +00:00
rMalie
d30b4bea1b // Format definitions
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11174 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-13 13:43:16 +00:00
rMalie
03bd438c7d // Format definitions
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11173 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-13 13:41:54 +00:00
mBertholino
225c8523e9 // improve multishop code, id_shop has an id different than 0 even if share_customer or share_order is true
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11172 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-13 13:37:59 +00:00
vChabot
659cc9235a // payment module install doesn't need to add entries in module_group table (already done in Module::install())
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11171 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-13 13:31:52 +00:00
fGaillard
4b0123f750 [-] BO : BugFix : Specific prices select menu template edited
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11170 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-13 12:46:08 +00:00
mBertholino
5f4972701c // improve multishop code with id_shop = 0 when share_customer or share_order is true
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11169 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-13 11:59:41 +00:00
dSevere
29ad584b5c // Manage SQL upgrade for stock management + bug fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11168 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-13 11:09:37 +00:00
mMarinetti
3c055ccf7a [-] MO : editorial : bugfix on install/uninstall, norm
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11167 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-13 10:54:52 +00:00
vKham
199c3c1990 // fix toolbar button IE7, stylesheet edit product Informations Associations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11166 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-13 10:45:21 +00:00
bMancone
c5177871bd // AdminStockCover: missing comments
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11165 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-13 10:20:00 +00:00
aFolletete
7d67b9cc6e // revert r11153
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11164 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-13 09:50:21 +00:00
bMancone
9329793e65 // Updated OrderHistory / StockManager. Added feature to StockCover: it is now possible to display the number of sales per product / and highlight products which coverage is less than a given threshold
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11163 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-13 09:48:52 +00:00
fGaillard
91cb67a25d [-] BO : BugFix : Search index re-build
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11160 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-13 09:09:54 +00:00
rMalie
b8f5b693b9 // Format definitions
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11157 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 21:06:59 +00:00
dSevere
5a2d80bd50 // Manage SQL upgrade for stock management
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11156 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 20:54:48 +00:00
rMalie
fddf4fb89b [*] Classes: Remove $fieldsRequired, $fieldsSize and $fieldsValidate (and lang properties) properties, use $definition instead
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11155 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 18:10:38 +00:00
rMalie
c97bac9160 // Remove useless code in OrderHistory
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11154 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 18:08:09 +00:00
aFolletete
ff40a43ac5 // fix bug on setInvoice method
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11153 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 17:45:34 +00:00
lLefevre
c426cab2be // fixed small bugs
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11152 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 17:43:28 +00:00
aFolletete
afd73899dd // fix bug on Order class
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11150 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 17:06:16 +00:00
aFolletete
0db603d498 // fix bug on Payment addition
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11148 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 16:51:47 +00:00
sThiebaut
2fa5744010 // maj
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11147 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 16:22:16 +00:00
tDidierjean
b1bd3f543d // Changes to product page layout
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11146 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 16:19:00 +00:00
bMancone
c1dd6f2a98 // When shipping products: warehouses are now correctly loaded
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11145 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 16:18:02 +00:00
vKham
bbec0441a2 //page product information align left label, stylesheet footer
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11144 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 16:07:04 +00:00
lLefevre
b974418c15 // fixxed bug save Product
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11143 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 16:01:26 +00:00
aFolletete
6f3972d946 // improve hasInvoice method
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11142 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 15:57:11 +00:00
rMalie
d14f750a24 // Fix addresses
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11141 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 15:55:11 +00:00
bMancone
0a533f970f // OrderHistory: fixed synchronize/updateQuantity conflits
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11140 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 15:39:48 +00:00
bMancone
6f80da5b2b // Updated re-stock
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11139 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 15:25:51 +00:00
fBrignoli
415299a7aa [*] PDF : New hook actionPDFInvoiceRender
[-] PDF : Can't display invoice due to Collection


git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11138 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 15:23:39 +00:00
fBrignoli
09bdde2d7b [-] BO : Missing display methods in AdminGroup
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11137 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 14:39:46 +00:00
bMancone
85dd573402 // Re-stock (Prices fixed/warehouse fixed)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11136 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 13:54:17 +00:00
rMalie
dc19003820 // Improve ObjectModel definitions (test on products)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11135 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 13:53:51 +00:00
fGaillard
2ad9a12889 [-] BO : #PSCFI-4393 : Andre Silva UTF-8 comments
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11134 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 13:52:56 +00:00
fGaillard
9dff6c5a8c [-] MO : #PSCFI-4389 : Block Advertising hookHeader added
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11132 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 13:41:38 +00:00
mDeflotte
177de86c10 // BugFix : Warehouse list on admin order is not visible on chrome
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11130 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 13:23:59 +00:00
vChabot
6dfdc0c1ef [-] FO : #PSCFI-4421 : bug fixed : error in adressess links update and delete
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11129 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 13:22:36 +00:00
fBrignoli
a9a4fd7c93 // CSS: total shipping and other total are now right aligned
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11127 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 11:26:48 +00:00
sThiebaut
5d9b60c3e4 // maj
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11126 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 11:19:48 +00:00
sThiebaut
7b10cf02a2 // maj
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11125 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 11:15:30 +00:00
lLefevre
c0fae8aa5c // adding the dynamic loading of tabs in products
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11124 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 11:15:17 +00:00
tDidierjean
345ad40e3c // Copy from trunk: #PSCFI-4401 - linebreaks in product return message cause fatal error in BO
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11122 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 11:07:46 +00:00
sThiebaut
f5496845b6 // maj
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11121 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 11:07:07 +00:00
sThiebaut
9fef2d5713 // maj
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11120 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 11:06:54 +00:00
tDidierjean
f006cfa526 // Fix missing id_address in demo supplier
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11119 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 11:06:22 +00:00
bMancone
9dcb132625 // StockInstantState: fixed bug on names. AdminOrders: fixed bug on return
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11118 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 10:54:59 +00:00
mDeflotte
aaf0127906 // BlockLayered : Adding product shop restriction
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11116 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 10:46:19 +00:00
mMarinetti
d93415cfad // module editorial hooks name
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11114 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 10:35:18 +00:00
sThiebaut
1120a5e2f3 // maj
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11113 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 10:28:47 +00:00
mDeflotte
d843b14ac6 // BugFix : Display errors when no carriers available
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11112 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 10:21:56 +00:00
tDidierjean
b2c36c562b // Copy fix from trunk: #PSCFI-4397 - Missing unique index on PREFIX_category_product
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11106 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 09:41:44 +00:00
mDeflotte
2df30b8f8e // BugFix : empty errors message on adding products
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11104 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-12 09:00:22 +00:00
aKorczak
f75bfca1f4 [-] WS : Fixed norm on WebserviceRequest
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11100 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-09 19:30:35 +00:00
bMancone
a749dc7ff1 // Controllers: improvement on CSV
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11097 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-09 16:47:16 +00:00
mMarinetti
bd402c3514 // cleanning code
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11095 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-09 16:33:32 +00:00
bMancone
41585414aa // Fixed AdminOrdersController when returning..
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11094 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-09 16:14:02 +00:00
mDeflotte
128c5e20a6 // Removing form_shop.tpl
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11093 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-09 16:11:35 +00:00
bMancone
0ea53c672f // Stock : product can now be returned
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11091 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-09 16:08:27 +00:00
rGaillard
f76baf34e6 // Add submit button on webservice controller options
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11089 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-09 15:54:07 +00:00
mMarinetti
a551a424b6 // new modules hooked for default theme, fixed hook names
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11087 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-09 15:52:37 +00:00
rMalie
319e623727 // Retrocompatibility in ObjectModel
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11085 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-09 15:50:12 +00:00
mDeflotte
de2e800ebd // Blocklayered : Filter templates could be associated to shops now
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11083 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-09 15:47:15 +00:00
mDeflotte
eb40bcf854 // Shop association area use tpl file
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11082 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-09 15:40:02 +00:00
rGaillard
fa4a59884c // Fix little bug
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11081 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-09 15:14:58 +00:00
tDidierjean
80ecb65475 // Commit new tabs in product edition
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11079 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-09 14:22:46 +00:00
rGaillard
43ff904c57 // Fix little bug
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11078 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-09 14:18:13 +00:00
rMalie
5b36a76462 // Revert search
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11077 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-09 14:10:37 +00:00
rMalie
d0c1239c17 // Remove $this->table and $this->identifier from objectModels + normalize
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11076 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-09 14:05:24 +00:00
lLefevre
dc9fb17b01 // Fix bugs in AdminProductsController
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11075 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-09 13:37:08 +00:00
mDeflotte
71b6047692 // Stock decrementation
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11074 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-09 13:09:32 +00:00
rMalie
a9670d0f85 // Little fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11073 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-09 10:32:49 +00:00
fBrignoli
67643cfc29 [-] FO : Unable to checkout
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11072 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-09 10:24:56 +00:00
rMalie
b56d98b66a // Remove unused $tables property from ObjectModel + improve Cache
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11071 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-09 10:24:48 +00:00
lLefevre
901def1d12 // Fix bug button add image in AdminProductsController
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11069 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-08 17:42:15 +00:00
dSevere
f34e06c20f // Bug on Prefix fix in db_settings.sql
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11068 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-08 17:17:50 +00:00
sThiebaut
53246d0fcc // maj
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11067 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-08 17:08:13 +00:00
sThiebaut
085f64c85f // maj
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11066 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-08 17:07:55 +00:00
vKham
e9ee2e68ca // fix bug page commande facture
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11064 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-08 16:50:34 +00:00
rMalie
c5b7e15eb8 // Fix DbQuery for PHP < 5.2
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11060 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-08 16:32:59 +00:00
dSevere
774533dc94 // Improve stock managemetn and advanced stock management options and tab display on product admin interface
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11059 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-08 16:26:07 +00:00
rGaillard
48b1d3b983 // delete console.log
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11058 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-08 16:05:37 +00:00
rGaillard
aaea29d1b0 // Miss file on last commit
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11057 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-08 16:03:49 +00:00
rGaillard
86b65ef6df [+] BO: Add Specific prices bulk generator
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11056 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-08 16:01:10 +00:00
lLefevre
884e7492c1 // adding ovverride method initProcess for display Informations Tab
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11055 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-08 15:41:12 +00:00
dSevere
12ea52f4f7 // Multiple bugs fix on stock interfaces during tests
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11053 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-08 15:22:31 +00:00
vChabot
56c6105c56 // norm
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11052 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-08 15:14:40 +00:00
vChabot
af70df72ce // Adding the OrderCarrier class to handle carriers in an order
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11051 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-08 15:12:23 +00:00
tDidierjean
4b1e7e1082 // Change description class in form.tpl
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11050 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-08 14:18:23 +00:00
rMalie
edc0b2c6ca // Improve ObjectModel + normalize
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11049 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-08 14:13:22 +00:00
rMalie
4924764888 // Improve ObjectModel + normalize
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11048 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-08 13:53:54 +00:00
lLefevre
90aa1af213 // fixed bug in AdminProductsController for display errors
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11046 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-08 12:54:13 +00:00
lLefevre
a61b6a31bc // fixed bug in AdminProductsController for display errors
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11045 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-08 12:53:32 +00:00
mDeflotte
c1d6e68cd6 // BugFix : Blocklayered
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11043 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-08 10:50:54 +00:00
mDeflotte
403d24ff4b // BugFix : Blocklayered
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11040 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-08 10:45:27 +00:00
mDeflotte
52c86a9bc3 // Blocklayered
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11038 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-08 10:36:42 +00:00
rMalie
1c2347ddab // Remove AdminStatsConf controller (conf is already in AdminStatsTab)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11035 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-08 09:25:10 +00:00
vChabot
c6fb7aa4f7 // little fix about advanced stock management
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11034 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-08 09:22:02 +00:00
mDeflotte
0d917153da // Little BugFix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11033 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-08 09:00:29 +00:00
mDeflotte
fded1dfe2d // Little BugFix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11032 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-08 08:58:50 +00:00
vKham
f5bd143eb6 // re add engine page stats, admin css module account
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11031 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-08 08:42:55 +00:00
dSevere
c23c2d983b // Bugs fix on CSV export on supply order interface
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11030 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-07 18:07:38 +00:00
lLefevre
7873905bb5 // fix norm && added PDO::FETCH_ASSOC in method fetch() for PDO
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11029 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-07 17:30:32 +00:00
fGaillard
4aa4094808 [-] Installer : #PSCFI-4383 : BugFix SQL installation script corrected, unique key for specific_price_priority
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11028 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-07 17:09:38 +00:00
rMalie
814bb7dcc4 // Add again engines in stats
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11024 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-07 13:52:31 +00:00
vKham
a2209b5d84 // change layout module position consistency with listing module, new admin stylesheets
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11023 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-07 10:50:11 +00:00
rMalie
f6cf5ff6ed // Fix Blowfish for autoload
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11022 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-07 10:10:46 +00:00
fGaillard
c8fc8d1733 [-] Classes : #PSCFI-3880 : BugFix mbstring overload on Rijndael encrypt-decrypt
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11019 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-07 09:21:05 +00:00
rMalie
3d1176686f // Fix collection in cartRule
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11018 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-07 09:11:43 +00:00
lLefevre
8dcd11f56f // update size a button to top
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11017 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 22:42:01 +00:00
tDidierjean
d171de204f // BO performance improvements
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11016 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 18:39:37 +00:00
lLefevre
a972dae0ae // adding customization template in AdminProductsController
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11015 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 18:24:08 +00:00
dSevere
1f42bf8d4e // Bugs fix (Collection, SQL optimizations, Backoffice interfaces improvement, ...) + update db_settings_extends.sql for base datas relative to available quantities and suppliers
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11014 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 18:07:06 +00:00
lLefevre
bfcb15b998 // adding attachement template in AdminProductsController
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11013 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 18:01:14 +00:00
mMarinetti
f6bad7e3b6 // fix in db_settings_extends
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11012 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 17:56:39 +00:00
mMarinetti
eae123dbeb [+] MO : homeslider is now replacing editorial in default installation
[-] MO : homeslider bugfix multishop + add samples
[-] MO : blocksupplier updated hookname

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11011 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 17:53:23 +00:00
sThiebaut
f2fbf0687b // maj
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11010 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 17:39:36 +00:00
sThiebaut
d53a71636d // maj
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11009 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 17:39:17 +00:00
sThiebaut
9c42a4987d // maj
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11008 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 17:38:25 +00:00
mDeflotte
85b186a956 // BugFix : Problem with delivery_option calculation
// @TODO : All the undefined index are now fixed but there is not all the available delivery option

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11007 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 17:35:38 +00:00
lLefevre
2b74e1f59a // fix bug in AdminFeaturesController
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11004 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 16:37:59 +00:00
mDeflotte
c843e9bd84 // BugFix in checkout with multishipping on step address
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11003 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 16:03:00 +00:00
fSerny
ef44083253 [-] BO : Upload zip module is repaired
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11002 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 16:00:17 +00:00
rMalie
a9fafc5147 // Can add / delete element from Collection
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11001 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 15:59:23 +00:00
rMalie
f55a9e04b9 [*] Classes: Db->execute() now return always a boolean. Use Db->query() instead.
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10999 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 15:41:34 +00:00
bMancone
bda11e1541 // Supply Orders : added supplier address in the order form (PDF)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10998 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 15:27:38 +00:00
lLefevre
53ffa9dace // fixed bug delete img && update back url
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10997 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 15:21:22 +00:00
bMancone
1886d7ddfc // Fixed bug when updating address
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10996 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 15:20:50 +00:00
rMalie
0bf721b108 // Fix return of AssociateTo method
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10995 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 14:59:00 +00:00
mDeflotte
943741871e // Multishipping button is replaced by a checkbox
// BugFix with back params in the checkout process

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10994 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 14:56:29 +00:00
mMarinetti
33589430f7 // bugfix db.sql
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10993 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 14:49:32 +00:00
vChabot
5a438d1849 // little fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10992 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 14:47:00 +00:00
vChabot
a0f69ae398 // adding configuration when upgrade to the three new groups
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10991 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 14:43:39 +00:00
mDeflotte
476923cf36 // BugFix : Prevent undefined index multi_shipping in template orders-step.tpl
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10989 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 14:37:00 +00:00
bMancone
65f1c44ae6 // Address: added id_warehouse. Supplier: it is now possible to edit the address of a given supplier. Manufacturers: addresses are now correctly displayed. AdminSuppliers: addresses are now editable / when deleting a supplier (if possible <=> no current orders) address is now flaged deleted. AdminWarehouses: when deleting a warehouse, its address is now flagged as deleted.
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10988 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 14:28:40 +00:00
mDeflotte
f24d06977b [-] MO : #PSCFI-4015 - layered navigation module on IE7 creates scripterror / empty query
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10987 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 14:26:43 +00:00
mDeflotte
35fea4b692 [-] FO : #PSCFI-3865 - Block Layered translation issues
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10985 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 14:23:57 +00:00
vSchoener
de36bcb13b // Add getShopProtocol to have the current protocol use by the current shop
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10984 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 14:22:03 +00:00
vSchoener
b07dde4585 // Fields aren't set in getPartnersBlock !
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10983 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 14:21:07 +00:00
rMalie
1172e7a8d0 // Improve multishop code
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10982 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 14:08:48 +00:00
dSevere
5b9e12bba1 // Update Stats interface relative to stock available functionnality + retrocompatibility for supplier reference and wholesale_price for a product/product attribute
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10980 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 14:02:50 +00:00
rMalie
9e7e47847b // Little fix on CSV
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10979 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 13:24:42 +00:00
mDeflotte
b6f25900ee // Removing numerics from order reference
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10978 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 13:18:00 +00:00
rMalie
45f0e2227a // Fix fileuploader with autoload
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10977 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 13:12:21 +00:00
bMancone
ec6dc108a9 // StockManager: fixed. AdminSupplyOrders: fixed price. AdminStockInstantState: added CSV export per warehouse + valuation field is now displayed per warehouse
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10976 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 12:51:10 +00:00
lLefevre
efe13abfd0 // fix small bugs
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10975 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 12:41:56 +00:00
fBrignoli
187aafaf51 [*] PDF : Licenses + Hook in templates
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10974 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 10:58:20 +00:00
aFolletete
a96fb0d2e2 [-] BO : fixed calculation error on Product addition
[-] BO : fixed notice error on message addition

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10973 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 10:50:00 +00:00
bMancone
cdd2121d55 // Moved to override/classes/
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10972 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 10:24:16 +00:00
rMalie
6d792ee52b // Collections can be used as arrays
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10971 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 10:12:02 +00:00
mDeflotte
6be1ed9428 // BugFix : Problem with account creation and OPC
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10970 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 10:05:00 +00:00
bMancone
a12255dd1c // Moved csv class
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10969 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 10:00:47 +00:00
rMalie
11ba092bca // Move helper classes in subdirectory
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10968 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 09:40:27 +00:00
bMancone
623303f7ee // Fixed CSV export without pagination. Fixed StockManager, with new Collection object. Fixed StockMvt : id_supply_order was missing.
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10967 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 09:37:23 +00:00
rMalie
f784411c4b // Remove useless prefix in blockcart json template
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10966 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 09:16:58 +00:00
rMalie
3cf72856ff // Fix a little bug on PDO
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10964 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 09:04:40 +00:00
fBrignoli
a6779e2057 [*] PDF : Display Hook
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10963 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 08:55:01 +00:00
aFolletete
0d65bf62b2 [-] Classes : fixed notice error on Cart class
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10962 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 08:54:07 +00:00
bMancone
5788f1f811 // AdminStockMvtController: updated button name
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10961 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-06 08:53:48 +00:00
vSchoener
221cbae5d9 // Fix merging issue
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10958 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 18:11:57 +00:00
vKham
ebbfcab754 // add process icon images export csv toolbarstock, new page layout flexible module position, uniformisation stylesheet module
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10957 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 17:47:45 +00:00
mDeflotte
caf0402115 // BugFix: Context->language is not re-setted in switchLanguage method
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10956 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 17:40:54 +00:00
rMalie
01f0ec6a99 // Db::autoExecute() return a boolean
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10955 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 17:29:45 +00:00
lLefevre
a73e408196 [-] BO & FO & MO : #PSCFI-4237 : adding id_lang in method l() of class Mail()
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10954 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 17:22:47 +00:00
sThiebaut
6bea0782e9 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10953 b9a71923-0436-4b27-9f14-aed3839534dd 2011-12-05 17:22:27 +00:00
sThiebaut
5b1642b26e // maj
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10952 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 17:22:04 +00:00
fSerny
1a74889015 [*] PROJECT - Dynamic hooks in ObjectModel retrieve object in param - Dynamic hooks have been added to AdminController
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10951 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 17:20:40 +00:00
bMancone
db15387d07 // SupplyOrders : fixed view
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10950 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 17:18:16 +00:00
dSevere
a5c44ac8bc // Update and fix some bugs on stock display on orders in backoffice
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10949 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 17:17:01 +00:00
mDeflotte
31e90d9031 // Retrocompatibility : Now old 1.4 template works with new chechout process. Multishipping cannot be enabled.
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10948 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 17:11:26 +00:00
rMalie
07420a2c0d // Fix comment typo
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10946 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 17:03:07 +00:00
rMalie
8d0f1e156d // Test PDO as first choice in Db class
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10945 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 17:01:48 +00:00
sThiebaut
30de26176b // fixed bug on category count
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10944 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 16:52:27 +00:00
rMalie
1fc3cdf043 // Add missing override classes / controllers
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10943 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 16:51:26 +00:00
bMancone
b94606e103 // StockMvt : added the name of the warehouse for the CSV export
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10942 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 16:50:47 +00:00
rMalie
394aeab269 // Fix missing Core suffix for some classes / controllers
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10941 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 16:49:05 +00:00
bMancone
7576b8f407 // SupplyOrders: fixed products loaded under a particular threshold. StockMvt: CSV export
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10940 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 16:46:49 +00:00
vSchoener
6255d67944 [-] MO : CarrierCompare, merge 1.4 => 1.5
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10938 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 16:26:59 +00:00
vChabot
c0ee7a1306 // removing group_module_restriction table to set every restrictions in an only table : module_group
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10936 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 16:17:42 +00:00
fBrignoli
fc865e4986 // merge trunk r10863
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10935 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 16:09:08 +00:00
aNiassy
4831413af0 [-] #PSCFI-4325 : Modified " followup_1.txt ". It wasn't the same subject that followup_1.html
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10934 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 16:04:19 +00:00
fSerny
ce91cd792c [-] PROJECT : You can now execute hook in the tpl
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10932 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 15:49:56 +00:00
lLefevre
42b200b870 // small modification
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10930 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 15:36:26 +00:00
rMalie
ca79a68011 // Fix table / identifier for Module class
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10929 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 15:35:21 +00:00
rGaillard
dac14bf3be // Fix bug on processSave
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10928 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 15:33:43 +00:00
mDeflotte
db38a475f1 // BugFix in Product compare
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10927 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 15:30:01 +00:00
bMancone
07bac9c56b // AdminSupplyOrders: fixed permissions
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10926 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 15:11:24 +00:00
dSevere
a75ca6c40a // Update and fix some bugs on front and admin itnerfaces relative to available quantities functionnality
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10925 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 15:11:21 +00:00
bMancone
558c008ece // Fixed buttons as asked.
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10924 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 15:08:58 +00:00
bMancone
772e739829 // Updated comment for object definition
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10923 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 15:06:59 +00:00
rMalie
6cefe4465d // Remove $langMultiShop from all classes, and add 'multishop' in $definition instead
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10922 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 15:04:09 +00:00
mDeflotte
5586dcdc3d // BugFix Radio button don't work properly
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10921 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 14:52:46 +00:00
bMancone
01b6c28569 // SupplyOrders: CSV
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10920 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 14:50:48 +00:00
vKham
22fe972530 // add images css sprites for icon page stats
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10919 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 14:34:44 +00:00
lLefevre
5b7da70eb9 // adding edit action for combination in AdminProductsController
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10918 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 14:24:59 +00:00
tDidierjean
b25401ce9e // Fix missing values in installer
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10916 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 14:10:09 +00:00
mDeflotte
e6d6e35b4d // New template for the blocklayered
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10915 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 14:08:13 +00:00
rMalie
d56cb00d8d // Remove Module->templateAssign() from modules (use $this->smarty->assign() instead)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10914 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 14:04:35 +00:00
rMalie
2644f4b88d // Add Collection in Category::getAllChildren()
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10913 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 13:56:24 +00:00
rMalie
86683a963e // Remove $table and $identifier property from all classes, and add static $definition instead
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10912 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 13:56:03 +00:00
mMarinetti
05ceb6ea96 // fix live_edit when not using multishop
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10911 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 13:53:50 +00:00
mMarinetti
9ba2f9b023 // theme norm
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10910 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 13:45:24 +00:00
mMarinetti
9527d10ffe // fix module blocknewsletter new theme
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10909 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 13:42:25 +00:00
sThiebaut
7d91e29519 // maj
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10908 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 13:41:40 +00:00
sThiebaut
fe8a28ed54 // maj
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10907 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 13:40:51 +00:00
fSerny
a50b0af067 [-] PROJECT : isHookableOn function is now retrocompatible with old hook
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10905 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 12:56:43 +00:00
aFolletete
2e8abff9a9 // add restriction on addition and edition of an order
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10904 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 11:27:26 +00:00
lLefevre
9e6940eb4e // adding button in toolbar for AdminProductsController
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10903 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 11:15:21 +00:00
mDeflotte
6f1ecda602 // Fixing some problem with new theme and multishipping
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10902 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 10:57:44 +00:00
vSchoener
941ecdac62 [-] MO : Mondialrelay, merge 1.4 => 1.5
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10901 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 10:54:40 +00:00
vSchoener
a2230b0161 [-] MO : Carriercompare (shipping estimation), merge 1.4 => 1.5
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10900 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 10:54:01 +00:00
vSchoener
19656ae993 [-] MO : Mondialrelay, merge 1.4 => 1.5
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10898 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 10:46:33 +00:00
aFolletete
f7250f76d5 // fix bug on Order class
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10897 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 10:40:06 +00:00
mMarinetti
863ea0d354 // module newsletter hook fix + added create table in db_settings_extends.sql
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10896 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 09:37:36 +00:00
rMalie
1cce2fd6cb // Fix collections
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10893 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-05 09:05:45 +00:00
lLefevre
efc5ff8390 // update tab "attributes" in smarty template + update action in list in ajax
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10891 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-04 10:42:05 +00:00
aFolletete
911c8ad6c4 // Comment useless line in order to clean this
// Add table and identifier to CartRule class

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10889 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-03 09:56:38 +00:00
tDidierjean
cdb5de9dd3 // Remove prices from information tab and fix price calculation with tax in AdminProducts
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10888 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-02 17:37:13 +00:00
dSevere
c105c81b52 // Stock Available : Improve BackOffice interfaces with groups of shops management + bugs fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10887 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-02 17:32:51 +00:00
dSevere
468ca00519 // Stock Available : Improve BackOffice interfaces with groups of shops management + bugs fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10886 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-02 17:31:16 +00:00
mMarinetti
c37cf6d657 // fix newsletter block
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10885 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-02 17:21:24 +00:00
mMarinetti
22f2208690 // updated default pictures
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10884 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-02 17:09:32 +00:00
mMarinetti
d0c46a3d3e // added missing blue arrow in homefeatured module
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10883 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-02 17:03:19 +00:00
mMarinetti
22031f6a57 // fix hookDisplayHeader in blockcontact (module and default install)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10881 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-02 16:55:44 +00:00
mMarinetti
ca16a8b559 // homefeatured fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10880 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-02 16:46:45 +00:00
mMarinetti
1cafb7629b // fix homefeatured
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10879 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-02 16:42:26 +00:00
mMarinetti
203b5ae6ad // fix new theme / old php in modules
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10878 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-02 16:41:22 +00:00
lLefevre
4e47e1e227 // fix bug in AdminCustomersController
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10877 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-02 16:29:25 +00:00
vKham
45132ef7b8 // add class button bt-export, new stylesheets for page stats, forget password login
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10876 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-02 16:27:40 +00:00
vKham
57eaa5cddf // add class button bt-export, new stylesheets for page stats, forget password login
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10875 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-02 16:27:26 +00:00
vKham
ec0bae7a2e // add images sprites for page stats
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10874 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-02 16:26:15 +00:00
mMarinetti
63abc464ac // fix new theme css
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10873 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-02 16:22:53 +00:00
dSevere
10f1a846b7 // Some bugs fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10872 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-02 16:22:45 +00:00
vChabot
43648c6ca2 // little fix authentication in multiple steps
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10871 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-02 16:17:14 +00:00
tDidierjean
579d012427 // AdminProducts refactoring
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10870 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-02 16:16:36 +00:00
mMarinetti
810dab5d27 // new theme fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10869 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-02 16:10:22 +00:00
mDeflotte
fc7a452107 // BugFix : Problem in an install file SQL "PREFIX_" need to be used
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10866 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-02 15:46:37 +00:00
vChabot
ed98703212 [*] BO : you can now affect a zone to multiple countries and to multiple states
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10865 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-02 15:41:05 +00:00
fBrignoli
457d9b3e97 // Translations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10864 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-02 15:31:56 +00:00
mMarinetti
9cc30dc3fe [+] Project : default theme added
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10862 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-02 15:24:40 +00:00
dSevere
43654ffba1 // StockManager : bugs fix + improvement of StockManager utilisation in fucntion of global configuration
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10861 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-02 15:23:01 +00:00
rMalie
d76998340a // Use Collection instead of HydrateCollection in several places
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10860 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-02 15:20:47 +00:00
vSchoener
8bef192fcb // Update Accounting export working now with new order table relation
// Add retro-compatibility to PaymentCC for module (inherit of OrderPayment and uses parent methods)



git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10859 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-02 14:35:35 +00:00
rMalie
975a56d3bd // Fix autoload for classes with several implements
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10858 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-02 14:34:48 +00:00
lLefevre
8a62346471 // Adding a button to top
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10857 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-02 14:31:08 +00:00
mDeflotte
a0a83e9e58 // Code cleanning + Fixing some bug
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10856 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-02 12:17:19 +00:00
dSevere
16cf709d52 // Improve StockAvailable requests + code refactoring
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10855 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-02 11:36:04 +00:00
fSerny
465542aac7 [-] MO : eKomi (1.3) - fix on warnings (PS 1.5)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10854 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-02 11:23:04 +00:00
lLefevre
1123ad3aa1 // fix refactoring templates in AdminCustomerThreadsController
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10852 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-02 11:19:03 +00:00
mDeflotte
5f3d417441 // Fix some problems with getPackageShippingCost
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10850 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-02 10:48:26 +00:00
dSevere
8b618652bb // Stock Available : Improve BackOffice interface + Update all SQL requests relative to StockAvailable + code refactoring on Product Class
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10843 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-01 19:09:27 +00:00
vKham
8e2102c8ce // add title h2 all tab page product, stylesheets stats
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10841 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-01 17:39:44 +00:00
rMalie
16e07c2766 [*] Project: Improve debuging with new constant _PS_DEBUG_PROFILING_ in defines.inc.php which include debug files from override folder
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10840 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-01 17:22:01 +00:00
mDeflotte
bf9a629c94 // BugFix in "Cart::isAllProductsInStock()"
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10839 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-01 17:16:56 +00:00
mDeflotte
77664f1056 // Fix some bad php doc
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10838 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-01 16:43:07 +00:00
mDeflotte
9e72ba7740 // Allow / Disallow multishipping
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10837 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-01 16:34:20 +00:00
mDeflotte
567c23dafc // BugFix on blocklayered and sliders
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10836 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-01 15:49:13 +00:00
fBrignoli
5f103766fc // prefix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10835 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-01 15:10:10 +00:00
rMalie
10247e8e42 [+] Classes: Add Collection class (synthesis of DbQuery + ObjectModel::hydrateCollection) and add support of static $definition property in ObjectModel
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10834 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-01 14:47:28 +00:00
rMalie
4e567f3d31 // Report fix of PSCFI-4282 from 1.4 to 1.5
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10833 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-01 14:45:33 +00:00
mDeflotte
8ae27b7a8a // Removing a console.log
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10832 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-01 14:34:53 +00:00
mDeflotte
394206e9ef // id_warehouse is now on the order details and not on orders table
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10831 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-01 14:31:26 +00:00
fBrignoli
b2f33740fe // OrderInvoice PDF compliant
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10830 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-01 14:24:17 +00:00
fBrignoli
2ae9a4281b // ps_ => PREFIX_
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10829 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-01 14:08:49 +00:00
lLefevre
1a6fb756eb // Adding a rollover on the lines of tables
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10828 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-01 13:49:31 +00:00
mDeflotte
1e8ed9d47e // Little fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10827 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-01 12:58:35 +00:00
mDeflotte
e111883814 // Adding reference of the order on the history
// Improving render of the button multi-shipping

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10825 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-01 12:58:21 +00:00
tDidierjean
562adfc172 // AdminCurrencies refactoring
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10824 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-01 09:44:58 +00:00
mDeflotte
0c87d98914 // Blocklayered: Slider could be change with two inputs or a list of values
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10822 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-01 09:16:10 +00:00
tDidierjean
bca384dc71 // AdminControllers fixes
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10821 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-30 18:16:13 +00:00
bMancone
29c75d7798 // Added CSV class. Allows to export supply order details as CSV, for instance
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10820 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-30 17:49:51 +00:00
aFolletete
8bbd830446 // fix little bug on AdminOrdersController
[~] Deprecated: Cart::getOrderShippingCost()

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10818 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-30 17:25:27 +00:00
tDidierjean
a9f425d6b2 // postprocess refactoring
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10817 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-30 17:16:28 +00:00
bMancone
9152514eb4 // AdminSupplyOrders : improved
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10816 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-30 17:08:23 +00:00
lLefevre
c1aee41233 // fix bug link "details" in AdminFeaturesController
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10815 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-30 16:52:23 +00:00
aFolletete
13bdaf6c3f [*] BO : you can now generate manually the invoice
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10814 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-30 16:41:24 +00:00
lLefevre
003ac6e01b // fix small bugs
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10813 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-30 16:32:51 +00:00
dSevere
577aa781bc // Stock Available : Add shared management for group of shops
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10812 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-30 16:28:06 +00:00
lLefevre
8671928caf // added toolbar in cart_rules form.tpl
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10811 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-30 16:08:30 +00:00
lLefevre
88e6b1ac1a // added pluging datepicker in AdminReferrersController
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10810 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-30 15:45:59 +00:00
lLefevre
2067344c18 // fix bug in bulk_actions of type "delete" in AdminController's
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10809 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-30 15:24:50 +00:00
mDeflotte
b08563276b // BugFix : message "Please chose a carrier" but a delivery option is setted.
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10807 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-30 14:56:33 +00:00
lLefevre
a8e8b25194 // fix small bugs
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10806 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-30 14:55:49 +00:00
mDeflotte
ff3c4b6881 // Blocklayered: BugFix in pagination
// Blocklayered: Add translations
// Blocklayered: BugFix with sliders (when cursor min and max are at 0)

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10805 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-30 14:50:45 +00:00
lLefevre
72b833fe31 // added list of tables and attributes in AdminRequestSqlController + change export request
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10803 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-30 13:25:14 +00:00
lLefevre
02f5a262d9 // added list of tables and attributes in AdminRequestSqlController + change export request
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10802 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-30 13:24:43 +00:00
tDidierjean
f9c4410e8d // Rename AdminController methods initForm() initList() etc. to renderForm() renderList()
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10799 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-30 11:06:38 +00:00
bMancone
12261242e3 // missing comment on getFilterStatus()
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10797 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-30 10:35:14 +00:00
bMancone
1913786e66 // Stock: updated controllers
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10796 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-30 10:32:55 +00:00
lLefevre
dda2735056 // fix small bug in AdminTaxRulesGroupController
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10793 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-30 10:27:21 +00:00
mDeflotte
3ab955a654 // Blocklayered: Allow texture for color attribute
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10792 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-30 09:44:44 +00:00
rMalie
4188def509 // Fix id_shop on meta
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10789 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-30 08:50:16 +00:00
rMalie
c2ce21b43d // Fix id_shop on meta
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10788 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-30 08:49:30 +00:00
rMalie
eb2fde29b3 // Fix id_shop on meta
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10787 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-30 08:47:37 +00:00
mDeflotte
314cd37e67 // Blocklayered: Remove url_params of products in ps 1.5
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10786 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-30 08:46:02 +00:00
mDeflotte
a42ab201f0 // Blocklayered: BO message used "echo", replaced by a return.
// Blocklayered: Bug when show_limit = 0

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10785 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-30 08:33:37 +00:00
tDidierjean
5c61feb04b // Changes to controller and AdminCustomers refactoring
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10764 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-29 18:35:17 +00:00
mDeflotte
557e05ae01 // Now blocklayered work with PS1.5 and 1.4
// Adding some improvement to the blocklayered : Filters are now customizable (checkbox, radio, ...)

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10763 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-29 18:03:21 +00:00
lLefevre
f787bbd3e6 // added 1.5.0.2 version in install script + fix deleted Adminlogin accesses
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10762 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-29 17:47:14 +00:00
vKham
2abd646ca4 // new layout page stats, substitute fieldset by div, legend by h2, delete stylesheet on html delete engines
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10761 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-29 17:43:12 +00:00
vKham
ad65287eeb // new layout page stats, substitute fieldset by div, legend by h2, delete stylesheet on html
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10760 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-29 17:42:38 +00:00
bMancone
66a0d5e50f // AdminSupplyOrdersController: fixed actions displayed when updating quantity received.
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10759 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-29 17:32:26 +00:00
bMancone
c5dab89eb5 // AdminSupplyOrdersController: fixed bugs when adding products to the order
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10758 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-29 17:04:43 +00:00
bMancone
b61478ca1e // AdminSupplyOrdersController: fixed condition..
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10755 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-29 16:48:19 +00:00
rMalie
9c7bc59954 // Add override debug in BO too
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10748 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-29 15:44:53 +00:00
lLefevre
31bf5b5864 // fix remove button delete for AdminCountriesController
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10747 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-29 15:18:10 +00:00
bMancone
2ff4ce919f // AdminSupplyOrdersController: added confirm message before using a template to create an order
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10746 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-29 14:47:06 +00:00
bMancone
e918d53dfa // AdminSupplyOrdersController: it now possible to create supply order templates, and use them to create actual supply orders
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10745 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-29 14:36:15 +00:00
bMancone
3cae130e9d // AdminController: added beforeAdd() method
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10744 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-29 14:35:43 +00:00
tDidierjean
b3bd8b4345 // commit missing file
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10740 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-29 14:29:45 +00:00
tDidierjean
51f4b16986 // Split AdminController::init() in init() and initProcess()
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10739 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-29 14:20:22 +00:00
rMalie
71ac9c59ef [+] Classes: add ObjectModel debug in overrides classes
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10738 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-29 13:10:35 +00:00
rMalie
cbd566f6e7 // Fix country cache
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10736 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-29 10:37:42 +00:00
bMancone
1eff4dae73 // SupplyOrders : updated comments
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10731 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-29 10:14:45 +00:00
bMancone
5beb66f50a // Supply Order : it is now possible to automatically load products, for a given supplier, which physical quantity is equal or less to a given threshold
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10730 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-29 10:07:51 +00:00
rMalie
2cba5f3e1a [+] Classes: add local cache system
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10729 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-29 09:55:21 +00:00
rMalie
9ca2fe4ca5 // Fix typo in blockwishlist
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10728 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-29 09:53:59 +00:00
mDeflotte
46f9cc5ec5 // Removing an elog
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10725 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-29 08:03:53 +00:00
lLefevre
d756559062 // fix small bugs
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10722 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-28 17:38:16 +00:00
vKham
1d1c9966ea //custom new button all page product, new class bt-icon, consistency table product, add min-width button toolbar action
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10721 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-28 17:36:45 +00:00
lLefevre
b285dad5b5 // fix bug added pluging datepicker
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10720 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-28 17:19:07 +00:00
dSevere
37d215522a // Product Suppliers : Add wholesale price management for each supplier
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10719 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-28 17:16:39 +00:00
mDeflotte
7577e5ff0f // Change sentence "Allow seperated package"
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10718 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-28 16:47:50 +00:00
tDidierjean
e474dc01b5 // AdminControllers cleanup
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10716 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-28 16:32:33 +00:00
mDeflotte
d3cf49aaef // blocklayered is now available for PS 1.4 and 1.5.
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10715 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-28 16:25:48 +00:00
bMancone
e62214adaa // CRUD for StockMvtLabels & SupplyOrderStatus are now in AdminStockConfigurationController
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10713 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-28 15:44:06 +00:00
fBrignoli
66cbf514f4 [*] MO : Vatnumber - a warning is now displayed if the field "Your country" is empty (related #PSCFI-4200)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10712 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-28 15:33:46 +00:00
vKham
9b5f3b8c03 //consistency title page product, description, new form search header, new icon images package fatcow toolbar action
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10709 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-28 14:45:31 +00:00
mDeflotte
a3b64f3253 // BugFix: removing a bad "return"
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10706 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-28 13:54:11 +00:00
rGaillard
bc403e3bf7 // Fix currentIndex link
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10701 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-28 11:15:00 +00:00
bMancone
7fd28f56b6 // Stock - interfaces updated : (reason=>label, state=>status)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10700 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-28 11:12:17 +00:00
mDeflotte
b957188797 // Translation files
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10699 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-28 10:51:48 +00:00
mDeflotte
bd9bcc6729 // Add "Allow seperated package" checkbox on the cart
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10698 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-28 10:50:54 +00:00
rGaillard
73148dda1d // Change urls of prestashop api
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10696 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-28 10:22:58 +00:00
rMalie
6b61051a16 [*] MO: remove all static call of Module::display() method. Use it as a method on a Module instance.
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10695 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-28 10:04:41 +00:00
rMalie
95e1518335 // Fix display method on paypal module
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10694 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-28 09:10:37 +00:00
vAugagneur
f9bde30d5c //added missing upgrade SQL
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10691 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-28 08:18:14 +00:00
vAugagneur
ad0cd8e356 //
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10688 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-26 22:59:20 +00:00
rGaillard
3a5a061717 // Change URLs calling for prestashop.com
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10686 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-25 18:45:07 +00:00
rGaillard
19749a2102 // Fix link in backoffice with multishop
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10685 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-25 17:52:44 +00:00
rMalie
fe435bdeea // Log edited, this modification on Module::displayTemplate was reverted in a better one
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10675 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-25 16:09:13 +00:00
rMalie
93f4be96b0 [*] Classes: modules templates are now executed in a local space
// Remove Gender::getStaticImage()

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10673 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-25 16:02:20 +00:00
mDeflotte
506773b46c // Adding reference in admin order details
// Adding reference in payment return of cheque and bankwire module

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10669 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-25 15:45:38 +00:00
vKham
447d6a5f01 fix height bug sidebar, delete div class clear
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10668 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-25 15:16:32 +00:00
rGaillard
2ed3aeb821 // Fix bug on add shipping number
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10665 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-25 14:00:17 +00:00
rGaillard
0eccf98592 // Fix change currency on editing order
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10664 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-25 13:43:40 +00:00
rGaillard
af8875217e // Fix links on order view
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10662 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-25 13:31:55 +00:00
rMalie
900e9e8148 // Fix stock for multishop
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10661 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-25 13:12:02 +00:00
fBrignoli
2e005e3c6a // Improved tax rules display
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10660 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-25 12:53:34 +00:00
fBrignoli
9aaa7fc7c3 // die die
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10651 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-25 10:36:39 +00:00
fBrignoli
39ee88bdf2 [-] BO : Incorrect CartRule value
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10650 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-25 10:34:43 +00:00
fBrignoli
0a9889f3af [-] CO : incorrect left join conditions in getTaxRules
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10649 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-25 10:22:58 +00:00
tDidierjean
62422904f3 // change to orders list display
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10648 b9a71923-0436-4b27-9f14-aed3839534dd
2011-11-25 10:13:49 +00:00
3458 changed files with 78971 additions and 165023 deletions

View File

@@ -325,11 +325,11 @@ if (Tools::isSubmit('ajaxProductsPositions'))
{
if ($product = new Product((int)$pos[2]))
if (isset($position) && $product->updatePosition($way, $position))
echo "ok position $position for product $pos[2]\r\n";
echo "ok position ".(int)$position." for product ".(int)$pos[2]."\r\n";
else
echo '{"hasError" : true, "errors" : "Can not update product '. $id_product . ' to position '.$position.' "}';
echo '{"hasError" : true, "errors" : "Can not update product '. (int)$id_product . ' to position '.(int)$position.' "}';
else
echo '{"hasError" : true, "errors" : "This product ('.$id_product.') can t be loaded"}';
echo '{"hasError" : true, "errors" : "This product ('.(int)$id_product.') can t be loaded"}';
break;
}
@@ -562,11 +562,11 @@ if (Tools::isSubmit('getHookableList'))
die('{"hasError" : true, "errors" : ["Live Edit : This functionnality has been disabled"]}');
/* PrestaShop demo mode*/
if (!strlen(Tools::getValue('hooks_list')))
if (!count(Tools::getValue('hooks_list')))
die('{"hasError" : true, "errors" : ["Live Edit : no module on this page"]}');
$modules_list = explode(',', Tools::getValue('modules_list'));
$hooks_list = explode(',', Tools::getValue('hooks_list'));
$modules_list = Tools::getValue('modules_list');
$hooks_list = Tools::getValue('hooks_list');
$hookableList = array();
foreach ($modules_list as $module)
@@ -621,42 +621,48 @@ if (Tools::isSubmit('saveHook'))
/* PrestaShop demo mode */
if (_PS_MODE_DEMO_)
die('{"hasError" : true, "errors" : ["Live Edit : This functionnality has been disabled"]}');
/* PrestaShop demo mode*/
$hooks_list = explode(',', Tools::getValue('hooks_list'));
$id_shop = (int)Tools::getValue('id_shop');
if ($id_shop)
if (!$id_shop)
$id_shop = Context::getContext()->shop->getId(true);
$res = true;
$hookableList = array();
// $_POST['hook'] is an array of id_module
$hooks_list = Tools::getValue('hook');
foreach ($hooks_list as $id_hook => $modules)
{
$hookableList = array();
foreach ($hooks_list as $hook)
// 1st, drop all previous hooked modules
$sql = 'DELETE FROM `'._DB_PREFIX_.'hook_module`
WHERE `id_hook` = '.(int)$id_hook.'
AND id_shop = '.$id_shop;
$res &= Db::getInstance()->execute($sql);
$i = 1;
$value = '';
$ids = array();
// then prepare sql query to rehook all chosen modules(id_module, id_shop, id_hook, position)
// position is i (autoincremented)
foreach ($modules as $id_module)
{
$hook = trim($hook);
if (!$hook)
continue;
$sql = 'DELETE FROM '._DB_PREFIX_.'hook_module
WHERE id_hook = (SELECT id_hook FROM '._DB_PREFIX_.'hook WHERE `name` = \''.pSQL($hook).'\' LIMIT 1)
AND id_shop = '.$id_shop;
Db::getInstance()->execute($sql);
$hookedModules = explode(',', Tools::getValue($hook));
$i = 1;
$value = '';
$ids = array();
foreach ($hookedModules as $module)
if (!in_array($id_module, $ids))
{
$id = explode('_', $module);
if (!in_array($id[1], $ids))
{
$ids[] = $id[1];
$value .= '('.(int)$id[1].', (SELECT id_hook FROM `'._DB_PREFIX_.'hook` WHERE `name` = \''.pSQL($hook).'\' LIMIT 0, 1), '.(int)$i.'),';
}
$i++;
$ids[] = $id_module;
$value .= '('.(int)$id_module.', '.$id_shop.', '.(int)$id_hook.', '.$i.'),';
}
$value = rtrim($value, ',');
Db::getInstance()->execute('INSERT INTO '._DB_PREFIX_.'hook_module (id_module, id_shop, id_hook, position) VALUES '.$value);
$i++;
}
$value = rtrim($value, ',');
$res &= Db::getInstance()->execute('INSERT INTO `'._DB_PREFIX_.'hook_module`
(id_module, id_shop, id_hook, position)
VALUES '.$value);
}
if ($res)
$hasError = true;
else
$hasError = false;
die('{"hasError" : false, "errors" : ""}');
}
@@ -670,13 +676,13 @@ if (Tools::isSubmit('getAdminHomeElement'))
$stream_context = @stream_context_create(array('http' => array('method'=> 'GET', 'timeout' => 5)));
// SCREENCAST
if (@fsockopen('www.prestashop.com', 80, $errno, $errst, 3))
if (@fsockopen('api.prestashop.com', 80, $errno, $errst, 3))
$result['screencast'] = 'OK';
else
$result['screencast'] = 'NOK';
// PREACTIVATION
$content = @file_get_contents($protocol.'://www.prestashop.com/partner/preactivation/preactivation-block.php?version=1.0&shop='.urlencode(Configuration::get('PS_SHOP_NAME')).'&protocol='.$protocol.'&url='.urlencode($_SERVER['HTTP_HOST']).'&iso_country='.$isoCountry.'&iso_lang='.Tools::strtolower($isoUser).'&id_lang='.(int)Context::getContext()->language->id.'&email='.urlencode(Configuration::get('PS_SHOP_EMAIL')).'&date_creation='._PS_CREATION_DATE_.'&v='._PS_VERSION_.'&security='.md5(Configuration::get('PS_SHOP_EMAIL')._COOKIE_IV_), false, $stream_context);
$content = @file_get_contents($protocol.'://api.prestashop.com/partner/preactivation/preactivation-block.php?version=1.0&shop='.urlencode(Configuration::get('PS_SHOP_NAME')).'&protocol='.$protocol.'&url='.urlencode($_SERVER['HTTP_HOST']).'&iso_country='.$isoCountry.'&iso_lang='.Tools::strtolower($isoUser).'&id_lang='.(int)Context::getContext()->language->id.'&email='.urlencode(Configuration::get('PS_SHOP_EMAIL')).'&date_creation='._PS_CREATION_DATE_.'&v='._PS_VERSION_.'&security='.md5(Configuration::get('PS_SHOP_EMAIL')._COOKIE_IV_), false, $stream_context);
if (!$content)
$result['partner_preactivation'] = 'NOK';
else
@@ -702,7 +708,7 @@ if (Tools::isSubmit('getAdminHomeElement'))
}
// PREACTIVATION PAYPAL WARNING
$content = @file_get_contents('https://www.prestashop.com/partner/preactivation/preactivation-warnings.php?version=1.0&partner=paypal&iso_country='.Tools::strtolower(Context::getContext()->country->iso_code).'&iso_lang='.Tools::strtolower(Context::getContext()->language->iso_code).'&id_lang='.(int)Context::getContext()->language->id.'&email='.urlencode(Configuration::get('PS_SHOP_EMAIL')).'&security='.md5(Configuration::get('PS_SHOP_EMAIL')._COOKIE_IV_), false, $stream_context);
$content = @file_get_contents('https://api.prestashop.com/partner/preactivation/preactivation-warnings.php?version=1.0&partner=paypal&iso_country='.Tools::strtolower(Context::getContext()->country->iso_code).'&iso_lang='.Tools::strtolower(Context::getContext()->language->iso_code).'&id_lang='.(int)Context::getContext()->language->id.'&email='.urlencode(Configuration::get('PS_SHOP_EMAIL')).'&security='.md5(Configuration::get('PS_SHOP_EMAIL')._COOKIE_IV_), false, $stream_context);
$content = explode('|', $content);
if ($content[0] == 'OK' && Validate::isCleanHtml($content[1]))
Configuration::updateValue('PS_PREACTIVATION_PAYPAL_WARNING', $content[1]);
@@ -710,7 +716,7 @@ if (Tools::isSubmit('getAdminHomeElement'))
Configuration::updateValue('PS_PREACTIVATION_PAYPAL_WARNING', '');
// DISCOVER PRESTASHOP
$content = @file_get_contents($protocol.'://www.prestashop.com/partner/prestashop/prestashop-link.php?iso_country='.$isoCountry.'&iso_lang='.Tools::strtolower($isoUser).'&id_lang='.(int)Context::getContext()->language->id, false, $stream_context);
$content = @file_get_contents($protocol.'://api.prestashop.com/partner/prestashop/prestashop-link.php?iso_country='.$isoCountry.'&iso_lang='.Tools::strtolower($isoUser).'&id_lang='.(int)Context::getContext()->language->id, false, $stream_context);
if (!$content)
$result['discover_prestashop'] = 'NOK';
else
@@ -721,10 +727,10 @@ if (Tools::isSubmit('getAdminHomeElement'))
else
$result['discover_prestashop'] = 'NOK';
if (@fsockopen('www.prestashop.com', 80, $errno, $errst, 3))
$result['discover_prestashop'] .= '<iframe frameborder="no" style="margin: 0px; padding: 0px; width: 315px; height: 290px;" src="'.$protocol.'://www.prestashop.com/rss/news2.php?v='._PS_VERSION_.'&lang='.$isoUser.'"></iframe>';
if (@fsockopen('api.prestashop.com', 80, $errno, $errst, 3))
$result['discover_prestashop'] .= '<iframe frameborder="no" style="margin: 0px; padding: 0px; width: 315px; height: 290px;" src="'.$protocol.'://api.prestashop.com/rss/news2.php?v='._PS_VERSION_.'&lang='.$isoUser.'"></iframe>';
$content = @file_get_contents($protocol.'://www.prestashop.com/partner/paypal/paypal-tips.php?protocol='.$protocol.'&iso_country='.$isoCountry.'&iso_lang='.Tools::strtolower($isoUser).'&id_lang='.(int)Context::getContext()->language->id, false, $stream_context);
$content = @file_get_contents($protocol.'://api.prestashop.com/partner/paypal/paypal-tips.php?protocol='.$protocol.'&iso_country='.$isoCountry.'&iso_lang='.Tools::strtolower($isoUser).'&id_lang='.(int)Context::getContext()->language->id, false, $stream_context);
$content = explode('|', $content);
if ($content[0] == 'OK' && Validate::isCleanHtml($content[1]))
$result['discover_prestashop'] .= $content[1];
@@ -854,11 +860,11 @@ if (Tools::isSubmit('ajaxAttributesPositions'))
{
if ($attribute = new Attribute((int)$pos[2]))
if (isset($position) && $attribute->updatePosition($way, $position))
echo "ok position $position for attribute $pos[2]\r\n";
echo "ok position ".(int)$position." for attribute ".(int)$pos[2]."\r\n";
else
echo '{"hasError" : true, "errors" : "Can not update attribute '. $id_attribute . ' to position '.$position.' "}';
echo '{"hasError" : true, "errors" : "Can not update attribute '. (int)$id_attribute . ' to position '.(int)$position.' "}';
else
echo '{"hasError" : true, "errors" : "This attribute ('.$id_attribute.') can t be loaded"}';
echo '{"hasError" : true, "errors" : "This attribute ('.(int)$id_attribute.') can t be loaded"}';
break;
}
@@ -886,11 +892,11 @@ if (Tools::isSubmit('ajaxGroupsAttributesPositions'))
{
if ($group_attribute = new AttributeGroup((int)$pos[1]))
if (isset($position) && $group_attribute->updatePosition($way, $position))
echo "ok position $position for group attribute $pos[1]\r\n";
echo "ok position ".(int)$position." for group attribute ".(int)$pos[1]."\r\n";
else
echo '{"hasError" : true, "errors" : "Can not update group attribute '. $id_attribute_group . ' to position '.$position.' "}';
echo '{"hasError" : true, "errors" : "Can not update group attribute '. (int)$id_attribute_group . ' to position '.(int)$position.' "}';
else
echo '{"hasError" : true, "errors" : "This group attribute ('.$id_attribute_group.') can t be loaded"}';
echo '{"hasError" : true, "errors" : "This group attribute ('.(int)$id_attribute_group.') can t be loaded"}';
break;
}
@@ -918,11 +924,11 @@ if (Tools::isSubmit('ajaxFeaturesPositions'))
{
if ($feature = new Feature((int)$pos[2]))
if (isset($position) && $feature->updatePosition($way, $position))
echo "ok position $position for feature $pos[1]\r\n";
echo "ok position ".(int)$position." for feature ".(int)$pos[1]."\r\n";
else
echo '{"hasError" : true, "errors" : "Can not update feature '. $id_feature . ' to position '.$position.' "}';
echo '{"hasError" : true, "errors" : "Can not update feature '. (int)$id_feature . ' to position '.(int)$position.' "}';
else
echo '{"hasError" : true, "errors" : "This feature ('.$id_feature.') can t be loaded"}';
echo '{"hasError" : true, "errors" : "This feature ('.(int)$id_feature.') can t be loaded"}';
break;
}
@@ -945,11 +951,11 @@ if (Tools::isSubmit('ajaxCarriersPositions'))
{
if ($carrier = new Carrier((int)$pos[2]))
if (isset($position) && $carrier->updatePosition($way, $position))
echo "ok position $position for carrier $pos[1]\r\n";
echo "ok position ".(int)$position." for carrier ".(int)$pos[1]."\r\n";
else
echo '{"hasError" : true, "errors" : "Can not update carrier '. $id_carrier . ' to position '.$position.' "}';
echo '{"hasError" : true, "errors" : "Can not update carrier '. (int)$id_carrier . ' to position '.(int)$position.' "}';
else
echo '{"hasError" : true, "errors" : "This carrier ('.$id_carrier.') can t be loaded"}';
echo '{"hasError" : true, "errors" : "This carrier ('.(int)$id_carrier.') can t be loaded"}';
break;
}
@@ -996,3 +1002,15 @@ if (Tools::isSubmit('ajaxUpdateTaxRule'))
die(Tools::jsonEncode($output));
}
if (Tools::isSubmit('getZones'))
{
$zones = Zone::getZones();
$html = '<select id="zone_to_affect" name="zone_to_affect">';
foreach ($zones as $z)
{
$html .= '<option value="'.$z['id_zone'].'">'.$z['name'].'</option>';
}
$html .= '</select>';
$array = array('hasError' => false, 'errors' => '', 'data' => $html);
die(Tools::jsonEncode($html));
}

View File

@@ -34,10 +34,10 @@ if(!isset($_GET['iso_lang']) OR empty($_GET['iso_lang']))
die('fail:0');
if(!isset($_GET['ps_version']) OR empty($_GET['ps_version']))
die('fail:0');
if(@fsockopen('www.prestashop.com', 80))
if(@fsockopen('api.prestashop.com', 80))
{
// Get all iso code available
$lang_packs = Tools::file_get_contents('http://www.prestashop.com/download/lang_packs/get_language_pack.php?version='.(string)$_GET['ps_version'].'&iso_lang='.(string)$_GET['iso_lang']);
$lang_packs = Tools::file_get_contents('http://api.prestashop.com/download/lang_packs/get_language_pack.php?version='.(string)$_GET['ps_version'].'&iso_lang='.(string)$_GET['iso_lang']);
if ($lang_packs !== '' && Tools::jsonDecode($lang_packs) !== NULL)
{

View File

@@ -1017,7 +1017,7 @@ function getRootPath() {
// START ANDR<EFBFBD> SILVA DOWNLOAD CODE
// START ANDRE SILVA DOWNLOAD CODE
// required for IE, otherwise Content-disposition is ignored
if(ini_get('zlib.output_compression'))
ini_set('zlib.output_compression', 'Off');
@@ -1033,7 +1033,7 @@ function getRootPath() {
readfile($path);
exit();
// END ANDR<EFBFBD> SILVA DOWNLOAD CODE
// END ANDRE SILVA DOWNLOAD CODE
}
}

85
admin-dev/csv.php Normal file
View File

@@ -0,0 +1,85 @@
<?php
/*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @version Release: $Revision$
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
/**
* @since 1.5.0
*/
define('_PS_ADMIN_DIR_', getcwd());
include(_PS_ADMIN_DIR_.'/../config/config.inc.php');
if (!Context::getContext()->employee->id)
Tools::redirectAdmin('index.php?controller=AdminLogin');
/*
* Functions allowed
*/
$functions = array(
'id_supply_order' => 'exportSupplyOrder',
);
/*
* Depending on $_GET, call the corresponding function
*/
foreach ($functions as $var => $function)
{
if (isset($_GET[$var]))
{
call_user_func($function);
die;
}
}
/**
* Function used for SupplyOrder
*/
function exportSupplyOrder()
{
//@TODO Checks if employee has enough access to export
if (!isset($_GET['id_supply_order']))
die (Tools::displayError('Missing supply order ID'));
$id_supply_order = (int)$_GET['id_supply_order'];
$supply_order = new SupplyOrder($id_supply_order);
if (!Validate::isLoadedObject($supply_order))
die(Tools::displayError('Cannot find this supply order in the database'));
$details = $supply_order->getEntriesCollection($supply_order->id_lang);
exportCSV($details, 'supply_order_'.$supply_order->reference.'_details');
}
/**
* Main function to export CSV
* @param object|Array $object
* @param string $template
*/
function exportCSV(&$object, $filename)
{
$csv = new CSV($object, $filename);
$csv->export();
}

View File

@@ -65,73 +65,81 @@ echo '
</style>
<script type="text/javascript">
function getPush()
{
$.post("ajax.php",{"getNotifications" : "1"}, function(data) {
if (data)
{
json = jQuery.parseJSON(data);
{
// Add orders notifications to the list
html = "";
nb_notifs = 0;
$.each(json.order, function(property, value) {
html += "<li>'.translate('A new order has been made on your shop.').'<br />'.translate('Order number : ').'<strong>#" + parseInt(value.id_order) + "</strong><br />'.translate('Total : ').'<strong>" + value.total_paid_real + "</strong><br />'.translate('From : ').'<strong>" + value.customer_name + "</strong><br /><a href=\"index.php?controller=AdminOrders&token='.Tools::getAdminTokenLite('AdminOrders').'&vieworder&id_order=" + parseInt(value.id_order) + "\">'.translate('Click here to see that order').'</a></li>";
});
if (html != "")
$.post("ajax.php",{"getNotifications" : "1"}, function(data) {
if (data)
{
$("#list_orders_notif").prev("p").hide();
$("#list_orders_notif").empty().append(html);
nb_notifs = $("#list_orders_notif li").length;
$("#orders_notif_value").text(nb_notifs);
$("#orders_notif_number_wrapper").show();
}
else
{
$("#orders_notif_number_wrapper").hide();
}
// Add customers notifications to the list
html = "";
nb_notifs = 0;
$.each(json.customer, function(property, value) {
html += "<li>'.translate('A new customer registered on your shop.').'<br />'.translate('Customer name : ').'<strong>" + value.customer_name + "</strong><br /><a href=\"index.php?controller=AdminCustomers&token='.Tools::getAdminTokenLite('AdminCustomers').'&viewcustomer&id_customer=" + parseInt(value.id_customer) + "\">'.translate('Click here to see that customer').'</a></li>";
});
if (html != "")
{
$("#list_customers_notif").prev("p").hide();
$("#list_customers_notif").empty().append(html);
nb_notifs = $("#list_customers_notif li").length;
$("#customers_notif_value").text(nb_notifs);
$("#customers_notif_number_wrapper").show();
}
else
{
$("#customers_notif_number_wrapper").hide();
}
json = jQuery.parseJSON(data);
// Add messages notifications to the list
html = "";
nb_notifs = 0;
$.each(json.message, function(property, value) {
html += "<li>'.translate('A new message posted on your shop.').'<br />'.translate('From : ').'<strong>" + value.customer_name + "</strong><br />'.translate('Excerpt : ').'<strong>" + value.message_customer + "</strong><br /><a href=\"index.php?controller=AdminOrders&token='.Tools::getAdminTokenLite('AdminOrders').'&vieworder&id_order=" + parseInt(value.id_order) + "\">'.translate('Click here to see that message').'</a></li>";
});
if (html != "")
{
$("#list_messages_notif").prev("p").hide();
$("#list_messages_notif").empty().append(html);
nb_notifs = $("#list_messages_notif li").length;
$("#messages_notif_value").text(nb_notifs);
$("#messages_notif_number_wrapper").show();
}
else
{
$("#messages_notif_number_wrapper").hide();
}
// Add orders notifications to the list
html = "";
nb_notifs = 0;
$.each(json.order, function(property, value) {
html += "<li>'.translate('A new order has been made on your shop.').'<br />'.translate('Order number : ').'<strong>#" + parseInt(value.id_order) + "</strong><br />'.translate('Total : ').'<strong>" + value.total_paid_real + "</strong><br />'.translate('From : ').'<strong>" + value.customer_name + "</strong><br /><a href=\"index.php?tab=AdminOrders&token='.Tools::getAdminTokenLite('AdminOrders').'&vieworder&id_order=" + parseInt(value.id_order) + "\">'.translate('Click here to see that order').'</a></li>";
});
}
setTimeout("getPush()",60000);
});
}
if (html != "")
{
$("#list_orders_notif").prev("p").hide();
$("#list_orders_notif").empty().append(html);
nb_notifs = $("#list_orders_notif li").length;
$("#orders_notif_value").text(nb_notifs);
$("#orders_notif_number_wrapper").show();
}
else
{
$("#orders_notif_number_wrapper").hide();
}
// Add customers notifications to the list
html = "";
nb_notifs = 0;
$.each(json.customer, function(property, value) {
html += "<li>'.translate('A new customer registered on your shop.').'<br />'.translate('Customer name : ').'<strong>" + value.customer_name + "</strong><br /><a href=\"index.php?tab=AdminCustomers&token='.Tools::getAdminTokenLite('AdminCustomers').'&viewcustomer&id_customer=" + parseInt(value.id_customer) + "\">'.translate('Click here to see that customer').'</a></li>";
});
if (html != "")
{
$("#list_customers_notif").prev("p").hide();
$("#list_customers_notif").empty().append(html);
nb_notifs = $("#list_customers_notif li").length;
$("#customers_notif_value").text(nb_notifs);
$("#customers_notif_number_wrapper").show();
}
else
{
$("#customers_notif_number_wrapper").hide();
}
// Add messages notifications to the list
html = "";
nb_notifs = 0;
$.each(json.customer_message, function(property, value) {
html += "<li>'.translate('A new message posted on your shop.').'<br />'.translate('From : ').'<strong>" + value.customer_name + "</strong><br /><a href=\"index.php?tab=AdminCustomerThreads&token='.Tools::getAdminTokenLite('AdminCustomerThreads').'&viewcustomer_thread&id_customer_thread=" + parseInt(value.id_customer_thread) + "\">'.translate('Click here to see that message').'</a></li>";
});
if (html != "")
{
$("#list_customer_messages_notif").prev("p").hide();
$("#list_customer_messages_notif").empty().append(html);
nb_notifs = $("#list_customer_messages_notif li").length;
$("#customer_messages_notif_value").text(nb_notifs);
$("#customer_messages_notif_number_wrapper").show();
}
else
{
$("#customer_messages_notif_number_wrapper").hide();
}
}
setTimeout("getPush()",60000);
});
}
$().ready(function()
{
@@ -193,7 +201,7 @@ echo ' var html = "";
<h3>'.translate('Last orders').'</h3>
<p class="no_notifs">'.translate('No new orders has been made on your shop').'</p>
<ul id="list_orders_notif"></ul>
<p><a href="index.php?controller=AdminOrders&token='.Tools::getAdminTokenLite('AdminOrders').'">'.translate('Show all orders').'</a></p>
<p><a href="index.php?tab=AdminOrders&token='.Tools::getAdminTokenLite('AdminOrders').'">'.translate('Show all orders').'</a></p>
</div>
</div>';
}
@@ -204,23 +212,23 @@ echo ' var html = "";
<h3>'.translate('Last customers').'</h3>
<p class="no_notifs">'.translate('No new customers registered on your shop').'</p>
<ul id="list_customers_notif"></ul>
<p><a href="index.php?controller=AdminCustomers&token='.Tools::getAdminTokenLite('AdminCustomers').'">'.translate('Show all customers').'</a></p>
<p><a href="index.php?tab=AdminCustomers&token='.Tools::getAdminTokenLite('AdminCustomers').'">'.translate('Show all customers').'</a></p>
</div>
</div>';
}
if (Configuration::get('PS_SHOW_NEW_MESSAGES') == 1)
{
echo '<div id="messages_notif" class="notifs"><span id="messages_notif_number_wrapper" class="number_wrapper"><span id="messages_notif_value">0</span></span>
<div id="messages_notif_wrapper" class="notifs_wrapper">
echo '<div id="customer_messages_notif" class="notifs"><span id="customer_messages_notif_number_wrapper" class="number_wrapper"><span id="customer_messages_notif_value">0</span></span>
<div id="customer_messages_notif_wrapper" class="notifs_wrapper">
<h3>'.translate('Last messages').'</h3>
<p class="no_notifs">'.translate('No new messages posted on your shop').'</p>
<ul id="list_messages_notif"></ul>
<p><a href="index.php?controller=AdminMessages&token='.Tools::getAdminTokenLite('AdminMessages').'">'.translate('Show all messages').'</a></p>
<ul id="list_customer_messages_notif"></ul>
<p><a href="index.php?tab=AdminCustomerThreads&token='.Tools::getAdminTokenLite('AdminCustomerThreads').'">'.translate('Show all messages').'</a></p>
</div>
</div>';
}
echo '</div><span id="employee_links">
<a href="index.php?controller=AdminEmployees&id_employee='.(int)Context::getContext()->employee->id.'&updateemployee&token='.Tools::getAdminTokenLite('AdminEmployees').'" class="employee" alt="">'.translate('My preferences').'</a>
<a href="index.php?controller=AdminEmployees&id_employee='.(int)Context::getContext()->employee->id.'&updateemployee&token='.Tools::getAdminTokenLite('AdminEmployees').'" class="employee">'.translate('My preferences').'</a>
<span class="separator"></span>
<span class="employee_name">
'.Tools::substr(Context::getContext()->employee->firstname, 0, 1).'.&nbsp;'.htmlentities(Context::getContext()->employee->lastname, ENT_COMPAT, 'UTF-8').'
@@ -289,7 +297,7 @@ $echoLis = '';
$mainsubtablist = '';
foreach ($tabs AS $t)
if (checkTabRights($t['id_tab']) === true)
if (checkTabRights($t['id_tab']) === true AND (bool)$t['active'])
{
$img = (Tools::file_exists_cache(_PS_ADMIN_DIR_.'/themes/'.Context::getContext()->employee->bo_theme.'/img/t/'.$t['class_name'].'.gif') ? 'themes/'.Context::getContext()->employee->bo_theme.'/img/' : _PS_IMG_).'t/'.$t['class_name'].'.gif';
if (trim($t['module']) != '')
@@ -308,13 +316,13 @@ foreach ($tabs AS $t)
array_unshift($subTabs, $t);
foreach ($subTabs AS $t2)
if (checkTabRights($t2['id_tab']) === true)
if (checkTabRights($t2['id_tab']) === true AND (bool)$t2['active'])
echo '<li><a href="index.php?controller='.$t2['class_name'].'&token='.Tools::getAdminTokenLite($t2['class_name']).'">'.$t2['name'].'</a></li>';
echo '</ul></li>';
$echoLi = '';
foreach ($subTabs AS $t2)
if (checkTabRights($t2['id_tab']) === true)
if (checkTabRights($t2['id_tab']) === true AND (bool)$t2['active'])
$echoLi .= '<li class="subitem"><a href="index.php?controller='.$t2['class_name'].'&token='.Tools::getAdminTokenLite($t2['class_name']).'">'.$t2['name'].'</a></li>';
if ($current)

View File

@@ -36,6 +36,7 @@ $functionArray = array(
'pdf' => 'generateInvoicePDF',
'id_order_slip' => 'generateOrderSlipPDF',
'id_delivery' => 'generateDeliverySlipPDF',
'delivery' => 'generateDeliverySlipPDF',
'invoices' => 'generateInvoicesPDF',
'invoices2' => 'generateInvoicesPDF2',
'slips' => 'generateOrderSlipsPDF',
@@ -66,10 +67,10 @@ function generateSupplyOrderFormPDF()
function generateInvoicePDF()
{
if (Tools::isSubmit('id_order'))
generateInvoicePDFByIdOrder(Tools::getValue('id_order'));
elseif (Tools::isSubmit('id_order_invoice'))
generateInvoicePDFByIdOrderInvoice(Tools::getValue('id_order_invoice'));
if (Tools::isSubmit('id_order'))
generateInvoicePDFByIdOrder(Tools::getValue('id_order'));
elseif (Tools::isSubmit('id_order_invoice'))
generateInvoicePDFByIdOrderInvoice(Tools::getValue('id_order_invoice'));
else
die (Tools::displayError('Missing order ID or invoice order ID'));
exit;
@@ -81,7 +82,9 @@ function generateInvoicePDFByIdOrder($id_order)
if (!Validate::isLoadedObject($order))
die(Tools::displayError('Cannot find order in database'));
generatePDF($order->getInvoicesCollection(), PDF::TEMPLATE_INVOICE);
$order_invoice_list = $order->getInvoicesCollection();
Hook::exec('actionPDFInvoiceRender', array('order_invoice_list' => $order_invoice_list));
generatePDF($order_invoice_list, PDF::TEMPLATE_INVOICE);
}
function generateInvoicePDFByIdOrderInvoice($id_order_invoice)
@@ -90,6 +93,7 @@ function generateInvoicePDFByIdOrderInvoice($id_order_invoice)
if (!Validate::isLoadedObject($order_invoice))
die(Tools::displayError('Cannot find order invoice in database'));
Hook::exec('actionPDFInvoiceRender', array('order_invoice_list' => array($order_invoice)));
generatePDF($order_invoice, PDF::TEMPLATE_INVOICE);
}
@@ -107,24 +111,47 @@ function generateOrderSlipPDF()
function generateDeliverySlipPDF()
{
$order = Order::getByDelivery((int)($_GET['id_delivery']));
if (!Validate::isLoadedObject($order))
die(Tools::displayError('Cannot find order in database'));
if (Tools::isSubmit('id_order'))
generateDeliverySlipPDFByIdOrder(Tools::getValue('id_order'));
elseif (Tools::isSubmit('id_order_invoice'))
generateDeliverySlipPDFByIdOrderInvoice(Tools::getValue('id_order_invoice'));
elseif (Tools::isSubmit('id_delivery'))
{
$order = Order::getByDelivery(Tools::getValue('id_delivery'));
generateDeliverySlipPDFByIdOrder($order->id);
}
else
die (Tools::displayError('Missing order ID or invoice order ID'));
exit;
}
generatePDF($order, PDF::TEMPLATE_DELIVERY_SLIP);
function generateDeliverySlipPDFByIdOrder($id_order)
{
$order = new Order($id_order);
if (!Validate::isLoadedObject($order))
throw new PrestashopException('Can\'t load Order object');
$order_invoice_collection = $order->getInvoicesCollection();
generatePDF($order_invoice_collection, PDF::TEMPLATE_DELIVERY_SLIP);
}
function generateDeliverySlipPDFByIdOrderInvoice($id_order_invoice)
{
$order_invoice = new OrderInvoice($id_order_invoice);
if (!Validate::isLoadedObject($order_invoice))
throw new PrestashopException('Can\'t load Order Invoice object');
generatePDF($order_invoice, PDF::TEMPLATE_DELIVERY_SLIP);
}
function generateInvoicesPDF()
{
$id_orders_list = Order::getOrdersIdInvoiceByDate($_GET['date_from'], $_GET['date_to'], NULL, 'invoice');
$id_orders_list = OrderInvoice::getByDateInterval($_GET['date_from'], $_GET['date_to'], NULL, 'invoice');
if (!is_array($id_orders_list))
die (Tools::displayError('No invoices found'));
$orders = array();
foreach ($id_orders_list as $id_order)
$orders[] = new Order((int)$id_order);
generatePDF($orders, PDF::TEMPLATE_INVOICE);
generateOrderInvoicesPDF($id_orders_list);
}
function generateInvoicesPDF2()
@@ -134,11 +161,19 @@ function generateInvoicesPDF2()
if (is_array($id_orders = Order::getOrderIdsByStatus((int)$id_order_state)))
$id_orders_list = array_merge($id_orders_list, $id_orders);
$orders = array();
foreach ($id_orders_list as $id_order)
$orders[] = new Order((int)$id_order);
generateOrderInvoicesPDF($id_orders_list);
}
generatePDF($orders, PDF::TEMPLATE_INVOICE);
function generateOrderInvoicesPDF($id_orders_list)
{
$orders_invoices = array();
foreach ($id_orders_list as $id_order)
{
$order = new Order((int)$id_order);
$orders_invoices = array_merge($orders_invoices, $order->getInvoicesCollection());
}
generatePDF($orders_invoices, PDF::TEMPLATE_INVOICE);
}
function generateOrderSlipsPDF()
@@ -167,5 +202,4 @@ function generatePDF($object, $template)
global $smarty;
$pdf = new PDF($object, $template, $smarty);
$pdf->render();
}
}

View File

@@ -1,170 +0,0 @@
<?php
/*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @version Release: $Revision: 7310 $
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
class AdminMessages extends AdminTab
{
public function __construct()
{
$this->table = 'order';
$this->className = 'Order';
$this->view = 'noActionColumn';
$this->colorOnBackground = true;
$this->context = Context::getContext();
$start = 0;
$this->_defaultOrderBy = 'date_add';
/* Manage default params values */
if (empty($limit))
$limit = ((!isset($this->context->cookie->{$this->table.'_pagination'})) ? $this->_pagination[0] : $limit = $this->context->cookie->{$this->table.'_pagination'});
if (!Validate::isTableOrIdentifier($this->table))
die (Tools::displayError('Table name is invalid:').' "'.$this->table.'"');
if (empty($orderBy))
$orderBy = Tools::getValue($this->table.'Orderby', $this->_defaultOrderBy);
elseif ($orderBy == 'id_order')
$orderBy = 'm.id_order';
if (empty($orderWay))
$orderWay = Tools::getValue($this->table.'Orderway', 'ASC');
$limit = (int)(Tools::getValue('pagination', $limit));
$this->context->cookie->{$this->table.'_pagination'} = $limit;
/* Check params validity */
if (!Validate::isOrderBy($orderBy) OR !Validate::isOrderWay($orderWay)
OR !is_numeric($start) OR !is_numeric($limit))
die(Tools::displayError('get list params is not valid'));
if ($orderBy == 'id_order')
$orderBy = 'm.id_order';
/* Determine offset from current page */
if ((isset($_POST['submitFilter'.$this->table]) OR
isset($_POST['submitFilter'.$this->table.'_x']) OR
isset($_POST['submitFilter'.$this->table.'_y'])) AND
!empty($_POST['submitFilter'.$this->table]) AND
is_numeric($_POST['submitFilter'.$this->table]))
$start = (int)($_POST['submitFilter'.$this->table] - 1) * $limit;
$this->_list = Db::getInstance()->executeS('
SELECT SQL_CALC_FOUND_ROWS m.id_message, m.id_cart, m.id_employee, IF(m.id_order > 0, m.id_order, \'--\') id_order, m.message, m.private, m.date_add, CONCAT(LEFT(c.`firstname`, 1), \'. \', c.`lastname`) AS customer,
c.id_customer, count(m.id_message) nb_messages, (SELECT message FROM '._DB_PREFIX_.'message WHERE id_order = m.id_order ORDER BY date_add DESC LIMIT 1) last_message,
(SELECT COUNT(m2.id_message) FROM '._DB_PREFIX_.'message m2 WHERE 1 AND m2.id_customer != 0 AND m2.id_order = m.id_order AND m2.id_message NOT IN
(SELECT mr2.id_message FROM '._DB_PREFIX_.'message_readed mr2 WHERE mr2.id_employee = '.(int)$this->context->employee->id.') GROUP BY m2.id_order) nb_messages_not_read_by_me
FROM '._DB_PREFIX_.'message m
LEFT JOIN '._DB_PREFIX_.'orders o ON (o.id_order = m.id_order)
LEFT JOIN '._DB_PREFIX_.'customer c ON (c.id_customer = m.id_customer)
GROUP BY m.id_order
ORDER BY '.(isset($orderBy) ? pSQL($orderBy) : 'date_add') .' '.(isset($orderWay) ? pSQL($orderWay) : 'DESC').'
LIMIT '.(int)($start).','.(int)($limit));
$this->_listTotal = Db::getInstance()->getValue('SELECT FOUND_ROWS()');
$this->fieldsDisplay = array(
'id_order' => array('title' => $this->l('Order ID'), 'align' => 'center', 'width' => 30),
'id_customer' => array('title' => $this->l('Customer ID'), 'align' => 'center', 'width' => 30),
'customer' => array('title' => $this->l('Customer'), 'width' => 100, 'filter_key' => 'customer', 'tmpTableFilter' => true),
'last_message' => array('title' => $this->l('Last message'), 'width' => 400, 'orderby' => false),
'nb_messages_not_read_by_me' => array('title' => $this->l('Unread message(s)'), 'width' =>30, 'align' => 'center'),
'nb_messages' => array('title' => $this->l('Number of messages'), 'width' => 30, 'align' => 'center'));
parent::__construct();
}
public function display()
{
if (isset($_GET['ajax']) && !empty($_GET['id_cart']))
{
ob_clean();
$messages = Message::getMessagesByCartId(Tools::getValue('id_cart'), true);
echo '
<style type="text/css">
* {
font-size: 12px;
font-family: Arial,Verdana,Helvetica,sans-serif;
}
</style>
<p style="color: #CC0000; font-weight: bold;">'.$this->l('This customer has not finalized their order, however here are their messages:').'</p>';
foreach ($messages AS $message)
{
echo '
<table cellpadding="5" border="1">
<tr>
<td>'.$this->l('Cart ID:').'</td>
<td>'.(int)$message['id_cart'].'</td>
</tr>
<tr>
<td>'.$this->l('Customer ID:').'</td>
<td>'.(int)$message['id_customer'].'</td>
</tr>
<tr>
<td>'.$this->l('Date:').'</td>
<td>'.Tools::displayDate($message['date_add'], $this->context->language->id, true).'</td>
</tr>
</table>
<p>'.$this->l('Message:').' '.Tools::htmlentitiesUTF8($message['message']).'</p>
<hr size="1" noshade style="margin-bottom: 15px;" />';
}
die;
}
elseif (isset($_GET['view'.$this->table]) AND !empty($_GET['id_order']) AND $_GET['id_order'] != '--')
Tools::redirectAdmin('index.php?tab=AdminOrders&id_order='.(int)($_GET['id_order']).'&vieworder'.'&token='.Tools::getAdminToken('AdminOrders'.(int)(Tab::getIdFromClassName('AdminOrders')).(int)$this->context->employee->id));
else
{
if (isset($_GET['id_order']) AND (empty($_GET['id_order']) OR $_GET['id_order'] == '--'))
{
echo '<p class="warning bold"><img src="../img/admin/warning.gif" alt="" class="middle" /> &nbsp;'.
Tools::displayError('Cannot display this message because the customer has not finalized their order.').'</p>';
}
foreach ($this->_list AS $k => &$item)
if (Tools::strlen($item['last_message']) > 150 + Tools::strlen('...'))
$this->_list[$k]['last_message'] = Tools::substr(html_entity_decode($item['last_message'], ENT_QUOTES, 'UTF-8'), 0, 150, 'UTF-8').'...';
foreach ($this->_list AS $k => &$item)
if ($item['id_order'] == '--')
$this->_list[$k]['last_message'] .= ' <a class="iframe" onclick="$(this).parent().attr(\'onclick\', \'return false\');" href="'.self::$currentIndex.'&token='.Tools::getAdminToken('AdminMessages'.(int)(Tab::getIdFromClassName('AdminMessages')).(int)$this->context->employee->id).'&ajax=1&id_cart='.(int)$this->_list[$k]['id_cart'].'" title="'.$this->l('View details').'"><img src="../img/admin/details.gif" alt="'.$this->l('View details').'" /></a>';
echo '
<link href="'._PS_CSS_DIR_.'jquery.fancybox-1.3.4.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript" src="'._PS_JS_DIR_.'jquery/jquery.fancybox-1.3.4.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
$(\'a.iframe\').fancybox();
});
</script>';
$this->displayList();
$this->displayOptionsList();
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -10,13 +10,15 @@ h6 { font-size:1em; }
/*LIST*/
ul,ol {list-style:none; margin: 0; padding: 0;}
ul li {color:#585A69;}
/*FORM*/
label {color:#585a69;text-shadow:0 1px 0#fff;}
fieldset{background-color:#EBEDF4; border:1px solid #CCCED7;font-size:1.1em;margin:0;padding:1em}
.Bloc {background-color:#EBEDF4; border:1px solid #CCCED7;font-size:1.1em;margin:0;padding:1em}
legend{background:#EBEDF4;border:1px solid #CCCED7;font-weight:700;margin:0;padding:.2em .5em;text-align:left}
input[type="text"],input[type="password"],input[type="file"],textarea {border:1px solid #ccc;}
select { border:1px solid #ccc;}
select { border:1px solid #ccc; color: #666666; font-size: 12px; height: 22px;}
select[disabled="disabled"], input[disabled="disabled"],textarea[disabled="disabled"] {border: 1px solid #CCCCCC;color: #AAAAAA}
.header_module{background:url(header_module.png);padding-left: 0.5em;padding-top: 0.8em;height:20px;color: #812143;border:solid 1px #CCC;}
.double_select select{width:300px;height:160px;}
@@ -25,11 +27,15 @@ select[disabled="disabled"], input[disabled="disabled"],textarea[disabled="disab
/*BUTTON*/
.button{background: -moz-linear-gradient(center top , #F9F9F9, #E3E3E3) repeat scroll 0 0 transparent;
background: -webkit-gradient(linear, center top ,center bottom, from(#F9F9F9), to(#E3E3E3)) repeat scroll 0 0 transparent;
border-color: #CCCCCC #BBBBBB #A0A0A0;border-left: 1px solid #BBBBBB;border-radius: 3px 3px 3px 3px;border-right: 1px solid #BBBBBB;border-style: solid;border-width: 1px;color: #000000;margin: 0; outline: medium none;padding: 3px 8px;text-align: center;vertical-align: middle;white-space: nowrap;}
border-color: #CCCCCC #BBBBBB #A0A0A0;border-left: 1px solid #BBBBBB;border-radius: 3px 3px 3px 3px;border-right: 1px solid #BBBBBB;border-style: solid;border-width: 1px;color: #000000;margin: 0; outline: medium none;padding: 3px 8px;text-align: center;vertical-align: middle;white-space: nowrap; text-shadow:0 1px 0 #fff;}
.button[disabled=disabled]{color:#8C8C8C}
.button.bt-icon { display:inline-block; margin-bottom:7px;}
.button.bt-icon span {padding-left:5px;}
input.button[disabled=disabled]:hover{background-color:#FFF6D3}
.button:hover{border:1px solid #939393;}
.button:active{border:1px solid #939393;}
.button.export-csv span{ background: transparent url(export-csv.png) no-repeat scroll left top; padding:1px 0 1px 20px}
#top_container{margin:0;padding:0}
@@ -47,17 +53,12 @@ input.button[disabled=disabled]:hover{background-color:#FFF6D3}
#header #header_infos #header_logout a span {color:#fff;}
#header #header_infos #header_foaccess{ text-decoration:none; color:#fff;}
#header #header_infos #header_foaccess a {color:#fff !important;}
#header #header_search{ float:left; margin-top:15px; }
#header #header_search #bo_query{float:left;background: none repeat scroll 0 0 #fff; border-color: #666666 #CCCCCC #CCCCCC;
border-style:solid dotted solid solid;
border-width: 1px; color: #333; font: 13px Arial,sans-serif; padding: 4px 1px 4px 4px; width: 180px;
box-shadow: 0 1px 0 #444444;}
#header #header_search #bo_search_type{float:left; margin:0; padding:3px 0 4px; vertical-align:middle;width:auto; border-color: #666666 #CCCCCC #CCCCCC;
border-style:solid solid solid none; height:25px;
border-width: 1px;}
#header #header_search #bo_search_submit { border-color: #CCCCCC #BBBBBB; float:left; font-weight:normal; margin:0; padding: 4px 8px 3px; cursor:pointer; text-shadow: 0 1px 0 #fff; border-bottom-left-radius: 0; border-left: 0 none; border-top-left-radius: 0; }
#header #header_search{ float:left; margin-top:15px; position:relative; }
#header #header_search #bo_query{ font: 13px Arial,sans-serif; float:left;background: none repeat scroll 0 0 #fff; border:1px solid #000; border-radius:4px; padding: 5px 25px 5px 4px; width: 180px; box-shadow: 0 1px 0 #666;}
#header #header_search #bo_search_type{ font-size:13px; float:left; margin:0 10px 0 0; padding:3px 0 4px; vertical-align:middle;width:auto; border-color: #666666 #CCCCCC #CCCCCC;border-style:solid solid solid none; height:27px; border-width: 1px;}
#header #header_search #bo_search_submit { background: transparent url(icon-search.png) no-repeat scroll center; border:none; width:27px; height:27px; float:left; font-weight:normal; margin:0; padding:0; cursor:pointer; text-indent:-9999em; position:absolute; right:0;}
#header #header_quick{float:right; display:block; margin-top:15px;}
#header #header_quick #quick_select{margin:0; padding:3px 0 4px; vertical-align:middle;width:140px; height:25px;}
#header #header_quick #quick_select{ font-size:13px; margin:0 10px 0 0; padding:3px 0 4px; vertical-align:middle;width:140px; height:27px;}
#header #header_shoplist{ background-image:none; clear:both; float: right; color:#fff; margin-top:10px; margin-right:15px;}
#header #header_shoplist span { float:left; padding:3px;}
#header #header_myaccount{background:url(bg-lang.png) no-repeat;display:block;float:right;height:16px;margin:8px 1px 0 0;width:16px}
@@ -68,10 +69,10 @@ input.button[disabled=disabled]:hover{background-color:#FFF6D3}
.notifs { float: left;position: relative;cursor: pointer;margin:0; padding:5px; width: 18px;height: 16px;}
#orders_notif {background: url("notif_order.png") no-repeat center top;}
#customers_notif {background: url("notif_customer.png") no-repeat center top;}
#messages_notif {background: url("notif_message.png") no-repeat center top;}
#customer_messages_notif {background: url("notif_message.png") no-repeat center top;}
#orders_notif.open_notifs,
#customers_notif.open_notifs,
#messages_notif.open_notifs { background-color: #FFFFFF;border: 1px solid #000000; position: relative; display: block; background-position:center bottom; }
#customer_messages_notif.open_notifs { background-color: #FFFFFF;border: 1px solid #000000; position: relative; display: block; background-position:center bottom; }
.number_wrapper {color: white;display: none;font-size: 13px;font-weight: bold;position: absolute; right: -8px;top: -10px;z-index: 101;padding: 2px 5px;}
@@ -114,8 +115,13 @@ input.button[disabled=disabled]:hover{background-color:#FFF6D3}
.table a:hover{text-decoration:none}
.table tr th{ background-color: #F1F1F1; text-shadow:0 1px 0 #fff; padding:4px 6px;
background-image: -moz-linear-gradient(center top , #F9F9F9, #ECECEC);
background: -webkit-gradient(linear, center top ,center bottom, from(#F9F9F9), to(#ECECEC)) repeat scroll 0 0 transparent;}
.table tr td{border-bottom:1px solid #ccc;color:#333;font-size:11px;padding: 2px 4px 2px 6px}
background: -webkit-gradient(linear, center top ,center bottom, from(#F9F9F9), to(#ECECEC)) repeat scroll 0 0 transparent;
font-size:13px; text-align:left;}
.table tr th.right { text-align:center;}
.table tr td{border-bottom:1px solid #ccc;color:#333;font-size:12px;padding: 4px 4px 4px 6px;}
.table tr:hover td{background:#fff1b5}
.table tr.filter:hover td{background:#F1F9FF}
.table tr td:hover table tr td{background:none}
.table tr.action_details td{background:#FAFAFA;}
.table tr.alt_row.action_details td{background:#E8E8E8;}
.table tr td.empty{border-bottom:none;background:white!important}
@@ -124,6 +130,7 @@ input.button[disabled=disabled]:hover{background-color:#FFF6D3}
.table tr.small td{height:15px}
.table tr.last td{border-bottom:none}
td.col-left {vertical-align:top; padding-right:10px;}
#tabPane1 td.col-left { width:200px;}
td.col-left label { display:block; width:100%; text-align:right;}
.alt_row{background-color:#f8f8f8}
.path_bar{background-color:#E2EBEE;border:1px solid #999999;font-family:Trebuchet,Arial,Helvetica,sans-serif;font-size:13px;margin-bottom:20px;padding:5px}
@@ -143,25 +150,32 @@ a.module_toggle_all{color: #268CCD;}
.button-autoupgrade {-moz-border-bottom-colors: none;-moz-border-image: none;-moz-border-left-colors: none;-moz-border-right-colors: none;-moz-border-top-colors: none;border-color: #FFF6D3 #DFD5AF #DFD5AF #FFF6D3;border-right: 1px solid #DFD5AF;border-style: solid;border-width: 1px;color: #268CCD;font-size: medium;padding: 5px;}
.processing {overflow: auto;}
/*UI ACCORDEON*/
.ui-accordion-header { background-color: #ccc; color:#000;}
/*BLOC*/
.Bloc { background: none repeat scroll 0 0 #EBEDF4;}
/*TABLE STATUS COMMANDE*/
.table td span.color_field { font-size:11px; padding:2px 5px; border-radius:3px; text-transform:uppercase; color:#fff; border-radius:3px; -moz-border-radius:3px; -webkit-border-radius:3px;}
/*toolbarBox*/
.toolbarBox { background-color: #F8F8F8; border: 1px solid #CCCCCC; margin-bottom:10px; padding: 10px 0; border-radius:3px; -moz-border-radius:3px; -webkit-border-radius:3px;}
.toolbarBox .pageTitle { margin-left:10px; line-height:48px}
.toolbarBox .pageTitle h3 {font-size: 2em; font-weight: normal; line-height: 48px; margin: 0; padding: 0;}
.toolbarBox ul.cc_button {float:right;margin:0;padding:0;}
.toolbarBox .pageTitle h3 {font-size: 2em; font-weight: normal; line-height: 52px; margin: 0; padding: 0;}
.toolbarBox ul.cc_button {float:right;margin:0 5px 0 0;padding:0;}
.toolbarBox ul.cc_button li {color: #666666; float: left; height: 48px; list-style: none outside none; padding: 1px 1px 3px 4px; text-align: center;}
.toolbarBox a.toolbar_btn { border-width: 1px;font-size:11px;cursor: pointer; display: block; float: left; padding: 1px 5px; white-space: nowrap; text-shadow: 0 1px 0 #ffffff;;}
.toolbarBox a.toolbar_btn:hover {}
.toolbarBox .toolbar_btn span{ display: block;float: none;height: 32px;margin: 0 auto;width: 32px;}
.toolbarBox a.toolbar_btn { border:1px solid #f8f8f8; min-width:50px; border-width: 1px; font-size:11px;cursor: pointer; display: block; float: left; padding: 3px 5px; white-space: nowrap; text-shadow: 0 1px 0 #ffffff;}
.toolbarBox a.toolbar_btn:hover { background-color:#fff; border:1px inset #ccc; border-radius:3px;}
.toolbarBox .toolbar_btn span{ display: block;float: none;height: 32px;margin: 0 auto;width: 32px; /*hacking ie7*/ margin:0 !ie; position:relative !ie;}
.toolbarBox .process-icon-delete { background-image: url(process-icon-delete.png);}
.toolbarBox .process-icon-duplicate { background-image: url(process-icon-duplicate.png);}
.toolbarBox .process-icon-preview { background-image: url(process-icon-preview.png);}
.toolbarBox .process-icon-stats { background-image: url(process-icon-stats.png);}
.toolbarBox .process-icon-cancel { background-image: url(process-icon-cancel.png);}
.toolbarBox .process-icon-new, .toolbarBox .process-icon-newAttributes{ background-image: url(process-icon-new.png);}
.toolbarBox .process-icon-save, .toolbarBox .process-icon-save-settings { background-image: url(process-icon-save.png);}
.toolbarBox .process-icon-cancel, .toolbarBox .toolbar-cancel { background-image: url(process-icon-cancel.png);}
.toolbarBox .process-icon-new, .toolbarBox .toolbar-new{ background-image: url(process-icon-new.png);}
.toolbarBox .process-icon-save { background-image: url(process-icon-save.png);}
.toolbarBox .process-icon-save-and-stay { background-image: url(process-icon-save-and-stay.png);}
.toolbarBox .process-icon-edit { background-image: url(process-icon-edit.png);}
.toolbarBox .process-icon-back { background-image: url(process-icon-back.png);}
@@ -169,8 +183,15 @@ a.module_toggle_all{color: #268CCD;}
.toolbarBox .process-icon-refresh-cache { background-image: url(process-icon-refresh-cache.png);}
.toolbarBox .process-icon-save-calendar { background-image: url(process-icon-save-calendar.png);}
.toolbarBox .process-icon-new-module { background-image: url(process-icon-new-module.png);}
.toolbarBox .process-icon-new-url { background-image: url(process-icon-new-url.png);}
.toolbarBox .process-icon-new-module-addon { background-image: url(process-icon-new-module-addon.png);}
.toolbarBox .process-icon-save-and-preview { background-image: url(process-icon-preview.png);}
.toolbarBox .process-icon-export-stock-state-quantities-csv { background-image: url(process-icon-export-csv.png);}
.toolbarBox .process-icon-export-stock-state-prices-csv { background-image: url(process-icon-export-csv-details.png);}
.toolbarBox .process-icon-export-csv-orders { background-image: url(process-icon-export-csv.png);}
.toolbarBox .process-icon-export-csv-details { background-image: url(process-icon-export-csv-details.png);}
.toolbarBox .process-icon-export-stock-mvt-csv { background-image: url(process-icon-export-csv.png);}
.toolbarBox .process-icon-newAttributes, .toolbarBox .toolbar-new{ background-image: url(process-icon-new.png);}
div.fix-toolbar {border-bottom: 1px solid #E0E0E0;position:fixed;top:0;opacity:0.9;z-index:1;}
@@ -186,8 +207,9 @@ div.fix-toolbar {border-bottom: 1px solid #E0E0E0;position:fixed;top:0;opacity:0
#productBox { position:relative; width:100%; float:left;}
/*tab-pane*/
form#product_form, form#access_form, form#cart_rule_form { background-color:#ebedf4; border:1px solid #ccced7; min-height:300px; padding: 5px 10px 10px; margin-left:140px;}
/*form.defaultForm{ background-color:#ebedf4; border:1px solid #ccced7; min-height:300px; padding: 5px 10px 10px;}*/
form#product_form, form#access_form, form#cart_rule_form { background-color:#ebedf4; border:1px solid #ccced7; min-height:404px; padding: 5px 10px 10px; margin-left:140px;}
#content form.adminstockmanagement {margin-left:0px;}
form#product_form h4 { font-size:18px; font-weight:normal;}
.tab-row {}
.tab-row .tab {background:#EFEFEF;width:100px;}
.tab-row .tab-page.selected {}
@@ -201,6 +223,9 @@ form#product_form, form#access_form, form#cart_rule_form { background-color:#e
.product-tab-content h4.tab { display:none;}
#categories-treeview { }
#product-tab-content-3-Associations .Association td.col-left { width:200px;}
/*FILTER MODULE*/
.filter-module { background-color:#ebedf4; border:1px solid #c2c4d9; margin-top:10px; padding:10px; display:block; min-height:25px;}
.filter-module #filternameForm {float:left; margin-right:30px;}
@@ -210,11 +235,16 @@ form#product_form, form#access_form, form#cart_rule_form { background-color:#e
/*FILTER STOCK*/
.filter-stock { background-color:#ebedf4; border:1px solid #c2c4d9; margin-bottom:15px; padding:10px; display:block; min-height:25px;}
.filter-stock #stock_cover {float:left; margin-right:30px;}
.filter-stock #stock_instant_state {float:left; margin-right:30px;}
.filter-stock label {width:auto;}
.filter-stock .select-filter { float:left;}
.filter-stock .button-filter { float:right;}
.filter-stock-extended { background-color:#ebedf4; border:1px solid #c2c4d9; margin-bottom:15px; padding:10px; display:block; min-height:65px;}
.filter-stock-extended #stock_cover {float:left; margin-right:30px;}
.filter-stock-extended #supply_orders {float:left; margin-right:30px;}
.filter-stock-extended label {width:auto;}
.filter-stock-extended .select-filter { float:left;}
.filter-stock-extended .button-filter { float:right;}
/*ADDONS LOGIN*/
#addons_login_div { background: #EBEDF4 url(lock.png) no-repeat scroll left 5px;}
@@ -224,19 +254,102 @@ form#product_form, form#access_form, form#cart_rule_form { background-color:#e
#addons_login_div input { float:left; margin-right:10px;}
#addons_login_div input#addons_login_button { margin-right: 0px; }
/*SIDEBAR*/
.sidebar { position:relative; float:left; width:220px; display:inline;}
.sidebar h3 { background-color:#ebedf4; font-weight:bold; display:block; padding:5px;}
.sidebar.navigation h3 {margin:0;}
.sidebar .subHeadline { font-weight:bold; float:right; margin-top:-28px; margin-right:5px;}
.sidebar ul.categorieList {}
.sidebar ul.categorieList li { border-top:1px solid #ccc; position:relative; line-height:20px;}
.sidebar ul.categorieList li:first-child { border-top:none;}
.sidebar ul.categorieList li a {color:#3a6ea7;}
.sidebar ul.categorieList li a {color:#3a6ea7; padding-left:5px;}
.sidebar ul.categorieList li div.categorieWidth { width:180px; margin-left:5px; overflow:hidden;}
.sidebar ul.categorieList li div.count{ position:absolute; top:0; right:5px;}
.sidebar .categorieStatus { display:none;}
/*NAVIGATION ENGINE*/
.blocEngine { background-color:#eee;}
.blocEngine .rowForm { display: block;float: left;margin: 0; padding: 5px 0; }
.blocEngine .rowForm label { font-weight:normal;}
.blocEngine .rowForm label,
.blocEngine .rowForm select {width:220px; float:left; text-align:left;}
.blocEngine p { margin-top:10px;display:block; float:left;}
/*STATCONTAINER*/
#statsContainer {margin-left:220px; padding:0 0 0 20px;}
#statsContainer #calendar { background-color: #EEEEEE;border-top: 1px solid #CCCCCC; display: block; margin: 10px 0;min-height: 25px; padding: 5px;}
#statsContainer #calendar form {float:left;}
#statsContainer #calendar input, #statsContainer #calendar p { float:left;}
#statsContainer #calendar input.submitDateDay { border-top-right-radius: 0px; border-bottom-right-radius:0px; border-right:none;}
#statsContainer #calendar input.submitDateMonth { border-radius:0px;}
#statsContainer #calendar input.submitDateYear { border-top-left-radius: 0px; border-bottom-left-radius:0px; border-left:none; margin-right:10px;}
#statsContainer #calendar input.submitDateDayPrev { border-top-right-radius: 0px; border-bottom-right-radius:0px; border-right:none;}
#statsContainer #calendar input.submitDateMonthPrev { border-radius:0px;}
#statsContainer #calendar input.submitDateYearPrev { border-top-left-radius: 0px; border-bottom-left-radius:0px; border-left:none; margin-right:10px;}
#statsContainer #calendar p { margin:2px;}
#statsContainer #calendar p span { float:left; display:block; padding:3px;}
#statsContainer .blocStats { background-color: #EBEDF4;border: 1px solid #C2C4D9; display: block; position:relative; padding: 10px;}
#statsContainer .blocStats h2 { font-weight:normal; margin:0;}
#statsContainer .blocStats h2.icon-statsproduct span,
#statsContainer .blocStats h2.icon-statsbestsuppliers span,
#statsContainer .blocStats h2.icon-statsforecast span,
#statsContainer .blocStats h2.icon-pagesnotfound span,
#statsContainer .blocStats h2.icon-sekeywords span,
#statsContainer .blocStats h2.icon-guide span,
#statsContainer .blocStats h2.icon-statsequipment span,
#statsContainer .blocStats h2.icon-statsvisits span,
#statsContainer .blocStats h2.icon-statssales span,
#statsContainer .blocStats h2.icon-statsregistrations span,
#statsContainer .blocStats h2.icon-statspersonalinfos span,
#statsContainer .blocStats h2.icon-statscatalog span,
#statsContainer .blocStats h2.icon-basket-delete span,
#statsContainer .blocStats h2.icon-statsbestcustomers span,
#statsContainer .blocStats h2.icon-statsorigin span,
#statsContainer .blocStats h2.icon-statsbestproducts span,
#statsContainer .blocStats h2.icon-statsbestvouchers span,
#statsContainer .blocStats h2.icon-statsbestcategories span,
#statsContainer .blocStats h2.icon-statscarrier span,
#statsContainer .blocStats h2.icon-statssearch span,
#statsContainer .blocStats h2.icon-statsstock span,
#statsContainer .blocStats h2.icon-conversion span,
#statsContainer .blocStats h2.icon-payment span,
#statsContainer .blocStats h2.icon-category span,
#statsContainer .blocStats h2.icon-currency span,
#statsContainer .blocStats h2.icon-language span,
#statsContainer .blocStats h2.icon-attribute span { background: transparent url(icon-sprites-title.png) no-repeat scroll left top; width:16px; height:16px; padding-right:18px; margin-right:3px;}
#statsContainer .blocStats h2.icon-statsproduct span { background-position :2px 2px;}
#statsContainer .blocStats h2.icon-statsforecast span { background-position :-18px 2px;}
#statsContainer .blocStats h2.icon-guide span { background-position :-36px 2px;}
#statsContainer .blocStats h2.icon-statsbestsuppliers span { background-position :-54px 2px;}
#statsContainer .blocStats h2.icon-pagesnotfound span { background-position :-72px 2px;}
#statsContainer .blocStats h2.icon-sekeywords span { background-position :-90px 2px;}
#statsContainer .blocStats h2.icon-statsequipment span { background-position :-108px 2px;}
#statsContainer .blocStats h2.icon-statsvisits span { background-position :-126px 2px;}
#statsContainer .blocStats h2.icon-statsregistrations span { background-position :-147px 2px;}
#statsContainer .blocStats h2.icon-statssales span { background-position : 0 -16px;}
#statsContainer .blocStats h2.icon-statspersonalinfos span { background-position : -18px -16px;}
#statsContainer .blocStats h2.icon-statscatalog span { background-position : -36px -16px;}
#statsContainer .blocStats h2.icon-category span { background-position : -36px -16px;}
#statsContainer .blocStats h2.icon-basket-delete span { background-position : -54px -16px;}
#statsContainer .blocStats h2.icon-statsbestcustomers span { background-position : -72px -16px;}
#statsContainer .blocStats h2.icon-statsorigin span { background-position : -90px -16px;}
#statsContainer .blocStats h2.icon-statsbestproducts span { background-position : -108px -16px;}
#statsContainer .blocStats h2.icon-statsbestvouchers span { background-position : -126px -16px;}
#statsContainer .blocStats h2.icon-statsbestcategories span { background-position : -147px -17px;}
#statsContainer .blocStats h2.icon-statscarrier span { background-position : 2px -36px;}
#statsContainer .blocStats h2.icon-statssearch span { background-position : -18px -36px;}
#statsContainer .blocStats h2.icon-statsstock span { background-position : -36px -36px;}
#statsContainer .blocStats h2.icon-conversion span { background-position : -54px -36px;}
#statsContainer .blocStats h2.icon-payment span { background-position : -72px -36px;}
#statsContainer .blocStats h2.icon-currency span { background-position : -90px -36px;}
#statsContainer .blocStats h2.icon-language span { background-position : -106px -36px;}
#statsContainer .blocStats h2.icon-attribute span { background-position : -126px -36px;}
#statsContainer .blocStats form { position:absolute; top:10px; right:5px;}
#statsContainer .blocStats form.checkup { position:relative; top:0; left:0;}
#statsContainer .totalStats { font-size:16px; font-weight:bold;}
/*MODULECONTAINER*/
#moduleContainer { margin-left:220px; padding:13px 0 0 20px;}
#moduleContainer .table tr th { height:40px;}
@@ -250,8 +363,8 @@ form#product_form, form#access_form, form#cart_rule_form { background-color:#e
#moduleContainer .moduleDesc .metadata dl dt, .moduleDesc .metadata dl dd { float:left; margin:0; padding:0;}
#moduleContainer .moduleDesc .metadata dl dd { padding-right:10px;}
#moduleContainer .moduleDesc .metadata dl dt { font-weight:bold; padding-right:5px;}
#moduleContainer .moduleDesc p.desc { color:#666; font-size:12px; display:block; clear:both;}
#moduleContainer .setup {background-color:#6db300; font-size:10px; color:#fff; text-transform:uppercase; position:relative; left:10px; padding:0px 4px; display: inline-block; border-radius:3px;}
#moduleContainer .moduleDesc p.desc { color:#666; font-family: Georgia; font-style: italic; font-size:12px; display:block; clear:both;}
#moduleContainer .setup {background-color:#6db300;font-size:10px; color:#fff; text-transform:uppercase; position:relative; left:10px; padding:0px 4px; display: inline-block; border-radius:3px;}
#moduleContainer .setup.non-install { background-color:#ec7000;}
#moduleContainer .setup.off{ background-color:#ccc;}
#moduleContainer .row-actions-module span { padding-right:5px;}
@@ -264,7 +377,26 @@ form#product_form, form#access_form, form#cart_rule_form { background-color:#e
#moduleContainer .moduleGridDesc h3 { color:#3A6EA7; margin:0;}
#moduleContainer ul.listing-grid-module li select { position:absolute; top:0; right:0px; }
/*MODULE POSITION*/
.blocLiveEdit { float:right; clear:right; background-color: #EBEDF4; border: 1px solid #C2C4D9;display: block; width:250px;}
.blocLiveEdit h2 { background: transparent url(live_edit.png) no-repeat scroll 10px 10px; height: 40px; line-height: 50px;margin: 0; padding: 0 10px; text-indent: 40px;}
.blocLiveEdit p { padding: 0 10px;}
.blocLiveEdit a.button {float: left; margin:10px; display: inline-block;}
#modulePosition { width:100%; float:left; clear:left; margin-right:270px;}
#modulePosition .table tr th { height:40px;}
#modulePosition form{ margin-right:270px;}
#modulePosition .lab_modules_positions h3 { color:#3A6EA7; margin:0 0 0 10px; float:left;}
#modulePosition .lab_modules_positions p { font-family:Georgia; font-style: italic; font-size:12px; padding-left:40px;}
#modulePosition .lab_modules_positions span { font-size:12px; padding-left:5px;}
select#show_modules { font-size:12px;}
/*FOOTER*/
#footer {height:40px; font-size:12px;clear:both;font-size:0.9em;color:#666666}
#footer .footer_link, #footer .footer_link:hover {color:#D41958;}
#footer .footerLeft { float:left; margin-left:10px;}
#footer .footerRight {float:right; margin-right:10px;}
#footer .footer_link, #footer .footer_link:hover { color:#268CCD;}

Binary file not shown.

After

Width:  |  Height:  |  Size: 703 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -26,7 +26,7 @@
{if $existingExport}
<div class="hint" style="display:block;">
{l s='The last export has been for this section:'}
{l s='The last export has been found for this section:'}
<a href="{$smarty.server.REQUEST_URI}&download={$type}">{l s='Click here'}</a>
</div>
<br />

View File

@@ -50,7 +50,8 @@
{foreach from=$shop_details['zones'] key=id_zone item=currentZone}
<label>{$currentZone['name']}</label>
<div class="margin-form">
<input type="text" name="zone_{$id_zone}" value="{$currentZone['account_number']}" />
<input type="text" name="zone_{$id_zone}" value="{$currentZone['account_number']|escape:htmlall}" />
</div>
{/foreach}
<div class="margin-form">
@@ -59,4 +60,4 @@
</form>
<div class="separation"></div>
</fieldset>
{/if}
{/if}

View File

@@ -1,2 +1,2 @@
<iframe frameborder="no" style="margin:0px;padding:0px;width:100%;height:920px" src="http://addons.prestashop.com/iframe/myaccount.php?parentUrl={$parentDomain}"></iframe>
<iframe frameborder="no" style="margin:0px;padding:0px;width:960px;height:920px" src="http://addons.prestashop.com/iframe/myaccount.php?parentUrl={$parentDomain}"></iframe>
<div class="clear">&nbsp;</div>

View File

@@ -67,7 +67,6 @@
{if $generate}
<div class="module_confirmation conf confirm">
<img src="../img/admin/ok.gif" alt="" title="" style="margin-right:5px; float:left;" />
{$combinations_size} {l s='product(s) successfully created.'}
</div>
{/if}
@@ -75,6 +74,28 @@
<form enctype="multipart/form-data" method="post" id="generator" action="{$url_generator}">
<fieldset style="margin-bottom: 35px;">
<legend><img src="../img/admin/asterisk.gif" />{l s='Attributes generator'}</legend>
<div style="float: left; margin-right:50px;">
<div>
<select multiple name="attributes[]" id="attribute_group" style="width: 200px; height: 350px; margin-bottom: 10px;">
{foreach $attribute_groups as $k => $attribute_group}
{if isset($attribute_js[$attribute_group['id_attribute_group']])}
<optgroup name="{$attribute_group['id_attribute_group']}" id="{$attribute_group['id_attribute_group']}" label="{$attribute_group['name']|escape:'htmlall':'UTF-8'}">
{foreach $attribute_js[$attribute_group['id_attribute_group']] as $k => $v}
<option name="{$k}" id="attr_{$k}" value="{$v|escape:'quotes':'UTF-8'}" title="{$v|escape:'quotes':'UTF-8'}">{$v|escape:'quotes':'UTF-8'}</option>
{/foreach}
</optgroup>
{/if}
{/foreach}
</select>
</div>
<div>
<p style="text-align: center;">
<input class="button" type="button" style="margin: 0 0 10px 20px;" value="{l s='Add'}" class="button" onclick="add_attr_multiple();" />
<input class="button" type="button" style="margin: 0 0 10px 20px;" value="{l s='Delete'}" class="button" onclick="del_attr_multiple();" /><br />
</p>
</div>
</div>
<br />
{l s='Add or modify attributes for product:'} <b>{$product_name}</b>
<br /><br />
<div style="padding-top:10px; float: left; width: 570px;">
@@ -119,28 +140,5 @@
{/foreach}
</div>
</div>
<div style="float: left; margin-left: 60px;">
<div>
<select multiple name="attributes[]" id="attribute_group" style="width: 200px; height: 350px; margin-bottom: 10px;">';
{$attribute_groups|@var_dump}
{foreach $attribute_groups as $k => $attribute_group}
{if isset($attribute_js[$attribute_group['id_attribute_group']])}
<optgroup name="{$attribute_group['id_attribute_group']}" id="{$attribute_group['id_attribute_group']}" label="{$attribute_group['name']|escape:'htmlall':'UTF-8'}">';
{foreach $attribute_js[$attribute_group['id_attribute_group']] as $k => $v}
<option name="{$k}" id="attr_{$k}" value="{$v|escape:'quotes':'UTF-8'}" title="{$v|escape:'quotes':'UTF-8'}">{$v|escape:'quotes':'UTF-8'}</option>
{/foreach}
</optgroup>
{/if}
{/foreach}
</select>
</div>
<div>
<p style="text-align: center;">
<input class="button" type="button" style="margin: 0 0 10px 20px;" value="{l s='Add'}" class="button" onclick="add_attr_multiple();" />
<input class="button" type="button" style="margin: 0 0 10px 20px;" value="{l s='Delete'}" class="button" onclick="del_attr_multiple();" /><br />
</p>
</div>
</div>
<br />
</fieldset>
</form>

View File

@@ -23,9 +23,27 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{extends file="helper/form/form.tpl"}
{block name=script}
{block name="label"}
{if $input.type == 'color'}
<div id="colorAttributeProperties" style="display:{if $colorAttributeProperties}block{else}none{/if}";>
{/if}
{if isset($input.label)}
<label>{$input.label} </label>
{/if}
{/block}
{block name="end_field_block"}
{if $input.type == 'text' && $input.name == 'texture'}
</div>
{/if}
</div>
{/block}
{block name="script"}
var attributesGroups = {ldelim}{$strAttributesGroups}{rdelim};
$('#id_attribute_group').change(function() {
var val = $(this).val();

View File

@@ -1,3 +1,19 @@
{if $show_toolbar}
<div class="toolbar-placeholder">
<div class="toolbarBox {if $toolbar_fix}toolbarHead{/if}">
{include file="toolbar.tpl" toolbar_btn=$toolbar_btn}
<div class="pageTitle">
<h3>
{block name=pageTitle}
<span id="current_obj" style="font-weight: normal;">{$title|default:'&nbsp;'}</span>
{/block}
</h3>
</div>
</div>
</div>
<div class="leadin">{block name="leadin"}{/block}</div>
{/if}
<div>
<div class="productTabs">
<ul class="tab">
@@ -33,8 +49,8 @@
</div>
<div class="separation"></div>
<div style="text-align:center">
<input type="submit" value="{l s='Save'}" class="button" name="submitAddcart_rule" />
<input type="submit" value="{l s='Save and stay'}" class="button" name="submitAddcart_ruleAndStay" />
<input type="submit" value="{l s='Save'}" class="button" name="submitAddcart_rule" id="{$table}_form_submit_btn" />
<!--<input type="submit" value="{l s='Save and stay'}" class="button" name="submitAddcart_ruleAndStay" id="" />-->
</div>
</form>
<script type="text/javascript">

View File

@@ -87,7 +87,7 @@
</a>
</td>
<td align="center">{displayWtPriceWithCurrency price=$product.price_wt currency=$currency}</td>
<td align="center" class="productQuantity">{$product.customizationQuantityTotal}</td>
<td align="center" class="productQuantity">{$product.customization_quantity}</td>
<td align="center" class="productQuantity">{$product.qty_in_stock}</td>
<td align="right">{displayWtPriceWithCurrency price=$product.total_customization_wt currency=$currency}</td>
</tr>
@@ -121,7 +121,7 @@
{/foreach}
{/if}
{if $product.cart_quantity > $product.customizationQuantityTotal}
{if $product.cart_quantity > $product.customization_quantity}
<tr>
<td align="center">{$product.image}</td>
<td>
@@ -132,7 +132,7 @@
</a>
</td>
<td align="center">{displayWtPriceWithCurrency price=$product.product_price currency=$currency}</td>
<td align="center" class="productQuantity">{math equation='x - y' x=$product.cart_quantity y=$product.customizationQuantityTotal}</td>
<td align="center" class="productQuantity">{math equation='x - y' x=$product.cart_quantity y=$product.customization_quantity}</td>
<td align="center" class="productQuantity">{$product.qty_in_stock}</td>
<td align="right">{displayWtPriceWithCurrency price=$product.product_total currency=$currency}</td>
</tr>

View File

@@ -0,0 +1,37 @@
{*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @version Release: $Revision: 8971 $
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{extends file="helper/form/form.tpl"}
{block name="end_field_block"}
{if ($input.name == 'groupBox')}
<p class="hint" style="display:block">
<span>{$input.info_introduction}</span><br />
<span>{$input.unidentified}</span><br />
<span>{$input.guest}</span><br />
<span>{$input.customer}</span><br />
</p><br /><br /><br /><br />
{/if}</div>
{/block}

View File

@@ -24,4 +24,6 @@
* International Registered Trademark & Property of PrestaShop SA
*}
{$content}
{if isset($content)}
{$content}
{/if}

View File

@@ -0,0 +1,107 @@
{*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @version Release: $Revision: 9432 $
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
</table>
{if $bulk_actions}
<p>
{if $bulk_actions|count > 1}
<select id="select_submitBulk" name="select_submitBulk">
{foreach $bulk_actions as $key => $params}
<option value="{$key}">{$params.text}</option>
{/foreach}
</select>
<input type="submit" class="button" name="submitBulk" id="submitBulk" value="{l s='Apply'}" />
{else}
{foreach $bulk_actions as $key => $params}
{if $key == 'affectzone'}
<select id="zone_to_affect" name="zone_to_affect">
{foreach $zones as $z}
<option value="{$z['id_zone']}">{$z['name']}</option>
{/foreach}
</select>
{/if}
<input type="submit" class="button" name="submitBulk{$key}{$table}" value="{$params.text}" {if isset($params.confirm)}onclick="return confirm('{$params.confirm}');"{/if} />
{/foreach}
{/if}
</p>
{/if}
</td>
</tr>
</table>
<input type="hidden" name="token" value="{$token}" />
</form>
<script type="text/javascript">
var confirmation = new Array();
{foreach $bulk_actions as $key => $params}
{if isset($params.confirm)}
confirmation['{$key}{$table}'] = "{$params.confirm}";
{/if}
{/foreach}
$(document).ready(function(){
{if $bulk_actions|count > 1}
$('#submitBulk').click(function(){
if (confirmation[$(this).val()])
return confirm(confirmation[$(this).val()]);
else
return true;
});
$('#select_submitBulk').change(function(){
if ($(this).val() == 'affectzone')
loadZones();
else if (loaded)
$('#zone_to_affect').fadeOut('slow');
});
{/if}
});
var loaded = false;
function loadZones()
{
if (!loaded)
{
$.ajax({
type: 'POST',
url: 'ajax.php',
data: 'getZones=true&token={$token}',
async : true,
cache: false,
dataType: 'json',
success: function(data) {
var html = $(data);
html.hide();
$('#select_submitBulk').after(html);
html.fadeIn('slow');
}
});
loaded = true;
}
else
{
$('#zone_to_affect').fadeIn('slow');
}
}
</script>

View File

@@ -0,0 +1,102 @@
{*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @version Release: $Revision: 9639 $
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{extends file="helper/list/list_header.tpl"}
{block name="override_header"}
<div id="CustomerThreadContacts">
{assign var=nb_categories value=count($categories)}
{foreach $categories as $key => $val}
{assign var=total_thread value=0}
{assign var=id_customer_thread value=0}
{foreach $contacts as $tmp => $tmp2}
{if $val.id_contact == $tmp2.id_contact}
{assign var=total_thread value=$tmp2.total}
{assign var=id_customer_thread value=$tmp2.id_customer_thread}
{/if}
{/foreach}
<div style="width:{if $nb_categories > 6}200{else}300{/if}px;">
<h3>&nbsp;{$val.name}</h3>
{if $nb_categories < 6}
<p>{$val.description}</p>
{/if}
{if $total_thread == 0}
<h4>{l s='No new message'}</h4>
{else}
<a href="{$currentIndex}&token={$token}&id_customer_thread={$id_customer_thread}&viewcustomer_thread" class="button">
{$total_thread}
{if $total_thread > 1}{l s='new messages'}{else}{l s='new message'}{/if}
</a>
{/if}
</div>
{/foreach}
<div id="MeaningStatus">
<h3>&nbsp;{l s='Meaning of status'}</h3>
<ul>
<li><img src="../img/admin/status_green.png" alt="{l s='Open'}">{l s='Open'}</li>
<li><img src="../img/admin/status_red.png" alt="{l s='Closed'}">{l s='Closed'}</li>
<li><img src="../img/admin/status_orange.png" alt="{l s='Pending 1'}">{l s='Pending 1'}</li>
<li><img src="../img/admin/status_orange.png" alt="{l s='Pending 2'}">{l s='Pending 2'}</li>
</ul>
</div>
<div id="CustomerService">
<table cellspacing="1" class="table">
<thead>
<tr>
<td colspan="2">{l s='Customer service'} : {l s='Statistics'}</td>
</tr>
</thead>
<tbody>
{assign var=count value=0}
{foreach $params as $key => $val}
{assign var=count value=$count+1}
<tr {if $count % 2 == 0}class="alt_row"{/if}>
<td>{$key}</td>
<td>{$val}</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
</div>
<p class="clear">&nbsp;</p>
{/block}

View File

@@ -0,0 +1,178 @@
{*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @version Release: $Revision: 8897 $
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{if !$email}
<fieldset style="margin-top:10px;{if !empty($message.employee_name)}background: rgb(255,236,242){/if}">
<legend {if !empty($message.employee_name)}style="background:rgb(255,210,225)"{/if}>
{if !empty($message.employee_name)}
<img src="../img/t/AdminCustomers.gif" alt="{$PS_SHOP_NAME}" />
{$PS_SHOP_NAME} - {$message.employee_name}
{else}
<img src="../img/admin/tab-customers.gif" alt="{$PS_SHOP_NAME}" />
{if !empty($message.id_customer)}
<a href="index.php?tab=AdminCustomers&id_customer={$message.id_customer}&viewcustomer&token={getAdminToken tab='AdminCustomers'}" title="{l s='View customer'}">
{$message.customer_name}
</a>
{else}
{$message.email}
{/if}
{/if}
</legend>
<div style="font-size:11px">
{if !empty($message.id_customer) && empty($message.employee_name)}
<b>{l s='Customer ID:'}</b>
<a href="index.php?tab=AdminCustomers&id_customer={$message.id_customer}&viewcustomer&token={getAdminToken tab='AdminCustomers'}" title="{l s='View customer'}">
{$message.id_customer} <img src="../img/admin/search.gif" alt="{l s='view'}" />
</a><br />
{/if}
<b>{l s='Sent on:'}</b> {$message.date_add}<br />
{if empty($message.employee_name)}
<b>{l s='Browser:'}</b> {$message.user_agent}<br />
{/if}
{if !empty($message.file_name) && $file_name}
<b>{l s='File attachment'}</b>
<a href="index.php?tab=AdminCustomerThreads&id_customer_thread={$message.id_customer_thread}&viewcustomer_thread&token={getAdminToken tab='AdminCustomerThreads'}&filename={$message.file_name}"
title="{l s='View file'}">
<img src="../img/admin/search.gif" alt="{l s='view'}" />
</a><br />
{/if}
{if !empty($message.id_order) && empty($message.employee_name)}
<b>{l s='Order #'}</b>
<a href="index.php?tab=AdminOrders&id_order={$message.id_order}&vieworder&token={getAdminToken tab='AdminOrders'}" title="{l s='View order'}">
{$message.id_order} <img src="../img/admin/search.gif" alt="{l s='view'}" />
</a><br />
{/if}
{if !empty($message.id_product) && empty($message.employee_name)}
<b>{l s='Product #'}</b>
<a href="index.php?tab=AdminOrders&id_order={$id_order_product}&vieworder&token={getAdminToken tab='AdminOrders'}" title="{l s='View order'}">
{$message.id_product} <img src="../img/admin/search.gif" alt="{l s='view'}" />
</a><br />
{/if}
<br />
<form action="{$current}&token={$token}&id_customer_thread={$message.id_customer_thread}&viewcustomer_thread" method="post">
<b>{l s='Subject:'}</b>
<input type="hidden" name="id_customer_message" value="{$message.id_customer_message}" />
<select name="id_contact" onchange="this.form.submit();">
{foreach $contacts as $contact}
<option value="{$contact.id_contact}" {if $contact.id_contact == $message.id_contact}selected="selected"{/if}>
{$contact.name}
</option>
{/foreach}
</select>
</form>
{else}
<div style="font-size:11px">
{if $id_employee}
<a href="{$current}&token={getAdminToken tab='AdminCustomerThreads'}&id_customer_thread={$message.id_customer_thread}&viewcustomer_thread">'.
{l s='View this thread'}
</a><br />
{/if}
<b>{l s='Sent by:'}</b>
{if !empty($message.customer_name)}
{$message.customer_name} ({$message.email})
{else}
{$message.email}
{/if}
{if !empty($message.id_customer) && empty($message.employee_name)}
<br /><b>{l s='Customer ID:'}</b> {$message.id_customer}<br />
{/if}
{if !empty($message.id_order) && empty($message.employee_name)}
<br /><b>{l s='Order #'}:</b> {$message.id_order}<br />
{/if}
{if !empty($message.id_product) && empty($message.employee_name)}
<br /><b>{l s='Product #'}:</b> {$message.id_product}<br />
{/if}
<br /><b>{l s='Subject:'}</b> {$message.subject}
{/if}
<br /><br />
<b>{l s='Thread ID:'}</b> {$message.id_customer_thread}<br />
<b>{l s='Message ID:'}</b> {$message.id_customer_message}<br />
<b>{l s='Message:'}</b><br />
{$message.message}
</div>
{if !$email}
{if empty($message.employee_name)}
<p style="text-align:right">
<button style="font-family: Verdana; font-size: 11px; font-weight:bold; height: 65px; width: 120px;"
onclick="$('#reply_to_{$message.id_customer_message}').show(500); $(this).hide();">
<img src="../img/admin/contact.gif" alt="" style="margin-bottom: 5px;" /><br />{l s='Reply to this message'}
</button>
</p>
{/if}
<div id="reply_to_{$message.id_customer_message}" style="display: none; margin-top: 20px;"">
<form action="{$current}&token={getAdminToken tab='AdminCustomerThreads'}&id_customer_thread={$message.id_customer_thread}&viewcustomer_thread" method="post" enctype="multipart/form-data">
<p>{l s='Please type your reply below:'}</p>
<textarea style="width: 450px; height: 175px;" name="reply_message">'.
{$PS_CUSTOMER_SERVICE_SIGNATURE}
</textarea>
<div style="width: 450px; text-align: right; font-style: italic; font-size: 9px; margin-top: 2px;">
{l s='Your reply will be sent to:'} {$message.email}
</div>
<div style="width: 450px; margin-top: 0px;">
<input type="file" name="joinFile"/>
<div>
<div style="width: 450px; text-align: center;">
<input type="submit" class="button" name="submitReply" value="{l s='Send my reply'}" style="margin-top:20px;" />
<input type="hidden" name="id_customer_thread" value="{$message.id_customer_thread}" />
<input type="hidden" name="msg_email" value="{$message.email}" />
</div>
</form>
</div>
</fieldset>
{/if}
</div>
</fieldset>

View File

@@ -0,0 +1,171 @@
{*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @version Release: $Revision: 8897 $
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{extends file="helper/view/view.tpl"}
{block name="override_tpl"}
<form action="{$current}&token={$token}&viewcustomer_thread&id_customer_thread={$id_customer_thread}" method="post" enctype="multipart/form-data">
<fieldset>
<div id="ChangeStatus">
<select onchange="quickSelect(this);">
<option value="0">{l s='Change status of message:'}</option>
{foreach $actions as $action}
<option value="{$action.href}">&gt; {$action.name}</option>
{/foreach}
</select>
</div>
<p>
<img src="../img/admin/msg-forward.png" alt="" style="vertical-align: middle;" />
{l s='Forward this discussion to an employee:'}
<select name="id_employee_forward" style="vertical-align: middle;">
<option value="-1">{l s='-- Choose --'}</option>
{foreach $employees as $employee}
<option value="{$employee.id_employee}"> {$employee.firstname|substr:0:1}. {$employee.lastname}</option>
{/foreach}
<option value="0">{l s='Someone else'}</option>
</select>
</p>
<div id="message_forward_email" style="display:none">
<b>{l s='E-mail'}</b> <input type="text" name="email" />
</div>
<div id="message_forward" style="display:none;margin-bottom:10px">
<textarea name="message_forward" style="width:500px;height:80px;margin-top:15px;">{l s='You can add a comment here.'}</textarea><br />
<input type="Submit" name="submitForward" class="button" value="{l s='Forward this discussion'}" style="margin-top: 10px;" />
</div>
</fieldset>
</form>
<div class="clear">&nbsp;</div>
{if $thread->id_customer}
<div style="float:right;margin-left:20px;">
{if $orders && count($orders)}
{if $count_ok}
<div>
<h2>{l s='Orders'}</h2>
<table cellspacing="0" cellpadding="0" class="table float">
<tr>
<th class="center">{l s='ID'}</th>
<th class="center">{l s='Date'}</th>
<th class="center">{l s='Products'}</th>
<th class="center">{l s='Total paid'}</th>
<th class="center">{l s='Payment'}</th>
<th class="center">{l s='State'}</th>
<th class="center">{l s='Actions'}</th>
</tr>
{assign var=irow value=0}
{foreach $orders_ok as $order}
<tr {if $irow++ % 2}class="alt_row"{/if} style="cursor: pointer"
onclick="document.location='?tab=AdminOrders&id_order={$order.id_order}&vieworder&token={getAdminToken tab='AdminOrders'}">
<td class="center">{$order.id_order}</td>
<td>{$order.date_add}</td>
<td align="right">{$order.nb_products}</td>
<td align="right">{$order.total_paid_real}</td>
<td>{$order.payment}</td>
<td>{$order.order_state}</td>
<td align="center">
<a href="?tab=AdminOrders&id_order={$order.id_order}&vieworder&token={getAdminToken tab='AdminOrders'}">
<img src="../img/admin/details.gif" />
</a>
</td>
</tr>
{/foreach}
</table>
<h3 style="color:green;font-weight:700;margin-top:10px">
{l s='Validated Orders:'} {$count_ok} {l s='for'} {$total_ok}
</h3>
</div>
{/if}
{/if}
{if $products && count($products)}
<div>
<h2>{l s='Products'}</h2>
<table cellspacing="0" cellpadding="0" class="table">
<tr>
<th class="center">{l s='Date'}</th>
<th class="center">{l s='ID'}</th>
<th class="center">{l s='Name'}</th>
<th class="center">{l s='Quantity'}</th>
<th class="center">{l s='Actions'}</th>
</tr>
{assign var=irow value=0}
{foreach $products as $product}
<tr {if $irow++ % 2}class="alt_row"{/if} style="cursor: pointer"
onclick="document.location = '?tab=AdminOrders&id_order={$product.id_order}&vieworder&token={getAdminToken tab='AdminOrders'}'">
<td>{$product.date_add}</td>
<td>{$product.product_id}</td>
<td>{$product.product_name}</td>
<td align="right">{$product.product_quantity}</td>
<td align="center">
<a href="?tab=AdminOrders&id_order={$product.id_order}&vieworder&token={getAdminToken tab='AdminOrders'}">
<img src="../img/admin/details.gif" />
</a>
</td>
</tr>
{/foreach}
</table>
</div>
{/if}
</div>
{/if}
<div style="margin-top:10px">
{foreach $messages as $message}
{$message}
{/foreach}
</div>
<div class="clear">&nbsp;</div>
<script type="text/javascript">
$(document).ready(function(){
$('select[name=id_employee_forward]').change(function(){
if ($(this).val() >= 0)
$('#message_forward').show(400);
else
$('#message_forward').hide(200);
if ($(this).val() == 0)
$('#message_forward_email').show(200);
else
$('#message_forward_email').hide(200);
});
$('teaxtrea[name=message_forward]').click(function(){
if($(this).val() == '{l s='You can add a comment here.'}')
{
$(this).val('');
}
});
});
</script>
{/block}

View File

@@ -29,13 +29,13 @@
{if $display_footer}
{$HOOK_FOOTER}
<div id="footer">
<div style="float:left;margin-left:10px;padding-top:6px">
<a href="http://www.prestashop.com/" target="_blank" style="font-weight:700;color:#666666">PrestaShop&trade; {$ps_version}</a><br />
<span style="font-size:10px">{l s='Load time: '}{$end_time}s</span>
<div class="footerLeft">
<a href="http://www.prestashop.com/" target="_blank">PrestaShop&trade; {$ps_version}</a><br />
<span>{l s='Load time: '}{$end_time}s</span>
</div>
<div style="float:right;height:40px;margin-right:10px;line-height:38px;vertical-align:middle">
<div class="footerRight">
{if $iso_is_fr}
<span style="color: #812143; font-weight: bold;">Questions / Renseignements / Formations :</span> <strong>+33 (0)1.40.18.30.04</strong> de 09h &agrave; 18h
<span>Questions / Renseignements / Formations :</span> <strong>+33 (0)1.40.18.30.04</strong> de 09h &agrave; 18h
{/if}
|&nbsp;<a href="http://www.prestashop.com/en/contact_us/" target="_blank" class="footer_link">{l s='Contact'}</a>
|&nbsp;<a href="http://forge.prestashop.com" target="_blank" class="footer_link">{l s='Bug Tracker'}</a>
@@ -48,5 +48,6 @@
{* ajaxBox allows*}
<div id="ajaxBox" style="display:none"></div>
{/if}
<div id="scrollTop"><a href="#top"></a></div>
</body>
</html>

View File

@@ -27,14 +27,34 @@
{block name=script}
function toggleShareOrders() {
var disabled_customer = ($('#share_customer_on').attr('checked')) ? false : true;
var disabled_stock = ($('#share_stock_on').attr('checked')) ? false : true;
if (disabled_customer || disabled_stock)
{
$("input[name=share_order]").each(function(i) {
$(this).attr('disabled', 'disabled');
});
$('#share_order_off').attr('checked', true);
}
else
{
$('input[name=share_order]').attr('disabled', '');
}
}
$(document).ready(function() {
$('input[name=share_order]').attr('disabled', true);
toggleShareOrders();
$('input[name=share_customer]').click(function()
{
var disabled = ($('input[name=share_customer]').attr('checked')) ? false : true;
$('input[name=share_order]').attr('disabled', disabled);
if (disabled)
$('#share_order_off').attr('checked', true);
toggleShareOrders();
});
$('input[name=share_stock]').click(function()
{
toggleShareOrders();
});
$('#useImportData').click(function() {

View File

@@ -29,7 +29,7 @@
{block name="override_tpl"}
<fieldset style="width: 400px">
<span style="font-weight: bold; font-size: 14px;">{l s='Name:'}</span>
<span style="font-weight: bold; font-size: 14px;">{l s='Name:'}</span> {$group->name[$language->id]}
<div class="clear">&nbsp;</div>
<span style="font-weight: bold; font-size: 14px;">{l s='Discount:'}</span> {$group->reduction} {l s='%'}
<div class="clear">&nbsp;</div>
@@ -54,6 +54,8 @@
{l s='Tax included'}
{/if}
<div class="clear">&nbsp;</div>
<span style="font-weight: bold; font-size: 14px;">{l s='Show prices:'}</span> {if $group->show_prices}{l s='Yes'}{else}{l s='No'}{/if}
<div class="clear">&nbsp;</div>
</fieldset>
<h2>{l s='Customer members of this group'}</h2>
{$customerList}

View File

@@ -64,6 +64,7 @@
var see_msg = '{l s='Click here to see that message'}';
var token_admin_orders = '{getAdminToken tab='AdminOrders'}';
var token_admin_customers = '{getAdminToken tab='AdminCustomers'}';
var token_admin_customer_threads = '{getAdminToken tab='AdminCustomerThreads'}';
</script>
{/if}
@@ -83,7 +84,7 @@
{$HOOK_HEADER}
{/if}
<!--[if IE]>
<link type="text/css" rel="stylesheet" href="'._PS_CSS_DIR_.'admin-ie.css" />
<link type="text/css" rel="stylesheet" href="{$base_url}css/admin-ie.css" />
<![endif]-->
<style type="text/css">
div#header_infos, div#header_infos a#header_shopname, div#header_infos a#header_logout, div#header_infos a#header_foaccess {
@@ -91,7 +92,7 @@
}
</style>
</head>
<body {if $bo_color} style="background:{$bo_color}" {/if}>
<body{if $bo_color} style="background:{$bo_color}"{/if}>
{if $display_header}
<div id="top_container">
<div id="container">
@@ -126,15 +127,15 @@
</div>
{/if}
{if {$show_new_messages} == 1}
<div id="messages_notif" class="notifs">
<span id="messages_notif_number_wrapper" class="number_wrapper">
<span id="messages_notif_value">0</span>
<div id="customer_messages_notif" class="notifs">
<span id="customer_messages_notif_number_wrapper" class="number_wrapper">
<span id="customer_messages_notif_value">0</span>
</span>
<div id="messages_notif_wrapper" class="notifs_wrapper">
<div id="customer_messages_notif_wrapper" class="notifs_wrapper">
<h3>{l s='Last messages'}</h3>
<p class="no_notifs">{l s='No new messages posted on your shop'}</p>
<ul id="list_messages_notif"></ul>
<p><a href="index.php?controller=AdminMessages&token={getAdminToken tab='AdminMessages'}">{l s='Show all messages'}</a></p>
<ul id="list_customer_messages_notif"></ul>
<p><a href="index.php?tab=AdminCustomerThreads&token={getAdminToken tab='AdminCustomerThreads'}">{l s='Show all messages'}</a></p>
</div>
</div>
{/if}
@@ -151,18 +152,18 @@
</span>
<div id="header_search">
<form method="post" action="index.php?controller=AdminSearch&token={getAdminToken tab='AdminSearch'}">
<input type="text" name="bo_query" id="bo_query" value="{$bo_query}" />
<select name="bo_search_type" id="bo_search_type">
<select name="bo_search_type" id="bo_search_type">
<option value="0">{l s='everywhere'}</option>
<option value="1" {if {$search_type} == 1} selected="selected" {/if}>{l s='catalog'}</option>
<optgroup label="{l s='customers'}:">
<option value="2" {if {$search_type} == 2} selected="selected" {/if}>{l s='by name'}</option>
<option value="6" {if {$search_type} == 6} selected="selected" {/if}>{l s='by ip address'}</option>
<option value="2" {if {$search_type} == 2} selected="selected" {/if}>{l s='by name'}</option>
<option value="6" {if {$search_type} == 6} selected="selected" {/if}>{l s='by ip address'}</option>
</optgroup>
<option value="3" {if {$search_type} == 3} selected="selected" {/if}>{l s='orders'}</option>
<option value="4" {if {$search_type} == 4} selected="selected" {/if}>{l s='invoices'}</option>
<option value="5" {if {$search_type} == 5} selected="selected" {/if}>{l s='carts'}</option>
</select>
<input type="text" name="bo_query" id="bo_query" value="{$bo_query}" />
<input type="submit" id="bo_search_submit" class="button" value="{l s='Search'}"/>
</form>
</div>

View File

@@ -0,0 +1,131 @@
{*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @version Release: $Revision$
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<script type="text/javascript">
$().ready(function() {
// Click on "all shop"
$('.input_all_shop').live('click', function() {
var checked = $(this).attr('checked');
$('.input_group_shop').attr('checked', checked);
$('.input_shop').attr('checked', checked);
});
// Click on a group shop
$('.input_group_shop').live('click', function() {
$('.input_shop[value='+$(this).val()+']').attr('checked', $(this).attr('checked'));
check_all_shop();
});
// Click on a shop
$('.input_shop').live('click', function() {
check_group_shop_status($(this).val());
check_all_shop();
});
// Initialize checkbox
$('.input_shop').each(function(k, v) {
check_group_shop_status($(v).val());
check_all_shop();
});
});
function check_group_shop_status(id_group) {
var groupChecked = true;
$('.input_shop[value='+id_group+']').each(function(k, v) {
if (!$(v).attr('checked'))
groupChecked = false;
});
$('.input_group_shop[value='+id_group+']').attr('checked', groupChecked);
}
function check_all_shop() {
var allChecked = true;
$('.input_group_shop').each(function(k, v) {
if (!$(v).attr('checked'))
allChecked = false;
});
$('.input_all_shop').attr('checked', allChecked);
}
</script>
<div class="assoShop">
<table class="table" cellpadding="0" cellspacing="0" width="100%">
<tr>
<th>{if $input.type == 'group_shop'}{l s='Group shop'}{else}{l s='Shop'}{/if}</th>
</tr>
<tr {if $input.type == 'group_shop'}class="alt_row"{/if}>
<td>
<label class="t"><input class="input_all_shop" type="checkbox" /> {if $input.type == 'group_shop'}{l s='All group shops'}{else}{l s='All shops'}{/if}</label>
</td>
</tr>
{foreach $input.values as $groupID => $groupData}
{if ($input.type == 'group_shop' && (isset($fields_value.shop[$groupID]) || !$form_id))}
{assign var=groupChecked value=true}
{else}
{assign var=groupChecked value=false}
{/if}
<tr {if $input.type == 'shop'}class="alt_row"{/if}>
<td>
<img style="vertical-align:middle;" alt="" src="../img/admin/lv2_b.gif" />
<label class="t">
<input class="input_group_shop"
type="checkbox"
name="checkBoxGroupShopAsso_{$table}[{$form_id}|intval][{$groupID|intval}]"
value="{$groupID}"
{if $groupChecked} checked="checked"{/if} />
{$groupData['name']}
</label>
</td>
</tr>
{if $input.type == 'shop'}
{assign var=j value=0}
{foreach $groupData['shops'] as $shopID => $shopData}
{if (isset($fields_value.shop[$shopID]) || !$form_id)}
{assign var=checked value=true}
{else}
{assign var=checked value=false}
{/if}
<tr>
<td>
<img style="vertical-align:middle;" alt="" src="../img/admin/lv3_{if $j < count($groupData['shops']) - 1}b{else}f{/if}.png" />
<label class="child">
<input class="input_shop"
type="checkbox"
value="{$groupID}"
name="checkBoxShopAsso_{$table}[{$form_id|intval}][{$shopID|intval}]"
id="checkedBox_{$shopID}"
{if $checked} checked="checked"{/if} />
{$shopData['name']}
</label>
</td>
</tr>
{assign var=j value=$j+1}
{/foreach}
{/if}
{/foreach}
</table>
</div>

View File

@@ -27,7 +27,7 @@
{if $show_toolbar}
<div class="toolbar-placeholder">
<div class="toolbarBox {if $toolbar_fix}toolbarHead{/if}">
{include file="toolbar.tpl" toolbar_btn=$toolbar_btn}
{include file="toolbar.tpl"}
<div class="pageTitle">
<h3>
{block name=pageTitle}
@@ -42,7 +42,7 @@
{if isset($fields.title)}<h2>{$fields.title}</h2>{/if}
{block name="defaultForm"}
<form id="{$table}_form" class="defaultForm" action="{$current}&{$submit_action}=1&token={$token}" method="post" enctype="multipart/form-data" {if isset($style)}style="{$style}"{/if}>
<form id="{$table}_form" class="defaultForm {$name_controller}" action="{$current}&{$submit_action}=1&token={$token}" method="post" enctype="multipart/form-data" {if isset($style)}style="{$style}"{/if}>
{if $form_id}
<input type="hidden" name="id_{$table}" id="id_{$table}" value="{$form_id}" />
{/if}
@@ -94,10 +94,9 @@
name="{$input.name}_{$language.id_lang}"
id="{if isset($input.id)}{$input.id}_{$language.id_lang}{else}{$input.name}_{$language.id_lang}{/if}"
value="{$fields_value[$input.name][$language.id_lang]}"
class="{if $input.type == 'tags'}tagify {/if}"
class="{if $input.type == 'tags'}tagify {/if}{if isset($input.class)}{$input.class}{/if}"
{if isset($input.size)}size="{$input.size}"{/if}
{if isset($input.maxlength)}maxlength="{$input.maxlength}"{/if}
{if isset($input.class)}class="{$input.class}"{/if}
{if isset($input.readonly) && $input.readonly}readonly="readonly"{/if}
{if isset($input.disabled) && $input.disabled}disabled="disabled"{/if} />
{if isset($input.hint)}<span class="hint" name="help_box">{$input.hint}<span class="hint-pointer">&nbsp;</span></span>{/if}
@@ -158,7 +157,7 @@
{else}
{if $fields_value[$input.name] == $option[$input.options.options.id]}selected="selected"{/if}
{/if}
>{$option[$input.options.options.name]|escape:'htmlall':'UTF-8'}</option>
>{$option[$input.options.options.name]}</option>
{/foreach}
</optgroup>
{/foreach}
@@ -172,7 +171,7 @@
{else}
{if $fields_value[$input.name] == $option[$input.options.id]}selected="selected"{/if}
{/if}
>{$option[$input.options.name]|escape:'htmlall':'UTF-8'}</option>
>{$option[$input.options.name]}</option>
{/foreach}
{/if}
</select>
@@ -259,7 +258,7 @@
{assign var=groups value=$input.values}
{include file='helper/form/form_group.tpl'}
{elseif $input.type == 'shop' OR $input.type == 'group_shop'}
{include file='helper/form/form_shop.tpl' input=$input fields_value=$fields_value}
{include file='helper/assoshop.tpl' input=$input fields_value=$fields_value}
{elseif $input.type == 'categories'}
{include file='helper/form/form_category.tpl' categories=$input.values}
{elseif $input.type == 'asso_shop' && isset($asso_shop) && $asso_shop}
@@ -283,9 +282,9 @@
{elseif $input.type == 'free'}
{$fields_value[$input.name]}
{/if}
{if isset($input.required) && $input.required} <sup>*</sup>{/if}
{if isset($input.required) && $input.required && $input.type != 'radio'} <sup>*</sup>{/if}
{if isset($input.desc)}
<p class="clear">
<p class="preference_description">
{if is_array($input.desc)}
{foreach $input.desc as $p}
{if is_array($p)}
@@ -299,7 +298,7 @@
{/if}
</p>
{/if}
{if isset($languages)}<div class="clear"></div>{/if}
{if isset($input.lang) && isset($languages)}<div class="clear"></div>{/if}
{block name="end_field_block"}</div>{/block}
{/if}
{if $input.name == 'id_state'}

View File

@@ -27,18 +27,24 @@
<script type="text/javascript">
var inputName = '{$categories.input_name}';
var use_radio = {if $categories.use_radio}1{else}0{/if};
var selectedCat = '{$categories.selected_cat}';
var selectedCat = '{implode value=$categories.selected_cat}';
var selectedLabel = '{$categories.trads.selected}';
var home = '{$categories.trads.Home}';
var use_radio = {if $categories.use_radio}1{else}0{/if};
$(document).ready(function(){
buildTreeView();
});
</script>
<div style="background-color:#F4E6C9; width:99%;padding:5px 0 5px 5px;">
<a href="#" id="collapse_all" >{$categories.trads['Collapse All']}</a>
- <a href="#" id="expand_all" >{$categories.trads['Expand All']}</a>
<div class="category-filter">
<span><a href="#" id="collapse_all" >{$categories.trads['Collapse All']}</a>
|</span>
<span><a href="#" id="expand_all" >{$categories.trads['Expand All']}</a>
{if !$categories.use_radio}
- <a href="#" id="check_all" >{$categories.trads['Check All']}</a>
- <a href="#" id="uncheck_all" >{$categories.trads['Uncheck All']}</a>
|</span>
<span></span><a href="#" id="check_all" >{$categories.trads['Check All']}</a>
|</span>
<span></span><a href="#" id="uncheck_all" >{$categories.trads['Uncheck All']}</a></span>
{/if}
{if $categories.use_search}
<span style="margin-left:20px">
@@ -75,7 +81,7 @@
value="1"
{if $home_is_selected}checked{/if}
onclick="clickOnCategoryBox($(this));" />
{$categories.trads.Home}
{$categories.trads.Home}
</span>
<ul>
<li><span class="placeholder">&nbsp;</span></li>

View File

@@ -1,131 +0,0 @@
{*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @version Release: $Revision: 8971 $
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<script type="text/javascript">
$().ready(function() {ldelim}
// Click on "all shop"
$('.input_all_shop').click(function() {ldelim}
var checked = $(this).attr('checked');
$('.input_group_shop').attr('checked', checked);
$('.input_shop').attr('checked', checked);
{rdelim});
// Click on a group shop
$('.input_group_shop').click(function() {ldelim}
$('.input_shop[value='+$(this).val()+']').attr('checked', $(this).attr('checked'));
check_all_shop();
{rdelim});
// Click on a shop
$('.input_shop').click(function() {ldelim}
check_group_shop_status($(this).val());
check_all_shop();
{rdelim});
// Initialize checkbox
$('.input_shop').each(function(k, v) {ldelim}
check_group_shop_status($(v).val());
check_all_shop();
{rdelim});
{rdelim});
function check_group_shop_status(id_group) {ldelim}
var groupChecked = true;
$('.input_shop[value='+id_group+']').each(function(k, v) {ldelim}
if (!$(v).attr('checked'))
groupChecked = false;
{rdelim});
$('.input_group_shop[value='+id_group+']').attr('checked', groupChecked);
{rdelim}
function check_all_shop() {ldelim}
var allChecked = true;
$('.input_group_shop').each(function(k, v) {ldelim}
if (!$(v).attr('checked'))
allChecked = false;
{rdelim});
$('.input_all_shop').attr('checked', allChecked);
{rdelim}
</script>
<div class="assoShop">
<table class="table" cellpadding="0" cellspacing="0" width="100%">
<tr>
<th>{if $input.type == 'group_shop'}{l s='Group shop'}{else}{l s='Shop'}{/if}</th>
</tr>
<tr {if $input.type == 'group_shop'}class="alt_row"{/if}>
<td>
<label class="t"><input class="input_all_shop" type="checkbox" /> {if $input.type == 'group_shop'}{l s='All group shops'}{else}{l s='All shops'}{/if}</label>
</td>
</tr>
{foreach $input.values as $groupID => $groupData}
{if ($input.type == 'group_shop' && ((isset($fields_value.shop[$groupID]) && in_array($form_id, $fields_value.shop[$groupID])) || !$form_id))}
{assign var=groupChecked value=true}
{else}
{assign var=groupChecked value=false}
{/if}
<tr {if $input.type == 'shop'}class="alt_row"{/if}>
<td>
<img style="vertical-align:middle;" alt="" src="../img/admin/lv2_b.gif" />
<label class="t">
<input class="input_group_shop"
type="checkbox"
name="checkBoxGroupShopAsso_{$table}_{$form_id}_{$groupID}"
value="{$groupID}"
{if $groupChecked} checked="checked"{/if} />
{$groupData['name']}
</label>
</td>
</tr>
{if $input.type == 'shop'}
{assign var=j value=0}
{foreach $groupData['shops'] as $shopID => $shopData}
{if ((isset($fields_value.shop[$shopID]) && in_array($form_id, $fields_value.shop[$shopID])) || !$form_id)}
{assign var=checked value=true}
{else}
{assign var=checked value=false}
{/if}
<tr>
<td>
<img style="vertical-align:middle;" alt="" src="../img/admin/lv3_{if $j < count($groupData['shops']) - 1}b{else}f{/if}.png" />
<label class="child">
<input class="input_shop"
type="checkbox"
value="{$groupID}"
name="checkBoxShopAsso_{$table}_{$form_id}_{$shopID}"
id="checkedBox_{$shopID}"
{if $checked} checked="checked"{/if} />
{$shopData['name']}
</label>
</td>
</tr>
{assign var=j value=$j+1}
{/foreach}
{/if}
{/foreach}
</table>
</div>

View File

@@ -23,5 +23,6 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<a href="{$href}">
<img src="../img/admin/add_stock.png" alt="{$action}" title="{$action}" /></a>
<a href="{$href}" title="{$action}">
<img src="../img/admin/add_stock.png" alt="{$action}" />
</a>

View File

@@ -0,0 +1,28 @@
{*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @version Release: $Revision: 9197 $
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<a href="{$href}" title="{$action}">
<img src="../img/admin/asterisk.gif" alt="{$action}" />
</a>

View File

@@ -23,5 +23,6 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<a href="{$href}" onclick="return confirm('{$confirm}');">
<img src="../img/admin/delete.gif" alt="{$action}" title="{$action}" /></a>
<a href="{$href}" onclick="return confirm('{$confirm}');" title="{$action}">
<img src="../img/admin/delete.gif" alt="{$action}" />
</a>

View File

@@ -55,6 +55,10 @@ $(document).ready(function() {
.attr('colspan', $('#details_{$id}').parent().parent().find('td').length)));
$.each(data.data, function(it, row)
{
var bg_color = ''; // Color
if (row.color)
bg_color = 'style="background:' + row.color +';"';
var content = $('<tr class="action_details details_{$id} '+(alt_row ? 'alt_row' : '')+'"></tr>');
content.append($('<td class="empty"></td>'));
var first = true;
@@ -69,9 +73,9 @@ $(document).ready(function() {
if (typeof(row[it]) == 'undefined')
{
if (first || count == 0)
content.append($('<td class="'+this.align+' empty"></td>'));
content.append($('<td class="'+this.align+' empty"' + bg_color + '></td>'));
else
content.append($('<td class="'+this.align+'"></td>'));
content.append($('<td class="'+this.align+'"' + bg_color + '></td>'));
}
else
{
@@ -79,12 +83,12 @@ $(document).ready(function() {
if (first)
{
first = false;
content.append($('<td class="'+this.align+' first">'+row[it]+'</td>'));
content.append($('<td class="'+this.align+' first"' + bg_color + '>'+row[it]+'</td>'));
}
else if (count == 0)
content.append($('<td class="'+this.align+' last">'+row[it]+'</td>'));
content.append($('<td class="'+this.align+' last"' + bg_color + '>'+row[it]+'</td>'));
else
content.append($('<td class="'+this.align+' '+count+'">'+row[it]+'</td>'));
content.append($('<td class="'+this.align+' '+count+'"' + bg_color + '>'+row[it]+'</td>'));
}
});
content.append($('<td class="empty"></td>'));
@@ -123,6 +127,6 @@ $(document).ready(function() {
});
});
</script>
<a href="#" id="details_{$id}">
<img src="../img/admin/more.png" alt="{$action}" title="{$action}" />
<a class="pointer" id="details_{$id}" title="{$action}">
<img src="../img/admin/more.png" alt="{$action}" />
</a>

View File

@@ -23,5 +23,6 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<a class="pointer" onclick="if (confirm('{$confirm}')) document.location = '{$location_ok}'; else document.location = '{$location_ko}';">
<img src="../img/admin/duplicate.png" alt="{$action}" title="{$action}" /></a>
<a class="pointer" title="{$action}" onclick="if (confirm('{$confirm}')) document.location = '{$location_ok}'; else document.location = '{$location_ko}';">
<img src="../img/admin/duplicate.png" alt="{$action}" />
</a>

View File

@@ -23,6 +23,6 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<a href="{$href}" class="edit">
<img src="../img/admin/edit.gif" alt="{$action}" title="{$action}" />
<a href="{$href}" class="edit" title="{$action}">
<img src="../img/admin/edit.gif" alt="{$action}" />
</a>

View File

@@ -24,7 +24,6 @@
* International Registered Trademark & Property of PrestaShop SA
*}
<a href="{$url_enable}" {if isset($confirm)}onclick="return confirm('{$confirm}');"{/if}>
<img src="../img/admin/{if $enabled}enabled.gif{else}disabled.gif{/if}"
alt="{if $enabled}{l s='Enabled'}{else}{l s='Disabled'}{/if}" title="{if $enabled}{l s='Enabled'}{else}{l s='Disabled'}{/if}" />
<a href="{$url_enable}" {if isset($confirm)}onclick="return confirm('{$confirm}');"{/if} title="{if $enabled}{l s='Enabled'}{else}{l s='Disabled'}{/if}">
<img src="../img/admin/{if $enabled}enabled.gif{else}disabled.gif{/if}" alt="{if $enabled}{l s='Enabled'}{else}{l s='Disabled'}{/if}" />
</a>

View File

@@ -23,5 +23,6 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<a href="{$href}">
<img src="../img/admin/remove_stock.png" alt="{$action}" title="{$action}" /></a>
<a href="{$href}" title="{$action}">
<img src="../img/admin/remove_stock.png" alt="{$action}" />
</a>

View File

@@ -23,5 +23,6 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<a href="{$href}">
<img src="../img/admin/delivery.gif" alt="{$action}" title="{$action}" /></a>
<a href="{$href}" title="{$action}">
<img src="../img/admin/delivery.gif" alt="{$action}" />
</a>

View File

@@ -23,5 +23,6 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<a href="{$href}">
<img src="../img/admin/cms.gif" alt="{$action}" title="{$action}" /></a>
<a href="{$href}" title="{$action}">
<img src="../img/admin/cms.gif" alt="{$action}" />
</a>

View File

@@ -0,0 +1,28 @@
{*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @version Release: $Revision$
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<a href="{$href}" onclick="return confirm('{$confirm}');" title="{$action}">
<img src="../img/admin/copy_files.gif" alt="{$action}" />
</a>

View File

@@ -23,5 +23,6 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<a href="{$href}">
<img src="../img/admin/delivery.gif" alt="{$action}" title="{$action}" /></a>
<a href="{$href}" title="{$action}">
<img src="../img/admin/delivery.gif" alt="{$action}" />
</a>

View File

@@ -23,5 +23,6 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<a href="{$href}">
<img src="../img/admin/transfer_stock.png" alt="{$action}" title="{$action}" /></a>
<a href="{$href}" title="{$action}">
<img src="../img/admin/transfer_stock.png" alt="{$action}" />
</a>

View File

@@ -23,5 +23,6 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<a href="{$href}">
<img src="../img/admin/details.gif" alt="{$action}" title="{$action}" /></a>
<a href="{$href}" title="{$action}" >
<img src="../img/admin/details.gif" alt="{$action}" />
</a>

View File

@@ -51,7 +51,7 @@
{if isset($params.position) && $order_by == 'position'} dragHandle{/if}
{if isset($params.align)} {$params.align}{/if}"
{if (!isset($params.position) && !$no_link)}
{if (!isset($params.position) && !$no_link && !isset($params.remove_onclick))}
onclick="document.location = '{$current_index}&{$identifier}={$tr.$identifier}{if $view}&view{else}&update{/if}{$table}&token={$token}'">
{else}
>

View File

@@ -36,4 +36,6 @@
</tr>
</table>
<input type="hidden" name="token" value="{$token}" />
</form>
</form>
{block name="after"}{/block}

View File

@@ -25,7 +25,6 @@
*}
{if !$simple_header}
<link href="../css/admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
$(document).ready(function() {
@@ -95,7 +94,7 @@
{l s='Page '}<b>{$page}</b> / {$total_pages}
{if $page < $total_pages}
<input type="image" src="../img/admin/list-next.gif" onclick="getE('submitFilter{$table}').value={$page + 1}"/>&nbsp;
<input type="image" src="../img/admin/list-next2.gif" onclick="getE('submitFilter{$table}'').value={$total_pages}"/>
<input type="image" src="../img/admin/list-next2.gif" onclick="getE('submitFilter{$table}').value={$total_pages}"/>
{/if}
| {l s='Display'}
<select name="pagination">
@@ -149,6 +148,8 @@
<br />
<a href="{$currentIndex}&{$identifier}={$id_cat}&{$table}Orderby={$key|urlencode}&{$table}Orderway=desc&token={$token}"><img border="0" src="../img/admin/down{if isset($order_by) && ($key == $order_by) && ($order_way == 'DESC')}_d{/if}.gif" /></a>
<a href="{$currentIndex}&{$identifier}={$id_cat}&{$table}Orderby={$key|urlencode}&{$table}Orderway=asc&token={$token}"><img border="0" src="../img/admin/up{if isset($order_by) && ($key == $order_by) && ($order_way == 'ASC')}_d{/if}.gif" /></a>
{else}
<br />&nbsp;
{/if}
</th>
{/foreach}
@@ -162,7 +163,7 @@
</th>
{/if}
{if $has_actions}
<th class="center">{l s='Actions'}</th>
<th class="center">{l s='Actions'}<br />&nbsp;</th>
{/if}
</tr>
{if !$simple_header}

View File

@@ -0,0 +1,59 @@
{*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @version Release: $Revision: 11256 $
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<br />
<p>
<a href="#" onclick="if ($('.requiredFieldsParameters:visible').length == 0) $('.requiredFieldsParameters').slideDown('slow'); else $('.requiredFieldsParameters').slideUp('slow'); return false;"><img src="../img/admin/duplicate.gif" alt="" /> {l s='Set required fields for this section'}</a>
</p>
<fieldset style="display:none" class="width1 requiredFieldsParameters">
<legend>{l s='Required Fields'}</legend>
<form name="updateFields" action="{$current}&submitFields=1&token={$token}" method="post">
<p>
<b>{l s='Select the fields you would like to be required for this section.'}</b><br />
<table cellspacing="0" cellpadding="0" class="table width1 clear">
<thead>
<tr>
<th><input type="checkbox" onclick="checkDelBoxes(this.form, 'fieldsBox[]', this.checked)" class="noborder" name="checkme"></th>
<th>{l s='Field Name'}</th>
</tr>
</thead>
<tbody>
{foreach $table_fields as $field}
{if !in_array($field, $required_class_fields)}
<tr class="{if $irow++ % 2}alt_row{/if}">
<td class="noborder"><input type="checkbox" name="fieldsBox[]" value="{$field}" {if in_array($field, $required_fields)} checked="checked"{/if} /></td>
<td>{$field}</td>
</tr>
{/if}
{/foreach}
</tbody>
</table><br />
<center>
<input style="margin-left:15px;" class="button" type="submit" value="{l s=' Save '}" name="submitFields" />
</center>
</p>
</form>
</fieldset>

View File

@@ -81,5 +81,5 @@
{/if}
{/block}
{block name="other_fieldsets"}<div class="clear">&nbsp;</div>{/block}
{block name="after"}<div style="clear:both">&nbsp;</div>{/block}

View File

@@ -42,7 +42,7 @@
{if count($errors)} {* @todo what is ??? AND $this->_includeContainer *}
<div class="error">
<span style="float:right"><a id="hideError" href=""><img alt="X" src="../img/admin/close.png" /></a></span><img src="../img/admin/error2.png" />
<span style="float:right"><a id="hideError" href=""><img alt="X" src="../img/admin/close.png" /></a></span>
{if count($errors) == 1}
{$errors[0]}
{else}
@@ -78,17 +78,16 @@
<span style="float:right">
<a id="hideWarn" href=""><img alt="X" src="../img/admin/close.png" /></a>
</span>
<img src="../img/admin/warn2.png" />
{if count($warnings) > 1}
{l s='There are'} {count($warnings)} {l s='warnings'}
<span style="margin-left:20px;" id="labelSeeMore">
<a id="linkSeeMore" href="#" style="text-decoration:underline">{l s='Click here to see more'}</a>
<a id="linkHide" href="#" style="text-decoration:underline;display:none">{l s='Hide warning'}</a>
</span>
{else}
{l s='There is'} {count($warnings)} {l s='warning'}
{l s='There is'} {count($warnings)} {l s='warning'} :
{/if}
<span style="margin-left:20px;" id="labelSeeMore">
<a id="linkSeeMore" href="#" style="text-decoration:underline">{l s='Click here to see more'}</a>
<a id="linkHide" href="#" style="text-decoration:underline;display:none">{l s='Hide warning'}</a>
</span>
<ul style="display:none;" id="seeMore">
<ul style="display:{if count($warnings) > 1}none{else}block{/if};" id="seeMore">
{foreach $warnings as $warning}
<li>{$warning}</li>
{/foreach}

View File

@@ -78,6 +78,7 @@
<p><span>{l s='For security reasons, you cannot connect to the Back Office until after you have:'}<br /><br />
<ul>
<li>{l s='delete the /install folder'}</li>
<li>{l s='delete the /install-new folder'}</li>
<li>{l s='renamed the /admin folder (eg.) /admin'}{$randomNb}</li>
</ul>
<br />{l s='Please then access this page by the new url (eg.) http://www.domain.tld/admin'}{$randomNb}</span></p>
@@ -100,4 +101,4 @@
</form>
</div>
<h2><a href="http://www.prestashop.com">&copy; Copyright by PrestaShop. all rights reserved.</a></h2>
</div>
</div>

View File

@@ -31,7 +31,7 @@
<fieldset>
<legend>{l s='Severity levels'}</legend>
<p>{l s='Meaning of severity levels:'}</p>
<ol>
<ol style="margin-left: 30px; list-style-type: decimal;">
<li style="color: green;">{l s='Informative only'}</li>
<li style="color: orange;">{l s='Warning'}</li>
<li style="color: orange;">{l s='Error'}</li>

View File

@@ -29,10 +29,10 @@
{block name="override_tpl"}
<h2>{$manufacturer->name}</h2>
<h3>{l s='Total addresses:'} {count($addresses)}</h3>
<hr />
{if !count($addresses)}
{l s='No address for this manufacturer'}
{else}
@@ -61,7 +61,7 @@
{/foreach}
{/if}
<br /><br />
<h3>{l s='Total products:'} {count($products)}</h3>
{foreach $products AS $product}
<hr />
@@ -70,7 +70,7 @@
<a href="?tab=AdminProducts&id_product={$product->id}&updateproduct&token={getAdminToken tab='AdminProducts'}" class="button">{l s='Edit'}</a>
<a href="?tab=AdminProducts&id_product={$product->id}&deleteproduct&token={getAdminToken tab='AdminProducts'}" class="button" onclick="return confirm('{l s='Delete item #'}{$product->id} ?');">{l s='Delete'}</a>
</div>
<table border="0" cellpadding="0" cellspacing="0" class="table" style="width:990px;">
<table border="0" cellpadding="0" cellspacing="0" class="table" style="width:80%;margin-left:10%;">
<tr>
<th>{$product->name}</th>
{if !empty($product->reference)}<th width="150">{l s='Ref:'} {$product->reference}</th>{/if}
@@ -85,13 +85,13 @@
<a href="?tab=AdminProducts&id_product={$product->id}&deleteproduct&token={getAdminToken tab='AdminProducts'}" class="button" onclick="return confirm('{l s='Delete item #'}{$product->id} ?');">{l s='Delete'}</a>
</div>
<h3><a href="?tab=AdminProducts&id_product={$product->id}&updateproduct&token={getAdminToken tab='AdminProducts'}">{$product->name}</a></h3>
<table border="0" cellpadding="0" cellspacing="0" class="table" style="width:990px;">
<table border="0" cellpadding="0" cellspacing="0" class="table" style="width:80%;margin-left:10%;">
<tr>
<th>{l s='Attribute name'}</th>
<th width="80">{l s='Reference'}</th>
<th width="80">{l s='EAN13'}</th>
<th width="80">{l s='UPC'}</th>
{if $stock_management}<th class="right" width="40">{l s='Quantity'}</th>{/if}
{if $stock_management && $shopContext != Shop::CONTEXT_ALL}<th class="right" width="150">{l s='Available Quantity'}</th>{/if}
</tr>
{foreach $product->combinaison AS $id_product_attribute => $product_attribute}
<tr {if $id_product_attribute %2}class="alt_row"{/if} >
@@ -99,7 +99,7 @@
<td>{$product_attribute.reference}</td>
<td>{$product_attribute.ean13}</td>
<td>{$product_attribute.upc}</td>
{if $stock_management}<td class="right">{$product_attribute.quantity}</td>{/if}
{if $stock_management && $shopContext != Shop::CONTEXT_ALL}<td class="right">{$product_attribute.quantity}</td>{/if}
</tr>
{/foreach}
</table>

View File

@@ -37,7 +37,7 @@
<div class="select-filter">
<label class="search-filter">{l s='Sort by'}:</label>
<select name="module_type">
<select name="module_type" id="module_type_filter">
<option value="allModules" {if $showTypeModules eq 'allModules'}selected="selected"{/if}>{l s='All Modules'}</option>
<option value="nativeModules" {if $showTypeModules eq 'nativeModules'}selected="selected"{/if}>{l s='Native Modules'}</option>
<option value="partnerModules" {if $showTypeModules eq 'partnerModules'}selected="selected"{/if}>{l s='Partners Modules'}</option>
@@ -49,19 +49,19 @@
<option value="otherModules" {if $showTypeModules eq 'otherModules'}selected="selected"{/if}>{l s='Others Modules'}</option>
</select>
&nbsp;
<select name="module_install">
<select name="module_install" id="module_install_filter">
<option value="installedUninstalled" {if $showInstalledModules eq 'installedUninstalled'}selected="selected"{/if}>{l s='Installed & Uninstalled'}</option>
<option value="installed" {if $showInstalledModules eq 'installed'}selected="selected"{/if}>{l s='Installed Modules'}</option>
<option value="uninstalled" {if $showInstalledModules eq 'uninstalled'}selected="selected"{/if}>{l s='Uninstalled Modules'}</option>
</select>
&nbsp;
<select name="module_status">
<select name="module_status" id="module_status_filter">
<option value="enabledDisabled" {if $showEnabledModules eq 'enabledDisabled'}selected="selected"{/if}>{l s='Enabled & Disabled'}</option>
<option value="enabled" {if $showEnabledModules eq 'enabled'}selected="selected"{/if}>{l s='Enabled Modules'}</option>
<option value="disabled" {if $showEnabledModules eq 'disabled'}selected="selected"{/if}>{l s='Disabled Modules'}</option>
</select>
&nbsp;
<select name="country_module_value">
<select name="country_module_value" id="country_module_value_filter">
<option value="0" >{l s='All countries'}</option>
<option value="1" {if $showCountryModules eq 1}selected="selected"{/if}>{l s='Current country:'} {$nameCountryDefault}</option>
</select>

View File

@@ -31,13 +31,13 @@
<li>
<a id="desc-module-new" class="toolbar_btn" href="#top_container" onclick="$('#module_install').slideToggle();" title="Add new">
<span class="process-icon-new-module" ></span>
<div>Add new module</div>
<div>{l s='Add new module'}</div>
</a>
</li>
<li>
<a id="desc-module-addon-new" class="toolbar_btn" href="{$addonsUrl}" title="Add new">
<span class="process-icon-new-module-addon" ></span>
<div>Add new via Addons</div>
<div>{l s='Add new via Addons'}</div>
</a>
</li>
</ul>

View File

@@ -36,14 +36,13 @@
var ajaxCurrentIndex = '{$ajaxCurrentIndex}';
var by = '{l s='by'}';
var errorLogin = '{l s='Could not login to Addons'}';
{if isset($smarty.get.anchor)}
$('document').ready( function() {
$.scrollTo('#{$smarty.get.anchor|htmlentities}', 1200, {literal}{offset: -100}{/literal});
});
{/if}
{if isset($smarty.get.anchor)}var anchor = '{$smarty.get.anchor|htmlentities|replace:'(':''|replace:')':''|replace:'{':''|replace:'}':''}';{else}var anchor = '';{/if}
{literal}
function getPrestaStore(){if(getE("prestastore").style.display!='block')return;$.post(dirNameCurrentIndex+"/ajax.php",{page:"prestastore"},function(a){getE("prestastore-content").innerHTML=a;})}
function truncate_author(author){return ((author.length > 20) ? author.substring(0, 20)+"..." : author);}
function modules_management(action)
@@ -65,7 +64,19 @@
}
document.location.href=currentIndex+'&token='+token+'&'+action+'='+module_list.substring(1, module_list.length);
}
$('document').ready( function() {
// ScrollTo
if (anchor != '')
$.scrollTo('#'+anchor, 1200, {offset: -100});
// AutoComplete Search
$('input[name="filtername"]').autocomplete(moduleList, {
minChars: 0,
width: 310,
@@ -84,13 +95,30 @@
$('input[name="filtername"]').result(function(event, data, formatted) {
$('#filternameForm').submit();
});
});
// Method to check / uncheck all modules checkbox
$('#checkme').click(function()
{
if ($(this).attr("rel") == 'false')
{
$(this).attr("checked", "checked");
$(this).attr("rel", "true");
$("input[name=modules]").attr("checked", "checked");
}
else
{
$(this).attr("checked", "");
$(this).attr("rel", "false");
$("input[name=modules]").attr("checked", "");
}
});
// Method to reload filter in ajax
$(document).ready(function(){
// Method to reload filter in ajax
$('.categoryModuleFilterLink').click(function()
{
$('.categoryModuleFilterLink').css('background-color', 'white');
@@ -125,25 +153,22 @@
catch(e){}
return false;
});
});
// Method to get modules_list.xml from prestashop.com and default_country_modules_list.xml from addons.prestashop.com
$(document).ready(function(){
try
{
resAjax = $.ajax({
type:"POST",
url : ajaxCurrentIndex,
async: true,
data : {
ajaxMode : "1",
ajax : "1",
token : token,
controller : "AdminModules",
action : "refreshModuleList"
// Method to get modules_list.xml from prestashop.com and default_country_modules_list.xml from addons.prestashop.com
try
{
resAjax = $.ajax({
type:"POST",
url : ajaxCurrentIndex,
async: true,
data : {
ajaxMode : "1",
ajax : "1",
token : token,
controller : "AdminModules",
action : "refreshModuleList"
},
success : function(res,textStatus,jqXHR)
{
@@ -155,12 +180,11 @@
}
});
}
catch(e){}
});
catch(e) { }
// Method to log on PrestaShop Addons WebServices
$(document).ready(function(){
// Method to log on PrestaShop Addons WebServices
$('#addons_login_button').click(function()
{
var username_addons = $("#username_addons").val();
@@ -204,6 +228,55 @@
catch(e){}
return false;
});
// Method to set filter on modules
function setFilter()
{
var module_type = $("#module_type_filter").val();
var module_install = $("#module_install_filter").val();
var module_status = $("#module_status_filter").val();
var country_module_value = $("#country_module_value_filter").val();
try
{
resAjax = $.ajax({
type:"POST",
url : ajaxCurrentIndex,
async: true,
data : {
ajax : "1",
token : token,
controller : "AdminModules",
action : "setFilter",
module_type : module_type,
module_install : module_install,
module_status : module_status,
country_module_value : country_module_value,
filterModules : 'Filter'
},
success : function(data)
{
// res.status = cache or refresh
if (data == 'OK')
window.location.href = window.location.href;
},
error: function(res,textStatus,jqXHR)
{
//alert("TECHNICAL ERROR"+res);
}
});
}
catch(e){}
return false;
}
$('#module_type_filter').change(function() { setFilter(); });
$('#module_install_filter').change(function() { setFilter(); });
$('#module_status_filter').change(function() { setFilter(); });
$('#country_module_value_filter').change(function() { setFilter(); });
});
{/literal}
</script>

View File

@@ -33,11 +33,7 @@
<thead>
<tr class="nodrag nodrop">
<th class="center">
<input type="checkbox" onclick="" class="noborder" name="checkme"><br>
<!-- TODO
<a href="#"><img border="0" src="../img/admin/down.gif"></a>
<a href="#"><img border="0" src="../img/admin/up_d.gif"></a>
-->
<input type="checkbox" rel="false" class="noborder" id="checkme"><br>
</th>
<th class="center"></th>
<th>{l s='Module name'}</th>
@@ -46,7 +42,7 @@
<tbody>
{foreach from=$modules item=module}
<tr>
<td><input type="checkbox" name="modules" value="{$module->name}" class="noborder"></td>
<td><input type="checkbox" name="modules" value="{$module->name}" {if !isset($module->confirmUninstall) OR empty($module->confirmUninstall)}rel="false"{else}rel="{$module->confirmUninstall|addslashes}"{/if} class="noborder"></td>
<td><img class="imgm" alt="" src="{if isset($module->image)}{$module->image}{else}../modules/{$module->name}/{$module->logo}{/if}"></td>
<td>
<div class="moduleDesc" id="anchor{$module->name|ucfirst}">
@@ -70,11 +66,11 @@
<p class="desc">{l s='Description'} : {$module->description}</p>
{if isset($module->message)}<div class="conf">{$module->message}</div>{/if}
<div class="row-actions-module">
{$module->optionsHtml}
{if !isset($module->not_on_disk)}{$module->optionsHtml}{else}&nbsp;{/if}
</div>
</div>
</td>
<td><a href="{if isset($module->id) && $module->id gt 0}{$module->options.uninstall_url}{else}{$module->options.install_url}{/if}" class="button installed"><span>{if isset($module->id) && $module->id gt 0}{l s='Uninstall'}{else}{l s='Install'}{/if}</span></a></td>
<td><a {if isset($module->id) && $module->id gt 0 && !empty($module->options.uninstall_onclick)}onclick="{$module->options.uninstall_onclick}"{/if} href="{if isset($module->id) && $module->id gt 0}{$module->options.uninstall_url}{else}{$module->options.install_url}{/if}" class="button installed"><span>{if isset($module->id) && $module->id gt 0}{l s='Uninstall'}{else}{l s='Install'}{/if}</span></a></td>
</tr>
{/foreach}
</tbody>

View File

@@ -48,6 +48,12 @@
<div id="moduleContainer">
{include file='modules/list.tpl'}
{if count($modules)}
<div style="margin-top: 12px;">
<input type="button" class="button big" value="Install the selection" onclick="modules_management('install')"/>
<input type="button" class="button big" value="Uninstall the selection" onclick="modules_management('uninstall')" />
</div>
{/if}
</div>
</div>

View File

@@ -44,6 +44,7 @@
</div>
{/if}
<div class="filter-module">
<form>
{l s='Show'} :
<select id="show_modules" onChange="autoUrl('show_modules', '{$url_show_modules}')">
@@ -58,17 +59,19 @@
<input type="checkbox" id="hook_position" onclick="autoUrlNoList('hook_position', '{$url_show_invisible}')" {if $hook_position}checked="checked"{/if} />&nbsp;
<label class="t" for="hook_position">{l s='Display non-positionable hook'}</label>
</form>
</div>
<br/>
<div>
<fieldset style="width:250px;float:right"><legend>{l s='Live edit'}</legend>
<div id="modulePosition">
<div class="blocLiveEdit"><h2>{l s='Live edit'}</h2>
{if $live_edit}
<p>{l s='You have to select a shop to use live edit'}</p>
{else}
<p>{l s='By clicking here you will be redirected to the front office of your shop to move and delete modules directly.'}</p>
<br>
<a href="{$url_live_edit}" target="_blank" class="button">{l s='Run LiveEdit'}</a>
{/if}
</fieldset>
</div>
<form method="post" action="{$url_submit}">
<div id="unhook_button_position_top">
<input class="button floatr" type="submit" name="unhookform" value="{l s='Unhook the selection'}"/></div>
@@ -78,21 +81,30 @@
{/if}
{foreach $hooks as $hook}
<a name="{$hook['name']}"/>
<table cellpadding="0" cellspacing="0" class="table width3 space {if $hook['module_count'] >= 2} tableDnD{/if}" id="{$hook['id_hook']}">
<tr class="nodrag nodrop"><th colspan="4">{$hook['title']} - <span style="color: red">{$hook['module_count']}</span> {if $hook['module_count'] > 1}{l s='modules'}{else}{l s='module'}{/if}
{if $hook['module_count'] && $can_move}
<input type="checkbox" id="Ghook{$hook['id_hook']}" class="floatr" style="margin-right: 2px;" onclick="hookCheckboxes({$hook['id_hook']}, 0, this)"/>
{/if}
<table cellpadding="0" cellspacing="0" class="table widthfull space {if $hook['module_count'] >= 2} tableDnD{/if}" id="{$hook['id_hook']}">
<colgroup>
<col width="10"></col>
<col width="30"></col>
<col width="40"></col>
<col width=""></col>
<col width="50"></col>
</colgroup>
<tr class="nodrag nodrop"><th colspan="5"> {if $hook['module_count'] && $can_move}
<input type="checkbox" id="Ghook{$hook['id_hook']}" style="margin-right: 2px;" onclick="hookCheckboxes({$hook['id_hook']}, 0, this)"/>
{/if}{$hook['title']} - <span style="color: red">{$hook['module_count']}</span> {if $hook['module_count'] > 1}{l s='modules'}{else}{l s='module'}{/if}
{if !empty($hook['description'])}
&nbsp;<span style="font-size:0.8em; font-weight: normal">[{$hook['description']}]</span>
{/if}
<sub style="color:grey;"><i>({l s='Technical name: '}{$hook['name']})</i></sub></th></tr>
<span style="color:grey;">({l s='Technical name: '}{$hook['name']})</span></th></tr>
{if $hook['module_count']}
{foreach $hook['modules'] as $position => $module}
{if isset($module['instance'])}
<tr id="{$hook['id_hook']}_{$module['instance']->id}" {cycle values='class="alt_row",'} style="height: 42px;">
<td align=center ><input type="checkbox" id="mod{$hook['id_hook']}_{$module['instance']->id}" class="hook{$hook['id_hook']}" onclick="hookCheckboxes({$hook['id_hook']}, 1, this)" name="unhooks[]" value="{$hook['id_hook']}_{$module['instance']->id}"/></td>
{if !$display_key}
<td class="positions" width="40">{$module@iteration}</td>
<td {if $can_move && $hook['module_count'] >= 2} class="dragHandle"{/if} id="td_{$hook['id_hook']}_{$module['instance']->id}" width="40">
<td align=center class="positions">{$module@iteration}</td>
<td {if $can_move && $hook['module_count'] >= 2} align=center class="dragHandle"{/if} id="td_{$hook['id_hook']}_{$module['instance']->id}">
{if $can_move}
<a {if {$module@iteration} == 1} style="display: none;"{/if} href="{$current}&id_module={$module['instance']->id}&id_hook={$hook['id_hook']}&direction=0&token={$token}&changePosition#{$hook['name']}">
<img src="../img/admin/up.gif" alt="{l s='Up'}" title="{l s='Up'}" />
@@ -102,27 +114,31 @@
</a>
{/if}
</td>
<td style="padding-left: 10px;"><label class="lab_modules_positions" for="mod{$hook['id_hook']}_{$module['instance']->id}">
<td><div class="lab_modules_positions" for="mod{$hook['id_hook']}_{$module['instance']->id}">
{else}
<td style="padding-left: 10px;" colspan="3"><label class="lab_modules_positions" for="mod{$hook['id_hook']}_{$module['instance']->id}">
<td colspan="3"><div class="lab_modules_positions" for="mod{$hook['id_hook']}_{$module['instance']->id}">
{/if}
<img src="../modules/{$module['instance']->name}/logo.gif" alt="{$module['instance']->name|stripslashes}" /> <strong>{$module['instance']->displayName|stripslashes}</strong>
{if $module['instance']->version} v{if $module['instance']->version|intval == $module['instance']->version}{sprintf('%.1f', $module['instance']->version)}{else}{$module['instance']->version|floatval}{/if}{/if}<br />{$module['instance']->description}
</label></td>
<td width="60">
<img src="../modules/{$module['instance']->name}/logo.png" alt="{$module['instance']->name|stripslashes}" /> <h3>{$module['instance']->displayName|stripslashes}</h3>
<span>{if $module['instance']->version}v{if $module['instance']->version|intval == $module['instance']->version}{sprintf('%.1f', $module['instance']->version)}{else}{$module['instance']->version|floatval}{/if}{/if}</span><p>{$module['instance']->description}</p>
</div></td>
<td>
<a href="{$current}&id_module={$module['instance']->id}&id_hook={$hook['id_hook']}&editGraft{if $display_key}&show_modules={$display_key}{/if}&token={$token}">
<img src="../img/admin/edit.gif" border="0" alt="{l s='Edit'}" title="{l s='Edit'}" />
</a>
<a href="{$current}&id_module={$module['instance']->id}&id_hook={$hook['id_hook']}&deleteGraft{if $display_key}&show_modules={$display_key}{/if}&token={$token}">
<img src="../img/admin/delete.gif" border="0" alt="{l s='Delete'}" title="{l s='Delete'}" />
</a>
<input type="checkbox" id="mod{$hook['id_hook']}_{$module['instance']->id}" class="hook{$hook['id_hook']}" onclick="hookCheckboxes({$hook['id_hook']}, 1, this)" name="unhooks[]" value="{$hook['id_hook']}_{$module['instance']->id}"/>
</td>
</tr>
{/if}
{/foreach}
{else}
<tr><td colspan="4">{l s='No module for this hook'}</td></tr>
<tr><td colspan="5">{l s='No module for this hook'}</td></tr>
{/if}
</table>
{/foreach}
<div id="unhook_button_position_bottom"><input class="button floatr" type="submit" name="unhookform" value="{l s='Unhook the selection'}"/></div></form>
<div id="unhook_button_position_bottom"><input class="button floatr" type="submit" name="unhookform" value="{l s='Unhook the selection'}"/></div>
</div>
</div>
</form>

View File

@@ -87,7 +87,7 @@
<input type="hidden" name="totalQty" id="totalQty" value="{$customization['quantity']}" />
<input type="hidden" name="productName" id="productName" value="{$product['product_name']}" />
{if ((!$order->hasBeenDelivered() OR Configuration::get('PS_ORDER_RETURN')) && (int)(($customization['quantity_returned']) < (int)($customization['quantity'])))}
<input type="checkbox" name="id_customization[{$customizationId}]" id="id_customization[{$customizationId}]" value="{$product['id_order_detail']}" onchange="setCancelQuantity(this, '{$customizationId}', '{$customization['quantity']}')" '.{if (($customization['quantity_returned'] + $customization['quantity_refunded']) >= $customization['quantity'])}disabled="disabled"{/if} />
<input type="checkbox" name="id_customization[{$customizationId}]" id="id_customization[{$customizationId}]" value="{$product['id_order_detail']}" onchange="setCancelQuantity(this, '{$customizationId}', '{$customization['quantity'] - $customization['quantity_refunded']}')" '.{if (($customization['quantity_returned'] + $customization['quantity_refunded']) >= $customization['quantity'])}disabled="disabled"{/if} />
{else}
--
{/if}
@@ -106,4 +106,4 @@
</td>
</tr>
{/foreach}
{/if}
{/if}

View File

@@ -0,0 +1,52 @@
<form method="POST" action="{$currentIndex}&viewOrder&id_order={$smarty.get.id_order|escape:'htmlall':'UTF-8'}&token={$smarty.get.token|escape:'htmlall':'UTF-8'}">
<label>{l s='Name'}</label>
<div class="margin-form">
<input type="text" name="discount_name" value="" />
</div>
<label>{l s='Type'}</label>
<div class="margin-form">
<select name="discount_type" id="discount_type">
<option value="1">{l s='Percent'}</option>
<option value="2">{l s='Amount'}</option>
<option value="3">{l s='Free shipping'}</option>
</select>
</div>
<div id="discount_value_field">
<label>{l s='Value'}</label>
<div class="margin-form">
{if ($currency->format % 2)}
<span id="discount_currency_sign" style="display: none;">{$currency->sign}</span>
{/if}
<input type="text" name="discount_value" size="3" />
{if !($currency->format % 2)}
<span id="discount_currency_sign" style="display: none;">{$currency->sign}</span>
{/if}
<span id="discount_percent_symbol">%</span>
<p class="preference_description" id="discount_value_help" style="width: 95%;display: none;">
{l s='This value must be taxes included.'}
</p>
</div>
</div>
{if $order->hasInvoice()}
<label>{l s='Invoice'}</label>
<div class="margin-form">
<select name="discount_invoice">
{foreach from=$invoices_collection item=invoice}
<option value="{$invoice->id}" selected="selected">{$invoice->getInvoiceNumberFormatted($current_id_lang)} - {displayPrice price=$invoice->total_paid_tax_incl currency=$order->id_currency}</option>
{/foreach}
</select><br />
<input type="checkbox" name="discount_all_invoices" id="discount_all_invoices" value="1" /> <label class="t" for="discount_all_invoices">{l s='Apply on all invoices'}</label>
<p class="preference_description" style="width: 95%">
{l s='If you select to create this discount for all invoices, one discount will be created per order invoice.'}
</p>
</div>
{/if}
<p class="center">
<input class="button" type="submit" name="submitNewVoucher" value="{l s='Add'}" />&nbsp;
<a href="#" id="cancel_add_voucher">{l s='Cancel'}</a>
</p>
</form>

View File

@@ -0,0 +1,102 @@
<table class="table" width="100%;" cellspacing="0" cellpadding="0" id="documents_table">
<thead>
<tr>
<th style="width:20%">{l s='Date'}</th>
<th style="width:25%">{l s='Document'}</th>
<th style="width:20%">{l s='Number'}</th>
<th>{l s='Amount'}</th>
<th style="width:42px"></th>
</tr>
</thead>
<tbody>
{foreach from=$order->getDocuments() item=document}
{if get_class($document) eq 'OrderInvoice'}
{if isset($document->is_delivery)}
<tr class="invoice_line" id="delivery_{$document->id}">
{else}
<tr class="invoice_line" id="invoice_{$document->id}">
{/if}
{elseif get_class($document) eq 'OrderSlip'}
<tr class="invoice_line" id="orderslip_{$document->id}">
{/if}
<td class="document_date">{dateFormat date=$document->date_add}</td>
<td class="document_type">
{if get_class($document) eq 'OrderInvoice'}
{if isset($document->is_delivery)}
{l s='Delivery slip'}
{else}
{l s='Invoice'}
{/if}
{elseif get_class($document) eq 'OrderSlip'}
{l s='Credit Slip'}
{/if}</td>
<td class="document_number">
<a target="_blank" href="
{if get_class($document) eq 'OrderInvoice'}
pdf.php?{if isset($document->is_delivery)}delivery{else}pdf{/if}&id_order_invoice={$document->id}
{elseif get_class($document) eq 'OrderSlip'}
pdf.php?id_order_slip={$document->id}
{/if}">
{if get_class($document) eq 'OrderInvoice'}
{if isset($document->is_delivery)}
#{Configuration::get('PS_DELIVERY_PREFIX', $current_id_lang)}{'%06d'|sprintf:$document->delivery_number}
{else}
{$document->getInvoiceNumberFormatted($current_id_lang)}
{/if}
{elseif get_class($document) eq 'OrderSlip'}
{l s='#'}{'%06d'|sprintf:$document->id}
{/if} <img src="../img/admin/details.gif" alt="{l s='See the document'}" /></a></td>
<td class="document_amount">
{if get_class($document) eq 'OrderInvoice'}
{if isset($document->is_delivery)}
--
{else}
{displayPrice price=$document->total_paid_tax_incl currency=$currency->id}&nbsp;
{if $document->getRestPaid()}
<span style="color:red;font-weight:bold;">({displayPrice price=$document->getRestPaid() currency=$currency->id} {l s='not paid'})</span>
{/if}
{/if}
{/if}
</td>
<td class="right document_action">
{if get_class($document) eq 'OrderInvoice'}
{if !isset($document->is_delivery)}
{if $document->getRestPaid()}
<a href="#" class="js-set-payment" data-amount="{$document->getRestPaid()}" data-id-invoice="{$document->id}" title="{l s='Set payment form'}"><img src="../img/admin/money_add.png" alt="{l s='Set payment form'}" /></a>
{/if}
<a href="#" onclick="$('#invoiceNote{$document->id}').show(); return false;" title="{if $document->note eq ''}{l s='Add note'}{else}{l s='Edit note'}{/if}"><img src="../img/admin/note.png" alt="{if $document->note eq ''}{l s='Add note'}{else}{l s='Edit note'}{/if}"{if $document->note eq ''} class="js-disabled-action"{/if} /></a>
{/if}
{/if}
</td>
</tr>
{if get_class($document) eq 'OrderInvoice'}
{if !isset($document->is_delivery)}
<tr id="invoiceNote{$document->id}" style="display:none" class="current-edit">
<td colspan="5">
<form action="{$currentIndex}&viewOrder&id_order={$smarty.get.id_order|escape:'htmlall':'UTF-8'}&token={$smarty.get.token|escape:'htmlall':'UTF-8'}" method="post">
<p>
<label for="editNote{$document->id}" class="t">{l s='Note'}</label>
<input type="hidden" name="id_order_invoice" value="{$document->id}" />
<textarea name="note" rows="10" cols="10" id="editNote{$document->id}" class="edit-note">{$document->note|escape:'htmlall':'UTF-8'}</textarea>
</p>
<p class="right">
<input type="submit" name="submitEditNote" value="{l s='Save'}" class="button" />&nbsp;
<a href="#" id="cancelNote" onclick="$('#invoiceNote{$document->id}').hide();return false;">{l s='Cancel'}</a>
</p>
</form>
</td>
</tr>
{/if}
{/if}
{foreachelse}
<tr>
<td colspan="5" class="center">
<h3>{l s='No document is available'}</h3>
<p><a class="button" href="{$currentIndex}&viewOrder&submitGenerateInvoice&id_order={$smarty.get.id_order|escape:'htmlall':'UTF-8'}&token={$smarty.get.token|escape:'htmlall':'UTF-8'}">{l s='Generate invoice'}</a></p>
</td>
</tr>
{/foreach}
</tbody>
</table>

View File

@@ -5,6 +5,10 @@
<div id="add_product_product_attribute_area" style="margin-top: 5px;display: none;">
{l s='Combinations:'} <select name="add_product[product_attribute_id]" id="add_product_product_attribute_id"></select>
</div>
<div id="add_product_product_warehouse_area" style="margin-top: 5px; display: none;">
{l s='Warehouse:'} <select id="add_product_warehouse" name="add_product_warehouse">
</select>
</div>
</td>
<td style="display:none;">
{if $currency->sign % 2}{$currency->sign}{/if}<input type="text" name="add_product[product_price_tax_excl]" id="add_product_product_price_tax_excl" value="" size="4" disabled="disabled" /> {if !($currency->sign % 2)}{$currency->sign}{/if} {l s='tax excl.'}<br />
@@ -16,11 +20,11 @@
<td style="display:none;" align="center" class="productQuantity" id="add_product_product_stock">0</td>
<td style="display:none;" align="center" id="add_product_product_total">{displayPrice price=0 currency=$currency->id}</td>
<td style="display:none;" align="center" colspan="2">
{if $order->valid}
{if sizeof($invoices_collection)}
<select name="add_product[invoice]" id="add_product_product_invoice" disabled="disabled">
<optgroup label="{l s='Existing'}">
<optgroup class="existing" label="{l s='Existing'}">
{foreach from=$invoices_collection item=invoice}
<option value="{$invoice->id}">#{Configuration::get('PS_INVOICE_PREFIX', $current_id_lang)}{'%06d'|sprintf:$invoice->number}</option>
<option value="{$invoice->id}">{$invoice->getInvoiceNumberFormatted($current_id_lang)}</option>
{/foreach}
</optgroup>
<optgroup label="{l s='New'}">

View File

@@ -27,7 +27,7 @@
{* Generate HTML code for printing Invoice Icon with link *}
<span style="width:20px; margin-right:5px;">
{if (($order_state->invoice && $order->invoice_number) && $tr['product_number'])}
<a href="pdf.php?id_order={$order->id}&pdf"><img src="../img/admin/tab-invoice.gif" alt="invoice" /></a>
<a target="_blank" href="pdf.php?id_order={$order->id}&pdf"><img src="../img/admin/tab-invoice.gif" alt="invoice" /></a>
{else}
-
{/if}
@@ -36,7 +36,7 @@
{* Generate HTML code for printing Delivery Icon with link *}
<span style="width:20px;">
{if ($order_state->delivery && $order->delivery_number)}
<a href="pdf.php?id_delivery={$order->delivery_number}"><img src="../img/admin/delivery.gif" alt="delivery" /></a>
<a target="_blank" href="pdf.php?id_order={$order->id}&delivery"><img src="../img/admin/delivery.gif" alt="delivery" /></a>
{else}
-
{/if}

View File

@@ -59,12 +59,12 @@
</td>
{if ($order->hasBeenPaid())}<td align="center" class="productQuantity">{$product['product_quantity_refunded']}</td>{/if}
{if ($order->hasBeenDelivered())}<td align="center" class="productQuantity">{$product['product_quantity_return']}</td>{/if}
<td align="center" class="productQuantity product_stock">{StockManagerFactory::getManager()->getProductRealQuantities($product['product_id'], $product['product_attribute_id'], null, true)}</td>
<td align="center" class="productQuantity product_stock">{$product['current_stock']}</td>
<td align="center" class="total_product">
{displayPrice price=(Tools::ps_round($product_price, 2) * ($product['product_quantity'] - $product['customizationQuantityTotal'])) currency=$currency->id}
</td>
<td colspan="2" style="display: none;" class="add_product_fields">&nbsp;</th>
<td align="center" class="cancelCheck standard_refund_fields" style="background-color:rgb(232, 237, 194);display:none">
<td align="center" class="cancelCheck standard_refund_fields current-edit" style="display:none">
<input type="hidden" name="totalQtyReturn" id="totalQtyReturn" value="{$product['product_quantity_return']}" />
<input type="hidden" name="totalQty" id="totalQty" value="{$product['product_quantity']}" />
<input type="hidden" name="productName" id="productName" value="{$product['product_name']}" />
@@ -74,7 +74,7 @@
--
{/if}
</td>
<td class="cancelQuantity standard_refund_fields" style="background-color:rgb(232, 237, 194);display:none">
<td class="cancelQuantity standard_refund_fields current-edit" style="display:none">
{if ($product['product_quantity_return'] + $product['product_quantity_refunded'] >= $product['product_quantity'])}
<input type="hidden" name="cancelQuantity[{$k}]" value="0" />
{elseif (!$order->hasBeenDelivered() OR Configuration::get('PS_ORDER_RETURN'))}
@@ -95,10 +95,13 @@
0/{$productQuantity}
{/if}
</td>
<td class="partial_refund_fields" style="text-align:right;background-color:rgb(232, 237, 194);display:none"><input type="text" size="3" name="partialRefundProduct[{$k}]" /> &euro;</td>
{if $can_edit}
<td class="partial_refund_fields current-edit" style="text-align:left;display:none">
<div style="width:40%;margin-top:5px;float:left">{l s='Quantity:'}</div> <div style="width:60%;margin-top:2px;float:left"><input type="text" size="3" name="partialRefundProductQuantity[{$k}]" value="0" /> 0/{$productQuantity-$product['product_quantity_refunded']}</div>
<div style="width:40%;margin-top:5px;float:left">{l s='Amount:'}</div> <div style="width:60%;margin-top:2px;float:left"><input type="text" size="3" name="partialRefundProduct[{$k}]" /> &euro;</div>
</td>
{if ($can_edit && !$order->hasBeenDelivered())}
<td class="product_invoice" colspan="2" style="display: none;text-align:center;">
{if $order->hasBeenPaid()}
{if sizeof($invoices_collection)}
<select name="product_invoice" class="edit_product_invoice">
{foreach from=$invoices_collection item=invoice}
<option value="{$invoice->id}" {if $invoice->id == $product['id_order_invoice']}selected="selected"{/if}>#{Configuration::get('PS_INVOICE_PREFIX', $current_id_lang)}{'%06d'|sprintf:$invoice->number}</option>

View File

@@ -0,0 +1,42 @@
<table class="table" width="100%" cellspacing="0" cellpadding="0" id="shipping_table">
<thead>
<tr>
<th style="width:30%">{l s='Date:'}</th>
<th>{l s='Type'}</th>
<th style="width:20%">{l s='Carrier'}</th>
<th>{l s='Weight'}</th>
<th style="width:15%">{l s='Shipping cost'}</th>
<th style="width:30%">{l s='Tracking number'}</th>
</tr>
</thead>
<tbody>
{foreach from=$order->getShipping() item=line}
<tr>
<td>{$line.date_add}</td>
<td>{$line.type}</td>
<td>{$line.state_name}</td>
<td>{$line.weight|string_format:"%.3f"} {Configuration::get('PS_WEIGHT_UNIT')}</td>
<td>
{if $order->getTaxCalculationMethod() == $smarty.const.PS_TAX_INC}
{displayPrice price=$line.shipping_cost_tax_incl currency=$currency->id}
{else}
{displayPrice price=$line.shipping_cost_tax_excl currency=$currency->id}
{/if}
</td>
<td>
<span id="shipping_number_show">{if $line.url && $line.tracking_number}<a href="{$line.url|replace:'@':$line.tracking_number}">{$line.tracking_number}</a>{else}{$line.tracking_number}{/if}</span>
{if $line.can_edit}
<form style="display: inline;" method="POST" action="{$link->getAdminLink('AdminOrders')}&vieworder&id_order={$smarty.get.id_order|escape:'htmlall':'UTF-8'}&id_order_invoice={if $line.id_order_invoice}{$line.id_order_invoice|escape:'htmlall':'UTF-8'}{else}0{/if}&id_carrier={if $line.id_carrier}{$line.id_carrier|escape:'htmlall':'UTF-8'}{else}0{/if}">
<span class="shipping_number_edit" style="display:none;">
<input type="text" name="tracking_number" value="{$line.tracking_number}" />
<input type="submit" class="button" name="submitShippingNumber" value="{l s='Update'}" />
</span>
<a href="#" class="edit_shipping_number_link"><img src="../img/admin/edit.gif" alt="{l s='Edit'}" /></a>
<a href="#" class="cancel_shipping_number_link" style="display: none;"><img src="../img/admin/disabled.gif" alt="{l s='Cancel'}" /></a>
</form>
{/if}
</td>
</tr>
{/foreach}
</tbody>
</table>

View File

@@ -175,7 +175,7 @@
updateQty(product[0], product[1], $(this).val() - cart_quantity[$(this).attr('rel')]);
}
});
$('.increaseqty_product,.decreaseqty_product').live('click', function(e) {
$('.increaseqty_product, .decreaseqty_product').live('click', function(e) {
e.preventDefault();
var product = $(this).attr('rel').split('_');
var sign = '';
@@ -183,10 +183,18 @@
sign = '-';
updateQty(product[0], product[1], sign+1);
});
$('#id_product').live('keydown', function(e) {
$(this).click();
return true;
});
$('#id_product, .id_product_attribute').live('change', function(e) {
e.preventDefault();
displayQtyInStock(this.id);
});
$('#id_product, .id_product_attribute').live('keydown', function(e) {
$(this).change();
return true;
});
$('.product_unit_price').live('change', function(e) {
e.preventDefault();
var product = $(this).attr('rel').split('_');
@@ -233,10 +241,13 @@
function displayQtyInStock(id)
{
if (id == 'id_product')
$('#qty_in_stock').html($('#id_product option:selected').attr('rel'));
var id_product = $('#id_product').val();
if ($('#ipa_' + id_product + ' option').length)
var id_product_attribute = $('#ipa_' + id_product).val();
else
$('#qty_in_stock').html($('#ipa_'+$('#id_product option:selected').val()+' option:selected').attr('rel'));
var id_product_attribute = 0;
$('#qty_in_stock').html(stock[id_product][id_product_attribute]);
}
function duplicateOrder(id_order)
@@ -350,9 +361,9 @@
{
var html = '<ul>';
$.each(res.customers, function() {
html += '<li><a class="fancybox" href="{$link->getAdminLink('AdminCustomers')}&id_customer='+this.id_customer+'&viewcustomer&liteDisplaying=1">'+this.firstname+' '+this.lastname+'</a> - '+this.birthday+'<br/>';
html += '<a href="mailto:'+this.email+'">'+this.email+'<br />';
html += '<a onclick="setupCustomer('+ this.id_customer+');" href="#" class="id_customer">{l s='Choose'}</a></li>';
html += '<li class="customerCard"><div class="customerName"><a class="fancybox" href="{$link->getAdminLink('AdminCustomers')}&id_customer='+this.id_customer+'&viewcustomer&liteDisplaying=1">'+this.firstname+' '+this.lastname+'</a><span class="customerBirthday"> '+this.birthday+'</span></div>';
html += '<div class="customerEmail"><a href="mailto:'+this.email+'">'+this.email+'</div>';
html += '<a onclick="setupCustomer('+ this.id_customer+');" href="#" class="id_customer button">{l s='Choose'}</a></li>';
});
html += '</ul>';
}
@@ -460,6 +471,8 @@
{
var products_found = '';
var attributes_html = '';
stock = {};
if(res.found)
{
$('#products_err').hide();
@@ -469,12 +482,19 @@
$.each(res.products, function() {
products_found += '<option '+(this.combinations.length > 0 ? 'rel="'+this.qty_in_stock+'"' : '')+' value="'+this.id_product+'">'+this.name+(this.combinations.length == 0 ? ' - '+this.formatted_price : '')+'</option>';
attributes_html += '<select class="id_product_attribute" id="ipa_'+this.id_product+'" style="display:none;">';
var id_product = this.id_product;
$.each(this.combinations, function() {
attributes_html += '<option rel="'+this.qty_in_stock+'" '+(this.default_on == 1 ? 'selected="selected"' : '')+' value="'+this.id_product_attribute+'">'+this.attributes+' - '+this.formatted_price+'</option>';
});
stock[this.id_product] = this.stock;
attributes_html += '</select>';
});
products_found += '</select>';
$('#products_found #product_list').html(products_found);
$('#products_found #attributes_list').html(attributes_html);
displayProductAttributes();
@@ -760,7 +780,7 @@
</script>
<fieldset id="customer_part"><legend><img src="../img/admin/tab-customers.gif" />{l s='Customer'}</legend>
<p><label>{l s='Search customers:'}</label><input type="text" id="customer" value="" />
<a class="fancybox" href="{$link->getAdminLink('AdminCustomers')}&addcustomer&liteDisplaying=1&submitFormAjax=1#"><img src="../img/admin/add.gif" title="new"/>{l s='Add new customer'}</a></p>
<a class="fancybox button" href="{$link->getAdminLink('AdminCustomers')}&addcustomer&liteDisplaying=1&submitFormAjax=1#"><img src="../img/admin/add.gif" title="new"/><span>{l s='Add new customer'}</span></a></p>
<div id="customers">
</div>
</fieldset><br />
@@ -771,22 +791,30 @@
<input type="hidden" value="" id="id_cart" name="id_cart" />
<input type="text" id="product" value="" /></p>
<div id="products_found">
<div id="product_list">
</div>
<div id="attributes_list">
</div>
<p><label for="qty">{l s='Quantity:'}</label><input type="text" name="qty" id="qty"/>&nbsp;<b>{l s='In stock:'}</b>&nbsp;<span id="qty_in_stock"></span></p>
<div class="margin-form">
<p><input type="submit" onclick="addProduct();return false;" class="button" id="submitAddProduct" value="{l s='Add to cart'}"/></p>
</div>
<div id="product_list">
</div>
<div id="attributes_list">
</div>
<p><label for="qty">{l s='Quantity:'}</label><input type="text" name="qty" id="qty"/>&nbsp;<b>{l s='In stock:'}</b>&nbsp;<span id="qty_in_stock"></span></p>
<div class="margin-form">
<p><input type="submit" onclick="addProduct();return false;" class="button" id="submitAddProduct" value="{l s='Add to cart'}"/></p>
</div>
</div>
</div>
<div id="products_err" class="warn" style="display:none;"></div>
<div style="clear:both;float:left;width:600px;">
<table class="table" id="customer_cart">
<div>
<table cellspacing="0" cellpadding="0" class="table width5" id="customer_cart">
<colgroup>
<col width="50px"></col>
<col width=""></col>
<col width="90px"></col>
<col width="100px"></col>
<col width="50px"></col>
<col width="50px"></col>
</colgroup>
<thead>
<tr>
<th>{l s='Product'}</th>
<th height="39px">{l s='Product'}</th>
<th>{l s='Description'}</th>
<th>{l s='Ref'}</th>
<th>{l s='Unit price'}</th>
@@ -798,7 +826,7 @@
</tbody>
</table>
</div>
<div style="float:right">
<div>
<p><label for="id_currency">{l s='Currency:'}</label>
<script type="text/javascript">
{foreach from=$currencies item='currency'}
@@ -820,36 +848,52 @@
</select>
</p>
</div>
<div id="carts" style="margin: 20px 0;clear:both;float:left;">
<p><a href="#" id="show_old_carts"></a></p>
<div class="separation"></div>
<div id="carts">
<p><a href="#" id="show_old_carts" class="button"></a></p>
<div id="old_carts_orders">
<div id="nonOrderedCarts" style="clear:both;float:left;">
<h2>{l s='Carts:'}</h2>
<table class="table">
<div id="nonOrderedCarts">
<h3>{l s='Carts:'}</h3>
<table cellspacing="0" cellpadding="0" class="table width5">
<colgroup>
<col width="10px"></col>
<col width=""></col>
<col width="70px"></col>
<col width="50px"></col>
</colgroup>
<thead>
<tr>
<th class="center">{l s='ID'}</th>
<th class="center">{l s='Date'}</th>
<th class="center">{l s='Total'}</th>
<th class="center">{l s='Action'}</th>
<th height="39px" class="left">{l s='ID'}</th>
<th class="left">{l s='Date'}</th>
<th class="left">{l s='Total'}</th>
<th class="left">{l s='Action'}</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div id="lastOrders" style="float:left;margin-left:20px;">
<h2>{l s='Orders:'}</h2>
<table class="table">
<div id="lastOrders">
<h3>{l s='Orders:'}</h3>
<table cellspacing="0" cellpadding="0" class="table width5">
<colgroup>
<col width="10px"></col>
<col width="50px"></col>
<col width=""></col>
<col width="90px"></col>
<col width="100px"></col>
<col width="250px"></col>
<col width="50px"></col>
</colgroup>
<thead>
<tr>
<th class="center">{l s='ID'}</th>
<th class="center">{l s='Date'}</th>
<th class="center">{l s='Produits'}</th>
<th class="center">{l s='Total paid'}</th>
<th class="center">{l s='Payment'}</th>
<th class="center">{l s='Status'}</th>
<th class="center">{l s='Action'}</th>
<th height=39px" class="left">{l s='ID'}</th>
<th class="left">{l s='Date'}</th>
<th class="left">{l s='Produits'}</th>
<th class="left">{l s='Total paid'}</th>
<th class="left">{l s='Payment'}</th>
<th class="left">{l s='Status'}</th>
<th class="left">{l s='Action'}</th>
</tr>
</thead>
<tbody>
@@ -865,16 +909,16 @@
<p>
<label>{l s='Search a voucher:'} </label>
<input type="text" id="voucher" value="" />
<a class="fancybox" href="{$link->getAdminLink('AdminDiscounts')}&adddiscount&liteDisplaying=1&submitFormAjax=1#"><img src="../img/admin/add.gif" title="new"/>{l s='Add new voucher'}</a>
<a class="fancybox button" href="{$link->getAdminLink('AdminDiscounts')}&adddiscount&liteDisplaying=1&submitFormAjax=1#"><img src="../img/admin/add.gif" title="new"/>{l s='Add new voucher'}</a>
</p>
<div class="margin-form">
<table class="table" id="voucher_list">
<table cellspacing="0" cellpadding="0" class="table" id="voucher_list">
<thead>
<tr>
<th class="center">{l s='Name'}</th>
<th class="center">{l s='Description'}</th>
<th class="center">{l s='Value'}</th>
<th class="center">{l s='Action'}</th>
<th class="left">{l s='Name'}</th>
<th class="left">{l s='Description'}</th>
<th class="left">{l s='Value'}</th>
<th class="left">{l s='Action'}</th>
</tr>
</thead>
<tbody>
@@ -884,30 +928,28 @@
<div id="vouchers_err" class="warn"></div>
</fieldset>
<br />
<fieldset id="address_part" class="width2" style="display:none;">
<fieldset id="address_part" style="display:none;">
<legend><img src="../img/t/AdminAddresses.gif" />{l s='Addresses'}</legend>
<div id="address_delivery" style="clear:both;float:left;">
<p><b>{l s='Delivery:'}</b></p>
<div id="address_delivery">
<h3>{l s='Delivery:'}</h3>
<select id="id_address_delivery" name="id_address_delivery">
</select>
<div id="address_delivery_detail">
</div>
</div>
<div id="address_invoice" style="float:left; margin-left:10px;">
<p><b>{l s='Invoice:'}</b></p>
<div id="address_invoice">
<h3>{l s='Invoice:'}</h3>
<select id="id_address_invoice" name="id_address_invoice">
</select>
<div id="address_invoice_detail">
</div>
</div>
<div>
<p><a class="fancybox" id="new_address" href="{$link->getAdminLink('AdminAddresses')}&addaddress&id_customer=42&liteDisplaying=1&submitFormAjax=1#"><img src="../img/admin/add.gif" title="new"/>{l s='Add new address'}</a></p>
</div>
<a class="fancybox button" id="new_address" href="{$link->getAdminLink('AdminAddresses')}&addaddress&id_customer=42&liteDisplaying=1&submitFormAjax=1#"><img src="../img/admin/add.gif" title="new"/>{l s='Add new address'}</a>
</fieldset>
<br />
<fieldset id="carriers_part" style="display:none;">
<legend><img src="../img/t/AdminCarriers.gif" />{l s='Carriers'}</legend>
<div style="float:left;width:440px;">
<div>
<p>
<label>{l s='Carriers:'} </label>
<select name="id_carrier" id="id_carrier">
@@ -915,7 +957,7 @@
</p>
<p>
<label for="shipping_price">{l s='Shipping price:'}</label> <input type="text" id="shipping_price" name="shipping_price" size="7" />&nbsp;<span class="currency_sign"></span>&nbsp;
<a href="#" onclick="resetShippingPrice()">{l s='Reset shipping price'}</a>
<a class="button" href="#" onclick="resetShippingPrice()">{l s='Reset shipping price'}</a>
</p>
</div>
<div id="float:left;">
@@ -933,23 +975,25 @@
<legend><img src="../img/t/AdminPayment.gif" />{l s='Summary'}</legend>
<div id="send_email_feedback"></div>
<div id="cart_summary" style="clear:both;float:left;">
<p><b>{l s='Total products:'}</b>&nbsp;<span style="font-weight:bold;" id="total_products"></span>&nbsp;<span class="currency_sign"></span></p>
<p><b>{l s='Total vouchers:'}</b>&nbsp;<span style="font-weight:bold;" id="total_vouchers"></span>&nbsp;<span class="currency_sign"></span></p>
<p><b>{l s='Total shipping:'}</b>&nbsp;<span style="font-weight:bold;" id="total_shipping"></span>&nbsp;<span class="currency_sign"></span></p>
<p><b>{l s='Total without taxes:'}</b>&nbsp;<span style="font-weight:bold;" id="total_without_taxes"></span>&nbsp;<span class="currency_sign"></span></p>
<p><b>{l s='Total taxes:'}</b>&nbsp;<span style="font-weight:bold;" id="total_taxes"></span>&nbsp;<span class="currency_sign"></span></p>
<p><b>{l s='Total with taxes:'}</b> <span style="font-weight:bold;" id="total_with_taxes"></span>&nbsp;<span class="currency_sign"></span></p>
<ul>
<li><span class="total_cart">{l s='Total products:'}</span><span id="total_products"></span><span class="currency_sign"></span></li>
<li><span class="total_cart">{l s='Total vouchers:'}</span><span id="total_vouchers"></span><span class="currency_sign"></span></li>
<li><span class="total_cart">{l s='Total shipping:'}</span><span id="total_shipping"></span><span class="currency_sign"></span></li>
<li><span class="total_cart">{l s='Total without taxes:'}</span><span id="total_without_taxes"></span><span class="currency_sign"></span></li>
<li><span class="total_cart">{l s='Total taxes:'}</span><span id="total_taxes"></span><span class="currency_sign"></span></li>
<li><span class="total_cart">{l s='Total with taxes:'}</span><span id="total_with_taxes"></span><span class="currency_sign"></span></li>
</ul>
</div>
<div style="float:right;">
<div class="order_message_right">
<label for="order_message">{l s='Order message:'}</label>
<div class="margin-form">
<textarea name="order_message" id="order_message" rows="3" cols="45"></textarea>
</div>
<div class="margin-form">
<a href="#" id="send_email_to_customer">{l s='Send an email to the customer with the link to process the payment.'}</a>
<a href="#" id="send_email_to_customer" class="button">{l s='Send an email to the customer with the link to process the payment.'}</a>
</div>
<div class="margin-form">
<a target="_blank" id="go_order_process" href="">{l s='Go on payment page to process the payment.'}</a>
<a target="_blank" id="go_order_process" href="" class="button">{l s='Go on payment page to process the payment.'}</a>
</div>
<label>{l s='Payment:'}</label>
<div class="margin-form">

View File

@@ -46,46 +46,30 @@
var txt_add_product_no_product = "{l s='Error: No product has been selected'}";
var txt_add_product_no_product_quantity = "{l s='Error: Quantity of product must be set'}";
var txt_add_product_no_product_price = "{l s='Error: Price of product must be set'}";
var txt_confirm = "{l s='Are you sure?'}";
var txt_confirm = "{l s='Are you sure?' js=1}";
{literal}
function showWarehouseList()
{
{/literal}{if (count($warehouse_list) > 1)}{literal}
$('#warehouse').show();
{/literal}{/if}{literal}
}
function hideWarehouseList()
{
$('#warehouse').hide();
}
$(document).ready(function() {
hideWarehouseList();
$("input.datepicker").datepicker({
prevText: '',
nextText: '',
dateFormat: 'yy-mm-dd'
});
});
{/literal}
var statesShipped = new Array();
{foreach from=$states item=state}
{if (!$currentState->shipped && $state['shipped'])}
statesShipped.push({$state['id_order_state']});
{/if}
{/foreach}
</script>
{if ($HOOK_INVOICE)}
<div style="float: right; margin: -40px 40px 10px 0;">{$HOOK_INVOICE}</div><br class="clear" />';
{/if}
<fieldset style="width:100%; margin-bottom: 10px;">
<fieldset style="width:98%; margin-bottom: 10px;">
<div style="width:50%; float: left;">
{if (count($invoices_collection))}
<a href="pdf.php?id_order={$order->id}&pdf"><img src="../img/admin/charged_ok.gif" alt="{l s='View invoice'}" /> {l s='View invoice'}</a>
<a href="pdf.php?id_order={$order->id}&pdf" target="_blank"><img src="../img/admin/charged_ok.gif" alt="{l s='View invoice'}" /> {l s='View invoice'}</a>
{else}
<img src="../img/admin/charged_ko.gif" alt="{l s='No invoice'}" /> {l s='No invoice'}
{/if}
-
{if ($currentState->delivery || $order->delivery_number)}
<a href="pdf.php?id_delivery={$order->delivery_number}"><img src="../img/admin/delivery.gif" alt="{l s='View delivery slip'}" /> {l s='View delivery slip'}</a>
<a href="pdf.php?id_order={$order->id}&delivery" target="_blank"><img src="../img/admin/delivery.gif" alt="{l s='View delivery slip'}" /> {l s='View delivery slip'}</a>
{else}
<img src="../img/admin/delivery_ko.gif" alt="{l s='No delivery slip'}" /> {l s='No delivery slip'}
{/if}
@@ -103,389 +87,400 @@
<div class="clear"></div>
</fieldset>
<!-- Left column -->
<div style="width: 48%; float:left;">
<!-- Change status form -->
<form action="{$currentIndex}&viewOrder&token={$smarty.get.token}" method="post" style="text-align:center;">
<select name="id_order_state">
{foreach from=$states item=state}
<option onclick="{if (!$currentState->shipped && $state['shipped'])}showWarehouseList(){else}hideWarehouseList(){/if}" value="{$state['id_order_state']}" {if $state['id_order_state'] == $currentState->id}selected="selected"{/if}>{$state['name']|stripslashes}</option>
{/foreach}
</select>
<select name="id_warehouse" id="warehouse">
{foreach from=$warehouse_list item=warehouse}
<option value="{$warehouse['id_warehouse']}">{$warehouse['name']}</option>
{/foreach}
</select>
<input type="hidden" name="id_order" value="{$order->id}" />
<input type="submit" name="submitState" value="{l s='Add'}" class="button" />
</form>
<br />
<!-- History of status -->
<table cellspacing="0" cellpadding="0" class="table" style="width: 100%;">
{foreach from=$history item=row key=key}
{if ($key == 0)}
<tr>
<th>{dateFormat date=$row['date_add'] full=true}</th>
<th><img src="../img/os/{$row['id_order_state']}.gif" /></th>
<th>{$row['ostate_name']|stripslashes}</th>
<th>{if $row['employee_lastname']}{$row['employee_firstname']|stripslashes} {$row['employee_lastname']|stripslashes}{/if}</th>
</tr>
{else}
<tr class="{if ($key % 2)}alt_row{/if}">
<td>{dateFormat date=$row['date_add'] full=true}</td>
<td><img src="../img/os/{$row['id_order_state']}.gif" /></td>
<td>{$row['ostate_name']|stripslashes}</td>
<td>{if $row['employee_lastname']}{$row['employee_firstname']|stripslashes} {$row['employee_lastname']|stripslashes}{/if}</td>
</tr>
{/if}
{/foreach}
</table>
{if $customer->id}
<!-- Customer informations -->
<br />
<fieldset style="width: 100%;">
<legend><img src="../img/admin/tab-customers.gif" /> {l s='Customer information'}</legend>
<span style="font-weight: bold; font-size: 14px;"><a href="?tab=AdminCustomers&id_customer={$customer->id}&viewcustomer&token={getAdminToken tab='AdminCustomers'}"> {$customer->firstname} {$customer->lastname}</a></span> ({l s='#'}{$customer->id})<br />
(<a href="mailto:{$customer->email}">{$customer->email}</a>)<br /><br />
{if ($customer->isGuest())}
{l s='This order has been placed by a'} <b>{l s='guest'}</b>
{if (!Customer::customerExists($customer->email))}
<form method="POST" action="index.php?tab=AdminCustomers&id_customer={$customer->id}&token={getAdminToken tab='AdminCustomers'}">
<input type="hidden" name="id_lang" value="{$order->id_lang}" />
<p class="center"><input class="button" type="submit" name="submitGuestToCustomer" value="{l s='Transform to customer'}" /></p>
{l s='This feature will generate a random password and send an e-mail to the customer'}
</form>
{else}
<div><b style="color:red;">{l s='A registered customer account exists with the same email address'}</b></div>
{/if}
{else}
{l s='Account registered:'} <b>{dateFormat date=$customer->date_add full=true}</b><br />
{l s='Valid orders placed:'} <b>{$customerStats['nb_orders']}</b><br />
{l s='Total paid since registration:'} <b>{displayPrice price=Tools::ps_round(Tools::convertPrice($customerStats['total_orders'], $currency), 2) currency=$currency->id}</b><br />
</fieldset>
{/if}
{/if}
<!-- Sources block -->
{if (sizeof($sources))}
<br />
<fieldset style="width: 100%;">
<legend><img src="../img/admin/tab-stats.gif" /> {l s='Sources'}</legend>
<ul {if sizeof($sources) > 3}style="height: 200px; overflow-y: scroll; width: 360px;"{/if}>
{foreach from=$sources item=source}
<li>
{dateFormat date=$source['date_add'] full=true}<br />
<b>{l s='From:'}</b> <a href="{$source['http_referer']}">{parse_url($source['http_referer'], $smarty.const.PHP_URL_HOST)|regex_replace:'/^www./':''}</a><br />
<b>{l s='To:'}</b> {$source['request_uri']}<br />
{if $source['keywords']}<b>{l s='Keywords:'}</b> {$source['keywords']}<br />{/if}<br />
</li>
{/foreach}
</ul>
</fieldset>
{/if}
<!-- Admin order hook -->
{if $HOOK_ADMIN_ORDER}
{$HOOK_ADMIN_ORDER}
{/if}
</div>
<!-- END Left column -->
<!-- Right column -->
<div style="width: 48%; float:right;">
<!-- Documents block -->
<fieldset style="width: 100%">
<legend><img src="../img/admin/details.gif" /> {l s='Documents'}</legend>
<table class="table" width="100%;" cellspacing="0" cellpadding="0">
<thead>
<tr>
<th style="width:20%">Date</th>
<th>Document</th>
<th style="width:20%">Number</th>
</tr>
</thead>
<tbody>
{foreach from=$order->getDocuments() item=document}
<tr>
<td>{dateFormat date=$document->date_add}</td>
<td>Invoice</td>
<td><a href="pdf.php?pdf&id_order_invoice={$document->id}">#{Configuration::get('PS_INVOICE_PREFIX', $current_id_lang)}{'%06d'|sprintf:$document->number}</a></td>
</tr>
{foreachelse}
<tr>
<td colspan="3">{l s='No document is available'}</td>
</tr>
{/foreach}
</tbody>
</table>
</fieldset>
<br />
<!-- Payments block -->
<fieldset style="width: 100%;">
<legend><img src="../img/admin/details.gif" /> {l s='Payment'}</legend>
{if !$order->valid}
<form method="post" action="{$currentIndex}&viewOrder&id_order={$smarty.get.id_order|escape:'htmlall':'UTF-8'}&token={$smarty.get.token|escape:'htmlall':'UTF-8'}">
<p class="warn">{l s='Don\'t forget to update your conversion rate before make this change.'}</p>
<label>{l s='Change order\'s currency to:'}</label>
<select name="new_currency">
{foreach from=$currencies item=currency_change}
{if $currency_change['id_currency'] != $order->id_currency}
<option value="{$currency_change['id_currency']}">{$currency_change['name']} - {$currency_change['sign']}</option>
{/if}
{/foreach}
<div style="width: 98%">
<!-- Left column -->
<div style="width: 48%; float:left;">
<!-- Change status form -->
<form action="{$currentIndex}&viewOrder&token={$smarty.get.token}" method="post" style="text-align:center;">
<select id="id_order_state" name="id_order_state">
{foreach from=$states item=state}
<option value="{$state['id_order_state']}" {if $state['id_order_state'] == $currentState->id}selected="selected"{/if}>{$state['name']|stripslashes}</option>
{/foreach}
</select>
<input type="submit" class="button" name="submitChangeCurrency" value="{l s='Change'}" />
<input type="hidden" name="id_order" value="{$order->id}" />
<input type="submit" name="submitState" value="{l s='Add'}" class="button" />
</form>
<hr />
<br />
<!-- History of status -->
<table cellspacing="0" cellpadding="0" class="table" style="width: 100%;">
{foreach from=$history item=row key=key}
{if ($key == 0)}
<tr>
<th>{dateFormat date=$row['date_add'] full=true}</th>
<th><img src="../img/os/{$row['id_order_state']}.gif" /></th>
<th>{$row['ostate_name']|stripslashes}</th>
<th>{if $row['employee_lastname']}{$row['employee_firstname']|stripslashes} {$row['employee_lastname']|stripslashes}{/if}</th>
</tr>
{else}
<tr class="{if ($key % 2)}alt_row{/if}">
<td>{dateFormat date=$row['date_add'] full=true}</td>
<td><img src="../img/os/{$row['id_order_state']}.gif" /></td>
<td>{$row['ostate_name']|stripslashes}</td>
<td>{if $row['employee_lastname']}{$row['employee_firstname']|stripslashes} {$row['employee_lastname']|stripslashes}{else}&nbsp;{/if}</td>
</tr>
{/if}
{/foreach}
</table>
{if $customer->id}
<!-- Customer informations -->
<br />
<fieldset style="width: 100%;">
<legend><img src="../img/admin/tab-customers.gif" /> {l s='Customer information'}</legend>
<span style="font-weight: bold; font-size: 14px;"><a href="?tab=AdminCustomers&id_customer={$customer->id}&viewcustomer&token={getAdminToken tab='AdminCustomers'}"> {$customer->firstname} {$customer->lastname}</a></span> ({l s='#'}{$customer->id})<br />
(<a href="mailto:{$customer->email}">{$customer->email}</a>)<br /><br />
{if ($customer->isGuest())}
{l s='This order has been placed by a'} <b>{l s='guest'}</b>
{if (!Customer::customerExists($customer->email))}
<form method="POST" action="index.php?tab=AdminCustomers&id_customer={$customer->id}&token={getAdminToken tab='AdminCustomers'}">
<input type="hidden" name="id_lang" value="{$order->id_lang}" />
<p class="center"><input class="button" type="submit" name="submitGuestToCustomer" value="{l s='Transform to customer'}" /></p>
{l s='This feature will generate a random password and send an e-mail to the customer'}
</form>
{else}
<div><b style="color:red;">{l s='A registered customer account exists with the same email address'}</b></div>
{/if}
{else}
{l s='Account registered:'} <b>{dateFormat date=$customer->date_add full=true}</b><br />
{l s='Valid orders placed:'} <b>{$customerStats['nb_orders']}</b><br />
{l s='Total paid since registration:'} <b>{displayPrice price=Tools::ps_round(Tools::convertPrice($customerStats['total_orders'], $currency), 2) currency=$currency->id}</b><br />
</fieldset>
{/if}
{/if}
<p class="error" style="{if $order->total_paid_tax_incl == $total_paid}display: none;{/if}">
{l s='Warning:'} {displayPrice price=$total_paid currency=$currency->id}
{l s='paid instead of'} <span class="total_paid">{displayPrice price=$order->total_paid_tax_incl currency=$currency->id}</span>
</p>
<!-- Sources block -->
{if (sizeof($sources))}
<br />
<fieldset style="width: 100%;">
<legend><img src="../img/admin/tab-stats.gif" /> {l s='Sources'}</legend>
<ul {if sizeof($sources) > 3}style="height: 200px; overflow-y: scroll; width: 360px;"{/if}>
{foreach from=$sources item=source}
<li>
{dateFormat date=$source['date_add'] full=true}<br />
<b>{l s='From:'}</b> <a href="{$source['http_referer']}">{parse_url($source['http_referer'], $smarty.const.PHP_URL_HOST)|regex_replace:'/^www./':''}</a><br />
<b>{l s='To:'}</b> {$source['request_uri']}<br />
{if $source['keywords']}<b>{l s='Keywords:'}</b> {$source['keywords']}<br />{/if}<br />
</li>
{/foreach}
</ul>
</fieldset>
{/if}
<form method="post" action="{$currentIndex}&viewOrder&id_order={$smarty.get.id_order|escape:'htmlall':'UTF-8'}&token={$smarty.get.token|escape:'htmlall':'UTF-8'}">
<!-- Admin order hook -->
{if $HOOK_ADMIN_ORDER}
{$HOOK_ADMIN_ORDER}
{/if}
</div>
<!-- END Left column -->
<!-- Right column -->
<div style="width: 48%; float:right;">
<!-- Documents block -->
<fieldset style="width: 100%">
<legend><img src="../img/admin/details.gif" /> {l s='Documents'}</legend>
{* Include document template *}
{include file='orders/_documents.tpl'}
</fieldset>
<br />
<!-- Payments block -->
<fieldset style="width: 100%;">
<legend><img src="../img/admin/money.gif" /> {l s='Payment'}</legend>
{if !$order->valid}
<form method="post" action="{$currentIndex}&viewOrder&id_order={$smarty.get.id_order|escape:'htmlall':'UTF-8'}&token={$smarty.get.token|escape:'htmlall':'UTF-8'}">
<p class="warn">{l s='Don\'t forget to update your conversion rate before make this change.'}</p>
<label>{l s='Change order\'s currency to:'}</label>
<select name="new_currency">
{foreach from=$currencies item=currency_change}
{if $currency_change['id_currency'] != $order->id_currency}
<option value="{$currency_change['id_currency']}">{$currency_change['name']} - {$currency_change['sign']}</option>
{/if}
{/foreach}
</select>
<input type="submit" class="button" name="submitChangeCurrency" value="{l s='Change'}" />
</form>
<hr />
{/if}
<p class="error" style="{if $orders_total_paid_tax_incl == $total_paid}display: none;{/if}">
{l s='Warning:'} {displayPrice price=$total_paid currency=$currency->id}
{l s='paid instead of'} <span class="total_paid">{displayPrice price=$order->total_paid_tax_incl currency=$currency->id}</span>
</p>
<form id="formAddPayment" method="post" action="{$currentIndex}&viewOrder&id_order={$smarty.get.id_order|escape:'htmlall':'UTF-8'}&token={$smarty.get.token|escape:'htmlall':'UTF-8'}">
<table class="table" width="100%" cellspacing="0" cellpadding="0">
<thead>
<tr>
<th style="width:28%">{l s='Date'}</th>
<th>{l s='Payment method'}</th>
<th style="width:15%">{l s='Transaction ID'}</th>
<th style="width:25%">{l s='Amount'}</th>
<th style="width:15%">{l s='Invoice'}</th>
<th style="width:10%">&nbsp;</th>
</tr>
</thead>
<tbody>
{foreach from=$order->getOrderPaymentCollection() item=payment}
<tr>
<td>{dateFormat date=$payment->date_add full=true}</td>
<td>{$payment->payment_method}</td>
<td>{$payment->transaction_id}</td>
<td>{displayPrice price=$payment->amount currency=$payment->id_currency}</td>
<td>
{if $payment->id_order_invoice}
{OrderInvoice::retrieveOneById($payment->id_order_invoice)->getInvoiceNumberFormatted($current_id_lang)}
{else}
{l s='No invoice'}
{/if}
</td>
<td class="right">
<a href="#" class="open_payment_information"><img src="../img/admin/details.gif" title="{l s='See payment informations'}" alt="{l s='See payment informations'}" /></a>
</td>
</tr>
<tr class="payment_information" style="display: none;">
<td colspan="6">
<p>
<b>{l s='Card Number:'}</b>&nbsp;
{if $payment->card_number}
{$payment->card_number}
{else}
<i>{l s='Not defined'}</i>
{/if}
</p>
<p>
<b>{l s='Card Brand:'}</b>&nbsp;
{if $payment->card_brand}
{$payment->card_brand}
{else}
<i>{l s='Not defined'}</i>
{/if}
</p>
<p>
<b>{l s='Card Expiration:'}</b>&nbsp;
{if $payment->card_expiration}
{$payment->card_expiration}
{else}
<i>{l s='Not defined'}</i>
{/if}
</p>
<p>
<b>{l s='Card Holder:'}</b>&nbsp;
{if $payment->card_holder}
{$payment->card_holder}
{else}
<i>{l s='Not defined'}</i>
{/if}
</p>
</td>
</tr>
{foreachelse}
<tr>
<td colspan="6" class="center">
<h3>{l s='No payment available'}</h3>
</td>
</tr>
{/foreach}
{if count($not_paid_invoices_collection) > 0}
<tr class="current-edit">
<td><input type="text" name="payment_date" class="datepicker" size="17" value="{date('Y-m-d H:i:s')}" /></td>
<td>
<select name="payment_method">
{foreach from=$payment_methods item=payment_method}
<option value="{$payment_method}">{$payment_method}</option>
{/foreach}
</select>
</td>
<td>
<input type="text" name="payment_transaction_id" value="" />
</td>
<td>
<input type="text" name="payment_amount" size="5" value="" />
<select name="payment_currency">
{foreach from=$currencies item=current_currency}
<option value="{$current_currency['id_currency']}"{if $current_currency['id_currency'] == $currency->id} selected="selected"{/if}>{$current_currency['sign']}</option>
{/foreach}
</select>
</td>
<td>
<select name="payment_invoice" id="payment_invoice">
{foreach from=$not_paid_invoices_collection item=invoice}
<option value="{$invoice->id}" selected="selected">{$invoice->getInvoiceNumberFormatted($current_id_lang)}</option>
{/foreach}
</select>
</td>
<td><input class="button" type="submit" name="submitAddPayment" value="Add" /></td>
</tr>
{/if}
</tbody>
</table>
</form>
</fieldset>
<br />
<!-- Shipping block -->
<fieldset style="width: 100%">
<legend><img src="../img/admin/delivery.gif" /> {l s='Shipping'}</legend>
<div class="clear" style="float: left; margin-right: 10px;">
<span class="bold">{l s='Recycled package:'}</span>
{if $order->recyclable}
<img src="../img/admin/enabled.gif" />
{else}
<img src="../img/admin/disabled.gif" />
{/if}
</div>
<div style="float: left;">
<span class="bold">{l s='Gift wrapping:'}</span>
{if $order->gift}
<img src="../img/admin/enabled.gif" />
</div>
<div style="clear: left; margin: 0px 42px 0px 42px; padding-top: 2px;">
{if $order->gift_message}
<div style="border: 1px dashed #999; padding: 5px; margin-top: 8px;"><b>{l s='Message:'}</b><br />{$order->gift_message|nl2br}</div>
{/if}
{else}
<img src="../img/admin/disabled.gif" />
{/if}
</div>
<div class="clear" style="margin-bottom: 10px;"></div>
{include file='orders/_shipping.tpl'}
{if $carrierModuleCall}
{$carrierModuleCall}
{/if}
</fieldset>
<br />
<!-- Return block -->
<fieldset style="width: 100%">
<legend><img src="../img/admin/delivery.gif" /> {l s='Merchandise returns'}</legend>
{if $order->getReturn()|count > 0}
<table class="table" width="100%" cellspacing="0" cellpadding="0">
<thead>
<tr>
<th style="width:28%">{l s='Date'}</th>
<th>{l s='Payment method'}</th>
<th style="width:15%">{l s='Transaction ID'}</th>
<th style="width:25%">{l s='Amount'}</th>
<th style="width:10%">&nbsp;</th>
<th style="width:30%">Date</th>
<th>Type</th>
<th style="width:20%">Carrier</th>
<th style="width:30%">Tracking number</th>
</tr>
</thead>
<tbody>
{foreach from=$order->getOrderPaymentCollection() item=payment}
{foreach from=$order->getReturn() item=line}
<tr>
<td>{dateFormat date=$payment->date_add full=true}</td>
<td>{$payment->payment_method}</td>
<td>{$payment->transaction_id}</td>
<td>{displayPrice price=$payment->amount currency=$payment->id_currency}</td>
<td></td>
<td>{$line.date_add}</td>
<td>{$line.type}</td>
<td>{$line.state_name}</td>
<td>
<span id="shipping_number_show">{if isset($line.url) && isset($line.tracking_number)}<a href="{$line.url|replace:'@':$line.tracking_number}">{$line.tracking_number}</a>{else if isset($line.tracking_number)}{$line.tracking_number}{/if}</span>
{if $line.can_edit}
<form style="display: inline;" method="POST" action="{$link->getAdminLink('AdminOrders')}&vieworder&id_order={$smarty.get.id_order|escape:'htmlall':'UTF-8'}&id_order_invoice={if $line.id_order_invoice}{$line.id_order_invoice|escape:'htmlall':'UTF-8'}{else}0{/if}&id_carrier={if $line.id_carrier}{$line.id_carrier|escape:'htmlall':'UTF-8'}{else}0{/if}">
<span class="shipping_number_edit" style="display:none;">
<input type="text" name="tracking_number" value="{$line.tracking_number}" />
<input type="submit" class="button" name="submitShippingNumber" value="{l s='Update'}" />
</span>
<a href="#" class="edit_shipping_number_link"><img src="../img/admin/edit.gif" alt="{l s='Edit'}" /></a>
<a href="#" class="cancel_shipping_number_link" style="display: none;"><img src="../img/admin/disabled.gif" alt="{l s='Cancel'}" /></a>
</form>
{/if}
</td>
</tr>
{/foreach}
<tr>
<td><input type="text" name="payment_date" class="datepicker" size="17" value="{dateFormat date=date('Y-m-d H:i:s') full=true}" /></td>
<td>
<select name="payment_method">
{foreach from=PaymentModule::getInstalledPaymentModules() item=payment_method}
{assign var=payment_name value=Module::getInstanceByName($payment_method.name)->displayName}
<option value="{$payment_name}">{$payment_name}</option>
{/foreach}
</select>
</td>
<td>
<input type="text" name="payment_transaction_id" value="" />
</td>
<td>
<input type="text" name="payment_amount" size="5" value="" />
<select name="payment_currency">
{foreach from=$currencies item=current_currency}
<option value="{$current_currency['id_currency']}"{if $current_currency['id_currency'] == $currency->id} selected="selected"{/if}>{$current_currency['sign']}</option>
{/foreach}
</select>
</td>
<td><input class="button" type="submit" name="submitAddPayment" value="Add" /></td>
</tr>
</tbody>
</table>
</form>
</fieldset>
<br />
<!-- Shipping block -->
<fieldset style="width: 100%">
<legend><img src="../img/admin/delivery.gif" /> {l s='Shipping'}</legend>
<div class="clear" style="float: left; margin-right: 10px;">
<span class="bold">{l s='Recycled package:'}</span>
{if $order->recyclable}
<img src="../img/admin/enabled.gif" />
{else}
<img src="../img/admin/disabled.gif" />
{l s='No merchandise returns yet.'}
{/if}
</div>
<div style="float: left;">
<span class="bold">{l s='Gift wrapping:'}</span>
{if $order->gift}
<img src="../img/admin/enabled.gif" />
</div>
<div style="clear: left; margin: 0px 42px 0px 42px; padding-top: 2px;">
{if $order->gift_message}
<div style="border: 1px dashed #999; padding: 5px; margin-top: 8px;"><b>{l s='Message:'}</b><br />{$order->gift_message|nl2br}</div>
{/if}
{else}
<img src="../img/admin/disabled.gif" />
{if $carrierModuleCall}
{$carrierModuleCall}
{/if}
</div>
<div class="clear" style="margin-bottom: 10px;"></div>
<table class="table" width="100%" cellspacing="0" cellpadding="0">
<thead>
<tr>
<th style="width:30%">{l s='Date:'}</th>
<th>{l s='Type'}</th>
<th style="width:20%">{l s='Carrier'}</th>
<th>{l s='Weight'}</th>
<th style="width:15%">{l s='Shipping cost'}</th>
<th style="width:30%">{l s='Tracking number'}</th>
</tr>
</thead>
<tbody>
{foreach from=$order->getShipping() item=line}
<tr>
<td>{$line.date_add}</td>
<td>{$line.type}</td>
<td>{$line.state_name}</td>
<td>{$line.weight|string_format:"%.3f"} {Configuration::get('PS_WEIGHT_UNIT')}</td>
<td>{if $order->getTaxCalculationMethod() == $smarty.const.PS_TAX_INC}{displayPrice price=$line.shipping_cost_tax_incl currency=$currency->id}{else}{displayPrice price=$line.shipping_cost_tax_excl currency=$currency->id}{/if}</td>
<td>
<span id="shipping_number_show">{if $line.url && $line.tracking_number}<a href="{$line.url|replace:'@':$line.tracking_number}">{$line.tracking_number}</a>{else}{$line.tracking_number}{/if}</span>
{if $line.can_edit}
<form style="display: inline;" method="POST" action="{$link->getAdminLink('AdminOrders')}&vieworder&id_order={$smarty.get.id_order|escape:'htmlall':'UTF-8'}&id_order_invoice={if $line.id_order_invoice}{$line.id_order_invoice|escape:'htmlall':'UTF-8'}{else}0{/if}&id_carrier={if $line.id_carrier}{$line.id_carrier|escape:'htmlall':'UTF-8'}{else}0{/if}">
<span class="shipping_number_edit" style="display:none;">
<input type="text" name="tracking_number" value="{$line.tracking_number}" />
<input type="submit" class="button" name="submitShippingNumber" value="{l s='Update'}" />
</span>
<a href="#" class="edit_shipping_number_link"><img src="../img/admin/edit.gif" alt="{l s='Edit'}" /></a>
<a href="#" class="cancel_shipping_number_link" style="display: none;"><img src="../img/admin/disabled.gif" alt="{l s='Cancel'}" /></a>
</form>
{/if}
</td>
</tr>
{/foreach}
</tbody>
</table>
{if $carrierModuleCall}
{$carrierModuleCall}
{/if}
</fieldset>
<!-- Return block -->
<fieldset style="width: 100%">
<legend><img src="../img/admin/delivery.gif" /> {l s='Merchandise returns'}</legend>
{if $order->getReturn()|count > 0}
<table class="table" width="100%" cellspacing="0" cellpadding="0">
<thead>
<tr>
<th style="width:30%">Date</th>
<th>Type</th>
<th style="width:20%">Carrier</th>
<th style="width:30%">Tracking number</th>
</tr>
</thead>
<tbody>
{foreach from=$order->getReturn() item=line}
<tr>
<td>{$line.date_add}</td>
<td>{$line.type}</td>
<td>{$line.state_name}</td>
<td>
<span id="shipping_number_show">{if $line.url && $line.tracking_number}<a href="{$line.url|replace:'@':$line.tracking_number}">{$line.tracking_number}</a>{else}{$line.tracking_number}{/if}</span>
{if $line.can_edit}
<form style="display: inline;" method="POST" action="{$link->getAdminLink('AdminOrders')}&vieworder&id_order={$smarty.get.id_order|escape:'htmlall':'UTF-8'}&id_order_invoice={if $line.id_order_invoice}{$line.id_order_invoice|escape:'htmlall':'UTF-8'}{else}0{/if}&id_carrier={if $line.id_carrier}{$line.id_carrier|escape:'htmlall':'UTF-8'}{else}0{/if}">
<span class="shipping_number_edit" style="display:none;">
<input type="text" name="tracking_number" value="{$line.tracking_number}" />
<input type="submit" class="button" name="submitShippingNumber" value="{l s='Update'}" />
</span>
<a href="#" class="edit_shipping_number_link"><img src="../img/admin/edit.gif" alt="{l s='Edit'}" /></a>
<a href="#" class="cancel_shipping_number_link" style="display: none;"><img src="../img/admin/disabled.gif" alt="{l s='Cancel'}" /></a>
</form>
{/if}
</td>
</tr>
{/foreach}
</tbody>
</table>
{else}
{l s='No merchandise returns yet.'}
{/if}
{if $carrierModuleCall}
{$carrierModuleCall}
{/if}
</fieldset>
</fieldset>
</div>
<!-- END Right column -->
<div class="clear" style="margin-bottom: 10px;"></div>
</div>
<!-- END Right column -->
<div class="clear" style="margin-bottom: 10px;"></div>
<!-- Addresses -->
<div style="width: 48%; float:left;"></contact>
<!-- Shipping address -->
<fieldset style="width: 100%;">
<legend><img src="../img/admin/delivery.gif" alt="{l s='Shipping address'}" />{l s='Shipping address'}</legend>
<div style="width: 98%">
<!-- Addresses -->
<div style="width: 48%; float:left;"></contact>
<!-- Shipping address -->
<fieldset style="width: 100%;">
<legend><img src="../img/admin/delivery.gif" alt="{l s='Shipping address'}" />{l s='Shipping address'}</legend>
{if $can_edit}
<form method="POST" action="{$link->getAdminLink('AdminOrders')}&vieworder&id_order={$smarty.get.id_order|escape:'htmlall':'UTF-8'}">
<div style="margin-bottom:5px;border-bottom:1px solid black;">
<p style="text-align:center;">
<select name="id_address">
{foreach from=$customer_addresses item=address}
<option value="{$address['id_address']}"{if $address['id_address'] == $order->id_address_delivery} selected="selected"{/if}>{$address['alias']} - {$address['address1']} {$address['postcode']} {$address['city']}{if !empty($address['state'])} {$address['state']}{/if}, {$address['country']}</option>
{/foreach}
</select>
<input class="button" type="submit" name="submitAddressShipping" value="{l s='Change'}" />
</p>
{if $can_edit}
<form method="POST" action="{$link->getAdminLink('AdminOrders')}&vieworder&id_order={$smarty.get.id_order|escape:'htmlall':'UTF-8'}">
<div style="margin-bottom:5px;border-bottom:1px solid black;">
<p style="text-align:center;">
<select name="id_address">
{foreach from=$customer_addresses item=address}
<option value="{$address['id_address']}"{if $address['id_address'] == $order->id_address_delivery} selected="selected"{/if}>{$address['alias']} - {$address['address1']} {$address['postcode']} {$address['city']}{if !empty($address['state'])} {$address['state']}{/if}, {$address['country']}</option>
{/foreach}
</select>
<input class="button" type="submit" name="submitAddressShipping" value="{l s='Change'}" />
</p>
</div>
</form>
{/if}
<div style="float: right">
<a href="?tab=AdminAddresses&id_address={$addresses.delivery->id}&addaddress&realedit=1&id_order={$order->id}{if ($addresses.delivery->id == $addresses.invoice->id)}&address_type=1{/if}&token={getAdminToken tab='AdminAddresses'}&back={$smarty.server.REQUEST_URI}"><img src="../img/admin/edit.gif" /></a>
<a href="http://maps.google.com/maps?f=q&hl={$iso_code_lang}&geocode=&q={$addresses.delivery->address1} {$addresses.delivery->postcode} {$addresses.delivery->city} {if ($addresses.delivery->id_state)} {$addresses.deliveryState->name}{/if}" target="_blank"><img src="../img/admin/google.gif" alt="" class="middle" /></a>
</div>
</form>
{/if}
<div style="float: right">
<a href="?tab=AdminAddresses&id_address={$addresses.delivery->id}&addaddress&realedit=1&id_order={$order->id}{if ($addresses.delivery->id == $addresses.invoice->id)}&address_type=1{/if}&token={getAdminToken tab='AdminAddresses'}&back={$smarty.server.REQUEST_URI}"><img src="../img/admin/edit.gif" /></a>
<a href="http://maps.google.com/maps?f=q&hl={$iso_code_lang}&geocode=&q={$addresses.delivery->address1} {$addresses.delivery->postcode} {$addresses.delivery->city} {if ($addresses.delivery->id_state)} {$addresses.deliveryState->name}{/if}" target="_blank"><img src="../img/admin/google.gif" alt="" class="middle" /></a>
</div>
{displayAddressDetail address=$addresses.delivery newLine='<br />'}
{if $addresses.delivery->other}<hr />{$addresses.delivery->other}<br />{/if}
</fieldset>
</div>
{displayAddressDetail address=$addresses.delivery newLine='<br />'}
{if $addresses.delivery->other}<hr />{$addresses.delivery->other}<br />{/if}
</fieldset>
</div>
<div style="width: 48%; float:right;"></contact>
<!-- Invoice address -->
<fieldset style="width: 100%;">
<legend><img src="../img/admin/invoice.gif" alt="{l s='Invoice address'}" />{l s='Invoice address'}</legend>
<div style="width: 48%; float:right;"></contact>
<!-- Invoice address -->
<fieldset style="width: 100%;">
<legend><img src="../img/admin/invoice.gif" alt="{l s='Invoice address'}" />{l s='Invoice address'}</legend>
{if $can_edit}
<form method="POST" action="{$link->getAdminLink('AdminOrders')}&vieworder&id_order={$smarty.get.id_order|escape:'htmlall':'UTF-8'}">
<div style="margin-bottom:5px;border-bottom:1px solid black;">
<p style="text-align:center;">
<select name="id_address">
{foreach from=$customer_addresses item=address}
<option value="{$address['id_address']}"{if $address['id_address'] == $order->id_address_invoice} selected="selected"{/if}>{$address['alias']} - {$address['address1']} {$address['postcode']} {$address['city']}{if !empty($address['state'])} {$address['state']}{/if}, {$address['country']}</option>
{/foreach}
</select>
<input class="button" type="submit" name="submitAddressInvoice" value="{l s='Change'}" />
</p>
</div>
</form>
{/if}
{if $can_edit}
<form method="POST" action="{$link->getAdminLink('AdminOrders')}&vieworder&id_order={$smarty.get.id_order|escape:'htmlall':'UTF-8'}">
<div style="margin-bottom:5px;border-bottom:1px solid black;">
<p style="text-align:center;">
<select name="id_address">
{foreach from=$customer_addresses item=address}
<option value="{$address['id_address']}"{if $address['id_address'] == $order->id_address_invoice} selected="selected"{/if}>{$address['alias']} - {$address['address1']} {$address['postcode']} {$address['city']}{if !empty($address['state'])} {$address['state']}{/if}, {$address['country']}</option>
{/foreach}
</select>
<input class="button" type="submit" name="submitAddressInvoice" value="{l s='Change'}" />
</p>
<div style="float: right">
<a href="?tab=AdminAddresses&id_address={$addresses.invoice->id}&addaddress&realedit=1&id_order={$order->id}{if ($addresses.delivery->id == $addresses.invoice->id)}&address_type=2{/if}&back={$smarty.server.REQUEST_URI}&token={getAdminToken tab='AdminAddresses'}"><img src="../img/admin/edit.gif" /></a>
</div>
</form>
{/if}
<div style="float: right">
<a href="?tab=AdminAddresses&id_address={$addresses.invoice->id}&addaddress&realedit=1&id_order={$order->id}{if ($addresses.delivery->id == $addresses.invoice->id)}&address_type=2{/if}&back={$smarty.server.REQUEST_URI}&token={getAdminToken tab='AdminAddresses'}"><img src="../img/admin/edit.gif" /></a>
</div>
{displayAddressDetail address=$addresses.invoice newLine='<br />'}
{if $addresses.invoice->other}<hr />{$addresses.invoice->other}<br />{/if}
</fieldset>
{displayAddressDetail address=$addresses.invoice newLine='<br />'}
{if $addresses.invoice->other}<hr />{$addresses.invoice->other}<br />{/if}
</fieldset>
</div>
<div class="clear" style="margin-bottom: 10px;"></div>
</div>
<div class="clear" style="margin-bottom: 10px;"></div>
<form action="{$currentIndex}&vieworder&token={$smarty.get.token}" method="post" onsubmit="return orderDeleteProduct('{l s='Cannot return this product'}', '{l s='Quantity to cancel is greater than quantity available'}');">
<form style="width: 98%" action="{$currentIndex}&vieworder&token={$smarty.get.token}" method="post" onsubmit="return orderDeleteProduct('{l s='Cannot return this product'}', '{l s='Quantity to cancel is greater than quantity available'}');">
<input type="hidden" name="id_order" value="{$order->id}" />
<fieldset style="width: 100%; ">
<div style="display: none">
<input type="hidden" value="{$order->getWarehouseList()|implode}" id="warehouse_list" />
</div>
<legend><img src="../img/admin/cart.gif" alt="{l s='Products'}" />{l s='Products'}</legend>
<div style="float:left;width: 100%;">
{if $can_edit}
<div style="float: left;"><a href="#" class="add_product"><img src="../img/admin/add.gif" alt="{l s='Add a product'}" /> {l s='Add a product'}</a></div>
{if !$order->hasBeenDelivered()}<div style="float: left;"><a href="#" class="add_product"><img src="../img/admin/add.gif" alt="{l s='Add a product'}" /> {l s='Add a product'}</a></div>{/if}
<div style="float: right; margin-right: 10px" id="refundForm">
<!--
<a href="#" class="standard_refund"><img src="../img/admin/add.gif" alt="{l s='Proceed a standard refund'}" /> {l s='Proceed a standard refund'}</a>
@@ -518,9 +513,11 @@
<th style="width: 8%;text-align:right;display:none" class="partial_refund_fields">
{l s='Partial refund'}
</th>
{if !$order->hasBeenDelivered()}
<th style="width: 8%;text-align:center;">
{l s='Action'}
</th>
{/if}
</tr>
{foreach from=$products item=product key=k}
@@ -549,44 +546,45 @@
</div>
<div style="float:right;">
<table class="table" width="300px;" cellspacing="0" cellpadding="0">
<table class="table" width="450px;" cellspacing="0" cellpadding="0">
<tr id="total_products">
<td width="150px;">{l s='Products'}</td>
<td align="right">{displayPrice price=$order->total_products_wt currency=$currency->id}</td>
<td class="partial_refund_fields" style="display:none;background-color:rgb(232, 237, 194);">&nbsp;</td>
<td width="150px;"><b>{l s='Products'}</b></td>
<td class="amount" align="right">{displayPrice price=$order->total_products_wt currency=$currency->id}</td>
<td class="partial_refund_fields current-edit" style="display:none;">&nbsp;</td>
</tr>
<tr id="total_discounts" {if $order->total_discounts_tax_incl == 0}style="display: none;"{/if}>
<td>{l s='Discounts'}</td>
<td align="right">-{displayPrice price=$order->total_discounts_tax_incl currency=$currency->id}</td>
<td class="partial_refund_fields" style="display:none;background-color:rgb(232, 237, 194);">&nbsp;</td>
<td><b>{l s='Discounts'}</b></td>
<td class="amount" align="right">-{displayPrice price=$order->total_discounts_tax_incl currency=$currency->id}</td>
<td class="partial_refund_fields current-edit" style="display:none;">&nbsp;</td>
</tr>
<tr id="total_wrapping" {if $order->total_wrapping_tax_incl == 0}style="display: none;"{/if}>
<td>{l s='Wrapping'}</td>
<td align="right">{displayPrice price=$order->total_wrapping_tax_incl currency=$currency->id}</td>
<td class="partial_refund_fields" style="display:none;background-color:rgb(232, 237, 194);">&nbsp;</td>
<td><b>{l s='Wrapping'}</b></td>
<td class="amount" align="right">{displayPrice price=$order->total_wrapping_tax_incl currency=$currency->id}</td>
<td class="partial_refund_fields current-edit" style="display:none;">&nbsp;</td>
</tr>
<tr id="total_shipping">
<td>{l s='Shipping'}</td>
<td align="right">{displayPrice price=$order->total_shipping_tax_incl currency=$currency->id}</td>
<td class="partial_refund_fields" style="display:none;background-color:rgb(232, 237, 194);"><input type="text" size="3" name="partialRefundShippingCost" /> &euro;</td>
<td><b>{l s='Shipping'}</b></td>
<td class="amount" align="right">{displayPrice price=$order->total_shipping_tax_incl currency=$currency->id}</td>
<td class="partial_refund_fields current-edit" style="display:none;"><input type="text" size="3" name="partialRefundShippingCost" /> &euro;</td>
</tr>
<tr style="font-size: 20px" id="total_order">
<td>{l s='Total'}</td>
<td align="right">
<td style="font-size: 20px">{l s='Total'}</td>
<td class="amount" style="font-size: 20px" align="right">
{displayPrice price=$order->total_paid_tax_incl currency=$currency->id}
</td>
<td class="partial_refund_fields" style="display:none;background-color:rgb(232, 237, 194);">&nbsp;</td>
<td class="partial_refund_fields current-edit" style="display:none;">&nbsp;</td>
</tr>
</table>
</div>
<div class="clear"></div>
{if (sizeof($discounts))}
<div style="float:right; width:280px; margin-top:15px;">
{if (sizeof($discounts) || $can_edit)}
<div style="float:right; width:450px; margin-top:15px;">
<table cellspacing="0" cellpadding="0" class="table" style="width:100%;">
<tr>
<th><img src="../img/admin/coupon.gif" alt="{l s='Discounts'}" />{l s='Discount name'}</th>
<th align="center" style="width: 100px">{l s='Value'}</th>
{if $can_edit}<th align="center" style="width: 30px">{l s='Action'}</th>{/if}
</tr>
{foreach from=$discounts item=discount}
<tr>
@@ -597,8 +595,25 @@
{/if}
{displayPrice price=$discount['value'] currency=$currency->id}
</td>
{if $can_edit}
<td class="center">
<a href="{$currentIndex}&submitDeleteVoucher&id_order_cart_rule={$discount['id_order_cart_rule']}&id_order={$smarty.get.id_order|escape:'htmlall':'UTF-8'}&token={$smarty.get.token|escape:'htmlall':'UTF-8'}"><img src="../img/admin/delete.gif" alt="{l s='Delete voucher'}" /></a>
</td>
{/if}
</tr>
{/foreach}
{if $can_edit}
<tr>
<td colspan="3" class="center">
<a href="#" id="add_voucher"><img src="../img/admin/add.gif" alt="{l s='Add'}" /> {l s='Add a new discount'}</a>
</td>
</tr>
<tr style="display: none" >
<td colspan="3" class="current-edit" id="voucher_form">
{include file='orders/_discount_form.tpl'}
</td>
</tr>
{/if}
</table>
</div>
{/if}
@@ -662,7 +677,7 @@
{foreach from=$messages item=message}
<div style="overflow:auto; width:400px;" {if $message['is_new_for_me']}class="new_message"{/if}>
{if ($message['is_new_for_me'])}
<a class="new_message" title="{l s='Mark this message as \'viewed\''}" href="{$smarty.get.REQUEST_URI}&token={$smarty.get.token}&messageReaded={$message['id_message']}"><img src="../img/admin/enabled.gif" alt="" /></a>
<a class="new_message" title="{l s='Mark this message as \'viewed\''}" href="{$smarty.server.REQUEST_URI}&token={$smarty.get.token}&messageReaded={$message['id_message']}"><img src="../img/admin/enabled.gif" alt="" /></a>
{/if}
{l s='At'} <i>{dateFormat date=$message['date_add']}
</i> {l s='from'} <b>{if ($message['elastname'])}{$message['efirstname']} {$message['elastname']}{else}{$message['cfirstname']} {$message['clastname']}{/if}</b>
@@ -676,18 +691,7 @@
{/if}
</div>
<div style="float: left; margin-left: 40px">
<fieldset style="width: 400px;">
<legend><img src="../img/admin/slip.gif" alt="{l s='Credit slip'}" />{l s='Credit slip'}</legend>
{if (!sizeof($slips))}
{l s='No slip for this order.'}
{else}
{foreach from=$slips item=slip}
({dateFormat date=$slip['date_upd']}) : <b><a href="pdf.php?id_order_slip={$slip['id_order_slip']}">{l s='#'}{'%06d'|sprintf:$slip['id_order_slip']}</a></b><br />
{/foreach}
{/if}
</fieldset>
</div>
<div class="clear">&nbsp;</div>
<br /><br /><a href="{$currentIndex}&token={$smarty.get.token}"><img src="../img/admin/arrow2.gif" /> {l s='Back to list'}</a><br />

View File

@@ -0,0 +1,30 @@
{*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @version Release: $Revision: 9589 $
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{* Generate HTML code for printing Invoice Icon with link *}
<span style="width:20px; margin-right:5px;">
<a href="pdf.php?id_order_invoice={$id_invoice}&pdf"><img src="../img/admin/tab-invoice.gif" alt="invoice" /></a>
</span>

View File

@@ -94,6 +94,6 @@
</tr>
{/if}
</table>
<div style="text-align:center;"><input type="submit" class="button space" name="submitModule{$list['name_id']}" value="{l s='Save restrictions'}" /></div>
<div><input type="submit" class="button space" name="submitModule{$list['name_id']}" value="{l s='Save restrictions'}" /></div>
</fieldset>
</form>

View File

@@ -150,7 +150,7 @@
return false;
});
$('input[name="smarty_force_compile"], input[name="smarty_cache"]').change(function(){
$('input[name="smarty_force_compile"], input[name="smarty_cache"], input[name="smarty_console"]').change(function(){
$('#smarty_up').val(1);
});

View File

@@ -24,25 +24,43 @@
* International Registered Trademark & Property of PrestaShop SA
*}
{if !empty($error)}
<div class="hint" style="display:block">{$error}</div>
{else}
<fieldset>
<legend>{l s='Account number'}</legend>
<div class="hint" style="display:block">
{l s='Configure the account number of the product for each zone, if a field is empty, it will use the default one of the shop set in the Accounting Management tab'}
</div>
<br />
{foreach from=$productAccountNumberList['zones'] key=id_zone item=currentZone}
<label>{$currentZone['name']}</label>
<div class="margin-form">
<input type="text" name="zone_{$id_zone}" value="{$currentZone['account_number']}" />
</div>
{/foreach}
</form>
<div style="text-align:left; font-size:11px;">
<i>{l s='Theses fields are used for the accounting export'}</i>
</div>
<div class="separation"></div>
</fieldset>
<script type="text/javascript">
$(document).ready(function() {
$('input').keypress(function(e) {
var code = null;
code = (e.keyCode ? e.keyCode : e.which);
return (code == 13) ? false : true;
});
});
</script>
{if isset($product->id)}
<h4>{l s='Accounting'}</h4>
<div class="separation"></div>
{if !empty($error)}
<div class="hint" style="display:block">{$error}</div>
{else}
<fieldset>
<legend>{l s='Account number'}</legend>
<div class="hint" style="display:block">
{l s='Configure the account number of the product for each zone, if a field is empty, it will use the default one of the shop set in the Accounting Management tab'}
</div>
<br />
{foreach from=$productAccountNumberList['zones'] key=id_zone item=currentZone}
<label>{$currentZone['name']}</label>
<div class="margin-form">
<input type="text" name="zone_{$id_zone}" value="{$currentZone['account_number']}" />
</div>
{/foreach}
</form>
<div style="text-align:left; font-size:11px;">
<i>{l s='These fields are used for the accounting export'}</i>
</div>
<div class="separation"></div>
</fieldset>
{/if}
{/if}

View File

@@ -0,0 +1,162 @@
{*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @version Release: $Revision$
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<script type="text/javascript">
$(document).ready(function() {
$('input').keypress(function(e) {
var code = null;
code = (e.keyCode ? e.keyCode : e.which);
return (code == 13) ? false : true;
});
searchCategory();
});
</script>
<div class="Associations">
<h4>{l s='Associations'}</h4>
<div class="separation"></div>
<div id="no_default_category" class="hint">
{l s='Please check a category in order to select the default category.'}
</div>
<table>
<tr>
<td class="col-left">
<label for="category_block">{l s='Associated categories:'}</label>
</td>
<td class="col-right">
<div id="category_block">{$category_tree}</div>
</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td class="col-left">
<label for="id_category_default">{l s='Default category:'}</label>
</td>
<td class="col-right">
<select id="id_category_default" name="id_category_default">
{foreach from=$selected_cat item=cat}
<option value="{$cat.id_category}" {if $product->id_category_default == $cat.id_category}selected="selected"{/if} >{$cat.name}</option>
{/foreach}
</select>
</td>
</tr>
</table>
{if $feature_shop_active}
<div class="separation"></div>
{* @todo use asso_shop from Helper *}
<label>{l s='Shop association:'}</label>
{$displayAssoShop}
{/if}
<div class="separation"></div>
<table>
<tr>
<td class="col-left"><label>{l s='Accessories:'}</label></td>
<td style="padding-bottom:5px;">
<input type="hidden" name="inputAccessories" id="inputAccessories" value="{foreach from=$accessories item=accessory}{$accessory.id_product}-{/foreach}" />
<input type="hidden" name="nameAccessories" id="nameAccessories" value="{foreach from=$accessories item=accessory}{$accessory.name|htmlentitiesUTF8}¤{/foreach}" />
<div id="ajax_choose_product">
<p style="clear:both;margin-top:0;">
<input type="text" value="" id="product_autocomplete_input" />
{l s='Begin typing the first letters of the product name, then select the product from the drop-down list'}
</p>
<p class="preference_description">{l s='(Do not forget to Save the product afterward)'}</p>
<!--<img onclick="$(this).prev().search();" style="cursor: pointer;" src="../img/admin/add.gif" alt="{l s='Add an accessory'}" title="{l s='Add an accessory'}" />-->
</div>
<div id="divAccessories">
{* @todo : donot use 3 foreach, but assign var *}
{foreach from=$accessories item=accessory}
{$accessory.name|htmlentitiesUTF8}{if !empty($accessory.reference)}{$accessory.reference}{/if}
<span onclick="delAccessory({$accessory.id_product});" style="cursor: pointer;">
<img src="../img/admin/delete.gif" class="middle" alt="" />
</span><br />
{/foreach}
</div>
</td>
</tr>
<tr>
<br />
<td class="col-left"><label>{l s='Manufacturer:'}</label></td>
<td style="padding-bottom:5px;">
<select name="id_manufacturer" id="id_manufacturer">
<option value="0">-- {l s='Choose (optional)'} --</option>
{if $product->id_manufacturer}
<option value="{$product->id_manufacturer}" selected="selected">{$product->manufacturer_name}</option>
{/if}
<option disabled="disabled">----------</option>
</select>&nbsp;&nbsp;&nbsp;
<a href="{$link->getAdminLink('AdminManufacturers')}&addmanufacturer" class="confirm_leave">
<img src="../img/admin/add.gif" alt="{l s='Create'}" title="{l s='Create'}" /> <b>{l s='Create'}</b>
</a>
</td>
</tr>
</table>
</div>
<script type="text/javascript">
var formProduct;
var accessories = new Array();
urlToCall = null;
/* function autocomplete */
$(document).ready(function() {
$('#product_autocomplete_input')
.autocomplete('ajax_products_list.php', {
minChars: 1,
autoFill: true,
max:20,
matchContains: true,
mustMatch:true,
scroll:false,
cacheLength:0,
formatItem: function(item) {
return item[1]+' - '+item[0];
}
}).result(addAccessory);
$('#product_autocomplete_input').setOptions({
extraParams: {
excludeIds : getAccessorieIds()
}
});
getManufacturers();
});
function getAccessorieIds()
{
var ids = {$product->id}+',';
ids += $('#inputAccessories').val().replace(/\\-/g,',').replace(/\\,$/,'');
ids = ids.replace(/\,$/,'');
return ids;
}
</script>

View File

@@ -0,0 +1,145 @@
{*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @version Release: $Revision: 8971 $
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<script type="text/javascript">
$(document).ready(function() {
$('input').keypress(function(e) {
var code = null;
code = (e.keyCode ? e.keyCode : e.which);
return (code == 13) ? false : true;
});
});
</script>
{if isset($obj->id)}
<h4>{l s='Attachment'}</h4>
<div class="separation"></div>
<fieldset>
<label>{l s='Filename:'} </label>
<div class="margin-form translatable">
{foreach $languages as $language}
<div class="lang_{$language.id_lang}" style="{if $language.id_lang != $default_form_language}display:none;{/if}float: left;">
<input type="text" name="attachment_name_{$language.id_lang}" value="{$attachment_name[$language.id_lang]}" />
</div>
{/foreach}
<sup>&nbsp;*</sup>
<p class="preference_description">{l s='Maximum 32 characters.'}</p>
</div>
<div class="clear">&nbsp;</div>
<label>{l s='Description:'} </label>
<div class="margin-form translatable">
{foreach $languages as $language}
<div id="attachment_description_{$language.id_lang}" style="display: {if $language.id_lang == $default_form_language}block{else}none{/if}; float: left;">
<textarea name="attachment_description_{$language.id_lang}">{$attachment_description[$language.id_lang]}</textarea>
</div>
{/foreach}
</div>
<div class="clear">&nbsp;</div>
<label>{l s='File'}</label>
<div class="margin-form">
<p><input type="file" name="attachment_file" /></p>
<p class="preference_description">{l s='Upload file from your computer'} ({$PS_ATTACHMENT_MAXIMUM_SIZE} {l s='Mo maximum'})</p>
</div>
<div class="clear">&nbsp;</div>
<div class="margin-form">
<input type="submit" value="{l s='Add a new attachment file'}" name="submitAddAttachments" class="button" />
</div>
<div class="small"><sup>*</sup> {l s='Required field'}</div>
</fieldset>
<div class="clear">&nbsp;</div>
<table>
<tr>
<td>
<p>{l s='Attachments for this product:'}</p>
<select multiple id="selectAttachment1" name="attachments[]" style="width:300px;height:160px;">
{foreach $attach1 as $attach}
<option value="{$attach.id_attachment}">{$attach.name}</option>
{/foreach}
</select><br /><br />
<a href="#" id="removeAttachment" style="text-align:center;display:block;border:1px solid #aaa;text-decoration:none;background-color:#fafafa;color:#123456;margin:2px;padding:2px">
{l s='Remove'} &gt;&gt;
</a>
</td>
<td style="padding-left:20px;">
<p>{l s='Available attachments:'}</p>
<select multiple id="selectAttachment2" style="width:300px;height:160px;">
{foreach $attach2 as $attach}
<option value="{$attach.id_attachment}">{$attach.name}</option>
{/foreach}
</select><br /><br />
<a href="#" id="addAttachment" style="text-align:center;display:block;border:1px solid #aaa;text-decoration:none;background-color:#fafafa;color:#123456;margin:2px;padding:2px">
&lt;&lt; {l s='Add'}
</a>
</div>
</td>
</tr>
</table>
<div class="clear">&nbsp;</div>
<input type="hidden" name="arrayAttachments" id="arrayAttachments" value="{foreach $attach1 as $attach}{$attach.id_attachment},{/foreach}" />
<input type="submit" name="submitAttachments" id="submitAttachments" value="{l s='Update attachments'}" class="button" />
<script type="text/javascript">
//displayFlags(languages, id_language, allowEmployeeFormLang);
$(document).ready(function() {
$("#addAttachment").live('click', function() {
$("#selectAttachment2 option:selected").each(function(){
var val = $('#arrayAttachments').val();
var tab = val.split(',');
for (var i=0; i < tab.length; i++)
if (tab[i] == $(this).val())
return false;
$('#arrayAttachments').val(val+$(this).val()+',');
});
return !$("#selectAttachment2 option:selected").remove().appendTo("#selectAttachment1");
});
$("#removeAttachment").live('click', function() {
$("#selectAttachment1 option:selected").each(function(){
var val = $('#arrayAttachments').val();
var tab = val.split(',');
var tabs = '';
for (var i=0; i < tab.length; i++)
if (tab[i] != $(this).val())
{
tabs = tabs+','+tab[i];
$('#arrayAttachments').val(tabs);
}
});
return !$("#selectAttachment1 option:selected").remove().appendTo("#selectAttachment2");
});
$("#product").submit(function() {
$("#selectAttachment1 option").each(function(i) {
$(this).attr("selected", "selected");
});
});
});
</script>
{/if}

View File

@@ -0,0 +1,28 @@
{*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @version Release: $Revision: 9197 $
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<a class="pointer default" onclick="javascript:defaultProductAttribute('{$id}', '{getAdminToken tab='AdminProducts'}', $(this).parent('td').parent('tr'));" title="{$action}" >
<img src="../img/admin/asterisk.gif" alt="{$action}" />
</a>

View File

@@ -0,0 +1,28 @@
{*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @version Release: $Revision: 9197 $
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<a class="pointer delete" onclick="javascript:deleteProductAttribute('{$id}', '{getAdminToken tab='AdminProducts'}', $(this).parent('td').parent('tr'));" title="{$action}" >
<img src="../img/admin/delete.gif" alt="{$action}" />
</a>

View File

@@ -0,0 +1,28 @@
{*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @version Release: $Revision: 9197 $
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<a class="pointer edit" onclick="javascript:editProductAttribute('{$id}', '{getAdminToken tab='AdminProducts'}');" title="{l s='Modify this combination'}" ids="'{$id}'">
<img src="../img/admin/edit.gif" alt="{l s='Modify this combination'}" />
</a>

View File

@@ -0,0 +1,50 @@
{*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @version Release: $Revision: 10634 $
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{extends file="helper/list/list_footer.tpl"}
{block name="after"}
<div class="hint clear" style="display:block">
<ul>
<li>{l s='The row in blue is the default combination.'}</li>
<li>{l s='A default combination must be designated for each product.'}</li>
</ul>
</div>
<script type="text/javascript">
var impact = getE('attribute_price_impact');
var impact2 = getE('attribute_weight_impact');
var s_attr_group = $('#span_new_group');
var s_attr_name = $('#span_new_attr');
var s_impact = $('#span_impact');
var s_impact2 = $('#span_weight_impact');
init_elems();
</script>
{/block}

View File

@@ -1,284 +1,338 @@
<a href="#" onclick="$('#add_new_combination').slideToggle();return false;">
<img src="../img/admin/add.gif" alt="" />{l s='Add a new combination'}
</a>
{*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @version Release: $Revision$
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<script type="text/javascript">
$(document).ready(function(){
$(\'#id_mvt_reason\').change(function(){
$(document).ready(function() {
$('input').keypress(function(e) {
var code = null;
code = (e.keyCode ? e.keyCode : e.which);
return (code == 13) ? false : true;
});
});
{if $product->is_virtual}
$('#virtual_good_attributes').show();
{else}
$('#virtual_good_attributes').hide();
{/if}
var msg_combination_1 = '{l s='Please choose a group'}';
var msg_combination_2 = '{l s='Please choose an attribute'}';
var msg_combination_3 = '{l s='You can only add one combination per type of group'}';
</script>
{if isset($product->id)}
<script type="text/javascript">
$(document).ready(function(){
$('#id_mvt_reason').change(function(){
updateMvtStatus($(this).val());
});
updateMvtStatus($(this).val());
});
updateMvtStatus($(this).val());
if ( $("input[name=is_virtual_file]:checked").val() == 1)
{
$("#virtual_good_attributes").show();
$("#is_virtual_file_product").show();
}
else
{
$("#virtual_good_attributes").hide();
$("#is_virtual_file_product").hide();
}
$("input[name=is_virtual_file]").live("change", function() {
if($(this).val() == "1")
{
$("#virtual_good_attributes").show();
$("#is_virtual_file_product").show();
}
else
{
$("#virtual_good_attributes").hide();
$("#is_virtual_file_product").hide();
}
});
});
</script>
<script type="text/javascript">
var attrs = new Array();
var modifyattributegroup = "{l s='Modify this attribute combination' js=1}";
attrs[0] = new Array(0, "---");
{foreach from=$attributeJs key=idgrp item=group}
attrs[{$idgrp}] = new Array(0
, '---'
{foreach from=$group key=idattr item=attrname}
, "{$idattr}", "{$attrname|addslashes}"
{/foreach}
);
{/foreach}
</script>
<table cellpadding="5">
<tr>
<td colspan="2"><b>{l s='Add or modify combinations for this product'}</b> {l s='or go to'}
&nbsp;<a href="index.php?tab=AdminAttributeGenerator&id_product={$product->id}&attributegenerator&token={$token_generator}" onclick="return confirm('{l s='Are you sure you want to delete entered product information?'}');"><img src="../img/admin/appearance.gif" alt="combinations_generator" class="middle" title="{l s='Product combinations generator'}" />&nbsp;{l s='Product combinations generator'}</a>
</td>
</tr>
</table>
<div class="separation"></div><br />
<div id="add_new_combination" style="display: none;">
<table cellpadding="5" style="width:100%">
<tr>
<td style="width:150px;vertical-align:top;text-align:right;padding-right:10px;font-weight:bold;" valign="top">{l s='Group:'}</td>
<td style="padding-bottom:5px;"><select name="attribute_group" id="attribute_group" style="width: 200px;" onchange="populate_attrs();">
{if isset($attributes_groups)}
{foreach from=$attributes_groups key=k item=attribute_group}
<option value="{$attribute_group.id_attribute_group}">{$attribute_group.name|htmlentitiesUTF8}&nbsp;&nbsp;</option>
{/foreach}
{/if}
</select></td>
</tr>
<tr>
<td style="width:150px;vertical-align:top;text-align:right;padding-right:10px;font-weight:bold;" valign="top">{l s='Attribute:'}
</td>
<td style="padding-bottom:5px;">
<select name="attribute" id="attribute" style="width: 200px;">
<option value="0">---</option>
</select>
<script type="text/javascript">
$(document).ready(function()
{
populate_attrs();
});
</script>
</td>
</tr>
<tr>
<td style="width:150px;vertical-align:top;text-align:right;padding-right:10px;font-weight:bold;" valign="top">
<input style="width: 140px; margin-bottom: 10px;" type="button" value="{l s='Add'}" class="button" onclick="add_attr();"/><br />
<input style="width: 140px;" type="button" value="{l s='Delete'}" class="button" onclick="del_attr()"/></td>
<td align="left">
<select id="product_att_list" name="attribute_combinaison_list[]" multiple="multiple" size="4" style="width: 320px;"></select>
</td>
</tr>
<tr><td colspan="2"><div class="separation"></div></td></tr>
<tr>
<td style="width:150px;vertical-align:top;text-align:right;padding-right:10px;font-weight:bold;">{l s='Reference:'}</td>
<td style="padding-bottom:5px;">
<input size="55" type="text" id="attribute_reference" name="attribute_reference" value="" style="width: 130px; margin-right: 44px;" />
{l s='EAN13:'}<input size="55" maxlength="13" type="text" id="attribute_ean13" name="attribute_ean13" value="" style="width: 110px; margin-left: 10px; margin-right: 44px;" />
{l s='UPC:'}<input size="55" maxlength="12" type="text" id="attribute_upc" name="attribute_upc" value="" style="width: 110px; margin-left: 10px; margin-right: 44px;" />
<span class="hint" name="help_box">{l s='Special characters allowed:'} .-_#<span class="hint-pointer">&nbsp;</span></span>
</td>
</tr>
<tr><td colspan="2"><div class="separation"></div></td></tr>
<table cellpadding="5" id="virtual_good_attributes" style="width:100%;display:none;">
<tr>
<td colspan="2">
<div style="padding:5px;width:50%;float:left;margin-right:20px;border-right:1px solid #E0D0B1">
<p>{l s='Your server\'s maximum upload file size is'}:&nbsp;{$upload_max_filesize}</p>
<label id="virtual_product_file_attribute_label" for="virtual_product_file_attribute" class="t">{l s='Upload a file'}</label>
<p><input id="virtual_product_file_attribute" name="virtual_product_file_attribute" onchange="uploadFile2();" maxlength="'.$this->maxFileSize.'" type="file"></p>
<div id="upload-confirmation2">
<p id="gethtmlink" style="display: none;">{l s='This is the link'} :&nbsp;{$product->productDownload->getHtmlLink(false, true)}
<a id="make_downloadable_product_attribute" onclick="return confirm('{l s='Delete this file' slashes=1 js=1}')" href="index.php?tab=AdminProducts&id_product={$product->productDownload->id_product}&id_category={$id_category}&token={$token}&deleteVirtualProductAttribute=true" class="red">{l s='Delete this file'}</a>
</p>
</div>
<a id="delete_downloadable_product_attribute" style="display:none;" onclick="return confirm('{l s='Delete this file' slashes=1 js=1}')" href="index.php?tab=AdminProducts&id_product={$product->id}&id_category={$id_category}&token={$token}&deleteVirtualProductAttribute=true" class="red">{l s='Delete this file'}</a>
{if $up_filename}
<input type="hidden" id="virtual_product_filename_attribute" name="virtual_product_filename_attribute" value="{$up_filename}" />
{/if}
<p class="block">
<label for="virtual_product_name" class="t">{l s='Filename'}</label>
<input id="virtual_product_name_attribute" name="virtual_product_name_attribute" style="width:200px" value="" type="text">
<span class="hint" name="help_box" style="display:none;">{l s='The full filename with its extension (e.g., Book.pdf)'}</span>
</p>
</div>
<div id="virtual_good_more_attribute" style="padding:5px;width:40%;float:left;margin-left:10px">
<p class="block">
<label for="virtual_product_nb_downloable" class="t">{l s='Number of downloads'}</label>
<input type="text" id="virtual_product_nb_downloable_attribute" name="virtual_product_nb_downloable_attribute" value="" class="" size="6" />
<span class="hint" name="help_box" style="display:none">{l s='Number of authorized downloads per customer'}</span>
</p>
<p class="block">
<label for="virtual_product_expiration_date_attribute" class="t">{l s='Expiration date'}</label>
<input type="text" id="virtual_product_expiration_date_attribute" name="virtual_product_expiration_date_attribute" value="" size="11" maxlength="10" autocomplete="off" /> {l s='Format: YYYY-MM-DD'}
<span class="hint" name="help_box" style="display:none">{l s='No expiration date if you leave this blank'}</span>
</p>
<p class="block">
<label for="virtual_product_nb_days" class="t">{l s='Number of days'}</label>
<input type="text" id="virtual_product_nb_days_attribute" name="virtual_product_nb_days_attribute" value="" class="" size="4" /><sup> *</sup>
<span class="hint" name="help_box" style="display:none">{l s='How many days this file can be accessed by customers'} - <em>({l s='set to zero for unlimited access'} ) </em></span>
</p>
<p class="block">
<label for="virtual_product_is_shareable_attribute" class="t">{l s='is shareable'}</label>
<input type="checkbox" id="virtual_product_is_shareable_attribute" name="virtual_product_is_shareable" value="1" />
<span class="hint" name="help_box" style="display:none">{l s='Specify if the file can be shared'}</span>
</p>
</div>
</td>
</tr>
<tr><td colspan="2"><div class="separation"></div></td></tr>
</table>
<table>
<tr>
<td style="width:150px;vertical-align:top;text-align:right;padding-right:10px;font-weight:bold;">{l s='Wholesale price:'}</td>
<td style="padding-bottom:5px;">
{if $currency->format % 2 != 0}{$currency->sign}{/if}
<input type="text" size="6" name="attribute_wholesale_price" id="attribute_wholesale_price" value="0.00" onKeyUp="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.');" />
{if $currency->format % 2 == 0} {$currency->sign} {/if}({l s='overrides Wholesale price on Information tab'})</td>
</tr>
<tr>
<td style="width:150px;vertical-align:top;text-align:right;padding-right:10px;font-weight:bold;">{l s='Impact on price:'}</td>
<td colspan="2" style="padding-bottom:5px;">
<select name="attribute_price_impact" id="attribute_price_impact" style="width: 140px;" onchange="check_impact(); calcImpactPriceTI();">
<option value="0">{l s='None'}</option>
<option value="1">{l s='Increase'}</option>
<option value="-1">{l s='Reduction'}</option>
</select>
<span id="span_impact">&nbsp;&nbsp;{l s='of'}&nbsp;&nbsp;{if $currency->format % 2 != 0}{$currency->sign} {/if}
<input type="text" size="6" name="attribute_price" id="attribute_price" value="0.00" onKeyUp="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.'); calcImpactPriceTI();"/>{if $currency->format % 2 == 0} {$currency->sign}{/if}
{if $country_display_tax_label}
{l s='(tax excl.)'}
<span {if $tax_exclude_option}style="display:none"{/if}> {l s='or'} {if $currency->format % 2 != 0}{$currency->sign} {/if}
<input type="text" size="6" name="attribute_priceTI" id="attribute_priceTI" value="0.00"
onKeyUp="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.'); calcImpactPriceTE();"/>
<script type="text/javascript">
var attrs = new Array();
var modifyattributegroup = "{l s='Modify this attribute combination' js=1}";
attrs[0] = new Array(0, "---");
{foreach from=$attributeJs key=idgrp item=group}
attrs[{$idgrp}] = new Array(0
, '---'
{foreach from=$group key=idattr item=attrname}
, "{$idattr}", "{$attrname|addslashes}"
{/foreach}
);
{/foreach}
</script>
<h4>{l s='Add or modify combinations for this product'}</h4>
<div class="separation"></div> {l s='or go to'}
&nbsp;<a class="button bt-icon confirm_leave" href="index.php?tab=AdminAttributeGenerator&id_product={$product->id}&attributegenerator&token={$token_generator}"><img src="../img/admin/appearance.gif" alt="combinations_generator" class="middle" title="{l s='Product combinations generator'}" /><span>{l s='Product combinations generator'}</span></a>
<div class="separation"></div>
<div id="add_new_combination" style="display: none;">
<table cellpadding="5" style="width:100%">
<tr>
<td style="width:150px;vertical-align:top;text-align:right;padding-right:10px;font-weight:bold;" valign="top">
{l s='Group:'}
</td>
<td style="padding-bottom:5px;">
<select name="attribute_group" id="attribute_group" style="width: 200px;" onchange="populate_attrs();">
{if isset($attributes_groups)}
{foreach from=$attributes_groups key=k item=attribute_group}
<option value="{$attribute_group.id_attribute_group}">{$attribute_group.name|htmlentitiesUTF8}&nbsp;&nbsp;</option>
{/foreach}
{/if}
</select>
</td>
</tr>
<tr>
<td style="width:150px;vertical-align:top;text-align:right;padding-right:10px;font-weight:bold;" valign="top">
{l s='Attribute:'}
</td>
<td style="padding-bottom:5px;">
<select name="attribute" id="attribute" style="width: 200px;">
<option value="0">---</option>
</select>
<script type="text/javascript">
$(document).ready(function(){
populate_attrs();
});
</script>
</td>
</tr>
<tr>
<td style="width:150px;vertical-align:top;text-align:right;padding-right:10px;font-weight:bold;" valign="top">
<input style="width: 140px; margin-bottom: 10px;" type="button" value="{l s='Add'}" class="button" onclick="add_attr();"/><br />
<input style="width: 140px;" type="button" value="{l s='Delete'}" class="button" onclick="del_attr()"/></td>
<td align="left">
<select id="product_att_list" name="attribute_combinaison_list[]" multiple="multiple" size="4" style="width: 320px;"></select>
</td>
</tr>
<tr>
<td colspan="2">
<div class="separation"></div>
</td>
</tr>
<tr>
<td style="width:150px;vertical-align:top;text-align:right;padding-right:10px;font-weight:bold;">{l s='Reference:'}</td>
<td style="padding-bottom:5px;">
<input size="55" type="text" id="attribute_reference" name="attribute_reference" value="" style="width: 130px; margin-right: 44px;" />
{l s='EAN13:'}<input size="55" maxlength="13" type="text" id="attribute_ean13" name="attribute_ean13" value="" style="width: 110px; margin-left: 10px; margin-right: 44px;" />
{l s='UPC:'}<input size="55" maxlength="12" type="text" id="attribute_upc" name="attribute_upc" value="" style="width: 110px; margin-left: 10px; margin-right: 44px;" />
<span class="hint" name="help_box">{l s='Special characters allowed:'} .-_#<span class="hint-pointer">&nbsp;</span></span>
</td>
</tr>
<tr>
<td colspan="2">
<div class="separation"></div>
</td>
</tr>
</table>
<table cellpadding="5" id="virtual_good_attributes" style="width:100%;display:none;">
<tr>
<td colspan="2">
<div style="padding:5px;width:50%;float:left;margin-right:20px;border-right:1px solid #E0D0B1">
<h3>{l s='Virtual product'}</h3>
<p>{l s='Your server\'s maximum upload file size is'}:&nbsp;{$upload_max_filesize}</p>
<label id="virtual_product_file_attribute_label" for="virtual_product_file_attribute" class="t">{l s='Upload a file'}</label>
<p><input id="virtual_product_file_attribute" name="virtual_product_file_attribute" onchange="uploadFile2();" maxlength="'.$this->maxFileSize.'" type="file"></p>
<div id="upload-confirmation2">
<p id="gethtmlink" style="display: none;">{l s='This is the link'} :&nbsp;{$product->productDownload->getHtmlLink(false, true)}
<a id="make_downloadable_product_attribute" onclick="return confirm('{l s='Delete this file' js=1}')" href="index.php?tab=AdminProducts&id_product={$product->productDownload->id_product}&id_category={$id_category}&token={$token}&deleteVirtualProductAttribute=true" class="red">{l s='Delete this file'}</a>
</p>
</div>
<a id="delete_downloadable_product_attribute" style="display:none;" onclick="return confirm('{l s='Delete this file' js=1}')" href="index.php?tab=AdminProducts&id_product={$product->id}&id_category={$id_category}&token={$token}&deleteVirtualProductAttribute=true" class="red">{l s='Delete this file'}</a>
{if $up_filename}
<input type="hidden" id="virtual_product_filename_attribute" name="virtual_product_filename_attribute" value="{$up_filename}" />
{/if}
<p class="block">
<label for="virtual_product_name_attribute" class="t">{l s='Filename'}</label>
<input id="virtual_product_name_attribute" name="virtual_product_name_attribute" style="width:200px" value="" type="text">
<span class="hint" name="help_box" style="display:none;">{l s='The full filename with its extension (e.g., Book.pdf)'}</span>
</p>
</div>
<div id="virtual_good_more_attribute" style="padding:5px;width:40%;float:left;margin-left:10px">
<p class="block">
<label for="virtual_product_nb_downloable" class="t">{l s='Number of downloads'}</label>
<input type="text" id="virtual_product_nb_downloable_attribute" name="virtual_product_nb_downloable_attribute" value="" class="" size="6" />
<span class="hint" name="help_box" style="display:none">{l s='Number of authorized downloads per customer'}</span>
</p>
<p class="block">
<label for="virtual_product_expiration_date_attribute" class="t">{l s='Expiration date'}</label>
<input class="datepicker" type="text" id="virtual_product_expiration_date_attribute" name="virtual_product_expiration_date_attribute" value="" size="11" maxlength="10" autocomplete="off" /> {l s='Format: YYYY-MM-DD'}
<span class="hint" name="help_box" style="display:none">{l s='No expiration date if you leave this blank'}</span>
</p>
<p class="block">
<label for="virtual_product_nb_days" class="t">{l s='Number of days'}</label>
<input type="text" id="virtual_product_nb_days_attribute" name="virtual_product_nb_days_attribute" value="" class="" size="4" /><sup> *</sup>
<span class="hint" name="help_box" style="display:none">{l s='How many days this file can be accessed by customers'} - <em>({l s='set to zero for unlimited access'} ) </em></span>
</p>
<p class="block">
<label for="virtual_product_is_shareable_attribute" class="t">{l s='is shareable'}</label>
<input type="checkbox" id="virtual_product_is_shareable_attribute" name="virtual_product_is_shareable" value="1" />
<span class="hint" name="help_box" style="display:none">{l s='Specify if the file can be shared'}</span>
</p>
</div>
</td>
</tr>
<tr>
<td colspan="2">
<div class="separation"></div>
</td>
</tr>
</table>
<table>
<tr>
<td style="width:150px;vertical-align:top;text-align:right;padding-right:10px;font-weight:bold;">
{l s='Wholesale price:'}
</td>
<td style="padding-bottom:5px;">
{if $currency->format % 2 != 0}{$currency->sign}{/if}
<input type="text" size="6" name="attribute_wholesale_price" id="attribute_wholesale_price" value="" onKeyUp="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.');" />
{if $currency->format % 2 == 0} {$currency->sign} {/if}<span id="attribute_wholesale_price_blank">({l s='leave blank if the price does not change'})</span>
<span style="display:none" id="attribute_wholesale_price_full">({l s='overrides Wholesale price on Information tab'})</span>
</td>
</tr>
<tr>
<td style="width:150px;vertical-align:top;text-align:right;padding-right:10px;font-weight:bold;">{l s='Impact on price:'}</td>
<td colspan="2" style="padding-bottom:5px;">
<select name="attribute_price_impact" id="attribute_price_impact" style="width: 140px;" onchange="check_impact(); calcImpactPriceTI();">
<option value="0">{l s='None'}</option>
<option value="1">{l s='Increase'}</option>
<option value="-1">{l s='Reduction'}</option>
</select>
<span id="span_impact">&nbsp;&nbsp;{l s='of'}&nbsp;&nbsp;{if $currency->format % 2 != 0}{$currency->sign} {/if}
<input type="text" size="6" name="attribute_price" id="attribute_price" value="0.00" onKeyUp="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.'); calcImpactPriceTI();"/>{if $currency->format % 2 == 0} {$currency->sign}{/if}
{if $country_display_tax_label}
{l s='(tax excl.)'}
<span {if $tax_exclude_option}style="display:none"{/if}> {l s='or'}
{if $currency->format % 2 != 0}{$currency->sign} {/if}
<input type="text" size="6" name="attribute_priceTI" id="attribute_priceTI" value="0.00" onKeyUp="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.'); calcImpactPriceTE();"/>
{if $currency->format % 2 == 0} {$currency->sign}{/if} {l s='(tax incl.)'}
</span> {l s='final product price will be set to'}
{if $currency->format % 2 != 0}{$currency->sign} {/if}
<span id="attribute_new_total_price">0.00</span>
{if $currency->format % 2 == 0}{$currency->sign} {/if}
{/if}
</span>
</td>
</tr>
<tr>
<td style="width:150px;vertical-align:top;text-align:right;padding-right:10px;font-weight:bold;">{l s='Impact on weight:'}</td>
<td colspan="2" style="padding-bottom:5px;"><select name="attribute_weight_impact" id="attribute_weight_impact" style="width: 140px;" onchange="check_weight_impact();">
<option value="0">{l s='None'}</option>
<option value="1">{l s='Increase'}</option>
<option value="-1">{l s='Reduction'}</option>
</select>
<span id="span_weight_impact">&nbsp;&nbsp;{l s='of'}&nbsp;&nbsp;
<input type="text" size="6" name="attribute_weight" id="attribute_weight" value="0.00" onKeyUp="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.');" /> {$ps_weight_unit}</span></td>
</tr>
<tr id="tr_unit_impact">
<td style="width:150px;vertical-align:top;text-align:right;padding-right:10px;font-weight:bold;">{l s='Impact on unit price :'}</td>
<td colspan="2" style="padding-bottom:5px;"><select name="attribute_unit_impact" id="attribute_unit_impact" style="width: 140px;" onchange="check_unit_impact();">
<option value="0">{l s='None'}</option>
<option value="1">{l s='Increase'}</option>
<option value="-1">{l s='Reduction'}</option>
</select>
<span id="span_weight_impact">&nbsp;&nbsp;{l s='of'}&nbsp;&nbsp;
&nbsp;&nbsp;{if $currency->format % 2 != 0} {$currency->sign} {/if}
<input type="text" size="6" name="attribute_unity" id="attribute_unity" value="0.00" onKeyUp="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.');" />{if $currency->format % 2 == 0} {$currency->sign}{/if} / <span id="unity_third">{$field_value_unity}</span>
</span></td>
</tr>
{if $ps_use_ecotax}
<tr>
<td style="width:150px;vertical-align:top;text-align:right;padding-right:10px;font-weight:bold;">
{l s='Eco-tax:'}
</td>
<td style="padding-bottom:5px;">{if $currency->format % 2 != 0}{$currency->sign}{/if}
<input type="text" size="3" name="attribute_ecotax" id="attribute_ecotax" value="0.00"
onKeyUp="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.');" />
{if $currency->format % 2 == 0} {$currency->sign}{/if}
({l s='overrides Eco-tax on Information tab'})
</td>
</tr>
{/if}
<tr>
<td style="width:150px;vertical-align:top;text-align:right;padding-right:10px;font-weight:bold;" class="col-left"><label>{l s='Minimum quantity:'}</label>
</td>
<td style="padding-bottom:5px;">
<input size="3" maxlength="6" name="minimal_quantity" id="minimal_quantity" type="text" value="{$minimal_quantity}" />
<p>{l s='The minimum quantity to buy this product (set to 1 to disable this feature)'}</p>
{/if}
</span>
</td>
</tr>
<tr>
<td style="width:150px;vertical-align:top;text-align:right;padding-right:10px;font-weight:bold;" class="col-left" style="width:150px"><label>{l s='Available date:'}</label></td>
<td style="padding-bottom:5px;"><input class="datepicker" id="available_date" name="available_date" value="{$available_date}" style="text-align: center;" type="text" />
<p>{l s='The available date when this product is out of stock'}</p>
<script type="text/javascript">
$(document).ready(function(){
$(".datepicker").datepicker({
prevText: '',
nextText: ''
});
});
</script>
</td>
</tr>
<tr><td colspan="2"><div class="separation"></div></td></tr>
<tr>
<td style="width:150px">{l s='Image:'}</td>
<td style="padding-bottom:5px;">
<ul id="id_image_attr">
{foreach from=$images key=k item=image}
<li style="float: left; width: {$imageWidth}px;">
<input type="checkbox" name="id_image_attr[]" value="{$image.id_image}" id="id_image_attr_{$image.id_image}" />
<label for="id_image_attr_{$image.id_image}" style="float: none;">
<img src="{$smarty.const._THEME_PROD_DIR_}{$image.obj->getExistingImgPath()}-small.jpg"
alt="{$image.legend|htmlentitiesUTF8}"
title="{$image.legend|htmlentitiesUTF8}" />
</label>
</li>
{/foreach}
</ul>
<img id="pic" alt="" title="" style="display: none; width: 100px; height: 100px; float: left; border: 1px dashed #BBB; margin-left: 20px;" />
</td>
</tr>
<td style="width:150px;vertical-align:top;text-align:right;padding-right:10px;font-weight:bold;">{l s='Impact on weight:'}</td>
<td colspan="2" style="padding-bottom:5px;">
<select name="attribute_weight_impact" id="attribute_weight_impact" style="width: 140px;" onchange="check_weight_impact();">
<option value="0">{l s='None'}</option>
<option value="1">{l s='Increase'}</option>
<option value="-1">{l s='Reduction'}</option>
</select>
<span id="span_weight_impact">&nbsp;&nbsp;{l s='of'}&nbsp;&nbsp;
<input type="text" size="6" name="attribute_weight" id="attribute_weight" value="0.00" onKeyUp="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.');" />
{$ps_weight_unit}
</span>
</td>
</tr>
<tr id="tr_unit_impact">
<td style="width:150px;vertical-align:top;text-align:right;padding-right:10px;font-weight:bold;">{l s='Impact on unit price :'}</td>
<td colspan="2" style="padding-bottom:5px;">
<select name="attribute_unit_impact" id="attribute_unit_impact" style="width: 140px;" onchange="check_unit_impact();">
<option value="0">{l s='None'}</option>
<option value="1">{l s='Increase'}</option>
<option value="-1">{l s='Reduction'}</option>
</select>
<span id="span_weight_impact">&nbsp;&nbsp;{l s='of'}&nbsp;&nbsp;&nbsp;&nbsp;
{if $currency->format % 2 != 0} {$currency->sign} {/if}
<input type="text" size="6" name="attribute_unity" id="attribute_unity" value="0.00" onKeyUp="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.');" />{if $currency->format % 2 == 0} {$currency->sign}{/if} / <span id="unity_third">{$field_value_unity}</span>
</span>
</td>
</tr>
{if $ps_use_ecotax}
<tr>
<td style="width:150px;vertical-align:top;text-align:right;padding-right:10px;font-weight:bold;">
{l s='Eco-tax:'}
</td>
<td style="padding-bottom:5px;">{if $currency->format % 2 != 0}{$currency->sign}{/if}
<input type="text" size="3" name="attribute_ecotax" id="attribute_ecotax" value="0.00" onKeyUp="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.');" />
{if $currency->format % 2 == 0} {$currency->sign}{/if}
({l s='overrides Eco-tax on Information tab'})
</td>
</tr>
{/if}
<tr>
<td style="width:150px">{l s='Default:'}<br /><br /></td>
<td style="padding-bottom:5px;">
<input type="checkbox" name="attribute_default" id="attribute_default" value="1" />&nbsp;{l s='Make this the default combination for this product'}<br /><br />
</td>
</tr>
<tr>
<td style="width:150px">&nbsp;</td>
<td style="padding-bottom:5px;">
<span style="float: left;"><input type="submit" name="submitProductAttribute" id="submitProductAttribute" value="{l s='Add this combination'}" class="button" onclick="attr_selectall(); this.form.action += '&addproduct&tabs=3';" /> </span>
<span id="ResetSpan" style="float: left; margin-left: 8px; display: none;">
<input type="reset" name="ResetBtn" id="ResetBtn" onclick="init_elems(); getE('submitProductAttribute').value ='{l s='Add this attributes group'}';
getE('id_product_attribute').value = 0; $('#ResetSpan').slideToggle();" class="button" value="{l s='Cancel modification'}" /></span><span class="clear"></span>
</td>
</tr>
<td style="width:150px;vertical-align:top;text-align:right;padding-right:10px;font-weight:bold;" class="col-left">
<label>{l s='Minimum quantity:'}</label>
</td>
<td style="padding-bottom:5px;">
<input size="3" maxlength="6" name="minimal_quantity" id="minimal_quantity" type="text" value="{$minimal_quantity}" />
<p>{l s='The minimum quantity to buy this product (set to 1 to disable this feature)'}</p>
</td>
</tr>
<tr>
<td style="width:150px;vertical-align:top;text-align:right;padding-right:10px;font-weight:bold;" class="col-left" style="width:150px">
<label>{l s='Available date:'}</label>
</td>
<td style="padding-bottom:5px;">
<input class="datepicker" id="available_date_attribute" name="available_date_attribute" value="{$available_date}" style="text-align: center;" type="text" />
<p>{l s='The available date when this product is out of stock'}</p>
<script type="text/javascript">
$(document).ready(function(){
$(".datepicker").datepicker({
prevText: '',
nextText: '',
dateFormat: 'yy-mm-dd'
});
});
</script>
</td>
</tr>
<tr>
<td colspan="2">
<div class="separation"></div>
</td>
</tr>
<tr>
<td style="width:150px">{l s='Image:'}</td>
<td style="padding-bottom:5px;">
<ul id="id_image_attr">
{foreach from=$images key=k item=image}
<li style="float: left; width: {$imageWidth}px;">
<input type="checkbox" name="id_image_attr[]" value="{$image.id_image}" id="id_image_attr_{$image.id_image}" />
<label for="id_image_attr_{$image.id_image}" style="float: none;">
<img src="{$smarty.const._THEME_PROD_DIR_}{$image.obj->getExistingImgPath()}-small.jpg" alt="{$image.legend|htmlentitiesUTF8}" title="{$image.legend|htmlentitiesUTF8}" />
</label>
</li>
{/foreach}
</ul>
<img id="pic" alt="" title="" style="display: none; width: 100px; height: 100px; float: left; border: 1px dashed #BBB; margin-left: 20px;" />
</td>
</tr>
<tr>
<td style="width:150px">{l s='Default:'}<br /><br /></td>
<td style="padding-bottom:5px;">
<input type="checkbox" name="attribute_default" id="attribute_default" value="1" />
&nbsp;{l s='Make this the default combination for this product'}<br /><br />
</td>
</tr>
<tr>
<td style="width:150px">&nbsp;</td>
<td style="padding-bottom:5px;">
<span style="float: left;">
<input type="submit" name="submitProductAttribute" id="submitProductAttribute" value="{l s='Add this combination'}" class="button" onclick="attr_selectall(); this.form.action += '&addproduct&tabs=3';" add="{l s='Add this combination'}" update="{l s='Update this combination'}" />
</span>
<span id="ResetSpan" style="float:left;margin-left:8px;display:none;">
<input type="reset" name="ResetBtn" id="ResetBtn" onclick="init_elems();getE('id_product_attribute').value = 0;" class="button" value="{l s='Cancel modification'}" />
</span>
<span class="clear"></span>
</td>
</tr>
</table>
</div>
</div>
{$content}
{$list}
{/if}

View File

@@ -0,0 +1,93 @@
{*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @version Release: $Revision: 8971 $
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<script type="text/javascript">
$(document).ready(function() {
$('input').keypress(function(e) {
var code = null;
code = (e.keyCode ? e.keyCode : e.which);
return (code == 13) ? false : true;
});
});
</script>
{if isset($obj->id)}
<h4>{l s='Add or modify customizable properties'}</h4>
<div class="separation"></div><br />
<table cellpadding="5" style="width:100%">
<tr>
<td style="width:150px;text-align:right;padding-right:10px;font-weight:bold;vertical-align:top;" valign="top">{l s='File fields:'}</td>
<td style="padding-bottom:5px;">
<input type="text" name="uploadable_files" id="uploadable_files" size="4" value="{$uploadable_files}" />
<p class="preference_description">{l s='Number of upload file fields displayed'}</p>
</td>
</tr>
<tr>
<td style="width:150px;text-align:right;padding-right:10px;font-weight:bold;vertical-align:top;" valign="top">{l s='Text fields:'}</td>
<td style="padding-bottom:5px;">
<input type="text" name="text_fields" id="text_fields" size="4" value="{$text_fields}" />
<p class="preference_description">{l s='Number of text fields displayed'}</p>
</td>
</tr>
<tr>
<td colspan="2" style="text-align:center;">
<input type="submit" name="submitCustomizationConfiguration" value="{l s='Update settings'}" class="button" onclick="this.form.action += '&addproduct&tabs=5';" />
</td>
</tr>
{if $has_file_labels}
<tr>
<td colspan="2"><div class="separation"></div></td>
</tr>
<tr>
<td style="width:150px" valign="top">{l s='Files fields:'}</td>
<td>
{$display_file_labels}
</td>
</tr>
{/if}
{if $has_text_labels}
<tr>
<td colspan="2"><div class="separation"></div></td>
</tr>
<tr>
<td style="width:150px" valign="top">{l s='Text fields:'}</td>
<td>
{$display_text_labels}
</td>
</tr>
{/if}
<tr>
<td colspan="2" style="text-align:center;">
{if $has_file_labels || $has_text_labels}
<input type="submit" name="submitProductCustomization" id="submitProductCustomization" value="{l s='Save labels'}" class="button" onclick="this.form.action += '&addproduct&tabs=5';" style="margin-top: 9px" />
{/if}
</td>
</tr>
</table>
{/if}

View File

@@ -1,70 +1,108 @@
<table cellpadding="5">
<tr>
<td colspan="2">
<b>{l s='Assign features to this product:'}</b><br />
<ul style="margin: 10px 0 0 20px;">
<li>{l s='You can specify a value for each relevant feature regarding this product, empty fields will not be displayed.'}</li>
<li>{l s='You can either set a specific value, or select among existing pre-defined values you added previously.'}</li>
</ul>
</td>
</tr>
</table>
<div class="separation"></div><br />
<table border="0" cellpadding="0" cellspacing="0" class="table" style="width:900px;">
<tr>
<th>{l s='Feature'}</td>
<th style="width:30%">{l s='Pre-defined value'}</td>
<th style="width:40%"><u>{l s='or'}</u> {l s='Customized value'}</td>
</tr>
</table>
{foreach from=$available_features item=available_feature}
<table cellpadding="5" style="width: 900px; margin-top: 10px">
<tr>
<td>{$available_feature.name}</td>
<td style="width: 30%">
{if sizeof($available_feature.featureValues)}
<select id="feature_{$available_feature.id_feature}_value" name="feature_{$available_feature.id_feature}_value"
onchange="$('.custom_{$available_feature.id_feature}_').val('');">
<option value="0">---&nbsp;</option>
{foreach from=$available_feature.featureValues item=value}
<option value="{$value.id_feature_value}"{if $available_feature.current_item == $value.id_feature_value}selected="selected"{/if} >
{$value.value|truncate:40}&nbsp;
</option>
{/foreach}
</select>
{else}
<input type="hidden" name="feature_{$available_feature.id_feature}_value" value="0" />
<span style="font-size: 10px; color: #666;">{l s='N/A'} -
<a href="{$link->getAdminLink('AdminFeatures')}&amp;addfeature_value&id_feature={$available_feature.id_feature}"
style="color: #666; text-decoration: underline;">{l s='Add pre-defined values first'}</a>
</span>
{/if}
</td>
<td style="width:40%" class="translatable">
{foreach from=$languages item=language}
<div class="lang_{$language.id_lang}" style="{if $language.id_lang != $default_form_language}display:none;{/if}float: left;">
<textarea class="custom_{$available_feature.id_feature}_" name="custom_{$available_feature.id_feature}_{$language.id_lang}" cols="40" rows="1"
onkeyup="if (isArrowKey(event)) return ;$('#feature_{$available_feature.id_feature}_value').val(0);" >{$available_feature.val[$language.id_lang].value|htmlentitiesUTF8|default:""}</textarea>
</div>
{/foreach}
</td>
</tr>
{foreachelse}
<tr><td colspan="3" style="text-align:center;">{l s='No features defined'}</td></tr>
{/foreach}
</table>
<div class="separation"></div>
<div style="text-align:center;">
<a href="{$link->getAdminLink('AdminFeatures')}&amp;addfeature" onclick="return confirm('{l s='You will lose all modifications not saved, you may want to save modifications first?' js=1}');">
<img src="../img/admin/add.gif" alt="new_features" title="{l s='Add a new feature'}" />&nbsp;{l s='Add a new feature'}
</a>
</div>
{*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @version Release: $Revision$
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<script type="text/javascript">
displayFlags(languages, id_language, allowEmployeeFormLang);
$(document).ready(function() {
$('input').keypress(function(e) {
var code = null;
code = (e.keyCode ? e.keyCode : e.which);
return (code == 13) ? false : true;
});
});
</script>
{if isset($product->id)}
<h4>{l s='Assign features to this product:'}</h4>
<div class="separation"></div>
<ul>
<li>{l s='You can specify a value for each relevant feature regarding this product, empty fields will not be displayed.'}</li>
<li>{l s='You can either set a specific value, or select among existing pre-defined values you added previously.'}</li>
</ul>
</td>
</tr>
</table>
<br />
<table border="0" cellpadding="0" cellspacing="0" class="table" style="width:900px;">
<tr>
<th>{l s='Feature'}</td>
<th style="width:30%">{l s='Pre-defined value'}</td>
<th style="width:40%"><u>{l s='or'}</u> {l s='Customized value'}</td>
</tr>
</table>
{foreach from=$available_features item=available_feature}
<table cellpadding="5" style="width: 900px; margin-top: 10px">
<tr>
<td>{$available_feature.name}</td>
<td style="width: 30%">
{if sizeof($available_feature.featureValues)}
<select id="feature_{$available_feature.id_feature}_value" name="feature_{$available_feature.id_feature}_value"
onchange="$('.custom_{$available_feature.id_feature}_').val('');">
<option value="0">---&nbsp;</option>
{foreach from=$available_feature.featureValues item=value}
<option value="{$value.id_feature_value}"{if $available_feature.current_item == $value.id_feature_value}selected="selected"{/if} >
{$value.value|truncate:40}&nbsp;
</option>
{/foreach}
</select>
{else}
<input type="hidden" name="feature_{$available_feature.id_feature}_value" value="0" />
<span style="font-size: 10px; color: #666;">{l s='N/A'} -
<a href="{$link->getAdminLink('AdminFeatures')}&amp;addfeature_value&id_feature={$available_feature.id_feature}"
style="color: #666; text-decoration: underline;" class="confirm_leave">{l s='Add pre-defined values first'}</a>
</span>
{/if}
</td>
<td style="width:40%" class="translatable">
{foreach from=$languages key=k item=language}
<div class="lang_{$language.id_lang}" style="{if $language.id_lang != $default_form_language}display:none;{/if}float: left;">
<textarea class="custom_{$available_feature.id_feature}_" name="custom_{$available_feature.id_feature}_{$language.id_lang}" cols="40" rows="1"
onkeyup="if (isArrowKey(event)) return ;$('#feature_{$available_feature.id_feature}_value').val(0);" >{$available_feature.val[$k].value|htmlentitiesUTF8|default:""}</textarea>
</div>
{/foreach}
</td>
</tr>
{foreachelse}
<tr><td colspan="3" style="text-align:center;">{l s='No features defined'}</td></tr>
{/foreach}
</table>
<div class="separation"></div>
<div style="text-align:center;">
<a href="{$link->getAdminLink('AdminFeatures')}&amp;addfeature" class="confirm_leave">
<img src="../img/admin/add.gif" alt="new_features" title="{l s='Add a new feature'}" />&nbsp;{l s='Add a new feature'}
</a>
</div>
<script type="text/javascript">
displayFlags(languages, id_language, allowEmployeeFormLang);
</script>
{/if}

View File

@@ -23,285 +23,248 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{extends file="helper/form/form.tpl"}
{block name="script"}</script>
<link href="../css/fileuploader.css" rel="stylesheet" type="text/css">
<script src="../js/fileuploader.js" type="text/javascript"></script>
<script src="../js/jquery/ui/jquery.ui.core.min.js" type="text/javascript"></script>
<script src="../js/jquery/ui/jquery.ui.widget.min.js" type="text/javascript"></script>
<script src="../js/jquery/ui/jquery.ui.progressbar.min.js" type="text/javascript"></script>
<script type="text/javascript" src="../js/admin.js"></script>
<script type="text/javascript">
{block name="autoload_tinyMCE"}
// change each by click to load only on click
$(".autoload_rte").each(function(e){
tinySetup({
mode :"exact",
editor_selector :"autoload_rte",
elements : $(this).attr("id"),
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull|cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,undo,redo",
theme_advanced_buttons2 : "link,unlink,anchor,image,cleanup,code,|,forecolor,backcolor,|,hr,removeformat,visualaid,|,charmap,media,|,ltr,rtl,|,fullscreen",
theme_advanced_buttons3 : "",
theme_advanced_buttons4 : "",
setup : function(ed) {
{* Count the total number of the field *}
ed.onKeyUp.add(function(ed, e) {
tinyMCE.triggerSave();
textarea = $('#'+ed.id);
max = textarea.parent('div').find('span.counter').attr('max');
if (max != 'none')
{
textarea_value = textarea.val();
count = stripHTML(textarea_value).length;
rest = max - count;
if (rest < 0)
textarea.parent('div').find('span.counter').html('<span style="color:red;">{l s='Maximum'} '+max+' {l s=' characters'} : '+rest+'</span>');
else
textarea.parent('div').find('span.counter').html(' ');
}
});
}
});
})
{/block}
{block name="defaultForm"}
<div>
<div class="productTabs">
<ul class="tab">
{foreach $product_tabs key=numStep item=tab}
<li class="tab-row">
<a class="tab-page {if $tab.selected}selected{/if}" id="link-{$tab.id}" href="{$tab.href}&amp;updateproduct">{$tab.name}</a>{*todo href when nojs*}
</li>
{/foreach}
</ul>
<div>
<div class="productTabs">
<ul class="tab">
{foreach $product_tabs key=numStep item=tab}
<li class="tab-row">
<a class="tab-page {if $tab.selected}selected{/if}" id="link-{$tab.id}" href="{$tab.href}&amp;updateproduct">{$tab.name}</a>{*todo href when nojs*}
</li>
{/foreach}
</ul>
</div>
</div>
</div>
<script type="text/javascript">
function showSaveButtons()
{
$('#desc-product-save').show();
$('#desc-product-cancel').show();
$('#desc-product-duplicate').show();
$('#desc-product-delete').show();
$('#desc-product-save-and-stay').show();
}
function hideSaveButtons()
{
$('#desc-product-save').hide();
$('#desc-product-cancel').hide();
$('#desc-product-duplicate').hide();
$('#desc-product-delete').hide();
$('#desc-product-save-and-stay').hide();
}
var toload = new Array();
var pos_select = {$pos_select};
var tabs_toolbar_save_buttons = [];
{foreach $tabs_toolbar_save_buttons key=key item=value}
{if $value == true}
tabs_toolbar_save_buttons.push('{$key}');
{/if}
{/foreach}
$(document).ready(function(){
{* submenu binding *}
$(".tab-page").click(function(e){
e.preventDefault();
// currentId is the current producttab id
currentId = $(".productTabs a.selected").attr('id').substr(5);
// id is the wanted producttab id
id = $(this).attr('id').substr(5);
// Update submit button value
var split_position = id.indexOf('-') + 1;
var btn_name = id.substr(split_position);
$("#product_form_submit_btn").attr('name', 'submit'+btn_name);
// Show/hide save buttons
if (jQuery.inArray(btn_name, tabs_toolbar_save_buttons) != -1)
showSaveButtons();
else
hideSaveButtons();
if ($(this).attr("id") != $(".productTabs a.selected").attr('id'))
<script type="text/javascript">
var toload = new Array();
var tabs_preloaded = new Array();
$(document).ready(function()
{
$(".tab-page").removeClass('selected');
$("#product-tab-content-"+currentId).hide();
}
else
{
if (confirm(' {l s='Do you really want to reload the current tab (all modifications will be lost)'}'))
$("#product-tab-content-"+currentId).html();
else
return false;
}
{foreach $tabs_preloaded as $k => $tab}
tabs_preloaded['{$k}'] = '{$tab}';
{/foreach}
$("#product-tab-content-wait").show();
$('.product-tab-content').each(function(){
var id = $(this).attr('id').substr(20);
var split_position = id.indexOf('-') + 1;
var btn_name = id.substr(split_position);
if ($("#product-tab-content-"+id).hasClass('not-loaded') || $(this).hasClass('selected'))
{
myurl = $(this).attr("href")+"&ajax=1";
$.ajax({
url : myurl,
async : true,
success :function(data)
if (tabs_preloaded[btn_name])
if ($("#product-tab-content-"+id).hasClass('not-loaded'))
displayTabProductById('#link-'+id, id, false);
});
{if $is_pack}
$('#pack_product').attr('checked', 'checked');
$('li.tab-row a[id*="VirtualProduct"]').hide();
{elseif $product->is_virtual}
$('#virtual_product').attr('checked', 'checked');
$('li.tab-row a[id*="Pack"]').hide();
$('li.tab-row a[id*="Shipping"]').hide();
$('#condition').attr('disabled', 'disabled');
$('#condition option[value=new]').attr('selected', 'selected');
{else}
$('#simple_product').attr('checked', 'checked');
$('li.tab-row a[id*="Pack"]').hide();
$('li.tab-row a[id*="VirtualProduct"]').hide();
{/if}
$('input[name="type_product"]').click(function() {
// Reset settings
$('li.tab-row a[id*="Pack"]').hide();
$('li.tab-row a[id*="VirtualProduct"]').hide();
$('div.ppack').hide();
$('#is_virtual_good').removeAttr('checked');
$('div.is_virtual_good').hide();
$('#is_virtual').val(0);
$("#virtual_good_attributes").hide();
var val = $(this).val();
if (val == 1)
{
$('li.tab-row a[id*="Pack"]').show();
$('#ppack').val(1).attr('checked', true).attr('disabled', 'disabled');
$('#ppackdiv').show();
$('li.tab-row a[id*="Shipping"]').show();
$('#condition').removeAttr('disabled');
$('#condition option[value=new]').removeAttr('selected');
$('.stockForVirtualProduct').show();
}
else if (val == 2)
{
$('li.tab-row a[id*="VirtualProduct"]').show();
$('#is_virtual_good').attr('checked', true);
$('#virtual_good').show();
$('#is_virtual').val(1);
$("#virtual_good_attributes").show();
$('li.tab-row a[id*="Shipping"]').hide();
$('#condition').attr('disabled', 'disabled');
$('#condition option[value=refurbished]').removeAttr('selected');
$('#condition option[value=used]').removeAttr('selected');
$('.stockForVirtualProduct').hide();
}
else
{
$('li.tab-row a[id*="Shipping"]').show();
$('#condition').removeAttr('disabled');
$('#condition option[value=new]').removeAttr('selected');
$('.stockForVirtualProduct').show();
}
});
$('#desc-product-newCombination').hide();
{* submenu binding *}
$(".tab-page").click(function(e){
e.preventDefault();
// currentId is the current product tab id
currentId = $(".productTabs a.selected").attr('id').substr(5);
// id is the wanted producttab id
id = $(this).attr('id').substr(5);
// Update submit button value
var split_position = id.indexOf('-') + 1;
var btn_name = id.substr(split_position);
$('#key_tab').val(btn_name);
if ($(this).attr("id") != $(".productTabs a.selected").attr('id'))
{
$(".tab-page").removeClass('selected');
$("#product-tab-content-"+currentId).hide();
}
$("#product-tab-content-wait").show();
if ($("#product-tab-content-"+id).hasClass('not-loaded'))
displayTabProductById(this, id, true);
else
{
$("#product-tab-content-"+id).html(data);
$("#product-tab-content-"+id).removeClass('not-loaded');
$("#product-tab-content-"+id).show();
$("#link-"+id).addClass('selected');
}
});
}
else
{
$("#product-tab-content-"+id).show();
$("#link-"+id).addClass('selected');
}
$("#product-tab-content-wait").hide();
$("#product-tab-content-wait").hide();
var languages = new Array();
if (id == "4-Combinations")
populate_attrs();
if (id == '7-Attachments')
{
$("#addAttachment").live('click', function() {
return !$("#selectAttachment2 option:selected").remove().appendTo("#selectAttachment1");
});
$("#removeAttachment").live('click', function() {
return !$("#selectAttachment1 option:selected").remove().appendTo("#selectAttachment2");
});
$("#product").submit(function() {
$("#selectAttachment1 option").each(function(i) {
$(this).attr("selected", "selected");
});
});
}
});
{if $show_product_tab_content}
$("div.productTabs a[id$=-{$show_product_tab_content}]").click();
{/if}
});
</script>
{***********************************************}
{********** TO CHECK !!!!!!!!!!!!!!! ***********}
<script type="text/javascript">
// <![CDATA[
ThickboxI18nImage = "{l s='Image'}";
ThickboxI18nOf = "{l s='of'}";
ThickboxI18nClose = "{l s='Close'}";
ThickboxI18nOrEscKey = "{l s='(or "Esc")'}";
ThickboxI18nNext = "{l s='Next >'}";
ThickboxI18nPrev = "{l s='< Previous'}";
tb_pathToImage = "../img/loadingAnimation.gif";
//]]>
</script>
<script type="text/javascript">
//<![CDATA[
function toggleVirtualProduct(elt)
{
$("#is_virtual_file_product").hide();
$("#virtual_good_attributes").hide();
if (elt.checked)
{
$('#virtual_good').show('slow');
$('#virtual_good_more').show('slow');
getE('out_of_stock_1').checked = 'checked';
getE('out_of_stock_2').disabled = 'disabled';
getE('out_of_stock_3').disabled = 'disabled';
getE('label_out_of_stock_2').setAttribute('for', '');
getE('label_out_of_stock_3').setAttribute('for', '');
}
else
{
$('#virtual_good').hide('slow');
$('#virtual_good_more').hide('slow');
getE('out_of_stock_2').disabled = false;
getE('out_of_stock_3').disabled = false;
getE('label_out_of_stock_2').setAttribute('for', 'out_of_stock_2');
getE('label_out_of_stock_3').setAttribute('for', 'out_of_stock_3');
}
}
function uploadFile()
{
$.ajaxFileUpload (
{
url:'./uploadProductFile.php',
secureuri:false,
fileElementId:'virtual_product_file',
dataType: 'xml',
success: function (data, status)
var languages = new Array();
if (btn_name == "Combinations")
{
data = data.getElementsByTagName('return')[0];
var result = data.getAttribute("result");
var msg = data.getAttribute("msg");
var fileName = data.getAttribute("filename")
if(result == "error")
$("#upload-confirmation").html('<p>error: ' + msg + '</p>');
else
{
$('#virtual_product_file').remove();
$('#virtual_product_file_label').hide();
$('#file_missing').hide();
$('#delete_downloadable_product').show();
$('#virtual_product_name').attr('value', fileName);
$('#upload-confirmation').html(
'<a class="link" href="get-file-admin.php?file='+msg+'&filename='+fileName+'">{l s='The file'}&nbsp;"' + fileName + '"&nbsp;{l s='has successfully been uploaded'}</a>' +
'<input type="hidden" id="virtual_product_filename" name="virtual_product_filename" value="' + msg + '" />');
}
$('#desc-product-new').hide();
$('#desc-product-save-and-stay').hide();
$('#desc-product-save').hide();
$('#desc-product-newCombination').show();
populate_attrs();
}
}
);
}
function uploadFile2()
{
var link = '';
$.ajaxFileUpload (
{
url:'./uploadProductFileAttribute.php',
secureuri:false,
fileElementId:'virtual_product_file_attribute',
dataType: 'xml',
success: function (data, status)
else if (btn_name == "Attachments")
{
data = data.getElementsByTagName('return')[0];
var result = data.getAttribute("result");
var msg = data.getAttribute("msg");
var fileName = data.getAttribute("filename");
if(result == "error")
$("#upload-confirmation2").html('<p>error: ' + msg + '</p>');
else
{
$('#virtual_product_file_attribute').remove();
$('#virtual_product_file_label').hide();
$('#file_missing').hide();
$('#delete_downloadable_product_attribute').show();
$('#upload-confirmation2').html(
'<a class="link" href="get-file-admin.php?file='+msg+'&filename='+fileName+'">{l s='The file'}&nbsp;"' + fileName + '"&nbsp;{l s='has successfully been uploaded'}</a>' +
'<input type="hidden" id="virtual_product_filename_attribute" name="virtual_product_filename_attribute" value="' + msg + '" />');
$('#virtual_product_name_attribute').attr('value', fileName);
link = $("#delete_downloadable_product_attribute").attr('href');
$("#delete_downloadable_product_attribute").attr('href', link+"&file="+msg);
}
$('#desc-product-save-and-stay').hide();
$('#desc-product-save').hide();
}
}
);
}
//]]>
</script>
else
{
$('#desc-product-newCombination').hide();
$('#desc-product-save-and-stay').show();
$('#desc-product-save').show();
}
});
<form id="product_form" action="{$form_action}" method="post" enctype="multipart/form-data" name="product">
<input type="hidden" name="id_product" value="{$id_product}" />
<input type="hidden" name="tabs" id="tabs" value="0" />
<div class="tab-pane" id="tabPane1">
{if !$product->active}
<div class="warn draft" >
<p>
<span style="float: left">
{l s='Your product will be saved as draft'}</span>
<span style="float:right"><a href="#" class="button" style="display: block" onclick="submitAddProductAndPreview()" >{l s='Save and preview'}</a></span>
<input type="hidden" name="fakeSubmitAddProductAndPreview" id="fakeSubmitAddProductAndPreview" />
<br />
</p>
</div>
{/if}
{* all input are here *}
<div id="product-tab-content-wait" style="display:none" >{l s='loading ...'}</div>
{if !$newproduct}
{foreach $product_tabs key=numStep item=tab}
<div id="product-tab-content-{$tab.id}" class="{if !$tab.selected}not-loaded{/if} product-tab-content" {if !$tab.selected}style="display:none"{/if}>
{if $tab.selected}{$custom_form}{/if}
{if $show_product_tab_content}
$("div.productTabs a[id$=-{$show_product_tab_content}]").click();
{/if}
$('.confirm_leave').live('click', function(){
// Double quotes are necessary when the translated string has single quotes
return confirm("{l s='You will lose all unsaved modifications, do you want to proceed?' js=1}");
});
});
</script>
{***********************************************}
{********** TO CHECK !!!!!!!!!!!!!!! ***********}
<script type="text/javascript">
// <![CDATA[
ThickboxI18nImage = "{l s='Image'}";
ThickboxI18nOf = "{l s='of'}";
ThickboxI18nClose = "{l s='Close'}";
ThickboxI18nOrEscKey = "{l s='(or "Esc")'}";
ThickboxI18nNext = "{l s='Next >'}";
ThickboxI18nPrev = "{l s='< Previous'}";
tb_pathToImage = "../img/loadingAnimation.gif";
//]]>
</script>
<form id="product_form" action="{$form_action}" method="post" enctype="multipart/form-data" name="product">
<input type="hidden" name="id_product" value="{$id_product}" />
<div class="tab-pane" id="tabPane1">
{if !$product->active}
<div class="warn draft" >
<p>
<span style="float: left">
{l s='Your product will be saved as draft'}</span>
<span style="float:right"><a href="#" class="button" style="display: block" onclick="submitAddProductAndPreview()" >{l s='Save and preview'}</a></span>
<input type="hidden" name="fakeSubmitAddProductAndPreview" id="fakeSubmitAddProductAndPreview" />
<br />
</p>
</div>
{/if}
{* all input are here *}
<div id="product-tab-content-wait" style="display:none" >{l s='loading ...'}</div>
{foreach $product_tabs key=numStep item=tab}
<div id="product-tab-content-{$tab.id}" class="{if !$tab.selected}not-loaded{/if} product-tab-content" {if !$tab.selected}style="display:none"{/if}>
{if $tab.selected}
{$custom_form}
{/if}
</div>
{/foreach}
</div>
{/foreach}
{else}
<div id="product-tab-content-1" class="product-tab-content">{$custom_form}</div>
{/if}
</div>
<input type="hidden" name="id_product_attribute" id="id_product_attribute" value="0" />
<input id="product_form_submit_btn" type="submit" value="{l s='Save'}" name="submitAddproduct" class="button" />
</form>
</div>
<br/>
<input type="hidden" name="id_product_attribute" id="id_product_attribute" value="0" />
<input type="hidden" name="key_tab" id="key_tab" value="Informations" />
<input id="product_form_submit_btn" type="submit" value="{l s='Save'}" name="submitAddproduct" class="button" />
</form>
<br/>
{/block}
{*a href="{$link->getAdminLink('AdminCatalog')}"><img src="../img/admin/arrow2.gif" />{l s='Back to list'}</a><br/>
*}

View File

@@ -1,12 +1,46 @@
<div class="tab-page" id="step2">
{*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @version Release: $Revision$
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<script type="text/javascript">
$(document).ready(function() {
$('input').keypress(function(e) {
var code = null;
code = (e.keyCode ? e.keyCode : e.which);
return (code == 13) ? false : true;
});
});
</script>
{if isset($id_product) && isset($product)}
<h4 class="tab" >2. {l s='Images'} (<span id="countImage">{$countImages}</span>)</h4>
<table cellpadding="5">
<tr>
<td><b>{if isset($id_image)}{l s='Edit this product image'}{else}{l s='Add a new image to this product'}{/if}</b></td>
</tr>
</table>
<div class="separation"></div><br />
<table cellpadding="5" style="width:100%">
<h4>{if isset($id_image)}{l s='Edit this product image'}{else}{l s='Add a new image to this product'}{/if}</h4> <div class="separation"></div><br />
<table cellpadding="5" style="width:100%">
<tr>
<td class="col-left"><label>{l s='File:'}</label></td>
<td style="padding-bottom:5px;">
@@ -17,8 +51,8 @@
</div>
<div id="progressBarImage" class="progressBarImage"></div>
<div id="showCounter" style="display:none;"><span id="imageUpload">0</span><span id="imageTotal">0</span></div>
<p class="float" style="clear: both;">
{l s='Format:'} JPG, GIF, PNG. {l s='Filesize:'} {$max_image_size / 1000}{l s='Kb max.'}
<p class="preference_description" style="clear: both;">
{l s='Format:'} JPG, GIF, PNG. {l s='Filesize:'} {$max_image_size|string_format:"%.2f"}{l s='Kb max.'}
</p>
</td>
</tr>
@@ -51,254 +85,261 @@
</td>
</tr>
</table>
</div>
<table id="lineType" style="display:none;">
<tr id="image_id">
<td style="padding: 4px;">
<a href="image_path.jpg" target="_blank">
<img src="{$smarty.const._THEME_PROD_DIR_}en-default-small.jpg" alt="image_id" title="image_id" />
</a>
</td>
<td id="td_image_id" class="pointer dragHandle center positionImage">
image_position
</td>
{if $shops}
{foreach from=$shops item=shop}
<td class="center">
<input type="checkbox" class="image_shop" name="id_image" id="{$shop.id_shop}image_id" value="{$shop.id_shop}" />
</td>
{/foreach}
{/if}
<td class="center cover"><a href="#">
<img class="covered" src="../img/admin/blank.gif" alt="e" /></a>
</td>
<td class="center">
<a href="#" class="delete_product_image" >
<img src="../img/admin/delete.gif" alt="{l s='Delete this image'}" title="{l s='Delete this image'}" />
</a>
</td>
</tr>
</table>
<script type="text/javascript" src="../js/jquery/plugins/jquery.tablednd.js"></script>
<script type="text/javascript">
var upbutton = '{l s='Upload a file'}';
var token = '{$token}';
var come_from = '{$table}';
var id_tmp = 0;
{literal}
//Ready Function
$(document).ready(function(){
{/literal}
{foreach from=$images item=image}
assoc = {literal}"{"{/literal};
<table id="lineType" style="display:none;">
<tr id="image_id">
<td style="padding: 4px;">
<a href="image_path.jpg" target="_blank">
<img src="{$smarty.const._THEME_PROD_DIR_}en-default-small.jpg" alt="image_id" title="image_id" />
</a>
</td>
<td id="td_image_id" class="pointer dragHandle center positionImage">
image_position
</td>
{if $shops}
{foreach from=$shops item=shop}
assoc += '"{$shop.id_shop}" : {if $image->isAssociatedToShop($shop.id_shop)}1{else}0{/if},';
<td class="center">
<input type="checkbox" class="image_shop" name="id_image" id="{$shop.id_shop}image_id" value="{$shop.id_shop}" />
</td>
{/foreach}
{/if}
if (assoc != {literal}"{"{/literal})
{
assoc = assoc.slice(0, -1);
assoc += {literal}"}"{/literal};
}
else
assoc = false;
imageLine({$image->id}, "{$image->getExistingImgPath()}", {$image->position}, "{if $image->cover}enabled{else}forbbiden{/if}", assoc);
{/foreach}
<td class="center cover"><a href="#">
<img class="covered" src="../img/admin/blank.gif" alt="e" /></a>
</td>
<td class="center">
<a href="#" class="delete_product_image" >
<img src="../img/admin/delete.gif" alt="{l s='Delete this image'}" title="{l s='Delete this image'}" />
</a>
</td>
</tr>
</table>
<script type="text/javascript">
var upbutton = '{l s='Upload a file'}';
var token = '{$token}';
var come_from = '{$table}';
var id_tmp = 0;
{literal}
$("#imageTable").tableDnD(
{
onDrop: function(table, row) {
current = $(row).attr("id");
stop = false;
image_up = "{";
$("#imageList").find("tr").each(function(i) {
$("#td_" + $(this).attr("id")).html(i + 1);
if ($(this).attr("id") == current)
{
image_up += '"' + $(this).attr("id") + '" : ' + (i + 1) + ',';
stop = true;
}
if (!stop || (i + 1) == 2)
image_up += '"' + $(this).attr("id") + '" : ' + (i + 1) + ',';
});
image_up = image_up.slice(0, -1);
image_up += "}";
updateImagePositon(image_up);
}
});
var filecheck = 1;
var uploader = new qq.FileUploader(
{
element: document.getElementById("file-uploader"),
action: "ajax-tab.php",
debug: false,
params: {
id_product : {/literal}{$id_product}{literal},
id_category : {/literal}{$id_category_default}{literal},
token : "{/literal}{$token}{literal}",
tab : "AdminProducts",
action : 'addImage',
ajax: 1,
},
onComplete: function(id, fileName, responseJSON)
{
var percent = ((filecheck * 100) / nbfile);
$("#progressBarImage").progressbar({value: percent});
if (percent != 100)
//Ready Function
$(document).ready(function(){
{/literal}
{foreach from=$images item=image}
assoc = {literal}"{"{/literal};
{if $shops}
{foreach from=$shops item=shop}
assoc += '"{$shop.id_shop}" : {if $image->isAssociatedToShop($shop.id_shop)}1{else}0{/if},';
{/foreach}
{/if}
if (assoc != {literal}"{"{/literal})
{
$("#imageUpload").html(parseInt(filecheck));
$("#imageTotal").html(" / " + parseInt(nbfile) + " {/literal}{l s='Images'}{literal}");
$("#progressBarImage").show();
$("#showCounter").show();
assoc = assoc.slice(0, -1);
assoc += {literal}"}"{/literal};
}
else
{
$("#progressBarImage").progressbar({value: 0});
$("#progressBarImage").hide();
$("#showCounter").hide();
nbfile = 0;
filecheck = 0;
}
if (responseJSON.status == 'ok')
{
cover = "forbbiden";
if (responseJSON.cover == "1")
cover = "enabled";
imageLine(responseJSON.id, responseJSON.path, responseJSON.position, cover, false)
$("#imageTable tr:last").after(responseJSON.html);
$("#countImage").html(parseInt($("#countImage").html()) + 1);
$("#img" + id).remove();
$("#imageTable").tableDnDUpdate();
}
else
{
$("#img" + id).addClass("red");
$("#img" + id + " .errorImg").html(responseJSON.error);
$("#img" + id + " .errorImg").show();
}
filecheck++;
},
onSubmit: function(id, filename)
assoc = false;
imageLine({$image->id}, "{$image->getExistingImgPath()}", {$image->position}, "{if $image->cover}enabled{else}forbbiden{/if}", assoc);
{/foreach}
{literal}
$("#imageTable").tableDnD(
{
$("#imageTable").show();
$("#listImage").append("<li id='img"+id+"'><div class=\"float\" >" + filename + "</div></div><a style=\"margin-left:10px\"href=\"javascript:delQueue(" + id +");\"><img src=\"../img/admin/disabled.gif\" alt=\"\" border=\"0\"></a><p class=\"errorImg\"></p></li>");
}
});
$('.delete_product_image').die().live('click', function(e)
{
e.preventDefault();
id = $(this).parent().parent().attr('id');
if (confirm("{/literal}{l s='Are you sure?'}{literal}"))
$.ajax(
{
url : "ajax-tab.php",
data : {"action":"deleteProductImage",
"id_image":id,
"id_product" : {/literal}{$id_product}{literal},
"id_category" : {/literal}{$id_category_default}{literal},
"token" : "{/literal}{$token}{literal}",
"tab" : "AdminProducts",
"ajax" : 1 },
success : function (data)
{
data = jQuery.parseJSON(data);
if (data)
{
cover = 0;
if(data.status == 'ok')
{
if ($("#" + id).find(".covered").attr("src") == "../img/admin/enabled.gif")
cover = 1;
$("#" + id).remove();
}
if (cover)
$("#imageTable tr").eq(1).find(".covered").attr("src", "../img/admin/enabled.gif");
$("#countImage").html(parseInt($("#countImage").html()) - 1);
refreshImagePositions($("#imageTable"));
onDrop: function(table, row) {
current = $(row).attr("id");
stop = false;
image_up = "{";
$("#imageList").find("tr").each(function(i) {
$("#td_" + $(this).attr("id")).html(i + 1);
if ($(this).attr("id") == current)
{
image_up += '"' + $(this).attr("id") + '" : ' + (i + 1) + ',';
stop = true;
}
if (!stop || (i + 1) == 2)
image_up += '"' + $(this).attr("id") + '" : ' + (i + 1) + ',';
});
image_up = image_up.slice(0, -1);
image_up += "}";
updateImagePositon(image_up);
}
});
});
$('.covered').die().live('click', function(e)
{
e.preventDefault();
id = $(this).parent().parent().parent().attr('id');
$("#imageList .cover img").each( function(i){
$(this).attr("src", $(this).attr("src").replace("enabled", "forbbiden"));
});
$(this).attr("src", $(this).attr("src").replace("forbbiden", "enabled"));
doAdminAjax({
"action":"UpdateCover",
"id_image":id,
"id_product" : {/literal}{$id_product}{literal},
"token" : "{/literal}{$token}{literal}",
"controller" : "AdminProducts",
"ajax" : 1 }
);
});
$('.image_shop').die().live('click', function()
{
active = false;
if ($(this).attr("checked"))
active = true;
id = $(this).parent().parent().attr('id');
id_shop = $(this).attr("id").replace(id, "");
doAdminAjax(
var filecheck = 1;
var uploader = new qq.FileUploader(
{
"action":"UpdateProductImageShopAsso",
"id_image":id,
"id_shop": id_shop,
"active":active,
"token" : "{/literal}{$token}{literal}",
"tab" : "AdminProducts",
"ajax" : 1
});
});
//function
function updateImagePositon(json)
{
doAdminAjax(
{
"action":"updateImagePosition",
"json":json,
"token" : "{/literal}{$token}{literal}",
"tab" : "AdminProducts",
"ajax" : 1
element: document.getElementById("file-uploader"),
action: "ajax-tab.php",
debug: false,
params: {
id_product : {/literal}{$id_product}{literal},
id_category : {/literal}{$id_category_default}{literal},
token : "{/literal}{$token}{literal}",
tab : "AdminProducts",
action : 'addImage',
ajax: 1,
},
onComplete: function(id, fileName, responseJSON)
{
var percent = ((filecheck * 100) / nbfile);
$("#progressBarImage").progressbar({value: percent});
if (percent != 100)
{
$("#imageUpload").html(parseInt(filecheck));
$("#imageTotal").html(" / " + parseInt(nbfile) + " {/literal}{l s='Images'}{literal}");
$("#progressBarImage").show();
$("#showCounter").show();
}
else
{
$("#progressBarImage").progressbar({value: 0});
$("#progressBarImage").hide();
$("#showCounter").hide();
nbfile = 0;
filecheck = 0;
}
if (responseJSON.status == 'ok')
{
cover = "forbbiden";
if (responseJSON.cover == "1")
cover = "enabled";
imageLine(responseJSON.id, responseJSON.path, responseJSON.position, cover, false)
$("#imageTable tr:last").after(responseJSON.html);
$("#countImage").html(parseInt($("#countImage").html()) + 1);
$("#img" + id).remove();
$("#imageTable").tableDnDUpdate();
}
else
{
$("#img" + id).addClass("red");
$("#img" + id + " .errorImg").html(responseJSON.error);
$("#img" + id + " .errorImg").show();
}
filecheck++;
},
onSubmit: function(id, filename)
{
$("#imageTable").show();
$("#listImage").append("<li id='img"+id+"'><div class=\"float\" >" + filename + "</div></div><a style=\"margin-left:10px\"href=\"javascript:delQueue(" + id +");\"><img src=\"../img/admin/disabled.gif\" alt=\"\" border=\"0\"></a><p class=\"errorImg\"></p></li>");
}
});
}
function delQueue(id)
{
$("#img" + id).fadeOut("slow");
$("#img" + id).remove();
}
function imageLine(id, path, position, cover, shops)
{
line = $("#lineType").html();
line = line.replace(/image_id/g, id);
line = line.replace(/en-default/g, path);
line = line.replace(/image_position/g, position);
line = line.replace(/blank/g, cover);
line = line.replace("<tbody>", "");
line = line.replace("</tbody>", "");
if (shops != false)
/**
* on success function
*/
function afterDeleteProductImage(data)
{
tmp = jQuery.parseJSON(shops);
$.each(tmp, function(key, value){
if (value == 1)
line = line.replace('id="' + key + '' + id + '"','id="' + key + '' + id + '" checked=checked');
});
data = $.parseJSON(data);
if (data)
{
cover = 0;
id = data.content.id;
if(data.status == 'ok')
{
if ($("#" + id).find(".covered").attr("src") == "../img/admin/enabled.gif")
cover = 1;
$("#" + id).remove();
}
if (cover)
$("#imageTable tr").eq(1).find(".covered").attr("src", "../img/admin/enabled.gif");
$("#countImage").html(parseInt($("#countImage").html()) - 1);
refreshImagePositions($("#imageTable"));
showSuccessMessage(data.confirmations);
}
}
$("#imageList").append(line);
}
});
{/literal}
</script>
$('.delete_product_image').die().live('click', function(e)
{
e.preventDefault();
id = $(this).parent().parent().attr('id');
if (confirm("{/literal}{l s='Are you sure?' js=1}{literal}"))
doAdminAjax({
"action":"deleteProductImage",
"id_image":id,
"id_product" : {/literal}{$id_product}{literal},
"id_category" : {/literal}{$id_category_default}{literal},
"token" : "{/literal}{$token}{literal}",
"tab" : "AdminProducts",
"ajax" : 1 }, afterDeleteProductImage
);
});
$('.covered').die().live('click', function(e)
{
e.preventDefault();
id = $(this).parent().parent().parent().attr('id');
$("#imageList .cover img").each( function(i){
$(this).attr("src", $(this).attr("src").replace("enabled", "forbbiden"));
});
$(this).attr("src", $(this).attr("src").replace("forbbiden", "enabled"));
doAdminAjax({
"action":"UpdateCover",
"id_image":id,
"id_product" : {/literal}{$id_product}{literal},
"token" : "{/literal}{$token}{literal}",
"controller" : "AdminProducts",
"ajax" : 1 }
);
});
$('.image_shop').die().live('click', function()
{
active = false;
if ($(this).attr("checked"))
active = true;
id = $(this).parent().parent().attr('id');
id_shop = $(this).attr("id").replace(id, "");
doAdminAjax(
{
"action":"UpdateProductImageShopAsso",
"id_image":id,
"id_shop": id_shop,
"active":active,
"token" : "{/literal}{$token}{literal}",
"tab" : "AdminProducts",
"ajax" : 1
});
});
//function
function updateImagePositon(json)
{
doAdminAjax(
{
"action":"updateImagePosition",
"json":json,
"token" : "{/literal}{$token}{literal}",
"tab" : "AdminProducts",
"ajax" : 1
});
}
function delQueue(id)
{
$("#img" + id).fadeOut("slow");
$("#img" + id).remove();
}
function imageLine(id, path, position, cover, shops)
{
line = $("#lineType").html();
line = line.replace(/image_id/g, id);
line = line.replace(/en-default/g, path);
line = line.replace(/image_position/g, position);
line = line.replace(/blank/g, cover);
line = line.replace("<tbody>", "");
line = line.replace("</tbody>", "");
if (shops != false)
{
tmp = jQuery.parseJSON(shops);
$.each(tmp, function(key, value){
if (value == 1)
line = line.replace('id="' + key + '' + id + '"','id="' + key + '' + id + '" checked=checked');
});
}
$("#imageList").append(line);
}
});
{/literal}
</script>
{/if}

File diff suppressed because it is too large Load Diff

View File

@@ -1,10 +1,37 @@
{*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @version Release: $Revision$
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="translatable">
{foreach from=$languages item=language}
<div class="lang_{$language.id_lang}" style="{if !$language.is_default}display:none;{/if}float: left;">
<input size="30" type="text" id="{$input_name}_{$language.id_lang}"
name="{$input_name}_{$language.id_lang}"
value="{$input_value[$language.id_lang]|htmlentitiesUTF8|default:''}"
/>
onchange="updateFriendlyURL();"
onkeyup="if (isArrowKey(event)) return ;updateFriendlyURL();"/>
</div>
{/foreach}
</div>

View File

@@ -1,24 +1,51 @@
{*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @version Release: $Revision$
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{extends file="helper/list/list_header.tpl"}
{block name=leadin}
{if isset($category_tree)}
<script type="text/javascript">
$(document).ready(function(){
$('#go_to_categ').bind('change', function(){
var base_url = '{$base_url}';
if (this.value !== "")
location.href = base_url + '&id_category=' + parseInt(this.value);
else
location.href = base_url;
{if isset($category_tree)}
<script type="text/javascript">
$(document).ready(function(){
$('#go_to_categ').bind('change', function(){
var base_url = '{$base_url}';
if (this.value !== "")
location.href = base_url + '&id_category=' + parseInt(this.value);
else
location.href = base_url;
});
});
});
</script>
{l s='Go to category:'}
<select id="go_to_categ" name="go_to_categ">
{foreach from=$category_tree item=categ}
<option value="{$categ->id}" {if $categ->selected}selected="selected"{/if} >
{$categ->dashes}{$categ->name}
</option>
{/foreach}
</select>
{/if}
</script>
{l s='Go to category:'}
<select id="go_to_categ" name="go_to_categ">
{foreach from=$category_tree item=categ}
<option value="{$categ->id}" {if $categ->selected}selected="selected"{/if} >
{$categ->dashes}{$categ->name}
</option>
{/foreach}
</select>
{/if}
{/block}

View File

@@ -0,0 +1,212 @@
{*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @version Release: $Revision: 11204 $
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<script type="text/javascript">
var msg_select_one = '{l s='Thanks to select at least one product.' js=1}';
var msg_set_quantity = '{l s='Thanks to set a quantity to add a product.' js=1}';
$(document).ready(function() {
$('input').keypress(function(e) {
var code = null;
code = (e.keyCode ? e.keyCode : e.which);
return (code == 13) ? false : true;
});
if ($('#ppack').attr('checked'))
{
$('#ppack').attr('disabled', 'disabled');
$('#ppackdiv').show();
}
$('div.ppack').hide();
$('#curPackItemName').autocomplete('ajax_products_list.php', {
delay: 100,
minChars: 1,
autoFill: true,
max:20,
matchContains: true,
mustMatch:true,
scroll:false,
cacheLength:0,
// param multipleSeparator:'||' ajouté à cause de bug dans lib autocomplete
multipleSeparator:'||',
formatItem: function(item) {
return item[1]+' - '+item[0];
}
}).result(function(event, item){
$('#curPackItemId').val(item[1]);
});
$('#curPackItemName').setOptions({
extraParams: {
excludeIds : getSelectedIds(),
excludeVirtuals : 1
}
});
});
function addPackItem()
{
var curPackItemId = $('#curPackItemId').val();
var curPackItemName = $('#curPackItemName').val();
var curPackItemQty = $('#curPackItemQty').val();
if (curPackItemId == '' || curPackItemName == '')
{
alert(msg_select_one);
return false;
}
else if (curPackItemId == '' || curPackItemQty == '')
{
alert(msg_set_quantity);
return false;
}
var lineDisplay = curPackItemQty+ 'x ' +curPackItemName;
var divContent = $('#divPackItems').html();
divContent += lineDisplay;
divContent += '<span onclick="delPackItem(' + curPackItemId + ');" style="cursor: pointer;"><img src="../img/admin/delete.gif" /></span><br />';
// QTYxID-QTYxID
var line = curPackItemQty+ 'x' +curPackItemId;
$('#inputPackItems').val($('#inputPackItems').val() + line + '-');
$('#divPackItems').html(divContent);
$('#namePackItems').val($('#namePackItems').val() + lineDisplay + '¤');
$('#curPackItemId').val('');
$('#curPackItemName').val('');
$('p.listOfPack').show();
$('#curPackItemName').setOptions({
extraParams: {
excludeIds : getSelectedIds(),
q: curPackItemName
}
});
}
function delPackItem(id)
{
var reg = new RegExp('-', 'g');
var regx = new RegExp('x', 'g');
var div = getE('divPackItems');
var input = getE('inputPackItems');
var name = getE('namePackItems');
var select = getE('curPackItemId');
var select_quantity = getE('curPackItemQty');
var inputCut = input.value.split(reg);
var nameCut = name.value.split(new RegExp('¤', 'g'));
input.value = '';
name.value = '';
div.innerHTML = '';
for (var i = 0; i < inputCut.length; ++i)
if (inputCut[i])
{
var inputQty = inputCut[i].split(regx);
if (inputQty[1] != id)
{
input.value += inputCut[i] + '-';
name.value += nameCut[i] + '¤';
div.innerHTML += nameCut[i] + ' <span onclick="delPackItem(' + inputQty[1] + ');" style="cursor: pointer;"><img src="../img/admin/delete.gif" /></span><br />';
}
}
$('#curPackItemName').setOptions({
extraParams: {
excludeIds : getSelectedIds()
}
});
}
function getSelectedIds()
{
// input lines QTY x ID-
var ids = id_product + ',';
ids += $('#inputPackItems').val().replace(/\\d+x/g, '').replace(/\-/g,',');
ids = ids.replace(/\,$/,'');
return ids;
}
</script>
<h4>{l s='Pack'}</h4>
<div class="separation"></div>
<table>
<tr>
<td>
<div class="ppack">
<input type="checkbox" name="ppack" id="ppack" value="1" {if $is_pack}checked="checked"{/if} onclick="$('#ppackdiv').slideToggle();" />
<label class="t" for="ppack">{l s='Pack'}</label>
</div>
</td>
<td>
<div id="ppackdiv" {if !$is_pack}style="display: none;"{/if}>
<label for="curPackItemName" style="width:560px;text-align:left;">
{l s='Begin typing the first letters of the product name, then select the product from the drop-down list:'}
</label><br /><br />
<input type="text" size="25" id="curPackItemName" />
<input type="text" name="curPackItemQty" id="curPackItemQty" value="1" size="1" />
<input type="hidden" name="inputPackItems" id="inputPackItems" value="{$input_pack_items}" />
<input type="hidden" name="namePackItems" id="namePackItems" value="{$input_namepack_items}" />
<input type="hidden" size="2" id="curPackItemId" />
<span onclick="addPackItem();" class="button" style="cursor: pointer;">
{l s='Add this product in the pack'}
</span>
<p class="product_description listOfPack" style="display:{if count($product->packItems) > 0}block{else}none{/if};text-align: left;">
<br />{l s='List of products for that pack:'}
</p>
<div id="divPackItems">
{foreach from=$product->packItems item=packItem}
{$packItem->pack_quantity} x {$packItem->name}
<span onclick="delPackItem({$packItem->id});" style="cursor: pointer;">
<img src="../img/admin/delete.gif" />
</span><br />
{/foreach}
</div>
<br />
<p class="hint" style="display:block">{l s='You cannot add downloadable products to a pack.'}</p>
</td>
</div>
</tr>
</table>

View File

@@ -1,118 +1,394 @@
{*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @version Release: $Revision$
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{* BEGIN CUSTOMER AUTO-COMPLETE / TO REFACTO *}
{literal}
<script type="text/javascript">
var product_prices = new Array();
{foreach from=$combinations item='combination'}
product_prices['{$combination.id_product_attribute}'] = '{$combination.price}';
{/foreach}
</script>
<a href="#" onclick="$('#add_specific_price').slideToggle();return false;"><img src="../img/admin/add.gif" alt="" />{l s='Add a new specific price'}</a>
<div id="add_specific_price" style="display: none;">
<input type="hidden" name="sp_id_shop" value="0" />
<label>{l s='For:'}</label>
<div class="margin-form">
<select name="sp_id_shop">
<option value="0">{l s='All shops'}</option>
{foreach from=$shops item=shop}
<option value="{$shop['id_shop']}">{$shop['name']|htmlentitiesUTF8}</option>
{/foreach}
</select>
&gt;
<select name="sp_id_currency" id="spm_currency_0" onchange="changeCurrencySpecificPrice(0);">
<option value="0">{l s='All currencies'}</option>
{foreach from=$currencies item=curr}
<option value="{$curr['id_currency']}">{$curr['name']|htmlentitiesUTF8}</option>
{/foreach}
</select>
&gt;
<select name="sp_id_country">
<option value="0">{l s='All countries'}</option>
{foreach from=$countries item=country}
<option value="{$country['id_country']}">{$country['name']|htmlentitiesUTF8}</option>
{/foreach}
</select>
&gt;
<select name="sp_id_group">
<option value="0">{l s='All groups'}</option>
{foreach from=$groups item=group}
<option value="'.(int)($group['id_group']).'">'.{$group['name']}</option>
{/foreach}
</select>
</div>
{if $combinations|@count != 0}
<label>{l s='Combination:'}</label>
<div class="margin-form">
<select id="sp_id_product_attribute" name="sp_id_product_attribute">
<option value="0">{l s='Apply to all combinations'}</option>
{foreach from=$combinations item='combination'}
<option value="{$combination.id_product_attribute}">{$combination.attributes}</option>
{/foreach}
</select>
</div>
{/if}
<label>{l s='Available from:'}</label>
<div class="margin-form">
<input class="datepicker" type="text" name="sp_from" value="" style="text-align: center" id="sp_from" /><span style="font-weight:bold; color:#000000; font-size:12px"> {l s='to'}</span>
<input class="datepicker" type="text" name="sp_to" value="" style="text-align: center" id="sp_to" />
</div>
<label>{l s='Starting at'}</label>
<div class="margin-form">
<input type="text" name="sp_from_quantity" value="1" size="3" /> <span style="font-weight:bold; color:#000000; font-size:12px">{l s='unit'}</span>
</div>
<script type="text/javascript">
$(document).ready(function(){
product_prices['0'] = $('#sp_current_ht_price').html();
$('#id_product_attribute').change(function() {
$('#sp_current_ht_price').html(product_prices[$('#id_product_attribute option:selected').val()]);
});
$('.datepicker').datepicker({
prevText: '',
nextText: '',
dateFormat: 'yy-mm-dd'
});
var Customer = {
"hiddenField": jQuery('#id_customer'),
"field": jQuery('#customer'),
"container": jQuery('#customers'),
"loader": jQuery('#customerLoader'),
"init": function() {
jQuery(Customer.field).typeWatch({
"captureLength": 1,
"highlight": true,
"wait": 50,
"callback": Customer.search
}).focus(Customer.placeholderIn).blur(Customer.placeholderOut);
},
"placeholderIn": function() {
if (this.value == '{/literal}{l s='All customers'}{literal}') {
this.value = '';
}
},
"placeholderOut": function() {
if (this.value == '') {
this.value = '{/literal}{l s='All customers'}{literal}';
}
},
"search": function()
{
Customer.showLoader();
jQuery.ajax({
"type": "POST",
"url": "{/literal}{$link->getAdminLink('AdminProducts')}{literal}",
"async": true,
"dataType": "json",
"data": {
"ajax": "1",
"token": "{/literal}{$token}{literal}",
"tab": "AdminProducts",
"action": "searchCustomers",
"customer_search": Customer.field.val()
},
"success": Customer.success
});
</script>
},
"success": function(result)
{
if(result.found) {
var html = '<ul class="clearfix">';
jQuery.each(result.customers, function() {
html += '<li><a class="fancybox" href="{/literal}{$link->getAdminLink('AdminCustomers')}{literal}&id_customer='+this.id_customer+'&viewcustomer&liteDisplaying=1">'+this.firstname+' '+this.lastname+'</a>'+(this.birthday ? ' - '+this.birthday:'')+'<br/>';
html += '<a href="mailto:'+this.email+'">'+this.email+'</a><br />';
html += '<a onclick="Customer.select('+this.id_customer+', \''+this.firstname+' '+this.lastname+'\'); return false;" href="#" class="button">{/literal}{l s='Choose'}{literal}</a></li>';
});
html += '</ul>';
}
else
html = '<div class="warn">{/literal}{l s='No customers found'}{literal}</div>';
Customer.hideLoader();
Customer.container.html(html);
jQuery('.fancybox', Customer.container).fancybox();
},
"select": function(id_customer, fullname)
{
Customer.hiddenField.val(id_customer);
Customer.field.val(fullname);
Customer.container.empty();
return false;
},
"showLoader": function() {
Customer.loader.fadeIn();
},
"hideLoader": function() {
Customer.loader.fadeOut();
}
};
jQuery(document).ready(Customer.init);
</script>
<style type="text/css">
#content #customers .warn {
margin: 10px 0 0 0;
}
#customers li {
background-color: #ABDFF7;
border: 1px solid #ccc;
float: left;
margin: 5px;
padding: 5px;
}
#customers li .button {
display: block;
margin-top: 5px;
}
</style>
{/literal}
{* END CUSTOMER AUTO-COMPLETE / TO REFACTO *}
<script type="text/javascript">
$(document).ready(function() {
$('input').keypress(function(e) {
var code = null;
code = (e.keyCode ? e.keyCode : e.which);
return (code == 13) ? false : true;
});
});
</script>
<div class="block_specific_prices_modifications">
<h4>{l s='Product price'}</h4>
<div class="separation"></div>
<table>
<tr>
<td class="col-left"><label>{l s='Pre-tax wholesale price:'}</label></td>
<td style="padding-bottom:5px;">
{$currency->prefix}<input size="11" maxlength="14" name="wholesale_price" type="text" value="{$product->wholesale_price}" onchange="this.value = this.value.replace(/,/g, '.');" />{$currency->suffix}
<p class="preference_description">{l s='The wholesale price at which you bought this product'}</p>
</td>
</tr>
<tr>
<td class="col-left"><label>{l s='Pre-tax retail price:'}</label></td>
<td style="padding-bottom:5px;">
{$currency->prefix}<input size="11" maxlength="14" id="priceTE" name="price" type="text" value="{$product->price}" onchange="this.value = this.value.replace(/,/g, '.');" onkeyup="if (isArrowKey(event)) return; calcPriceTI();" />{$currency->suffix}<sup> *</sup>
<p class="preference_description">{l s='The pre-tax retail price to sell this product'}</p>
</td>
</tr>
<tr>
<td class="col-left"><label>{l s='Tax rule:'}</label></td>
<td style="padding-bottom:5px;">
<script type="text/javascript">
noTax = {if $tax_exclude_taxe_option}true{else}false{/if};
taxesArray = new Array ();
taxesArray[0] = 0;
{foreach $tax_rules_groups as $tax_rules_group}
{if isset($taxesRatesByGroup[$tax_rules_group['id_tax_rules_group']])}
taxesArray[{$tax_rules_group.id_tax_rules_group}] = {$taxesRatesByGroup[$tax_rules_group['id_tax_rules_group']]};
{else}
taxesArray[{$tax_rules_group.id_tax_rules_group}] = 0;
{/if}
{/foreach}
ecotaxTaxRate = {$ecotaxTaxRate / 100};
</script>
<span {if $tax_exclude_taxe_option}style="display:none;"{/if} >
<select onChange="javascript:calcPriceTI(); unitPriceWithTax('unit');" name="id_tax_rules_group" id="id_tax_rules_group" {if $tax_exclude_taxe_option}disabled="disabled"{/if} >
<option value="0">{l s='No Tax'}</option>
{foreach from=$tax_rules_groups item=tax_rules_group}
<option value="{$tax_rules_group.id_tax_rules_group}" {if $product->id_tax_rules_group == $tax_rules_group.id_tax_rules_group}selected="selected"{/if} >
{$tax_rules_group['name']|htmlentitiesUTF8}
</option>
{/foreach}
</select>
<a href="{$link->getAdminLink('AdminTaxRulesGroup')}&addtax_rules_group&id_product={$product->id}" class="confirm_leave">
<img src="../img/admin/add.gif" alt="{l s='Create'}" title="{l s='Create'}" /> <b>{l s='Create'}</b>
</a>
</span>
{if $tax_exclude_taxe_option}
<span style="margin-left:10px; color:red;">{l s='Taxes are currently disabled'}</span> (<b><a href="{$link->getAdminLink('AdminTaxes')}">{l s='Tax options'}</a></b>)
<input type="hidden" value="{$product->id_tax_rules_group}" name="id_tax_rules_group" />
{/if}
</td>
</tr>
{if $ps_use_ecotax}
<tr>
<td class="col-left"><label>{l s='Eco-tax (tax incl.):'}</label></td>
<td style="padding-bottom:5px;">
{$currency->prefix}<input size="11" maxlength="14" id="ecotax" name="ecotax" type="text" value="{$product->ecotax}" onkeyup="if (isArrowKey(event))return; calcPriceTE(); this.value = this.value.replace(/,/g, '.'); if (parseInt(this.value) > getE('priceTE').value) this.value = getE('priceTE').value; if (isNaN(this.value)) this.value = 0;" />{$currency->suffix}
<span style="margin-left:10px">({l s='already included in price'})</span>
</td>
</tr>
{/if}
<tr {if !$country_display_tax_label || $tax_exclude_taxe_option}style="display:none"{/if} >
<td class="col-left"><label>{l s='Retail price with tax:'}</label></td>
<td style="padding-bottom:5px;">
{$currency->prefix}<input size="11" maxlength="14" id="priceTI" type="text" value="" onchange="noComma('priceTI');" onkeyup="if (isArrowKey(event)) return; calcPriceTE();" />{$currency->suffix}
</td>
</tr>
<tr id="tr_unit_price">
<td class="col-left"><label>{l s='Unit price:'}</label></td>
<td style="padding-bottom:5px;">
{$currency->prefix} <input size="11" maxlength="14" id="unit_price" name="unit_price" type="text" value="{$unit_price}"
onkeyup="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.'); unitPriceWithTax('unit');"/>{$currency->suffix}
{l s='/'} <!--<input size="6" maxlength="10" id="unity" name="unity" type="text" value="{$product->unity|htmlentitiesUTF8}" onkeyup="if (isArrowKey(event)) return ;unitySecond();" onchange="unitySecond();"/> -->
<select onchange="unitySecond();" name="unity" id="unity">
{foreach $unities as $unity}
<option value="{$unity}" {if $unity == $product->unity} selected="selected"{/if}>{$unity}</option>
{/foreach}
</select>
{if $ps_tax && $country_display_tax_label}
<span style="margin-left:15px">{l s='or'}
{$currency->prefix}<span id="unit_price_with_tax">0.00</span>{$currency->suffix}
{l s='/'} <span id="unity_second">{$product->unity}</span> {l s='with tax'}
</span>
{/if}
<p>{l s='Eg. $15 per Lb'}</p>
</td>
</tr>
<tr>
<td class="col-left"><label>&nbsp;</label></td>
<td style="padding-bottom:5px;">
<input type="checkbox" name="on_sale" id="on_sale" style="padding-top: 5px;" {if $product->on_sale}checked="checked"{/if} value="1" />&nbsp;<label for="on_sale" class="t">{l s='Display "on sale" icon on product page and text on product listing'}</label>
</td>
</tr>
<tr>
<td class="col-left"><label><b>{l s='Final retail price:'}</b></label></td>
<td style="padding-bottom:5px;">
<span {if !$country_display_tax_label}style="display:none"{/if} >
{$currency->prefix}<span id="finalPrice" style="font-weight: bold;"></span>{$currency->suffix}<span {if $ps_tax}style="display:none;"{/if}> ({l s='tax incl.'})</span>
</span>
<span {if $ps_tax}style="display:none;"{/if} >
{if $country_display_tax_label}
/
{/if}
{$currency->prefix}<span id="finalPriceWithoutTax" style="font-weight: bold;"></span>{$currency->suffix} {if $country_display_tax_label}({l s='tax excl.'}){/if}</span>
</td>
</tr>
</table>
<div class="separation"></div>
{if isset($specificPriceModificationForm)}
<h4>{l s='Specific prices'}</h4>
<div class="hint" style="display:block;min-height:0;">
{l s='You can set specific prices for clients belonging to different groups, different countries...'}
</div>
<br />
<a class="button bt-icon" href="#" onclick="$('#add_specific_price').slideToggle();return false;"><img src="../img/admin/add.gif" alt="" /><span>{l s='Add a new specific price'}</span></a>
<br/>
<script type="text/javascript">
var product_prices = new Array();
{foreach from=$combinations item='combination'}
product_prices['{$combination.id_product_attribute}'] = '{$combination.price}';
{/foreach}
</script>
<div id="add_specific_price" style="display: none;">
<label>{l s='For:'}</label>
{if !$multi_shop}
<div class="margin-form">
<input type="hidden" name="sp_id_shop" value="0" />
{else}
<div class="margin-form">
<select name="sp_id_shop">
<option value="0">{l s='All shops'}</option>
{foreach from=$shops item=shop}
<option value="{$shop.id_shop}">{$shop.name|htmlentitiesUTF8}</option>
{/foreach}
</select>
&gt;
{/if}
<select name="sp_id_currency" id="spm_currency_0" onchange="changeCurrencySpecificPrice(0);">
<option value="0">{l s='All currencies'}</option>
{foreach from=$currencies item=curr}
<option value="{$curr.id_currency}">{$curr.name|htmlentitiesUTF8}</option>
{/foreach}
</select>
&gt;
<select name="sp_id_country">
<option value="0">{l s='All countries'}</option>
{foreach from=$countries item=country}
<option value="{$country.id_country}">{$country.name|htmlentitiesUTF8}</option>
{/foreach}
</select>
&gt;
<select name="sp_id_group">
<option value="0">{l s='All groups'}</option>
{foreach from=$groups item=group}
<option value="{$group.id_group}">{$group.name}</option>
{/foreach}
</select>
</div>
<label>{l s='Customer:'}</label>
<div class="margin-form">
<input type="hidden" name="sp_id_customer" id="id_customer" value="0" />
<input type="text" name="customer" value="{l s='All customers'}" id="customer" autocomplete="off" />
<img src="../img/admin/field-loader.gif" id="customerLoader" alt="{l s='Loading...'}" style="display: none;" />
<div id="customers"></div>
</div>
{if $combinations|@count != 0}
<label>{l s='Combination:'}</label>
<div class="margin-form">
<select id="sp_id_product_attribute" name="sp_id_product_attribute">
<option value="0">{l s='Apply to all combinations'}</option>
{foreach from=$combinations item='combination'}
<option value="{$combination.id_product_attribute}">{$combination.attributes}</option>
{/foreach}
</select>
</div>
{/if}
<label>{l s='Available from:'}</label>
<div class="margin-form">
<input class="datepicker" type="text" name="sp_from" value="" style="text-align: center" id="sp_from" /><span style="font-weight:bold; color:#000000; font-size:12px"> {l s='to'}</span>
<input class="datepicker" type="text" name="sp_to" value="" style="text-align: center" id="sp_to" />
</div>
<label>{l s='Starting at'}</label>
<div class="margin-form">
<input type="text" name="sp_from_quantity" value="1" size="3" /> <span style="font-weight:bold; color:#000000; font-size:12px">{l s='unit'}</span>
</div>
<script type="text/javascript">
$(document).ready(function(){
product_prices['0'] = $('#sp_current_ht_price').html();
$('#id_product_attribute').change(function() {
$('#sp_current_ht_price').html(product_prices[$('#id_product_attribute option:selected').val()]);
});
$('.datepicker').datepicker({
prevText: '',
nextText: '',
dateFormat: 'yy-mm-dd'
});
});
</script>
<label>{l s='Product price'}
{if $country_display_tax_label}
{l s='(tax excl.):'}
{/if}
</label>
<div class="margin-form">
<span id="spm_currency_sign_pre_0" style="font-weight:bold; color:#000000; font-size:12px">{$currency->prefix}</span>
<input type="text" name="sp_price" value="0" size="11" />
<span id="spm_currency_sign_post_0" style="font-weight:bold; color:#000000; font-size:12px">{$currency->suffix}</span>
<span>({l s='Current:'} </span><span id="sp_current_ht_price">{displayWtPrice p=$product->price}</span> )</span>
<div class="hint" style="display:block;">
{l s='You can set this value at 0 in order to apply the default price'}
</div>
</div>
<label>{l s='Apply a discount of:'}</label>
<div class="margin-form">
<input type="text" name="sp_reduction" value="0.00" size="11" />
<select name="sp_reduction_type">
<option selected="selected">---</option>
<option value="amount">{l s='Amount'}</option>
<option value="percentage">{l s='Percentage'}</option>
</select>
{l s='(if set to "amount", the tax is included)'}
</div>
<div class="margin-form">
<input type="submit" name="submitPriceAddition" value="{l s='Add'}" class="button" />
</div>
{l s='(tax excl.):'}
{/if}
</label>
<div class="margin-form">
<span id="spm_currency_sign_pre_0" style="font-weight:bold; color:#000000; font-size:12px">
{$currency->prefix}
</span>
<input type="text" name="sp_price" value="0" size="11" />
<span id="spm_currency_sign_post_0" style="font-weight:bold; color:#000000; font-size:12px">
{$currency->suffix}
</span>
<span>
(
{l s='Current:'}
<span id="sp_current_ht_price">{displayWtPrice p=$product->price}</span>
)
</span>
<div class="hint" style="display:block;min-height:0;">
{l s='You can set this value at 0 in order to apply the default price'}
</div>
<div class="separation"></div>
<div class="block_specific_prices_modifications">
<h4>{l s='Current specific prices'}</h4>
</div>
<label>{l s='Apply a discount of:'}</label>
<div class="margin-form">
<input type="text" name="sp_reduction" value="0.00" size="11" />
<select name="sp_reduction_type">
<option selected="selected">---</option>
<option value="amount">{l s='Amount'}</option>
<option value="percentage">{l s='Percentage'}</option>
</select>
{l s='(if set to "amount", the tax is included)'}
</div>
<div class="margin-form">
<input type="submit" name="submitPriceAddition" value="{l s='Add'}" class="button" />
</div>
</div>
<table style="text-align: center;width:100%" class="table" cellpadding="0" cellspacing="0">
<thead>
<tr>
<th class="cell border" style="width: 12%;">{l s='Rule'}</th>
<th class="cell border" style="width: 12%;">{l s='Combination'}</th>
<th class="cell border" style="width: 12%;">{l s='Shop'}</th>
{if $multi_shop}<th class="cell border" style="width: 12%;">{l s='Shop'}</th>{/if}
<th class="cell border" style="width: 12%;">{l s='Currency'}</th>
<th class="cell border" style="width: 11%;">{l s='Country'}</th>
<th class="cell border" style="width: 13%;">{l s='Group'}</th>
<th class="cell border" style="width: 13%;">{l s='Customer'}</th>
<th class="cell border" style="width: 12%;">{l s='Price'} {if $country_display_tax_label}{l s='(tax excl)'}{/if}</th>
<th class="cell border" style="width: 10%;">{l s='Reduction'}</th>
<th class="cell border" style="width: 15%;">{l s='Period'}</th>
@@ -123,4 +399,8 @@ var product_prices = new Array();
</thead>
<tbody>
{$specificPriceModificationForm}
<script type="text/javascript">
calcPriceTI();
unitPriceWithTax('unit');
</script>
{/if}

View File

@@ -1,198 +1,342 @@
<div class="hint" style="display:block; position:'auto';">
<p>{l s='This interface allows you to manage the available quantities for sale of the current product and its combinations on the current shop.'}</p>
<p>{l s='You can manually specify the quantities for the product / each product combinations, or choose to automatically determine these quantities based on your stock.'}</p>
<p>{l s='In this case, the quantities correspond to the quantitites of the real stock in the warehouses associated to the current shop.'}</p>
</div>
<br />
<table cellpadding="5">
<tbody>
<tr>
<td colspan="2">
<b>{l s='Available quantities for sale'}</b>
</td>
</tr>
</tbody>
</table>
<div class="separation"></div>
<div class="warn" id="available_quantity_ajax_msg" style="display: none;"></div>
<div class="error" id="available_quantity_ajax_error_msg" style="display: none;"></div>
<div class="conf" id="available_quantity_ajax_success_msg" style="display: none;"></div>
<table cellpadding="5" style="width:100%">
<tbody>
<tr>
<td valign="top" style="vertical-align:top;">
<input {if $product->depends_on_stock == 1 && $stock_management_active == 1}checked="checked" {/if} {if $stock_management_active == 0}disabled="disabled" {/if} type="radio" name="depends_on_stock" class="depends_on_stock" id="depends_on_stock_1" value="1"/>
<label style="float:none;font-weight:normal" for="depends_on_stock_1">{l s='Available quantities for current product and its combinations are based on stock in the warehouses'} {if $stock_management_active == 0}&nbsp;-&nbsp;<b>{l s='Not possible if stock management is not enabled'}</b>{/if}</label>
<br /><br />
</td>
</tr>
<tr>
<td valign="top" style="vertical-align:top;">
<input {if $product->depends_on_stock == 0 || $stock_management_active == 0}checked="checked" {/if} type="radio" name="depends_on_stock" class="depends_on_stock" id="depends_on_stock_0" value="0"/>
<label style="float:none;font-weight:normal" for="depends_on_stock_0">{l s='I want to specify available quantities manually, and manage my stock independently'}</label>
<br /><br />
</td>
</tr>
<tr>
<td valign="top" style="text-align:center;vertical-align:top;">
<table class="table" cellpadding="0" cellspacing="0" style="width:60%;margin-left:20%;">
<thead>
<tr>
<th style="width:200px;">{l s='Quantity'}</th>
<th>{l s='Designation'}</th>
</tr>
</thead>
<tbody>
{foreach from=$attributes item=attribute}
<tr>
<td class="available_quantity" id="qty_{$attribute['id_product_attribute']}">
<span>{$available_quantity[$attribute['id_product_attribute']]}</span>
<input type="text" value="{$available_quantity[$attribute['id_product_attribute']]}"/>
</td>
<td>{$product_designation[$attribute['id_product_attribute']]}</td>
</tr>
{/foreach}
</tbody>
</table>
</td>
</tr>
<tr id="when_out_of_stock">
<td>
<table style="margin-top: 15px;">
<tbody>
<tr>
<td class="col-left"><label>{l s='When out of stock:'}</label></td>
<td style="padding-bottom:5px;">
<input {if $product->out_of_stock == 0}checked="checked" {/if} id="out_of_stock_1" type="radio" checked="checked" value="0" class="out_of_stock" name="out_of_stock">
<label id="label_out_of_stock_1" class="t" for="out_of_stock_1">{l s='Deny orders'}</label>
<br>
<input {if $product->out_of_stock == 1} 'checked="checked" {/if} id="out_of_stock_2" type="radio" value="1" class="out_of_stock" name="out_of_stock">
<label id="label_out_of_stock_2" class="t" for="out_of_stock_2">{l s='Allow orders'}</label>
<br>
<input {if $product->out_of_stock == 2} 'checked="checked" {/if} id="out_of_stock_3" type="radio" value="2" class="out_of_stock" name="out_of_stock">
<label id="label_out_of_stock_3" class="t" for="out_of_stock_3">
Default:
<i>Deny orders</i>
{assign var=confirm value="Are you sure you want to delete entered product information?"}
<a onclick="return confirm(' {$confirm} ');"
href="index.php?tab=AdminPPreferences&token={$token_preferences}">
{l s='as set in Preferences'}
</a>
</label>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
{*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @version Release: $Revision: 11069 $
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<script type="text/javascript">
var showAjaxError = function(msg)
{
$('#available_quantity_ajax_error_msg').html(msg);
$('#available_quantity_ajax_error_msg').show();
$('#available_quantity_ajax_msg').hide();
$('#available_quantity_ajax_success_msg').hide();
};
var showAjaxSuccess = function(msg)
{
$('#available_quantity_ajax_success_msg').html(msg);
$('#available_quantity_ajax_error_msg').hide();
$('#available_quantity_ajax_msg').hide();
$('#available_quantity_ajax_success_msg').show();
};
$(document).ready(function() {
$('input').keypress(function(e) {
var code = null;
code = (e.keyCode ? e.keyCode : e.which);
return (code == 13) ? false : true;
});
});
var showAjaxMsg = function(msg)
{
$('#available_quantity_ajax_msg').html(msg);
$('#available_quantity_ajax_error_msg').hide();
$('#available_quantity_ajax_msg').show();
$('#available_quantity_ajax_success_msg').hide();
};
</script>
var ajaxCall = function(data)
{
data.ajaxProductQuantity = 1;
data.id_product = '{$product->id}';
data.token = "{$token}";
data.ajax = 1;
data.controller = "AdminProducts";
data.action = "productQuantity";
showAjaxMsg('{l s='Saving data...'}');
$.ajax({
type: "POST",
url: "ajax-tab.php",
data: data,
dataType: 'json',
async : true,
success: function(msg)
{
if (msg.error)
{if isset($product->id)}
<h4>{l s='Available quantities for sale'}</h4>
<div class="separation"></div>
<div class="hint" style="display:block; position:'auto';">
<p>{l s='This interface allows you to manage the available quantities for sale of the current product and its combinations on the current shop.'}</p>
<p>{l s='You can choose to use the advanced stock management system for this product or not.'}</p>
<p>{l s='You can manually specify the quantities for the product / each product combinations, or choose to automatically determine these quantities based on your stock (if advanced stock management is activated).'}</p>
<p>{l s='In this case, the quantities correspond to the quantitites of the real stock in the warehouses associated to the current shop or current group of shops.'}</p>
</div>
<br />
<h4>{l s='Available quantities for sale'}</h4>
<div class="separation"></div>
{if $show_quantities == true && !$product->cache_is_pack}
<div class="warn" id="available_quantity_ajax_msg" style="display: none;"></div>
<div class="error" id="available_quantity_ajax_error_msg" style="display: none;"></div>
<div class="conf" id="available_quantity_ajax_success_msg" style="display: none;"></div>
<table cellpadding="5" style="width:100%">
<tbody>
<tr {if $product->is_virtual}style="display:none;"{/if} class="stockForVirtualProduct">
<td valign="top" style="vertical-align:top;">
<input {if $product->advanced_stock_management == 1 && $stock_management_active == 1}value="1" checked="checked"{else}value="0"{/if} {if $stock_management_active == 0}disabled="disabled" {/if}
type="checkbox" name="advanced_stock_management" class="advanced_stock_management" id="advanced_stock_management" />
<label style="float:none;font-weight:normal" for="advanced_stock_management">{l s='I want to use the advanced stock management system for this product'} {if $stock_management_active == 0}&nbsp;-&nbsp;<b>{l s='Not possible if stock management is not enabled'}</b>{/if}</label>
<br /><br />
</td>
</tr>
<tr {if $product->is_virtual}style="display:none;"{/if} class="stockForVirtualProduct">
<td valign="top" style="vertical-align:top;">
<input {if $product->depends_on_stock == 1 && $stock_management_active == 1}checked="checked" {/if} {if $stock_management_active == 0 || $product->advanced_stock_management == 0}disabled="disabled" {/if} type="radio" name="depends_on_stock" class="depends_on_stock" id="depends_on_stock_1" value="1"/>
<label style="float:none;font-weight:normal" for="depends_on_stock_1">{l s='Available quantities for current product and its combinations are based on stock in the warehouses'} {if $stock_management_active == 0 || $product->advanced_stock_management == 0}&nbsp;-&nbsp;<b>{l s='Not possible if stock management is not enabled AND/OR if this product does not use the stock management'}</b>{/if}</label>
<br /><br />
</td>
</tr>
<tr {if $product->is_virtual}style="display:none;"{/if} class="stockForVirtualProduct">
<td valign="top" style="vertical-align:top;">
<input {if $product->depends_on_stock == 0 || $stock_management_active == 0}checked="checked" {/if} type="radio" name="depends_on_stock" class="depends_on_stock" id="depends_on_stock_0" value="0"/>
<label style="float:none;font-weight:normal" for="depends_on_stock_0">{l s='I want to specify available quantities manually'}</label>
<br /><br />
</td>
</tr>
<tr>
<td valign="top" style="text-align:left;vertical-align:top;">
<table class="table" cellpadding="0" cellspacing="0" style="width:50%;">
<colgroup>
<col width="50"></col>
<col></col>
</colgroup>
<thead>
<tr>
<th>{l s='Quantity'}</th>
<th>{l s='Designation'}</th>
</tr>
</thead>
<tbody>
{foreach from=$attributes item=attribute}
<tr>
<td class="available_quantity" id="qty_{$attribute['id_product_attribute']}">
<span>{$available_quantity[$attribute['id_product_attribute']]}</span>
<input type="text" value="{$available_quantity[$attribute['id_product_attribute']]}"/>
</td>
<td>{$product_designation[$attribute['id_product_attribute']]}</td>
</tr>
{/foreach}
</tbody>
</table>
</td>
</tr>
<tr id="when_out_of_stock">
<td>
<table style="margin-top: 15px;">
<tbody>
<tr>
<td class="col-left"><label>{l s='When out of stock:'}</label></td>
<td style="padding-bottom:5px;">
<input {if $product->out_of_stock == 0} checked="checked" {/if} id="out_of_stock_1" type="radio" checked="checked" value="0" class="out_of_stock" name="out_of_stock">
<label id="label_out_of_stock_1" class="t" for="out_of_stock_1">{l s='Deny orders'}</label>
<br>
<input {if $product->out_of_stock == 1} checked="checked" {/if} id="out_of_stock_2" type="radio" value="1" class="out_of_stock" name="out_of_stock">
<label id="label_out_of_stock_2" class="t" for="out_of_stock_2">{l s='Allow orders'}</label>
<br>
<input {if $product->out_of_stock == 2} checked="checked" {/if} id="out_of_stock_3" type="radio" value="2" class="out_of_stock" name="out_of_stock">
<label id="label_out_of_stock_3" class="t" for="out_of_stock_3">
Default:
<i>Deny orders</i>
<a class="confirm_leave" href="index.php?tab=AdminPPreferences&token={$token_preferences}">
{l s='as set in Preferences'}
</a>
</label>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
{elseif $product->cache_is_pack}
<div class="warn">
<p>{l s='It is not possible to manage quantities when you are managing a pack.'}</p>
</div>
{else}
<div class="warn">
<p>{l s='It is not possible to manage quantities when : '}</p>
<ul>
<li>{l s='You are managing all shops.'}</li>
<li>{l s='You are managing a group of shops where quantities are not shared between all shops of this group.'}</li>
<li>{l s='You are managing a shop which is in a group where quantities are shared between all shops of this group.'}</li>
</ul>
</div>
{/if}
<div class="separation"></div>
<h4>{l s='Availability settings'}</h4>
<table cellpadding="5">
{if !$ps_stock_management}
<tr>
<td colspan="2">{l s='The stock management is disabled'}</td>
</tr>
{/if}
{if !$has_attribute}
<tr>
<td class="col-left"><label>{l s='Minimum quantity:'}</label></td>
<td style="padding-bottom:5px;">
<input size="3" maxlength="6" name="minimal_quantity" id="minimal_quantity" type="text" value="{$product->minimal_quantity|default:1}" />
<p class="preference_description">{l s='The minimum quantity to buy this product (set to 1 to disable this feature)'}</p>
</td>
</tr>
{/if}
<tr>
<td class="col-left"><label>{l s='Displayed text when in-stock:'}</label></td>
<td style="padding-bottom:5px;">
{include file="products/input_text_lang.tpl"
languages=$languages
input_value=$product->available_now
input_name='available_now'}
<span class="hint" name="help_box">{l s='Forbidden characters:'} <>;=#{}<span class="hint-pointer">&nbsp;</span></span>
</td>
</tr>
<tr>
<td class="col-left"><label>{l s='Displayed text when allowed to be back-ordered:'}</label></td>
<td style="padding-bottom:5px;">
{include file="products/input_text_lang.tpl"
languages=$languages
input_value=$product->available_later
input_name='available_later'}
<span class="hint" name="help_box">{l s='Forbidden characters:'} <>;=#{}<span class="hint-pointer">&nbsp;</span></span>
</td>
</tr>
{if $countAttributes}
<tr>
<td class="col-left"><label>{l s='Available date:'}</label></td>
<td style="padding-bottom:5px;">
<input id="available_date" name="available_date" value="{$product->available_date}" class="datepicker"
style="text-align: center;" type="text" />
<p>{l s='The available date when this product is out of stock'}</p>
</td>
</tr>
{/if}
</table>
<script type="text/javascript">
var showAjaxError = function(msg)
{
$('#available_quantity_ajax_error_msg').html(msg);
$('#available_quantity_ajax_error_msg').show();
$('#available_quantity_ajax_msg').hide();
$('#available_quantity_ajax_success_msg').hide();
};
var showAjaxSuccess = function(msg)
{
$('#available_quantity_ajax_success_msg').html(msg);
$('#available_quantity_ajax_error_msg').hide();
$('#available_quantity_ajax_msg').hide();
$('#available_quantity_ajax_success_msg').show();
};
var showAjaxMsg = function(msg)
{
$('#available_quantity_ajax_msg').html(msg);
$('#available_quantity_ajax_error_msg').hide();
$('#available_quantity_ajax_msg').show();
$('#available_quantity_ajax_success_msg').hide();
};
var ajaxCall = function(data)
{
data.ajaxProductQuantity = 1;
data.id_product = '{$product->id}';
data.token = "{$token}";
data.ajax = 1;
data.controller = "AdminProducts";
data.action = "productQuantity";
showAjaxMsg('{l s='Saving data...'}');
$.ajax({
type: "POST",
url: "ajax-tab.php",
data: data,
dataType: 'json',
async : true,
success: function(msg)
{
if (msg.error)
{
showAjaxError('{l s='Error durring saving data'}');
return;
}
showAjaxSuccess('{l s='Data saved'}');
},
error: function(msg)
{
showAjaxError('{l s='Error durring saving data'}');
return;
}
showAjaxSuccess('{l s='Data saved'}');
},
error: function(msg)
});
};
var refreshQtyAvaibilityForm = function()
{
if ($('#depends_on_stock_0').attr('checked'))
{
showAjaxError('{l s='Error durring saving data'}');
$('.available_quantity').find('input').show();
$('.available_quantity').find('span').hide();
}
else
{
$('.available_quantity').find('input').hide();
$('.available_quantity').find('span').show();
}
};
$('.depends_on_stock').click(function(e)
{
refreshQtyAvaibilityForm();
ajaxCall( { actionQty: 'depends_on_stock', value: $(this).val() } );
if($(this).val() == 0)
$('.available_quantity input').trigger('change');
});
$('.advanced_stock_management').click(function(e)
{
var val = 0;
if ($(this).attr('checked'))
val = 1;
ajaxCall( { actionQty: 'advanced_stock_management', value: val } );
if (val == 1)
{
$(this).val(1);
$('#depends_on_stock_1').attr('disabled', false);
}
else
{
$(this).val(0);
$('#depends_on_stock_1').attr('disabled', true);
$('#depends_on_stock_0').attr('checked', true);
ajaxCall( { actionQty: 'depends_on_stock', value: 0} );
refreshQtyAvaibilityForm();
}
refreshQtyAvaibilityForm();
});
// bind enter key event on search field
$('.available_quantity').find('input').bind('keypress', function(e) {
var code = (e.keyCode ? e.keyCode : e.which);
if(code == 13) { //Enter keycode
e.stopPropagation();//Stop event propagation
return false;
}
});
};
var refreshQtyAvaibilityForm = function()
{
if ($('#depends_on_stock_0').attr('checked'))
$('.available_quantity').find('input').blur(function(e)
{
$('.available_quantity').find('input').show();
$('.available_quantity').find('span').hide();
}
else
ajaxCall( { actionQty: 'set_qty', id_product_attribute: $(this).parent().attr('id').split('_')[1], value: $(this).val() } );
});
$('.available_quantity').find('input').click(function(e)
{
$('.available_quantity').find('input').hide();
$('.available_quantity').find('span').show();
}
};
$('.depends_on_stock').click(function(e)
{
refreshQtyAvaibilityForm();
ajaxCall( { actionQty: 'depends_on_stock', value: $(this).val() } );
if($(this).val() == 0)
$('.available_quantity input').trigger('change');
});
$('.available_quantity').find('input').change(function(e)
{
ajaxCall( { actionQty: 'set_qty', id_product_attribute: $(this).parent().attr('id').split('_')[1], value: $(this).val() } );
});
$('.available_quantity').find('input').click(function(e)
{
if(typeof(this.intervalId) != 'undefined')
window.clearInterval(this.intervalId);
this.intervalId = window.setInterval(function(it, initialValue)
{
if(initialValue != $(it).val())
if(typeof(this.intervalId) != 'undefined')
window.clearInterval(this.intervalId);
this.intervalId = window.setInterval(function(it, initialValue)
{
window.clearInterval(it.intervalId);
$(it).trigger('change');
$(it).trigger('click');
}
}, 500, this, $(this).val())
});
$('.out_of_stock').click(function(e)
{
if(initialValue != $(it).val())
{
window.clearInterval(it.intervalId);
$(it).trigger('change');
$(it).trigger('click');
}
}, 500, this, $(this).val())
});
$('.out_of_stock').click(function(e)
{
refreshQtyAvaibilityForm();
ajaxCall( { actionQty: 'out_of_stock', value: $(this).val() } );
});
refreshQtyAvaibilityForm();
ajaxCall( { actionQty: 'out_of_stock', value: $(this).val() } );
});
</script>
refreshQtyAvaibilityForm();
</script>
{/if}

Some files were not shown because too many files have changed in this diff Show More