Forum

Thread tagged as: Question, Third-party, PayPal

Can I include a page break inside a label within the perch:shop template?

I have the following HTML in my product.html template:

<perch:input type="hidden" name="weight" value="<perch:shop label="Shipping Weight (Soap/Shampoo: .31, Sm. Deodorant: .13, Lg. Deodorant .27, Lb of Laundry Soap: 1. Sm. Lotion Tube: .13, Lip Balm: .03)" id="productWeight" />"/>

It appears like this within the perch shop:

cluttered perch shop label
(Pretty cluttered, huh?)

Can I insert page breaks into the label area of this input tag, so that the information I've included in my label appears somewhat like this:

easy-to-read perch shop label
(Much easier to read!)

Thanks for the support!

Michael Griffin

Michael Griffin 0 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

I think you mean line breaks.

No, there's not option for that. Why do you have a label like that?

To apply shipping weights to the products.

I'm going to mark this as solved, though, because on further review I think I'm going to switch to doing a set of radio buttons with each product type, which applies the correct weights automatically.

The real answer to the question "why do you have a label like that" is "lack of sleep when I posted it."

Rachel Andrew

Rachel Andrew 394 points
Perch Support

Worth noting that if you do need to add instructions for an editor you can add help text, which then displays below the field, using the help attribute.

https://docs.grabaperch.com/docs/templates/attributes/help/