Skip to content

Commit

Permalink
Revert wrong commits.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderkovac committed May 10, 2021
1 parent 8ce581a commit 1b0a45b
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,36 +51,6 @@ function crossfoot(int $int){
return $r;
}

function getShippingName($featureKey)
{
$featureNames = site()->shippingtimes()->toStructure();
foreach ( $featureNames as $feature) {
if (strval($feature->shippingtime_name()) == $featureKey) {
return strval($feature->shippingtime_label()->text());
}
}
}
function getFeatureName($featureKey)
{
$featureNames = site()->productFlags()->toStructure();
foreach ( $featureNames as $feature) {
if (strval($feature->productFlags_name()) == $featureKey) {
return $feature->productFlags_label();
}
}
}

function getBadgeName($featureKey)
{
$featureNames = site()->attributefields()->toStructure();
foreach ( $featureNames as $feature) {
if (strval($feature->attribute_name()) == $featureKey) {
return $feature->attribute_label();
}
}
}


Kirby::plugin('ww/merx', [
'options' => [
'successPage' => 'success',
Expand Down

0 comments on commit 1b0a45b

Please sign in to comment.