Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #290643

    HI,

    how do i replace the date on blog post grid with the product prices? and limit the excerpt?
    please see https://webtechnology.ph/cctv-camera/

    #290720

    Hey Roy!

    Thank you for using the theme.

    Please edit config-templatebuilder > avia-shortcodes > postslider.php, find this code on line 386:

    $output .= "<time class='slide-meta-time updated' $markup>" .get_the_time(get_option('date_format'), $the_id)."</time>";
    

    Replace it with:

    global $product;
    						$product = new WC_Product( $entry->ID );
    						$price = $product->price;
    						$output .= "<time class='slide-meta-time updated' $markup>" .$price."</time>";

    Regards,
    Ismael

    #302827

    thanks

    #303078

    Hey!

    Glad we could help you. Enjoy the theme.

    Cheers!
    Günter

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘replace date with price’ is closed to new replies.