How to call up just the SKU without CODE: or any other prefix
Hi,
I'd like to integrate SKU similarily to this image. Right now SKU is called with a prefix "CODE:" or something similar. Is there an SKU shortcode or some other solution possible? Thanks.
Comments
Hi,
You can use the SKU dynamic data: {postmeta:_sku}.
If you want to display it directly on a product or from a product template, just {postmeta:_sku} will be enough. If you want to display the SKU of a specific product anywhere on the website, you must use {postmeta:_sku:000}, where 000 is ID of a product.
Best regards
Hey,
Thanks. I'll try it! Where to get information on other dynamic data shortcodes that I can call up?
How can I make the black background to size itself depending on the SKU length?
1) You can find a list in BeBuilder settings:
2) In the element options, go to Advanced -> Dimensions, and change the width to Inline.
Best regards