Tagged: ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #16127

    I bought the flashlight theme and love it thanks.

    But the product price is not shown on the product detail page. I want to show price not only on the All Products page (which it does) but also the detailed product page – at present just Add to Cart is shown – but no price. How do I resolve this one – please guide me through this one as I am a bit of a novice. thanks for your help, Nick

    #90277

    Hi johnnygoodsir,

    Kindly open wp-contentpluginswoocommercetemplatessingle-producttitle.php and you would see this code:

    <?php
    /**
    * Single Product Title
    */
    ?>
    <h1 itemprop="name" class="product_title entry-title"><?php the_title(); ?></h1>

    Replace it with this code:

    <?php
    /**
    * Single Product Title
    */
    global $post, $product;
    ?>
    <h1 itemprop="name" class="product_title entry-title"><?php the_title(); ?></h1>
    <h1 class="custom-product-price"><?php echo $product->get_price_html(); ?></h1>

    And on your Quick CSS(can be found inside WP Dashboard), you can this code:

    .custom-product-price {
    color: red;
    font-size: 16px;
    }

    Just adjust the color and font-size to your liking. Hope this helps. :)

    Regards,

    Ismael

    #90278

    Hi Ismael

    thanks fro your reply. Sorry, I’m such a novice – but when you say – open wp-contentpluginswoocommercetemplatessingle-producttitle.php

    how do I open that up?

    thanks for your help, Nick

    #90279

    Hi Nick,

    You can open that via an ftp software like filezilla. Just open your site via ftp and go to public_html > wp-content > plugins > woocommerce > templates > single-product > title.php

    All of those are folders except title.php. If you are new to ftp, try to check this link: http://wiki.filezilla-project.org/Using

    Hope this helps. :)

    Regards,

    Ismael

    #90280

    Hi Ismael

    I downloaded filezilla and struck a hurdle straight off. When it asks for my host, is my host my website address http://www.pramcuddle.com or the people that host my site – Bluehost? Im trying both with no success. any ideas? thanks Nick

    #90281

    If you’re not sure if your ftp login credentials are correct please contact your hoster or use your bluhost user panel to get the correct data. It really depends on the hoster and it can vary dramatically. Eg my hoster would accept www. pramcuddle.com (without the http:// protocol prefix) but again it depends on the hoster and we can’t give you a general answer.

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

The topic ‘Price for Specific Product’ is closed to new replies.