Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1164026
    spacebunyip
    Participant

    Hi there,

    I am wondering if it is possible to change the price on the shop catalogue page to only show the first variation in price ($25) rather than ($25-$285). If not can I hide the price on the shop catalogue page and only have it display on the single product page, as it does now – I have the top price hidden via css.

    Catalogue Page: http://jenturner.com.au/rolf/wines/
    Single Product Page: http://jenturner.com.au/rolf/product/chardonnay/

    #1164211
    Christian
    Moderator

    Hey there,

    Please add the code below in your Appearance > Customize > Custom > Global CSS

    .woocommerce-Price-amount:last-child {
        display: none;
    }
    
    .woocommerce .price {
        color: white;
        text-align: center;
    }
    

    Hope that helps. 🙂

    #1166091
    spacebunyip
    Participant

    Hi

    Thanks for that, not quite what I am after though.
    That code hides the variations price on the single product page. So only the single product price shows at the top of the page.

    I think the best option, if possible is to hide the price on the catagory page (and the top of the single product page ) and display only the variation price after the short description on the single product page. Can you let me know if this is possible please.

    Thanks

    #1166328
    Paul R
    Moderator

    Hi,

    You can add this under Custom > Edit Global CSS in the Customizer.

    
    .archive.woocommerce .woocommerce-Price-amount.amount {
       display:none;
    }
    

    Then add this in Custom > Edit Global Javascript

    
    jQuery(function($) {
        $('.single-product .summary .price').insertAfter('.single-product table.variations')
    });
    

    Hope that helps.

    #1166377
    spacebunyip
    Participant

    Getting Closer…

    I’ve hidden the price on the archive page, but now want to remove the price range at the top of the single product page and only display the variation price below.
    Looks silly now that we have applied the white color to the dash, to hide on archive page as it is hidden on the single product page as well.

    http://jenturner.com.au/rolf/product/chardonnay/

    #1166669
    Joao
    Moderator

    Hi There,

    Please add the following code to Appereance Customizer Custom CSS

    .product .type-product div.summary.entry-summary  div:nth-child(2) {
    display:none;
    }
    

    Hope it helps

    Joao

    #1174246
    spacebunyip
    Participant

    Sorry that hasn’t removed anything.

    http://jenturner.com.au/rolf/product/eden-valley-riesling/

    #1174455
    Christopher
    Moderator

    Hi there,

    Please add this code :

    .single-product p.price {
        display: none;
    }

    Hope it helps.

  • <script> jQuery(function($){ $("#no-reply-1164026 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>