Editing Title & Adding Price To My "Choose Options" Button

Solved

Editing Title & Adding Price To My "Choose Options" Button

simlulu
Tourist
24 0 3

I changed my "Choose options" button output text so now the very same button has the same function but is seen as displaying "Add {{ price }}. I have attached the image of the code below. I want it to output not only Add but also the PRICE of the product. How can I achieve that since {{ price }} simply isn't doing the thing. Thank you!
1.jpg2.jpg

Accepted Solutions (2)

BSSCommerce-B2B
Shopify Partner
1186 306 358

This is an accepted solution.

Hi @simlulu 

Share the URL and I'll check it for you.

If our suggestions are useful, please let us know by giving it a like, marking it as a solution.


BSS: B2B Wholesale Solution |BSS: B2B Portal, Quote, Net 30 | B: B2B Lock Password Protect


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency

View solution in original post

BSSCommerce-B2B
Shopify Partner
1186 306 358

This is an accepted solution.

Step 1. Go to Admin -> Online store -> Theme > Edit code

Step 2. Find the file card-product.liquid. Search for the following CSS snippet

{{ 'products.product.choose_options' | t }}

please change to it

{{ 'products.product.choose_options' | t }} {{ card_product.price }}

If our suggestions are useful, please let us know by giving it a like, marking it as a solution.


BSS: B2B Wholesale Solution |BSS: B2B Portal, Quote, Net 30 | B: B2B Lock Password Protect


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency

View solution in original post

Replies 8 (8)

BSSCommerce-B2B
Shopify Partner
1186 306 358

This is an accepted solution.

Hi @simlulu 

Share the URL and I'll check it for you.

If our suggestions are useful, please let us know by giving it a like, marking it as a solution.


BSS: B2B Wholesale Solution |BSS: B2B Portal, Quote, Net 30 | B: B2B Lock Password Protect


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency
simlulu
Tourist
24 0 3
BSSCommerce-B2B
Shopify Partner
1186 306 358

This is an accepted solution.

Step 1. Go to Admin -> Online store -> Theme > Edit code

Step 2. Find the file card-product.liquid. Search for the following CSS snippet

{{ 'products.product.choose_options' | t }}

please change to it

{{ 'products.product.choose_options' | t }} {{ card_product.price }}

If our suggestions are useful, please let us know by giving it a like, marking it as a solution.


BSS: B2B Wholesale Solution |BSS: B2B Portal, Quote, Net 30 | B: B2B Lock Password Protect


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency
BSSCommerce-B2B
Shopify Partner
1186 306 358

You also need to change the choose_option attribute to 'Add'

If our suggestions are useful, please let us know by giving it a like, marking it as a solution.


BSS: B2B Wholesale Solution |BSS: B2B Portal, Quote, Net 30 | B: B2B Lock Password Protect


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency
simlulu
Tourist
24 0 3

Thank you so much!

 

simlulu
Tourist
24 0 3

however instead of displaying 10,000.00 it is simply displaying 1000000. How do I fix that?

simlulu_0-1724873238786.png

 

simlulu
Tourist
24 0 3

nvm i fixed it by writing it as follows:
{{ 'products.product.choose_options' | t }} {{ card_product.price | money }}

simlulu
Tourist
24 0 3

how can I implement the same on this page with the "Add to Cart" Button : https://www.colomojofindz.com/products/warm-light-saturn-nebula-moon-bedside-nightlight-luminous-cry...