Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #23601

    With the version of Flashlight I have, the product price shows up on the catalog pages and on product pages of variable products, but not on product pages of single products. I’ve noticed by reading earlier threads that other people have had this issues too and that Flashlight was aware of this and planning a fix. (See:http://www.kriesi.at/support/topic/woocommerce-single-product-page-missing-price-tag). Can you tell me if the most recent version of Flashlight has fixed this and shows the product price on the single product pages? I’ve reviewed the Changelog and was not able to find mention of the price fix.

    Also, can you direct me to where I would find straightforward directs on how to back-up my site before updating to the most recent version of Flashlight?

    Finally, I’ve noticed the none of my right sidebars are showing up, though they used to. The calendar, for example, no longer shows up on the blog page. I also can’t get right sidebars to show up on any other pages.

    Thanks in advance for your help!

    #120443

    I have backed up my database and files and updated to Flashlight 2.3. I have now have the sidebars working (they don’t show up in “flexible grid gallery but do in “3 column gallery”). My only issue now is that the product price is NOT SHOWING UP on the single product pages, for products with no variations or attributes, same as with the old Flashlight version I was using. Please help!

    #120444

    Hi,

    Open woocommerce-config > config.php then find this code

    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10, 2);

    Replace it with this

    //remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10, 2);

    Regards,

    Ismael

    #120445

    Where do I find “woocommerce-config > config.php”? I thought I was in the correct place, but I couldn’t find the code you referenced. Using WordPress I went to Pluggins > Editor > then selected Woocommerce.

    And will that code change make the price show up on single product pages and also show up only once on variable product pages? I read in another thread that a fix for the single product pages caused the price to show up twice on the variable products pages (where the price is already showing up correctly). I just don’t want to fix one problem and create another.

    Thanks!

    #120446

    Hi,

    You need to edit the file via FTP or your cpanel.

    Cheers,

    Ismael

    #120447

    Found it thanks! I made the change and the price is now showing up on the single product pages, but it is showing up twice on the variable product pages. Anything I can do about this?

    #120448

    Hi,

    It shows the original price before adding attributes. If you want to hide it, you can use this

    p.price span {
    display: none !important;
    }

    Regards,

    Ismael

    #120449

    But that code removes the price from the simple product pages. Is there a way to have the price show up once on the simple product pages and once on the variable product pages? So far I only have two options:

    1) price shows up on variable product pages but not on simple product pages

    2) price shows up twice on variable product pages and once on simple product pages

    If I had to choose, I’d go with option #2 because it’s important that a price shows up, but I’d prefer to not have it show up twice on the variable product pages.

    Thanks!

    #120450

    Hi,

    I think we already achieve number 2, right?

    Open woocommerce-config > config.php then find this code

    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10, 2);

    Replace it with this

    //remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10, 2);

    Let me tag the rest of the support team.

    Regards,

    Ismael

    #120451

    Hi,

    I’m confused. You provided the same code change as earlier. I have already made that change and what I tried to explain was that making that change makes the price show up on simple product pages (when previously it wouldn’t) but then causes the price to show up twice on variable product pages. Right now that’s how I have it set-up, but I would like the price to only show up once on the variable product pages (without removing it altogether from the simple product pages).

    Thanks,

    Mariah

    #120452

    Hi,

    I’m sorry but I just thought that you would be satisfied with it because you said

    2) price shows up twice on variable product pages and once on simple product pages

    Let me tag the rest of the support team.

    Regards,

    Ismael

    #120453

    Hi,

    Which page on your site are you referring to? http://goo.gl/y8DrK has no variations and shows price.

    Thanks,

    Nick

    #120454

    Hi Nick,

    Right now, the price shows up once on the simple product pages (what you linked to above) and twice on variable product pages, see: http://www.azune.com/shop/photographs/lupines/

    I have used all the codes suggested above, because originally no price showed up on the simple product pages. But using the code suggested has caused the price to show up twice on the variable product pages: once at the top saying “From: $10″ and once at the bottom showing the amount based on the current selections. I’ve like to get the “From: $10″ to disappear on the variable product pages (it started showing up when I added the code that allowed the price to display on the simple product pages).

    Thanks,

    M.

    #120455

    Hi,

    I got it. Thanks for being clear, makes my life easier. We will rewrite the price.php file in the woocommerce plugin folder, and to make sure that a theme update won’t overwrite it, we will create a woocommerce folder inside the enfold theme and place the price.php file inside it thereby overriding the plugin.

    Lets test it first. Please make a backup and open /wp-content/plugins/woocommerce/templates/single-product/price.php

    Overwrite the contents of the file with the code below.

    This is the code

    <?php
    /**
    * Single Product Price, including microdata for SEO
    *
    * @author WooThemes
    * @package WooCommerce/Templates
    * @version 1.6.4
    */

    if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

    global $post, $product;

    if (!$product->is_type( 'variable' )) {
    ?>

    <div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
    <p itemprop="price" class="price"><?php echo $product->get_price_html(); ?></p>

    <meta itemprop="priceCurrency" content="<?php echo get_woocommerce_currency(); ?>" />
    <link itemprop="availability" href="http://schema.org/<?php echo $product->is_in_stock() ? 'InStock' : 'OutOfStock'; ?>" />

    </div>
    <?php
    }
    ?>

    See if this made any difference

    Thanks,

    Nick

    [Edit]: Use Devin’s solution below as it is a little (a lot) easier.

    #120456

    Hi M,

    Just to add to this, the price shows up twice because one is the “base price” that a variation has and the second is the final price with the variation. So what you can do is Try adding the following CSS to your Quick CSS (located under the Styling Tab in the theme options) or the custom.css file in the css folder of your theme files:

    #top.single-product .summary .price {
    display: none;
    }
    #top.single-product .variations_form .price {
    display: initial;
    }

    Regards,

    Devin

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

The topic ‘Price not showing on single product page and right sidebars not showing at all’ is closed to new replies.