Skip to content

Instantly share code, notes, and snippets.

View PluginRepublicSupport's full-sized avatar

PluginRepublicSupport

View GitHub Profile
@PluginRepublicSupport
PluginRepublicSupport / extra_options_price_hide.css
Last active February 1, 2023 14:39
Hide Extra Options Price in Product Page
/** Hide price **/
.has-extra-fields .woocommerce-variation .woocommerce-variation-price {
display: none !important;
visibility: hidden !important;
}
.has-extra-fields .woocommerce-variation-price {
display: none !important;
visibility: hidden !important;
}
@PluginRepublicSupport
PluginRepublicSupport / hide_arrows_number.css
Created February 1, 2023 12:19
Hide Up/Down Arrow Number Input Field
/** Hide arrows on number input fields **/
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button {
display: none;
}
@PluginRepublicSupport
PluginRepublicSupport / request_quote_style.css
Created January 31, 2023 14:50
Request A Quote Page Style
/** Styling request a quote page **/
.wcraq-request-forms {
padding-top: 60px;
}
#wcraq-request-quote table tbody>tr:nth-child(odd)>td, table tbody>tr:nth-child(odd)>th {
background-color: #fff;
}
@PluginRepublicSupport
PluginRepublicSupport / custom_attr_child_product.php
Created January 31, 2023 14:01
Custom Attributes WooCommerce Child Product
<?php
/**
* Show custom attributes in child product
*/
/**
*Snippet to add show ACF field content in child product
*/
@PluginRepublicSupport
PluginRepublicSupport / tabs_background_color.css
Created January 31, 2023 13:28
Inactive Tabs Background Color
/** Tabs background color **/
.pewc-preset-style .pewc-tabs-wrapper .pewc-tab {
background: #fff;
}
/** Two columns for radio buttons on desktop view **/
@media only screen and (min-width: 600px) {
.pewc_group_7974_7987 ul.pewc-checkbox-group-wrapper{
display: grid;
grid-auto-columns: 200px 200px;
grid-template-rows: repeat(8, 30px);
gap: 10px;
grid-auto-flow: column;
}
@PluginRepublicSupport
PluginRepublicSupport / img_swatch_title.css
Created January 30, 2023 13:06
Image Swatch Title/Description
@media only screen and (min-width: 600px) {
.pewc-radio-image-desc {
font-weight: 400;
font-size: 11px;
overflow-wrap: break-word;
line-height: 13px;
}
}
.pewc-preset-style .pewc-radio-image-wrapper, .pewc-preset-style .pewc-checkbox-image-wrapper {
padding: 0.1em;
@PluginRepublicSupport
PluginRepublicSupport / image_swatch_border_m.css
Created January 26, 2023 14:08
Image Swatch Mobile Checked/Hover Border
@media (max-width: 600px) {
.pewc-preset-style .pewc-radio-image-wrapper, .pewc-preset-style .pewc-checkbox-image-wrapper{
border: none;
}
.pewc-preset-style .pewc-radio-image-wrapper.checked, .pewc-preset-style .pewc-radio-image-wrapper:not(.pewc-checkbox-disabled):hover, .pewc-preset-style .pewc-checkbox-image-wrapper.checked, .pewc-preset-style .child-product-wrapper:not(.pewc-column-wrapper) .pewc-checkbox-image-wrapper:not(.pewc-checkbox-disabled):hover{
border: none;
}
.pewc-radio-image-wrapper label img, .pewc-checkbox-image-wrapper label img {
border: 3px solid #EEE;
min-height: 200px;
@PluginRepublicSupport
PluginRepublicSupport / flex_image_swatch.css
Created January 25, 2023 15:17
Display issue when columns are set to 3 with 5 elements
.pewc-preset-style .pewc-radio-images-wrapper, .pewc-preset-style .pewc-checkboxes-images-wrapper {
-webkit-justify-content: flex-start;
justify-content: flex-start;
}
.pewc-radio-images-wrapper.pewc-columns-3 .pewc-radio-image-wrapper{
margin: 1%;
}
.pewc-radio-images-wrapper.pewc-columns-2 .pewc-radio-image-wrapper{
@PluginRepublicSupport
PluginRepublicSupport / child_products_acf.php
Last active January 27, 2023 15:50
ACF Fields in Child Products
<?php
/**
*Snippet to add show ACF field content in child product
*/
function acf_filter_field($title, $child_product) {
return sprintf('<h4>%s</h4><p>%s</p>',
$title,
get_field('alcool', $child_product->get_ID()) /** Alcohol is the ACF field name **/
);