Skip to content

Instantly share code, notes, and snippets.

View St0iK's full-sized avatar
☘️
🇬🇷

Dimitris Stoikidis St0iK

☘️
🇬🇷
View GitHub Profile
<?php
// Start Session
session_start();
// Show banner
echo '<b>Session Support Checker</b><hr />';
// Check if the page has been reloaded
if(!isset($_GET['reload']) OR $_GET['reload'] != 'true') {
// Set the message
$_SESSION['MESSAGE'] = 'Session support enabled!<br />';
// Give user link to check
drush variable-set cdn_https_support TRUE
drush variable-set cdn_exception_drupal_path_blacklist en-us*
drush variable-set cdn_exception_auth_users_blacklist admin*
drush variable-set cdn_basic_mapping https://deucz2ewme2em.cloudfront.net
drush variable-set cdn_status 2
Language - browser language (https://developer.mozilla.org/en-US/docs/Web/API/NavigatorLanguage/language)
ColorDepth - color depth (https://developer.mozilla.org/en-US/docs/Web/API/Screen/colorDepth)
ScreenResolution - screen resolution
AvailableScreenResolution
TimezoneOffset - user time zone
SessionStorage - user browser support of session storage
IndexedDB - user browser support of IndexedDB
AddBehavior - IE specific 'AddBehavior' method detection
OpenDatabase - user browser support of OpenDatabase
CpuClass - detection of CPU class
watchdog('commerce_sage_payments', 'Response: @response', array('@details' => print_r($result, 1)));
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
<?php
/**
* Implements hook_page_build().
*/
function vw_hreflang_page_build(&$page) {
global $language;
// Return early if site is monolingual.
if (!drupal_multilingual()) {
<?php
/**
* Implements hook_page_build().
*/
function vw_hreflang_page_build(&$page) {
// Return early if site is monolingual.
// if (!drupal_multilingual()) {
// return;
// }
$view = new view();
$view->name = 'vw_commerce_checkout_page';
$view->description = 'Cart line item summary displayed during checkout.';
$view->tag = 'commerce';
$view->base_table = 'commerce_order';
$view->human_name = 'VW Commerce Checkout Page';
$view->core = 0;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
<div id="delivery-details"><strong>5 Working Days:</strong> Subject to your order being successful, your parcel will be packed in order that you should receive it within five working days.<br />
<br />
<strong>Next Working Day:</strong> Subject to your order being successful, all orders received before 3pm will be delivered on the next working day.<br />
<br />
Orders placed after 3pm will be dispatched the following working day, for example: If your order is placed on Tuesday at 5pm it will be dispatched the following day for delivery on Thursday.<br />
<br />
<strong>Saturday Delivery:</strong> Orders placed up until 3pm on Friday will be delivered to UK destinations* for Saturday delivery. Please note that working days are Monday to Friday and do not include National Bank Holidays.<br />
<br />
<em>*For the Channel Islands, Scottish Highlands, Hebrides, Orkney and Shetland please allow two working days, unfortunately Saturday Delivery is not available in these areas.</em></div>
<div id="contact-us">
<p>NEED ANY ASSISTANCE?</p>
<p>Call customer service on +44 (0)20 7915 2461 or <a href="mailto:[email protected]?subject=enquiry">email us</a></p>
</div>