consumer_key
:d208adaf663a85029c33f55ce73d2705
consumer_secrect
:9faba5ec4c19aa68ca96511201b20f69
- Initiate url:
http://domain.com/oauth/initiate
- Authorize url:
http://domain.com/admin/oauth_authorize
- Token request url:
http://domain.com/oauth/token
- Callback url (for dumping returned
oauth_token
andoauth_verifier
): http://domain.com/callback.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add / Update a key-value pair in the URL query parameters | |
function updateUrlParameter(uri, key, value) { | |
// remove the hash part before operating on the uri | |
var i = uri.indexOf('#'); | |
var hash = i === -1 ? '' : uri.substr(i); | |
uri = i === -1 ? uri : uri.substr(0, i); | |
var re = new RegExp("([?&])" + key + "=.*?(&|$)", "i"); | |
var separator = uri.indexOf('?') !== -1 ? "&" : "?"; | |
if (uri.match(re)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- To generate Interceptor, declare a plugin for virtualType, but plugin won't be executed with this alone --> | |
<type name="\Magento\LayeredNavigation\Block\Navigation\Category"> | |
<plugin name="my-plugin" type="\MyVendor\MyModule\Plugin\BlockNavigation"/> | |
</type> | |
<!-- For plugin to be actually executed, declare the same plugin for actual class --> | |
<type name="\Magento\LayeredNavigation\Block\Navigation"> | |
<plugin name="my-plugin" type="\MyVendor\MyModule\Plugin\BlockNavigation"/> | |
</type> |
NewerOlder