added hoodies for pre-order
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
tobiasd 2024-10-07 15:40:58 +02:00
parent 93fc5677cf
commit a030543c6a
Signed by: tobiasd
GPG Key ID: 25FE376FF17694A1
11 changed files with 134 additions and 3 deletions

View File

@ -97,6 +97,7 @@ my $items = XML::LibXML->load_xml(location => $items_file);
my $count = 0;
my $amount = 0;
my $pickup = 0;
foreach my $item ( $query->param ) {
my $value = $query->param($item);
@ -106,6 +107,7 @@ foreach my $item ( $query->param ) {
my $price = $items->findvalue("/itemset/item[\@id=\"$item\"]/\@price");
$count += 1;
$amount += $value * $price;
$pickup = "hoodie-fourfreedoms" eq substr($item,0,length("hoodie-fourfreedoms"));
}
}
@ -117,6 +119,9 @@ if ( $country_code eq 'DE' ) {
} else {
$shipping = 8;
}
if ( $pickup ) {
$shipping = 0;
}
$amount += $shipping;

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<infoset>
<version>1</version>
<info id="hoodie-fourfreedoms-38c3-black">
<name>Hoodie (Pick-Up at 38c3), black</name>
<description>
<p>
The new FSFE hoodies are produced only for those who will order them and will be self picked up only.
As the are self picked-up, there are no shipping fee for orders that include one or more hoodies.
You can combine them with other items from this shop.
</p>
<p>
<strong>This item is for self-pick up at the FSFE booth at 38c3 only.</strong>
</p>
<p>
On the front the FSFE logo will be printed on the upper left side.
</p>
</description>
</info>
</infoset>

View File

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<infoset>
<version>1</version>
<info id="hoodie-fourfreedoms-38c3-blue">
<name>Hoodie (Pick-Up at 38c3), blue</name>
<description>
<p>Waiting is over... The new hoodies are here!</p>
<p>
The new FSFE hoodies are produced only for those who will order them and will be self picked up only.
As the are self picked-up, there are no shipping fee for orders that include one or more hoodies.
You can combine them with other items from this shop for the same pick up location.
</p>
<p>
<strong>This item is for self-pick up at the FSFE booth at 38c3 only.</strong>
</p>
<p>
On the front the FSFE logo will be printed on the upper left side.
</p>
</description>
</info>
</infoset>

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<infoset>
<version>1</version>
<info id="hoodie-fourfreedoms-fosdem-black">
<name>Hoodie (Pick-Up at FOSDEM 2025), black</name>
<description>
<p>
The new FSFE hoodies are produced only for those who will order them and will be self picked up only.
As the are self picked-up, there are no shipping fee for orders that include one or more hoodies.
You can combine them with other items from this shop for the same pick up location.
</p>
<p>
<strong>This item is for self-pick up at the FSFE booth at FOSDEM only.</strong>
</p>
<p>
On the front the FSFE logo will be printed on the upper left side.
</p>
</description>
</info>
</infoset>

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<infoset>
<version>1</version>
<info id="hoodie-fourfreedoms-fosdem-blue">
<name>Hoodie (Pick-Up at FOSDEM 2025), blue</name>
<description>
<p>
The new FSFE hoodies are produced only for those who will order them and will be self picked up only.
As the are self picked-up, there are no shipping fee for orders that include one or more hoodies.
You can combine them with other items from this shop for the same pick up location.
</p>
<p>
<strong>This item is for self-pick up at the FSFE booth at FOSDEM 2025 only.</strong>
</p>
<p>
On the front the FSFE logo will be printed on the upper left side.
</p>
</description>
</info>
</infoset>

View File

@ -59,6 +59,50 @@
<image small="data/pictures/tshirt-nocloud-petrol-front-small.jpg" large="data/pictures/tshirt-nocloud-petrol-front-large.jpg"/>
<image small="data/pictures/tshirt-nocloud-petrol-back-small.jpg" large="data/pictures/tshirt-nocloud-petrol-back-large.jpg"/>
</item>
<item type="hoodie" id="hoodie-fourfreedoms-38c3-blue" price="60.00" date="2024-10-08">
<available size="XS" a="49" b="68"/>
<available size="S" a="52" b="70"/>
<available size="M" a="55.5" b="72"/>
<available size="L" a="59" b="74"/>
<available size="XL" a="62.5" b="76"/>
<available size="XXL" a="66" b="78"/>
<available size="3XL" a="70" b="79"/>
<available size="4XL" a="74" b="80"/>
<image small="data/pictures/hoodie-fourfreedoms-38c3-blue-back-small.png" large="data/pictures/hoodie-fourfreedoms-38c3-blue-back-large.png"/>
</item>
<item type="hoodie" id="hoodie-fourfreedoms-38c3-black" price="60.00" date="2024-10-08">
<available size="XS" a="49" b="68"/>
<available size="S" a="52" b="70"/>
<available size="M" a="55.5" b="72"/>
<available size="L" a="59" b="74"/>
<available size="XL" a="62.5" b="76"/>
<available size="XXL" a="66" b="78"/>
<available size="3XL" a="70" b="79"/>
<available size="4XL" a="74" b="80"/>
<image small="data/pictures/hoodie-fourfreedoms-38c3-black-back-small.png" large="data/pictures/hoodie-fourfreedoms-38c3-black-back-large.png"/>
</item>
<item type="hoodie" id="hoodie-fourfreedoms-fosdem-blue" price="60.00" date="2024-10-08">
<available size="XS" a="49" b="68"/>
<available size="S" a="52" b="70"/>
<available size="M" a="55.5" b="72"/>
<available size="L" a="59" b="74"/>
<available size="XL" a="62.5" b="76"/>
<available size="XXL" a="66" b="78"/>
<available size="3XL" a="70" b="79"/>
<available size="4XL" a="74" b="80"/>
<image small="data/pictures/hoodie-fourfreedoms-38c3-blue-back-small.png" large="data/pictures/hoodie-fourfreedoms-38c3-blue-back-large.png"/>
</item>
<item type="hoodie" id="hoodie-fourfreedoms-fosdem-black" price="60.00" date="2024-10-08">
<available size="XS" a="49" b="68"/>
<available size="S" a="52" b="70"/>
<available size="M" a="55.5" b="72"/>
<available size="L" a="59" b="74"/>
<available size="XL" a="62.5" b="76"/>
<available size="XXL" a="66" b="78"/>
<available size="3XL" a="70" b="79"/>
<available size="4XL" a="74" b="80"/>
<image small="data/pictures/hoodie-fourfreedoms-38c3-black-back-small.png" large="data/pictures/hoodie-fourfreedoms-38c3-black-back-large.png"/>
</item>
<item type="socks" id="socks-ilovefs" price="15.00" date="2024-01-12">
<image small="data/pictures/socks-ilovefs-small.jpg" large="data/pictures/socks-ilovefs-large.jpg"/>
<available size="#"/>

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View File

@ -18,7 +18,7 @@
<ul>
<li><a href="#tshirt">T-shirts</a></li>
<li><a href="#slimfit">Slimfit T-Shirts</a></li>
<!-- li><a href="#hooded">Hooded Shirts</a></li -->
<li><a href="#hooded">Hooded Shirts</a></li>
<li><a href="#socks">Socks</a></li>
<!-- li><a href="#baby-clothes">Baby Clothes</a></li -->
<li><a href="#other">Other Items</a></li>
@ -48,9 +48,9 @@
<dynamic-content type="slimfit"/>
<!-- h2 id="hooded">Hooded Shirts</h2>
<h2 id="hooded">Hooded Shirts</h2>
<dynamic-content type="hooded"/ -->
<dynamic-content type="hoodie"/>
<h2 id="socks">Socks</h2>
@ -78,6 +78,7 @@
<ul>
<li>Shipping within Germany: €5.00</li>
<li>Shipping worldwide: €8.00</li>
<li>Pick-Up Items: €0.00</li>
</ul>
<h2>Your Data</h2>