Skip to content

Instantly share code, notes, and snippets.

View radjivF's full-sized avatar
🐢
doing some stuff

radjivF radjivF

🐢
doing some stuff
View GitHub Profile
@radjivF
radjivF / theme.scss.liquid
Created July 10, 2018 10:29
product review shopify app hide customer reviews if none
// copy and past to the bottom of theme.scss.liquid
.spr-badge[data-rating="0.0"] {
visibility:hidden; display: none;
}
@radjivF
radjivF / product-template.liquid
Last active July 11, 2018 12:38
hide quantity if collection.title something
{% comment %}
replace ligne 265 to 270
and 'something' by the name of the collection
{% endcomment %}
{% if section.settings.show_quantity_selector and collection.title != 'something'%}
<div class="product-form__item product-form__item--quantity">
<label for="Quantity">{{ 'products.product.quantity' | t }}</label>
<input type="number" id="Quantity" name="quantity" value="1" min="1" class="product-form__input" pattern="[0-9]*">
</div>
@radjivF
radjivF / next.config.js
Created July 23, 2021 10:54
Fixes npm packages that depend on `fs` module on NextJS
module.exports = {
webpack: (config, { isServer }) => {
// Fixes npm packages that depend on `fs` `net `empty` module
if (!isServer) {
config.node = {
fs: 'empty',
net: 'empty',
tls: 'empty'
}
}