RapBatLe
Forum Replies Created
-
On demo page go to portfolio -> portfolio style 6.
Forum: Plugins
In reply to: [WooCommerce] Pricethanks i love you ??
i modified condition in if, like this:
<?php /** * Loop Price */ global $woocommerce, $product; ?> <?php if ($product->sale_price) : $price .= '<span class="price">'.woocommerce_price( $product->regular_price ).'</span> <span class="price2">'.woocommerce_price( $product->sale_price ).'</span>'; $price = apply_filters('woocommerce_sale_price_html', $price, $this); else : $price .= '<span class="price">' .woocommerce_price( $product->price ).'</span>'; $price = apply_filters('woocommerce_price_html', $price, $this); endif; echo $price; ?>
Forum: Plugins
In reply to: [WooCommerce] Pricehmmmm thanks i tested your code, it’s look pretty but in if you get false and all code is execute in “else” i put in else echo”don’t work” and see result, we can modify condition in if instruction?
Forum: Plugins
In reply to: [WooCommerce] Price3.4.1 version wordpress, i understand your ideea, can you help me how i can make different class for sale price? i’m doing this in templates/loop/price.php
Look like this ->
<?php /** * Loop Price */ global $product; ?> <?php if ($price_html = $product->regular_price) : ?> <span class="price"><?php echo $price_html; ?></span> <?php endif; ?> <?php if ($price_html2 = $product->sale_price) : ?> <span class="price2"><?php echo $price_html2; ?></span> <?php endif; ?> <?php /* <?php if ($price_html = $product->get_price_html()) : ?> <span class="price"><?php echo $price_html; ?></span> <?php endif; ?> */ ?>
it’s work good but problems: currency script doesn’t work i can’t put them manualy with echo, and two zero at end of price are displaying, he doesn’t cut. watch an example
Forum: Plugins
In reply to: [WooCommerce] Priceif ($this->price!=='') : if ($this->variation_has_sale_price) : $price .= '<del>'.woocommerce_price( $this->regular_price ).'</del> <ins>'.woocommerce_price( $this->sale_price ).'</ins>'; $price = apply_filters('woocommerce_variation_sale_price_html', $price, $this); else : $price .= woocommerce_price( $this->price ); $price = apply_filters('woocommerce_variation_price_html', $price, $this); endif; endif;
this code i extract from classes/class-wc-product-variation.php and you see this that tags <del></del> and <ins></ins> is present but doesn’t work ?? I comment complete this if and also no stress code work perfectly, so problem is in another thing
Forum: Plugins
In reply to: [WooCommerce] PriceI test demo version of our site and i see that
<span class="amount">23.00</span>
is child of tag<del></del>
and sale price child of tag<ins></ins>
Forum: Plugins
In reply to: [WooCommerce] Featured imageI know that i can attach second image copy of featured image but this is not good job, images is too big and use more memory space, but thanks for this example
Forum: Plugins
In reply to: [WooCommerce] [Plugin: WooCommerce – excelling eCommerce] Shiping methodsProblem was solved thanks for help ??
Forum: Plugins
In reply to: [WooCommerce] [Plugin: WooCommerce – excelling eCommerce] Product galleryno, now i work at localhost. I use default gallery when click to image display modal windows with full size of image of products
Forum: Plugins
In reply to: [WooCommerce] [Plugin: WooCommerce – excelling eCommerce] Related productsthanks but i doing this issue. it’s simple…
<a href="<?php the_permalink(); ?>"> <div style="float: left; margin:0 10px;"> <?php do_action( 'woocommerce_before_shop_loop_item_title' ); ?></div> </a>
Forum: Plugins
In reply to: [WooCommerce] [Plugin: WooCommerce – excelling eCommerce] Payment methodsI resolve this problem in panel admin there is a option for this issue