Home Forums WoodMart support forum Price Not showing

Price Not showing

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #622881

    shweta
    Participant

    Hello Team,
    I am creating a custom product layout on my website. I have added the price element, but I am facing an issue. The variable product price is displayed correctly on the website; however, for simple products, the price is not showing. Could you please look into this issue? I want both variable product prices and simple product prices to display on my website. kindly find the simple product page url: https://berylagency.store/product/at-your-service-valet-tray/
    and variable product page URL: https://berylagency.store/product/id-cardholder/

    Best regards,

    #623066

    shweta
    Participant

    Please reply its very urgent

    #623137

    Luke Nielsen
    Keymaster

    Hello,

    I would like to request temporary admin access to look better at the settings there.

    Thank you in advance.

    Kind Regards

    #623139

    shweta
    Participant

    Hello Team,
    Thank you for your quick reply
    kindly find the WP login details in the private section

    #623278

    Luke Nielsen
    Keymaster

    Hello,

    Confirm the permission for plugins deactivation and enabling the default theme for testing.

    I await your response.

    Kind Regards

    #624179

    shweta
    Participant

    Yes, you can deactivate the plugin please fix this issue.

    #624272

    Luke Nielsen
    Keymaster

    Hello,

    In the Layout, define the “Product price” element – https://prnt.sc/J7vDEYfVCKci

    If you do not want to use Layouts, remove this CSS – https://prnt.sc/tprMCILUy7ps that hides the price on the default product page.

    I await your response.

    Kind Regards

    #624593

    shweta
    Participant

    Hello Team,

    I have removed the CSS, but I want to display the price with a label before the simple product on the single-product pages. I am using the following code, which works fine for variable products:

    PHP CODE

    // Display the price with label before the variation on single product pages
    add_action(‘woocommerce_before_variations_form’, ‘show_price_before_variation’, 10);

    function show_price_before_variation() {
    global $product;

    // Check if the product is variable
    if ( $product->is_type( ‘variable’ ) ) {
    echo ‘<div class=”price-label-wrapper”>’;
    echo ‘<span class=”price-label”>Price: </span>’;
    echo ‘<span class=”price”>’ . $product->get_price_html() . ‘</span>’;
    echo ‘</div>’;
    }
    }

    Page Link: https://berylagency.store/product/nosey-parker/

    Attachments:
    You must be logged in to view attached files.
    #624808

    Luke Nielsen
    Keymaster

    Hello,

    You can override the default file – wp-content/plugins/woocommerce/templates/single-product/price.php via the child theme: https://prnt.sc/CDGMQDmKyxgY and add an appropriate text before the price.

    Kind Regards

    #624969

    shweta
    Participant

    I can’t able to open this file show error, can you please share the code again.

    #625092

    Luke Nielsen
    Keymaster

    Hello,

    Please check this one link – https://snipboard.io/TPsvdY.jpg

    I await your response.

    Kind Regards

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