Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Adding "/lb" (per pound) to each product price


ratkaj

Question

Site URL: https://musasllc.squarespace.com/

Hey fellow Squarespacers -- I'm working on a retail site that sells goods per pound... meaning when I do a product listing I need to say it's $9/lb. Anyone run into this before or have a solution? I'm sure there is some code I can add to just have it add to each product price but I have no idea how to even go about figuring that out. 

Any suggestions much appropriated!

https://musasllc.squarespace.com/

Password: 1234

 

Link to comment

3 answers to this question

Recommended Posts

  • 0

There is already CSS in Design > Custom CSS that you could update with /lb.

.product-price:after {
  content: "per pound";
  margin-top: 10px
}

But keep in mind that the change is literally only skin keep. It does not change the product in the back end. So the cart will not reflect it, neither the checkout or orders.

If you want the per pound to be in the back end you need to include that info in the title or a variant.
 

Find my contributions useful? Please like, upvote, mark my answer as best , and see my profile. Thanks for your support!

Link to comment
  • 0
On 5/20/2022 at 10:34 PM, creedon said:

There is already CSS in Design > Custom CSS that you could update with /lb.

.product-price:after {
  content: "per pound";
  margin-top: 10px
}

But keep in mind that the change is literally only skin keep. It does not change the product in the back end. So the cart will not reflect it, neither the checkout or orders.

If you want the per pound to be in the back end you need to include that info in the title or a variant.
 

Sorry @tuanphan, yes. I was able to get as far as what you're seeing however in testing I'm seeing what @creedon's  saying. Any ideas how to fix this universally? Any plugins or something? I can't really add it to the title as that would be weird. Variants would be pretty cumbersome with so many options (1lb, 2lb, etc.)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...