This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Step 1: Let's start with NGINX installation | |
sudo dnf update //To Install Latest Update | |
sudo dnf install -y nginx // Install Nginx | |
sudo systemctl start nginx.service //Start Nginx Server | |
sudo systemctl status nginx.service // Check Server Status | |
sudo systemctl enable nginx.service // Enable Auto Server Start on Reboot | |
Now you should be able to see the server running by hitting your public ip. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (window.location.search != '') { | |
var fb_campaign_id = ''; | |
var search_items = window.location.search; | |
search_items = search_items.replace('?', ''); | |
search_items = search_items.split('&&'); | |
for(i=0;i<search_items.length;i++){ | |
var thisItem = search_items[i]; | |
if(thisItem.indexOf('utm_medium') > -1){ | |
var getCampaign = thisItem.split("="); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if template contains 'product' %} | |
<meta property="og:type" content="product"> | |
<meta property="og:title" content="{{ product.title | strip_html | escape }}"> | |
<meta property="og:category" content="{{ product.type }}" /> | |
{% for image in product.images limit:3 %} | |
<meta property="og:image" content="http:{{ image.src | product_img_url: 'master' }}"> | |
<meta property="og:image:secure_url" content="https:{{ image.src | product_img_url: 'master' }}"> | |
{% endfor %} | |
<meta property="og:price:amount" content="{{ product.price | money_without_currency | stip_html | escape | remove: ',' }}"> | |
<meta property="og:price:currency" content="{{ shop.currency }}"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% comment %} | |
Paste these codes in the additional scripts box. Settings > Checkout > Additional Scripts | |
{% endcomment %} | |
{% if first_time_accessed %} | |
{% assign ordered_products = '' %} | |
{% assign ordered_product_ids = '' %} | |
{% assign totalItems = line_items.size %} | |
{% for lineItem in line_items %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*)$ index.php/$1 [PT,L,QSA] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Allow CORS | |
header('Access-Control-Allow-Origin: *'); | |
header('Access-Control-Allow-Methods: GET, POST'); | |
header("Access-Control-Allow-Headers: X-Requested-With"); | |
//Allow CORS ends | |
echo $_GET['first_name']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/discount/code?redirect=/new-path |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//recharge redirect to checkout | |
function reChargeProcessCart() { | |
function get_cookie(name){ return( document.cookie.match('(^|; )'+name+'=([^;]*)')||0 )[2] } | |
do { | |
token=get_cookie('cart'); | |
} | |
while(token == undefined); | |
var myshopify_domain='{{ shop.permanent_domain }}' | |
try { var ga_linker = ga.getAll()[0].get('linkerParam') } catch(err) { var ga_linker ='' } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="containerX"> | |
<video autoplay id="video" width="100%"> | |
<source src="{{ section.settings.video-url }}" type="video/mp4" /> | |
</video> | |
<div class="overlay"> | |
<p>{{ section.settings.video-text1 }}</p> | |
<p>{{ section.settings.video-text2 }}</p> | |
<p>{{ section.settings.video-text3 }}</p> | |
</div> | |
</div> |
NewerOlder