/shop/editvatrule
A view of the shop module, defined in kernel/shop/module.php and run by kernel/shop/editvatrule.php.
Address
/shop/editvatrule/<ruleID>/(currency)/<Currency>Ordered parameters, in this order after the view name: ruleID.
Unordered parameters, in any order as /(name)/value: (currency) sets Currency.
Who may open it
The user needs this policy function:
A policy on shop/* (every function) also grants it; limitations of the policy (section, subtree, class ...) still apply where the view checks them.
Details
| Key | Value |
|---|---|
| Navigation part | ezshopnavigationpart |
| Single POST actions | CancelButton: Cancel, CreateButton: Create, StoreChangesButton: StoreChanges |
| POST action parameters | Create (Country: Country, Categories: Categories, VatType: VatType), StoreChanges (RuleID: RuleID, Country: Country, Categories: Categories, VatType: VatType) |
Example
A link in a template (ezurl adds the siteaccess and quotes the address); the parameter values are placeholders:
<a href='/shop/editvatrule/1'|ezurl>shop/editvatrule</a>
<a href=concat( '/shop/editvatrule/1/(currency)/', 1 )|ezurl>shop/editvatrule</a>From PHP, the redirect a view gives after it has done its work:
return $Module->redirectTo( '/shop/editvatrule/1' );Related
Generated by ./console exp:help:examples from kernel/shop/module.php, kernel/shop/editvatrule.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.