btsllc
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce Sample] Sample is adding full price when using custom optionYes, I figured it out. In order to fix this issue, I had to modify the mini-cart.php template.
1) Please create a child theme and add the following directory [woocommerce—>cart].
2)Copy the parent theme mini-cart.php to your child theme cart directory.
3) I modified the following code (this code may be different based on your parent theme)<li class=”clearfix”>
<span class=”quantity”><?php printf( ‘%s × %s’, $cart_item[‘quantity’], ”); ?></span>
“>
<?php echo apply_filters(‘woocommerce_widget_cart_product_title’, $_product->get_title(), $_product ); ?>
<!– update the custom price passed to the mini cart from plugin Woocommerce Sample–>
<!–begining code–>
<?php if($cart_item[‘sample’]){ ?>
<span style=’position: relative; right: -42px !important;’ class=’price’><?php echo $product_price; ?></span>
<?php }else{ ?>
<span class=’price’><?php echo $product_price; ?></span>
<?php } ?>
<!–end code–>Hope this helps!!!
Forum: Plugins
In reply to: [WooCommerce Sample] Selecting Sample shows full priceI have given up, trying to debug the code and begun dissecting it by using the existing foundation to provide a solution. As soon as I come up with something, I will post what I have and maybe we all can build on it. However, I am new to PHP, but making good progress. I have a client whose site I need to lunch soon…
Forum: Plugins
In reply to: [WooCommerce Sample] Selecting Sample shows full priceI have been trying to debug the code and have gotten to far. If I fine a solution, I will post something.
Forum: Plugins
In reply to: [WooCommerce Sample] Selecting Sample shows full priceI am experiencing the same issue after updating to Woocommerce 3.0.4