HEX
Server: Apache
System: Linux v38079.2is.nl 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: democfellows (10015)
PHP: 8.1.34
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/creativefellows.nl/okaycolor.creativefellows.nl/views/inc/sidebar.product.php
<div class="grid-x grid-padding-x align-right">
	<div class="cell small-12 medium-10" data-sticky-container>
		<div class="sticky" data-sticky="" data-margin-top="5.5" data-anchor="order-product" data-sticky-on="medium">
		
			<div class="callout">
				<div class="grid-x grid-padding-x">
					
					<div class="cell small-5 medium-12 show-for-medium">
						<h3>Bestelling</h3>
						<ul class="no-bullet show-for-medium" id="product-preview">
							<?
							
								/* 
								 * Product selection preview here
								 */
								
							?>
						</ul>
					</div>
					
					<div class="cell small-7 medium-12" id="product-preview-price">
						
						<h2>€ <span class="amount-no-tax">63,09</span>
							<span class="h5 subheader">€ <span class="amount-with-tax">76,34</span> (incl. BTW)</span></h2>

						<button class="button secondary expanded" data-order data-action="<?php echo $router->pathFor("cart.post",["product" => $product->getName()]); ?>"><i class="fal fa-shopping-cart"></i> In winkelwagen</button>
						
						<h5 class="blue"><i class="fal fa-truck"></i> Verzenden al vanaf € <span class="delivery-amount">7,00</span></h5>
												
					</div>
					
			
					
					<div class="cell small-5 medium-12 text-left medium-text-center" id="product-preview-production">
						
						<?php
							
							$a = strtotime( date('Y-m-d H:i:s') );
							$b = strtotime( date('Y-m-d 14:00') );
							$date_correction = ($a - $b) > 0 ? 1 : 0;
							
							$current_price = $product->property_groups[ $product->getPriceProperty() ]->options[0]->getPrice(); 
								
							echo '<ul class="no-bullet production-premium" id="product-preview-premium">';
							echo '<li><strong>Leverdatum</strong></li>';
							
							foreach($premium as $i => $premium_option) //
							{
								/*
								// set to next day if max time has past
								$premium_option->setDateCorrection($date_correction);
							
								echo '<li date-timestamp="'. $premium_option->dateLabel() .'">';
							
									echo '<span class="">';
										echo $premium_option->dateLabel();
									echo '</span>';
				
									echo '<span class="price text-right">+ ';
										echo $config->formatPrice($premium_option->premiumFactor() * $current_price );
									echo '</span>';
							
								echo '</li>';	 

								echo '<div class="cell small-12 medium-6 product-option">';
			
									echo '<a class="form-setter'. ( $premium_option == end($premium) ? " selected" : "" ) .'" data-option 
										data-names="delivery-date||delivery-premium-price"
										data-input-target="#delivery_date"
										data-input-value="'. $premium_option->timeStamp() .'"  
										data-delivery-date="'. $premium_option->timeStamp() .'" 
										data-delivery-label="'. $premium_option->dateLabel() .'" 
										data-delivery-premium-price="'. ( $premium_option->premiumFactor() * $cart->getTotal() ) .'" 
										data-amount="data-delivery-premium-price"
										data-target="#cart-delivery-premium">';
					
										echo '<span class="name">';
											echo '<strong>'. $premium_option->dateLabel() .'</strong>';
										echo '</span>';
						
										echo '<span class="price'. ($premium_option->premiumFactor() === 0 ? " null" : "") .'">';
											echo $config->formatPrice($premium_option->premiumFactor() * $cart->getTotal() );
										echo '</span>';

									echo '</a>';
			
								echo '</div>';*/

		
							}
							echo '</ul>';
							
							
							
						?>
					
					</div>
					
						
				</div>
			</div>
				
		</div>
	</div>
</div>

<?php
	//d($premium);
?>