Skip to content

Instantly share code, notes, and snippets.

View oguzhanoptimum7's full-sized avatar
😎

Oğuzhan ÖZÇELİK oguzhanoptimum7

😎
View GitHub Profile
<nav class="pagination button-group">
<a class="button-group-item pagination-link pagination-page-link disabled" href="">
<svg width="6" height="9" viewBox="0 0 6 9" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.69211 8.92578L6 7.63364L3.03421 4.70356L6 1.77348L4.69211 0.481337L0.4 4.70356L4.69211 8.92578Z" fill="#B1B1B1"></path>
</svg>
</a>
<a class="button-group-item pagination-link pagination-page-link active" href="/components/power-amplifiers/?sort=newest&amp;page=1">
1
</a>
@oguzhanoptimum7
oguzhanoptimum7 / amazon-web-services-public.json
Last active June 23, 2021 08:19
This makes your bucket public,make sure you changed names - AWS S3
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicRead",
"Effect": "Allow",
"Principal": "*",
"Action": [
"s3:GetObject",
"s3:GetObjectVersion"
@oguzhanoptimum7
oguzhanoptimum7 / buy.liquid
Created May 31, 2021 11:59
Shopify Buy All Items Liquid
{% for item in product.tags %}
{% if item contains "test-look" %}
{% assign productSubCategory = item %}
{{ productSubCategory }}<br>
{% endif %}
{% endfor %}
<script src="https://code.jquery.com/jquery-3.6.0.min.js"
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="
crossorigin="anonymous"></script>
<script>
@oguzhanoptimum7
oguzhanoptimum7 / count.liquid
Created May 18, 2021 15:18
Shopify Liquid Product Count by url(schema)
{% assign vari = url_1 | split: "collections/" %}
{{ collections[vari[1]].products.size }} Products
{% for product in collections[vari[1]].products %}
{{ product.title }}
{% endfor %}
@oguzhanoptimum7
oguzhanoptimum7 / git_newrepo
Created April 13, 2021 12:44 — forked from sundarshahi/git_newrepo
Git: Push a new or existing repo to Github
# Create a new repository on the command line
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/c0ldlimit/vimcolors.git
git push -u origin master
# Push an existing repository from the command line
@oguzhanoptimum7
oguzhanoptimum7 / rating.php
Created March 22, 2021 10:43
Woocommerce Comments with Rating
<?php if ( have_comments() ) : ?>
<ol class="commentlist">
<?php wp_list_comments( apply_filters( 'woocommerce_product_review_list_args', array( 'callback' => 'woocommerce_comments' ) ) ); ?>
</ol>
<?php
if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) :
echo '<nav class="woocommerce-pagination">';
paginate_comments_links(
apply_filters(
@oguzhanoptimum7
oguzhanoptimum7 / webp.php
Created March 17, 2021 14:19
Enable WebP Wordpress
//** *Enable upload for webp image files.*/
function webp_upload_mimes($existing_mimes) {
$existing_mimes['webp'] = 'image/webp';
return $existing_mimes;
}
add_filter('mime_types', 'webp_upload_mimes');
//** * Enable preview / thumbnail for webp image files.*/
function webp_is_displayable($result, $path) {
if ($result === false) {
{{#partial "head"}}
{{{ checkout.checkout_head }}}
{{{ stylesheet '/assets/css/optimized-checkout.css' }}}
{{ getFontsCollection }}
<script type="text/javascript">
window.language = {{{langJson 'optimized_checkout'}}};
</script>
{{/partial}}
@oguzhanoptimum7
oguzhanoptimum7 / unlessBig.html
Created March 3, 2021 16:58
Bigcommerce Unless Usage
{{#each category.subcategories}}
{{#unless @last}}{{#unless @first}}
{{name}}
{{/unless}}{{/unless}}
{{/each}}
@oguzhanoptimum7
oguzhanoptimum7 / 3lvlCategory.html
Created March 3, 2021 16:20
Bigcommerce 3 Level Category List
<ul>
{{#each categories}}
<li>
{{#if children}}
<a href="{{url}}" > ALT 1->{{name}}</a>
<ul>
{{#each children}}
<li>
{{#if children}}
<a href="{{url}}"> ALT 2-> {{name}} </a>