Re: Show a metafield value on product page - Dawn 2.0 Theme

Show a metafield value on product page - Dawn 2.0 Theme

ccanning
Excursionist
32 0 10

Hello everyone, 

 

I have a pack quantity metafield, which a lot of my products use. For example, we sell spray adhesive and it's sold in packs of 12 aerosols. 

 

I'd like to show 'Sold in packs of [METAFIELD VALUE HERE]. on my product page, rather than having to double-back and manually type it into the product description of all those that apply. 

 

Screenshot 2022-09-22 at 08.06.38.png

 

A bonus achievement would be to have it not show any decimals, but I don't know if that's possible.

 

So: "Sold in packs of 100"

 

rather than

 

"Sold in packs of 100.0"

Replies 9 (9)

SmallTask
Shopify Partner
973 41 55

HI @ccanning ,

 

Kindly share your store url

banned
ccanning
Excursionist
32 0 10
ccanning
Excursionist
32 0 10

Any thoughts @SmallTask ?

KetanKumar
Shopify Partner
36927 3641 11995

@ccanning 

yes, please share code so i will check and update

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
ccanning
Excursionist
32 0 10

Hi @KetanKumar , do you mean URL? If so, it's https://www.vjistore.com/

 

ccanning
Excursionist
32 0 10

Any thoughts @KetanKumar ?

KetanKumar
Shopify Partner
36927 3641 11995

@ccanning 

yes, please share your meta filed code

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
ccanning
Excursionist
32 0 10

See attached @KetanKumar - is that what you need? 

 

Thanks very much. Screenshot 2022-09-26 at 08.22.17.png

ccanning
Excursionist
32 0 10

Any thoughts @KetanKumar ?