Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Forum: Plugins
    In reply to: Gallery
    Thread Starter RapBatLe

    (@rapbatle)

    On demo page go to portfolio -> portfolio style 6.

    Forum: Plugins
    In reply to: [WooCommerce] Price
    Thread Starter RapBatLe

    (@rapbatle)

    thanks 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] Price
    Thread Starter RapBatLe

    (@rapbatle)

    hmmmm 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?

    image

    Forum: Plugins
    In reply to: [WooCommerce] Price
    Thread Starter RapBatLe

    (@rapbatle)

    3.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

    image1
    image2

    Forum: Plugins
    In reply to: [WooCommerce] Price
    Thread Starter RapBatLe

    (@rapbatle)

    if ($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] Price
    Thread Starter RapBatLe

    (@rapbatle)

    I 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>

    Thread Starter RapBatLe

    (@rapbatle)

    I 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

    Thread Starter RapBatLe

    (@rapbatle)

    Problem was solved thanks for help ??

    Thread Starter RapBatLe

    (@rapbatle)

    no, now i work at localhost. I use default gallery when click to image display modal windows with full size of image of products

    Thread Starter RapBatLe

    (@rapbatle)

    thanks 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>

    Thread Starter RapBatLe

    (@rapbatle)

    I resolve this problem in panel admin there is a option for this issue

Viewing 11 replies - 1 through 11 (of 11 total)