You can easily add the Classic Commerce product price as a shortcode using the product ID as an attribute for any specific product. The shortcode can be inserted into any page or post using the format: [cc_product_price id=321]
This code trims the zeros to show whole units where applicable, for example $43 instead of $43.00.
Use this code to attach a suffix to all prices. For example, you might sell wine only by the mixed case, so you could add ” in any mixed dozen” after the bottle price.
You can add a prefix to all prices with this code. For example, you could add “Only” before the price.
If a product has no price or a price set to zero it shows as price 0.00. It can look much nicer to have it shown as FREE.
When an item is on sale, Classic Commerce normally just shows the regular price and the sale price. It can be helpful to also show how much the customer will be saving by using this code. You can style the message by using the included class “was-now-save”.
Set the default ordering on the category page. You can choose to order your products by the price, date or title.
Sometimes a store will have to combine two different functionalities – some items will be for sale online, but others may only need to be displayed as available for purchase. They may be too large or delicate to ship, or they might be advertised as “Price on Application”. You can hide prices and cart buttons … Read moreHide price and cart button for selected categories
The $ currency symbol is used by many countries. To avoid confusion for customers, this code can be used to add the country prefix to the price.