- In the IDE:
- open core/admin_templates/users/users_list.tpl file for editing
- uncomment the setprimary toolbar button
- save changes
- Tab 1 - Admin Console:
- login to Admin Console
- go to Website & Content → Structure & Data → Products section
- use the New Product toolbar button to create a Tangible, that will have:
- $10 pricing for Everyone group
- $5 pricing for Admin group
- $2 pricing for Member group
- confirm, that in the products grid, this product is shown with $5 pricing in Admin Console
- right-click on the shortcut icon next to that product name and choose Open Link in New Tab from the Context Menu
- Tab 2 - Front-End:
- confirm, that the Front-End product detail page opens in a New Tab (if you're logged in, then logout)
- confirm, that the product price, displayed on the product detail page for a non-logged-in user is $10
- click on the Buy Now button
- confirm, that you're redirected to the shopping cart page
- confirm, that the product price (Your Price column), displayed on the shopping cart page for a non-logged-in user is $10
- click on the product name to return to its detail page
- confirm, that you're redirected to the product detail page
- perform Front-End login using the login form in the sidebar (create a user in the Admin Console if you don't have it)
- confirm, that the product price, displayed on the product detail page for a logged-in user is $2
- click on the Buy Now button
- confirm, that you're redirected to the shopping cart page
- confirm, that the product price (Your Price column), displayed on the shopping cart page for a logged-in user is $2
- Tab 1 - Admin Console:
- go to the User Management → Users section
- select the user that is currently logged in on the Front-End
- click the Primary toolbar button
- select the admin group
- press the Save toolbar button
- Tab 1 - Front-End:
- reload the page
- confirm, that the product price, displayed on the product detail page for an administrator is $5
- click on the Buy Now button
- confirm, that you're redirected to the shopping cart page
- confirm, that the product price (Your Price column), displayed on the shopping cart page for a logged-in user is $5
Details
Details
Diff Detail
Diff Detail
- Repository
- rINP In-Portal
- Branch
- /in-portal/branches/5.2.x
- Lint
Lint Errors Excuse: Not fixing unrelated issues. Severity Location Code Message Error core/units/helpers/user_helper.php:753 PHPCS.E.CodingStandard.Classes.ClassDeclaration.SpaceBeforeCloseBrace CodingStandard.Classes.ClassDeclaration.SpaceBeforeCloseBrace Error modules/in-commerce/units/orders/order_calculator.php:529 PHPCS.E.CodingStandard.Commenting.InlineComment.InvalidEndChar CodingStandard.Commenting.InlineComment.InvalidEndChar Error modules/in-commerce/units/orders/order_calculator.php:529 PHPCS.E.CodingStandard.Commenting.InlineComment.SpacingAfter CodingStandard.Commenting.InlineComment.SpacingAfter Error modules/in-commerce/units/products/products_item.php:41 PHPCS.E.CodingStandard.Commenting.InlineComment.InvalidEndChar CodingStandard.Commenting.InlineComment.InvalidEndChar Error modules/in-commerce/units/products/products_item.php:41 PHPCS.E.CodingStandard.Commenting.InlineComment.NotCapital CodingStandard.Commenting.InlineComment.NotCapital Error modules/in-commerce/units/products/products_item.php:87 PHPCS.E.CodingStandard.Classes.ClassDeclaration.SpaceBeforeCloseBrace CodingStandard.Classes.ClassDeclaration.SpaceBeforeCloseBrace Error modules/in-commerce/units/products/products_item.php:87 PHPCS.E.Generic.WhiteSpace.ScopeIndent.IncorrectExact Generic.WhiteSpace.ScopeIndent.IncorrectExact - Unit
No Unit Test Coverage - Build Status
Buildable 1192 Build 1192: arc lint + arc unit