Skip to content

Instantly share code, notes, and snippets.

View PluginRepublicSupport's full-sized avatar

PluginRepublicSupport

View GitHub Profile
@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 / 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 / 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 / role_label_translate.php
Created February 3, 2023 13:08
Translate Member Only Form Label
<?php
/**
* Translate Role label
*/
function example_callback( $role ) {
$role= "Käyttäjätilin tyyppi";
return $role;
}
@PluginRepublicSupport
PluginRepublicSupport / disabled_dates_style.css
Created February 3, 2023 15:07
Booking Plugin Disabled Dates
/** Disabled dates color **/
.bfwc-optimise-colours .ui-datepicker td.ui-state-disabled {
background: #FF0000 !important;
opacity: 1 !important;
}
/** Fix calendar next/previous icons **/
.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span{
display: none !important;
@PluginRepublicSupport
PluginRepublicSupport / remove_fields_rq_form.php
Created February 7, 2023 14:06
Remove fields in Request A Quote Form
<?php
function remove_quote_fields( $fields ) {
/** Remove company & message field **/
unset($fields['company']);
unset($fields['message']);
/** Make phone field required **/
$fields['phone']['required'] = true;
@PluginRepublicSupport
PluginRepublicSupport / fee_discount_label.php
Last active February 9, 2023 14:51
Fee Discount Label Cart Page
<?php
function fee_discount_label( $fields ) {
$fields = 'Bulk order discount'; /** Change label test **/
return $fields;
}
add_filter( 'wcfad_cart_discount_label' , 'fee_discount_label' );
@PluginRepublicSupport
PluginRepublicSupport / pending_user_notice.php
Created February 10, 2023 12:48
Pending User Notice Members Only
<?php
/**
* Translate Pending User Notice
*/
function pending_user_notice( $notice ) {
$notice= "Käyttäjätilin tyyppi"; /** Translation here **/
return $notice;
}
@PluginRepublicSupport
PluginRepublicSupport / custom_order_email_wc.php
Last active February 14, 2023 12:20
Custom WooCommerce Order Email
<?php
/**
* Quote request email
*/
defined( 'ABSPATH' ) || exit;
/*
* @hooked WC_Emails::email_header() Output the email header
*/
@PluginRepublicSupport
PluginRepublicSupport / image_preview_mobile.css
Created February 13, 2023 12:26
Image Preview Mobile View
@media (max-width: 600px) {
.wcpauau-modal-footer {
display: flex;
width: 100%;
justify-content: space-between;
}
.wcpauau-modal-footer .button {
font-size: 14px !important;
}
ul.pewc-product-extra-groups{