Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
15 | public function onAfterInit() |
||
16 | { |
||
17 | $config = FoxyStripeSetting::current_foxystripe_setting(); |
||
18 | |||
19 | if ($config->EnableSidecart) { |
||
|
|||
20 | Requirements::javascript( |
||
21 | "https://cdn.foxycart.com/" . FoxyCart::getFoxyCartStoreName() . "/loader.js", |
||
22 | [ |
||
23 | "async" => true, |
||
24 | "defer" => true, |
||
25 | ] |
||
30 |