This file contains 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
<script> | |
//begin my custom ip redirect | |
//Let's check if we have the value in localstorage | |
if (localStorage.getItem('country')) { | |
//Already have the value in localStorage, no need to make a call to IPinfo | |
// window.location.href = '/welcome?country=' + localStorage.getItem('country') | |
console.log(data.country); | |
} else { | |
// No cached data, let's get it from IPinfo |
This file contains 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="yotpo bottomLine" | |
data-product-id="{{ product.id }}" | |
data-name="{{ product.title }}"> | |
</div> | |
<style> | |
@keyframes nodeInserted { | |
from { | |
outline-color: #fff; | |
} |
This file contains 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
display: -webkit-box; | |
font-size: 14px; | |
line-height: 1.4em; | |
overflow: hidden; | |
text-align: center; | |
text-overflow: ellipsis; | |
-webkit-box-orient: vertical; | |
margin: 0 0 10px 0; |
This file contains 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
.snize-description{ | |
overflow: hidden; | |
text-overflow: ellipsis; | |
white-space: initial; | |
display: -webkit-box; | |
-webkit-line-clamp: 2; | |
-webkit-box-orient: vertical; | |
height: 38px; | |
} |
This file contains 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
Open Putty | |
Insert Shared IP Address take it from Cpanel Ex:67.225.255.208 | |
login with FTP credentials | |
Insert db to the public_html folder | |
add this command | |
mysql -u otechcheckmatepr_staging -h localhost -p otechcheckmatepr_staging < public_html/staging/otechcheckmatepr_staging.sql | |
You just have to replace SQL_FILE_PATH with the file name along with the relative or absolute path | |
or | |
Try replacing localhost with 127.0.0.1 | |
the password to login is this one /** MySQL database password */ take it from wp-config and not FTP password |
This file contains 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
1. Save account.liquid in account.virtual-show-room.liquid | |
2. Update account.virtual-show-room.liquid | |
3. Access account?view=virtual-show-room |
This file contains 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 you are developing locally, you can append ?debug=context to the end of your URL (for example: localhost:3000?debug=context) to see all the properties you have access to. | |
?debug=context and ?debug=bar |
This file contains 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
{{#or (if customer.customer_group_name '===' 'Dealer') (if customer.customer_group_name '===' 'Wholesale')}} | |
<<YOUR CODE - This code only show if any of above condition return TRUE >> | |
<div>You get an awesome discount!</div> | |
{{/or}} |
This file contains 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
<ul class="productGrid"> | |
{{#each products }} | |
{{#if @index '<=' 2 }} | |
<li class="product"> | |
{{>components/products/card show_compare=../show_compare show_rating=../settings.show_product_rating theme_settings=../theme_settings customer=../customer setting_show = ../settings}} | |
</li> | |
{{/if}} | |
{{/each}} | |
</ul> |
NewerOlder