templates/shop/product.html.twig line 1
{% extends 'base.html.twig'%}
{% block title %}Print Shop - TeeVerse Photography{% endblock %}
{% block stylesheets %}
<link rel="stylesheet" type="text/css" href="/css/shop/stylesheet.css">
<link rel="stylesheet" type="text/css" href="/css/shop/product.css">
<link rel="stylesheet" type="text/css" href="/css/shop/artPrint.css">
{% endblock %}
{% block body %}
<div class="page" style="text-align: center;">
<h1><a href="/shop">Print Shop</a></h1>
{# <nav id="breadcrumbContainer">
<ul class="breadcrumblist breadcrumbListLong">
<li id="breadcrumbBackLink" style="max-width: none;">
<a href="">Abstract Ink Paintings in Color Framed Art Prints</a>
</li>
<li id="breadcrumbBackPipe" style="padding-left: 8px; padding-right: 10px;">|</li>
<li class="breadcrumbLink">
<a href="">Shop</a>
</li>
<li class="breadcrumbLink">
<a href="">Wall Art</a>
</li>
<li class="breadcrumbLink">
<a href="">Framed Prints</a>
</li>
<li class="breadcrumbLink">
<a href="">Ink Framed Prints</a>
</li>
</ul>
</nav> #}
<main class="container mainContainerDiv">
{# <div id="previousNextDivTop">
<a href="">
<img src="/assets/images/shop/NavigationArrowLeft.png" style="display: inline-block; vertical-align: middle; max-height: 10px; padding-right: 7px; border: none;">
</a>
<p style="display: inline-block; font: 10pt arial; vertical-align: middle;">
<a id="linkprevious" href="" style="font: 11pt arial; font-weight: bold; color: #666666; text-shadow: none; letter-spacing: 0px;">PREV</a>
</p>
<p style="display: inline-block; padding-left: 8px; padding-right: 6px; font: 11pt arial; color: #666666; vertical-align: middle;">|</p>
<div id="productCountContainerDiv">
<p style="display: inline-block; font: 10pt arial; color: #666666; vertical-align: middle;">1 of 24</p>
<p style="display: inline-block; padding-left: 8px; padding-right: 6px; font: 10pt arial; color: #666666; vertical-align: middle;">|</p>
</div>
<p style="display: inline-block; font: 10pt arial; vertical-align: middle;">
<a id="linknext" href="tion-of-time-expanding-into-free-space-phase-two-number-29-m-mellon.html?product=framed-print" style="font: 11pt arial; font-weight: bold; color: #666666; text-shadow: none; letter-spacing: 0px;">NEXT</a>
</p>
<a href="">
<img src="/assets/images/shop/NavigationArrowRight.png" style="display: inline-block; padding-left: 5px; vertical-align: middle; max-height: 10px; padding-left: 9px; border: none;">
</a>
</div> #}
<div class="leftdiv">
<img id="productPreviewImage" src="/uploads/medium/{{product.getThumbnailImage.filename}}" width="1200" height="1350">
<div id="additionalImageContainerDiv">
{# <div class="additionalImageDiv additionalImageImageDiv">
<img id="additionalImage2" class="additionalProductImage" src="/uploads/low/{{product.getThumbnailImage.filename}}">
</div> #}
{% for image in product_images %}
<div class="additionalImageDiv additionalImageImageDiv">
<img id="additionalImage2" class="additionalProductImage" src="/uploads/low/{{image.filename}}">
</div>
{% endfor %}
</div>
<div id="dimensionContainerDiv">
<div class="productOption" id="productDescription">
<p class="optionTitle">Product Details</p>
<p id="aboutProductDescription">
{{ product.legend|nl2br}}
</p>
</div>
</div>
</div>
<div class="rightdiv">
<div id="previousNextDivContainer">
<div id="previousNextDiv" style="">
<p><a id="linkprevious" href="">PREV</a></p>
<p id="verticalLine">|</p>
<p><a id="linknext" href="">NEXT</a></p>
</div>
</div>
<div style="display: inline-block; width: 100%; text-align: left; padding-top: 20px; padding-bottom: 20px; margin-bottom: 15px; border-top: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD;">
<h1 class="h1title">{{ product.title }}</h1>
<div id="artistHeadshotAndNameDiv">
<a target="_blank" href="/about">
<img id="artistHeadshot" src="/assets/images/Thais_icon.jpg" width="200" height="200">
</a>
<p id="artistName"> by
<a target="_blank" href="/about" style="font: inherit; font-weight: bold; color: #444444;">Thaïs Verhasselt</a>
</p>
</div>
</div>
<div id="pricediv">
<div style="float: left; width: 100%;">
<div style="display: flex; justify-content: space-between; overflow: hidden; margin-bottom: 20px;">
<div style="padding-top: 0px;">
<p class="price">
<span id="productCurrency">£</span><span id="productPrice">{{ product.price }}</span>
</p>
</div>
<input type="number" id="quantity" step="1" min="1" max="{{ product.quantity }}" name="quantity" value="1" class="quantity" size="4" pattern="" inputmode="">
</div>
{# <button type="button" id="buttonaddtocart" onclick="globalAddToCartUniqueId();">ADD TO CART</button> #}
<!-- Include the PayPal JavaScript SDK; replace "test" with your own sandbox Business account app client ID -->
<script src="https://www.paypal.com/sdk/js?client-id=Aca5FjlLCDkbT8TLKtXhoBriHqHw4FA8ZqzFXWOzQCfcGlTi2RDp2rPfPm7PYKBLQxEGoAwS6qQWCuLc¤cy=GBP"></script>
<!-- Set up a container element for the button -->
<div id="paypal-button-container"></div>
<script>
paypal.Buttons({
// Sets up the transaction when a payment button is clicked
createOrder: function(data, actions) {
var productName = "{{ product.title }}";
var productPrice = document.getElementById('productPrice').innerHTML;
var productQuantity = document.getElementById('quantity').value;
console.log(productName);
console.log(productPrice);
console.log(productQuantity);
return actions.order.create({
purchase_units: [{
amount: {
value: productPrice*productQuantity,
currency_code: 'GBP',
breakdown: {
item_total: {
currency_code: "GBP",
value: productPrice*productQuantity
}
},
description: "teeverse-photography.com order"
},
items: [{
name: productName,
unit_amount: {
currency_code: "GBP",
value: productPrice,
},
quantity: productQuantity
}],
}]
});
},
// Finalize the transaction after payer approval
onApprove: function(data, actions) {
return actions.order.capture().then(function(orderData) {
actions.redirect('https://teeverse-photography.com/shop/thank_you');
});
}
}).render('#paypal-button-container');
</script>
</div>
</div>
<div id="menudiv">
<div id="artPrintMenuSimple">
<div id="simplePrintSizeContainerDiv" class="simpleContainerDiv" data-sizes-visible="0" data-cropping-allowed="1" data-shapes-visible="0">
<div id="buttonSimplePrintSizeContainerDiv">
<p class="simpleTitle">Print Size</p>
<button id="buttonSimpleSelectedPrintSize" class="buttonSimple">
{{ product.size }}
</button>
</div>
<div id="buttonSimplePrintShapeContainerDiv">
<p class="simpleTitle">Paper</p>
<button id="buttonSimpleSelectedPrintShape" class="buttonSimple">
{{ product.paper }}
</button>
</div>
</div>
<div id="simpleFrameContainerDiv" class="simpleContainerDiv" data-frames-visible="0" data-frame-selected="1" data-frame-colors-visible="0">
<p class="simpleTitle">
Format
</p>
<button id="buttonSimpleSelectedFrame" class="buttonSimple" onclick="toggleAvailableFrames();">
<span id="buttonSimpleSelectedFrameText">{{ product.format }}</span>
</button>
<div id="simpleFrameOptionsContainerDiv">
<div id="buttonSimpleSelectedFrameColorContainerDiv">
<p class="simpleTitle">Frame Colors</p>
<button id="buttonSimpleSelectedFrameColor" class="buttonSimple" onclick="toggleAvailableFrameColors();">
Most Popular
</button>
<div id="simpleFrameColorOptionsContainerDiv">
<button id="buttonSimpleFrameColor_popular" class="buttonSimpleFrameColor buttonSimpleFrameColorSelected" data-frame-color-name="Most Popular" onclick="simpleSelectFrameColor('popular');">
Most popular
</button>
<button id="buttonSimpleFrameColor_Black" class="buttonSimpleFrameColor" data-frame-color-name="Black" onclick="simpleSelectFrameColor('Black');">
Black
</button>
<button id="buttonSimpleFrameColor_Brown" class="buttonSimpleFrameColor" data-frame-color-name="Brown" onclick="simpleSelectFrameColor('Brown');">
Brown
</button>
<button id="buttonSimpleFrameColor_Gold" class="buttonSimpleFrameColor" data-frame-color-name="Gold" onclick="simpleSelectFrameColor('Gold');">
Gold
</button>
<button id="buttonSimpleFrameColor_Gray" class="buttonSimpleFrameColor" data-frame-color-name="Gray" onclick="simpleSelectFrameColor('Gray');">
Gray
</button>
<button id="buttonSimpleFrameColor_Red" class="buttonSimpleFrameColor" data-frame-color-name="Red" onclick="simpleSelectFrameColor('Red');">
Red
</button>
<button id="buttonSimpleFrameColor_Silver" class="buttonSimpleFrameColor" data-frame-color-name="Silver" onclick="simpleSelectFrameColor('Silver');">
Silver
</button>
<button id="buttonSimpleFrameColor_White" class="buttonSimpleFrameColor" data-frame-color-name="White" onclick="simpleSelectFrameColor('White');">
White
</button>
<button id="buttonSimpleFrameColor_Yellow" class="buttonSimpleFrameColor" data-frame-color-name="Yellow" onclick="simpleSelectFrameColor('Yellow');">
Yellow
</button>
</div>
</div>
<button class="buttonSimpleFrame" id="simpleFrame_noFrame" data-frameid="noFrame" data-framename="None" data-frameimageurl="/assets/images/optionNone.jpg" onclick='simpleSelectFrame("noFrame");'>
<img id="simpleFrameImage[noFrame]" class="simpleFrameImage lazy" src="/assets/images/shop/Blank.jpg" data-src="/assets/images/optionNone.jpg" alt="noFrame - None" title="noFrame - None">
</button>
<button class="buttonSimpleFrame buttonSimpleFrameSelected" id="simpleFrame_CRQ13" data-frameid="CRQ13" data-framename="CRQ13" data-frameimageurl="/frames/CRQ13_l.jpg" onclick='simpleSelectFrame("CRQ13");'>
<img id="simpleFrameImage[CRQ13]" class="simpleFrameImage lazy" src="/assets/images/shop/Blank.jpg" data-src="/frames/CRQ13_l.jpg" alt="CRQ13 - CRQ13 - Black Wood" title="CRQ13 - CRQ13 - Black Wood">
</button>
<button class="buttonSimpleFrame" id="simpleFrame_GG1" data-frameid="GG1" data-framename="GG1" data-frameimageurl="/frames/GG1_l.jpg" onclick='simpleSelectFrame("GG1");'>
<img id="simpleFrameImage[GG1]" class="simpleFrameImage lazy" src="/assets/images/shop/Blank.jpg" data-src="/frames/GG1_l.jpg" alt="GG1 - GG1 - Black w/ Gold" title="GG1 - GG1 - Black w/ Gold">
</button>
<button class="buttonSimpleFrame" id="simpleFrame_SM2" data-frameid="SM2" data-framename="SM2" data-frameimageurl="/frames/SM2_l.jpg" onclick='simpleSelectFrame("SM2");'>
<img id="simpleFrameImage[SM2]" class="simpleFrameImage lazy" src="/assets/images/shop/Blank.jpg" data-src="/frames/SM2_l.jpg" alt="SM2 - SM2 - Black w/ Gold" title="SM2 - SM2 - Black w/ Gold">
</button>
<button class="buttonSimpleFrame" id="simpleFrame_SLW6" data-frameid="SLW6" data-framename="SLW6" data-frameimageurl="/frames/SLW6_l.jpg" onclick='simpleSelectFrame("SLW6");'>
<img id="simpleFrameImage[SLW6]" class="simpleFrameImage lazy" src="/assets/images/shop/Blank.jpg" data-src="/frames/SLW6_l.jpg" alt="SLW6 - SLW6 - Black w/ Silver" title="SLW6 - SLW6 - Black w/ Silver">
</button>
<button class="buttonSimpleFrame" id="simpleFrame_SLW5" data-frameid="SLW5" data-framename="SLW5" data-frameimageurl="/frames/SLW5_l.jpg" onclick='simpleSelectFrame("SLW5");'>
<img id="simpleFrameImage[SLW5]" class="simpleFrameImage lazy" src="/assets/images/shop/Blank.jpg" data-src="/frames/SLW5_l.jpg" alt="SLW5 - SLW5 - Black w/ Gold" title="SLW5 - SLW5 - Black w/ Gold">
</button>
<button class="buttonSimpleFrame" id="simpleFrame_GO3" data-frameid="GO3" data-framename="GO3" data-frameimageurl="/frames/GO3_l.jpg" onclick='simpleSelectFrame("GO3");'>
<img id="simpleFrameImage[GO3]" class="simpleFrameImage lazy" src="/assets/images/shop/Blank.jpg" data-src="/frames/GO3_l.jpg" alt="GO3 - GO3 - Deep Profile - Candian Walnut" title="GO3 - GO3 - Deep Profile - Candian Walnut">
</button>
</div>
</div>
</div>
</div>
</div>
{# <div class="bottomSection">
<h2>Print Tags</h2>
<a class="buttonTag" href="">wall art</a>
<a class="buttonTag" href="">framed prints</a>
</div> #}
<div class="bottomSection">
<div>
<a href="/about">
<img src="/assets/images/Thais_icon.jpg">
</a>
<h2>About Thaïs Verhasselt</h2>
</div>
<p>
"I am a Photographer and Visual Artist based in Portsmouth, England.
I am not sure which came first, my thirst for adventures or my sensitivity to great stories.
Surrounding myself with great story-tellers adds sparkles to my surge of inspiration and creativity.
For me, the photography medium is foremost an enabler to human connections with its environment and inner feelings."
</p>
</div>
<div class="bottomSection">
<h2>Shop with Confidence</h2>
<p>
I take pride in the prints and other products I create.
I will be proofing all of the products individually before shipping them over to you.
If you're not happy with a purchase that you made on my website, for any reason, please be in touch first to discuss options.
I will get back to you within 3-4 days.
</p>
</div>
<div class="bottomSection" >
<h2>Delivery</h2>
<p>
All the products are printed in limited numbers to ensure the highest quality finish.
Shipping costs may vary depending on your location and would be added to the final price of your order.
You should receive your order within <b>5-9 business days</b>.
</p>
</div>
</main>
</div>
{% endblock %}
{% block javascripts %}
<script>
var preview = document.getElementById('productPreviewImage');
var images = document.getElementsByClassName("additionalProductImage");
var myFunction = function() {
var attribute = this.getAttribute("src");
preview.src = attribute;
};
for (var i = 0; i < images.length; i++) {
images[i].addEventListener('click', myFunction, false);
}
</script>
{% endblock %}