-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
49 additions
and
17 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
<?php | ||
use AirRobe\TheCircularWardrobe\Block\Layout\Script; | ||
|
||
/** @var Script $block */ | ||
try { | ||
/** @var Script $block */ | ||
$scriptUrl = $block->getScriptUrl(); | ||
} catch (\Throwable $e) { | ||
$scriptUrl = ''; | ||
} | ||
?> | ||
<script src="<?php echo $block->getScriptUrl(); ?>" type="text/javascript" src_type="url"></script> | ||
<script src="<?= $scriptUrl ?>" type="text/javascript" src_type="url"></script> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
<?php | ||
use AirRobe\TheCircularWardrobe\Block\Order\Success; | ||
|
||
/** @var Success $block */ | ||
try { | ||
/** @var Success $block */ | ||
$appId = $block->getAppId(); | ||
$orderId = $block->getOrderId(); | ||
$email = $block->getEmail(); | ||
} catch (\Throwable $e) { | ||
$appId = ''; | ||
$orderId = ''; | ||
$email = ''; | ||
} | ||
?> | ||
<airrobe-confirmation | ||
app-id="<?php echo $block->getAppId(); ?>" | ||
order-id="<?php echo $block->getOrderId(); ?>" | ||
email="<?php echo $block->getEmail(); ?>"> | ||
app-id="<?= $appId ?>" | ||
order-id="<?= $orderId ?>" | ||
email="<?= $email ?>"> | ||
</airrobe-confirmation> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,28 @@ | ||
<?php | ||
use AirRobe\TheCircularWardrobe\Block\Product\View\Markup; | ||
|
||
/** @var Markup $block */ | ||
try { | ||
/** @var Markup $block */ | ||
$appId = $block->getAppId(); | ||
$category = $block->getFirstProductCategory(); | ||
$priceCents = $block->getProductPriceCents(); | ||
$originalFullPriceCents = $block->getProductOriginalFullPriceCents(); | ||
$brand = $block->getProductBrand(); | ||
$material = $block->getProductMaterial(); | ||
} catch (\Throwable $e) { | ||
$appId = ''; | ||
$category = ''; | ||
$priceCents = ''; | ||
$originalFullPriceCents = ''; | ||
$brand = ''; | ||
$material = ''; | ||
} | ||
?> | ||
<airrobe-opt-in | ||
app-id="<?php echo $block->getAppId(); ?>" | ||
category="<?php echo $block->getFirstProductCategory(); ?>" | ||
price-cents="<?php echo $block->getProductPriceCents(); ?>" | ||
original-full-price-cents="<?php echo $block->getProductOriginalFullPriceCents(); ?>" | ||
brand="<?php echo $block->getProductBrand(); ?>" | ||
material="<?php echo $block->getProductMaterial(); ?>"> | ||
app-id="<?= $appId ?>" | ||
category="<?= $category ?>" | ||
price-cents="<?= $priceCents ?>" | ||
original-full-price-cents="<?= $originalFullPriceCents ?>" | ||
brand="<?= $brand ?>" | ||
material="<?= $material ?>"> | ||
</airrobe-opt-in> |