Add - How did you hear about us section with a open field - Dawn Theme

Add - How did you hear about us section with a open field - Dawn Theme

Dekanten
Navigator
325 1 117

Hi

 

I would like to add a small section like this, How did you hear about us and with a blank field to write  in, can this be done in a code or similar? 🙂

 

The section should be on the on a page where the check out comes in. 🙂

 

Thanks in advance. 🙂

 

www.dekanten.no

Reply 1 (1)

PaulNewton
Shopify Partner
7079 629 1484

Depending on total needs this can be an advanced customization, beyond just simple CSS band-aids.

 

Create an input, of fieldset of inputs, that uses cart attributes and put it in a custom-liquid section, or custom-liquid block if available, on the cart template

https://community.shopify.com/c/shopify-design/cart-use-cart-attributes-to-collect-more-information/... 

make sure the custom inputs or containing fieldset has the form attribute```form="cart"``` to connect it to the actual cart form:

e.g.

 

<p class="cart-attribute__field">
  <label for="referrer_message">How did you hear about us?</label>
  <textarea
    form="cart"
    id="referrer"
    name="attributes[referrer_message]"
  >
    {{ cart.attributes["referrer_message"] }}
  </textarea>
</p>

 

 

To match a themes structure & style more consistently look for the  themes contact us page code and copy the relevant parts that create a form.

Or use similar approach if you need this info to be summited like a contact form before a customer checks out.

 

If you need more advanced customization then contact me by my email for services
Contact info in forum signature.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.

 

Good Hunting

 

 

 

 

Contact [email protected] for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org