Home › Forums › WoodMart support forum › Price Not showing
Price Not showing
- This topic has 10 replies, 2 voices, and was last updated 8 months, 2 weeks ago by
Luke Nielsen.
-
AuthorPosts
-
December 16, 2024 at 3:51 pm #622881
shwetaParticipantHello 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,
December 17, 2024 at 9:33 am #623066
shwetaParticipantPlease reply its very urgent
December 17, 2024 at 11:34 am #623137
Luke NielsenKeymasterHello,
I would like to request temporary admin access to look better at the settings there.
Thank you in advance.
Kind Regards
December 17, 2024 at 11:37 am #623139
shwetaParticipantHello Team,
Thank you for your quick reply
kindly find the WP login details in the private sectionDecember 17, 2024 at 5:43 pm #623278
Luke NielsenKeymasterHello,
Confirm the permission for plugins deactivation and enabling the default theme for testing.
I await your response.
Kind Regards
December 20, 2024 at 12:28 pm #624179
shwetaParticipantYes, you can deactivate the plugin please fix this issue.
December 20, 2024 at 5:32 pm #624272
Luke NielsenKeymasterHello,
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
December 23, 2024 at 9:31 am #624593
shwetaParticipantHello 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.December 23, 2024 at 4:04 pm #624808
Luke NielsenKeymasterHello,
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
December 24, 2024 at 9:16 am #624969
shwetaParticipantI can’t able to open this file show error, can you please share the code again.
December 24, 2024 at 3:07 pm #625092
Luke NielsenKeymasterHello,
Please check this one link – https://snipboard.io/TPsvdY.jpg
I await your response.
Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register