douboy
Forum Replies Created
-
Forum: Plugins
In reply to: [Qty Increment Buttons for WooCommerce] Alignment Off In Cart On MobileLooks like that is going to do it for me. Thank you!!
Forum: Plugins
In reply to: [Qty Increment Buttons for WooCommerce] Center With Button On Shop PagePerfect! I need to learn more CSS. Thank you!!
Forum: Plugins
In reply to: [Qty Increment Buttons for WooCommerce] Center With Button On Shop PageIs there a way to just center it in the qib-container div without having to change the width. The 100% width looks horrible on mobile. Thanks!
Forum: Plugins
In reply to: [Qty Increment Buttons for WooCommerce] Center With Button On Shop PageYeah. So when I applied your code, the first time, it stacked the buttons and the second time I tried, the buttons were tiny. I’ll try again. Thank you.
Forum: Plugins
In reply to: [Qty Increment Buttons for WooCommerce] Center With Button On Shop PageI got an email reply but don’t see the reply on this thread?? The suggested fix did not work at all. It stacked the + and – buttons on top of the input box.
Forum: Plugins
In reply to: [Qty Increment Buttons for WooCommerce] Grouped ProductThat worked..thank you!
Forum: Plugins
In reply to: [RestroPress - Online Food Ordering System] Updated And Now Can’t Add ItemsNo that did not work. I use Oxygen Builder, so I don’t have a theme. The error I am getting is saying that the following file can not be loaded (because it doesn’t seem to exist). I did update to the latest version:
/wp-content/plugins/restropress/assets/js/maps/theia-sticky-sidebar.js.map
Forum: Plugins
In reply to: [Qty Increment Buttons for WooCommerce] Grouped ProductThank you for the update. That didn’t seem to work though?
Forum: Plugins
In reply to: [Qty Increment Buttons for WooCommerce] Grouped ProductFixed this..thanks.
Forum: Plugins
In reply to: [Side Cart Woocommerce | Woocommerce Cart] Quantity Not Showing In Side BarThat didn’t work. This seems to be working:
input[type=number].xoo-wsc-qty {
border: 0!important;
text-align: center;
display: inline-block;
max-width: 30px;
float: left;
height: 100%;
line-height: 100%;
padding: 0;
background-color: #fcfcfc;
}Perfect..thank you very much! Great support. Will be buying the pro version today.
Here is my code:
add_filter( 'woocommerce_get_price_html', 'calculate_price_by_multiplier', 10, 2 ); add_filter( 'woocommerce_cart_item_price', 'custom_cart_price_display', 10, 3); add_action( 'woocommerce_before_calculate_totals', 'custom_cart_price'); function calculate_price_by_multiplier($price, $product){ if (is_null($product)) { return $price; } $multiplier = get_field('price_multiplier'); $price = $product->get_price(); if ($multiplier > 0){ $price = $multiplier * $price; } return wc_price($price); } function custom_cart_price_display($price_text, $product_data, $cart_key) { if (is_null($product_data)){ return $price_text; } $product_id = (empty($product_data['variation_id'])) ? $product_data['product_id'] : $product_data['variation_id']; $product = wc_get_product($product_id); //$weight = floatval($product->get_weight()); $price = $product->get_price(); $multiplier = get_field('price_multiplier', $product_id); if ($multiplier > 0) { $price = $price * $multiplier; } return wc_price($price); } function custom_cart_price( $cart_object ) { $cart_items = $cart_object->cart_contents; if ( ! empty( $cart_items ) ) { foreach ( $cart_items as $key => $value ) { $product_id = $value['product_id']; $multiplier = get_field('price_multiplier', $product_id); $price = $value['data']->get_regular_price(); if ($multiplier > 0){ $value['data']->set_price( $price * $multiplier ); } } } }The woocommerce_before_cart_contents hook didn’t work at all. It used the no altered prices. Also, in your last post, I am not talking about the cart total, I’m talking about the line item total. The cart total is correct for me.
Sorry, just noticed I was referencing the woocommerce_before_calculate_totals hook. I’ll try your recommendation. Thank you!
Only the line total.