How can I remove 'default title' on single variant products?

hello all,

I am currently linking my shopify to my EPOS system. For this to happen, and to save work, I have removed the variant options on all the items where there is only 1 variant to make the connection easier. The issue I now have, is that when the variant is deleted, the Product Item on the front end shows “default title” which looks crap. Can I get rid of this without having a variant? thanks in advance

Grovely-pet-supplies is the site

Regards

Dave

Hi There!

You can most certainly hide the dropdown option when “Default Title” is the only option, let me know if this is what you need so I can send you a Collaborator access. Cheers!

If you have a look at this link

https://www.grovelypetsupplies.co.uk/products/arden-grange-adult-dog-food-chicken-rice-lamb-rice-twin-bag-deal

you will see what I mean. This is only coming up on items without any variants.

Thanks

You basically need this on a product with no variants:

HI, Yes thats exactly what I want on products without a variant

how do i fix this?

Sent you a request for Collaborative access, I’ll do that for you if that’s ok! Will let you know what I changed and where

Hi There!

Just letting you know the code fix has been deployed as follows in the product.liquid File.


									{% comment %} QUANTITY {% endcomment %}
									

										
										
									

									{% comment %} VARIANTS {% endcomment %}
                                  {% unless product.has_only_default_variant %}
									
										Size
										
									

                                  {%endunless%}
                                  
                                  {% if product.has_only_default_variant %}
                                  
                                  {%endif%}
								

Thankyou so much. Very much appreciated

Sure thing! Should you need further assistance don’t hesitate to send me an email or a DM.

Cheers!

Hi, how can I undo this solved question. My website now has stopped working correctly when you add the item to the basket. It also doesnt show you the price of the item any more

Hi There!

Checking it as we speak hold on!

Issue has been resolved, updated code below:

{% if product.has_only_default_variant %}

{%endif%}

Hello again, thanks for the quick reply. The link is now working, however, there is no price on the item that you are looking at any more

Updated Location & Added Price, third time’s a charm.

{% if product.has_only_default_variant %}

{{ product.price | money }}

                                  
{%endif%}

Hi, thats getting there. Could you make the font a lille bigger and in Bold too please.

Thankyou

I have just seen another issue, thats different to this one. Should I start another topic? Its the link to continue shopping in the cart area goes to a 404 code instead of back to where they were looking beforehand. Let me know and I can start another topic if required. Thanks

Font Increased + Made It Bold & Continue Shopping Was being filled with an incorrect variable, pointed it back to the homepage when clicked. Let me know if all is well!

Continue Shopping Code:

<  Continue shopping

Thats better for the pricing, thank you. Are you able to point the continue shopping back to the item they were looking at before adding it to the cart rather than back to the home page?

Done, here’s the updated code:

<  Continue shopping