Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bobgo-magento-extension
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bob Public Utils
bobgo-magento-extension
Merge requests
!15
Tracking page
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Tracking page
tracking_page
into
dev
Overview
0
Commits
8
Pipelines
0
Changes
3
Merged
Christel Loftus
requested to merge
tracking_page
into
dev
8 months ago
Overview
0
Commits
8
Pipelines
0
Changes
3
Expand
0
0
Merge request reports
Viewing commit
436e55f7
Prev
Next
Show latest version
3 files
+
11
−
29
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
436e55f7
cleanup
· 436e55f7
Christel Loftus
authored
8 months ago
Block/TrackOrderLink.php
+
6
−
4
Options
@@ -12,11 +12,11 @@ class TrackOrderLink extends Current
public
function
__construct
(
\Magento\Framework\View\Element\Template\Context
$context
,
ScopeConfigInterface
$scopeConfig
,
\Magento\Framework\App\DefaultPathInterface
$defaultPath
,
// Add this dependency
\Magento\Framework\App\DefaultPathInterface
$defaultPath
,
array
$data
=
[]
)
{
$this
->
scopeConfig
=
$scopeConfig
;
parent
::
__construct
(
$context
,
$defaultPath
,
$data
);
// Pass it to the parent constructor
parent
::
__construct
(
$context
,
$defaultPath
,
$data
);
}
protected
function
_toHtml
()
@@ -27,11 +27,13 @@ class TrackOrderLink extends Current
\Magento\Store\Model\ScopeInterface
::
SCOPE_STORE
);
// Return an empty string if the feature is disabled
if
(
!
$isEnabled
)
{
return
''
;
// Return an empty string if the feature is disabled
return
''
;
}
return
parent
::
_toHtml
();
// Use the parent class's rendering method
// Use the parent class's rendering method
return
parent
::
_toHtml
();
}
}
Loading