// Disabling some/all default CSS: https://docs.woocommerce.com/document/disable-the-default-stylesheet/
.woocommerce
-
// Headings
h2
color: $colors.headings
#respond input#submit,
a.button,
a.added_to_cart,
- button.button,
+ button.button,
input.button
font-smoothing()
border-radius: 99em
&.alt
background-color: $colors.blue
padding: 1.2em 2em
-
+
&:hover
background-color: $colors.dark-blue
outline: 1px dotted $colors.blue
// Single Product
+ &.woocommerce-app
+ div.product
+ form.cart
+ display: flex
+ flex-direction: column
+ .frequency
+ text-align: left !important
+ margin-left: 0 !important
+ button[type="submit"]
+ width: max-content
+
div.product
form.cart
div.quantity
add_filter('wps_sfw_price_html', function(){
global $product;
global $woocommerce;
- $symbol = get_woocommerce_currency_symbol();
- $price = apply_filters('wps_rbpfw_price',$product->get_regular_price());
- $suffix = $product->get_price_suffix();
- return "<span class='woocommerce-Price-amount amount'><bdi><span class='woocommerce-Price-currencySymbol'>$symbol</span>$price</bdi></span><small class='woocommerce-price-suffix'>$suffix</small>";
+ if($product) {
+ $symbol = get_woocommerce_currency_symbol();
+ $price = apply_filters('wps_rbpfw_price', $product->get_regular_price());
+ $suffix = $product->get_price_suffix();
+ return "<span class='woocommerce-Price-amount amount'><bdi><span class='woocommerce-Price-currencySymbol'>$symbol</span>$price</bdi></span><small class='woocommerce-price-suffix'>$suffix</small>";
+ }
});
add_filter('wps_rbpfw_price', function($price){
add_action('woocommerce_after_add_to_cart_quantity', function() {
global $product;
$product_id = $product->get_id();
- $wps_price_html = "<div class='recurrent'>";
+ $wps_price_html = "<div class='frequency'>";
$wps_price_html .= "<p>Frequency</p>";
$wps_price_html .= '<div class="wps_sfw_subscription_wrapper">';
$wps_price_html .= '<div class ="wps_wsp_onetimesimple_wrapper">';