A duplicate product page without checkout buttons

A duplicate product page without checkout buttons

welcomebrand
Shopify Partner
77 1 115

I'm trying to create a product template for products that are "archived" - ie, they're never coming back because they were one off/discontinued but I'd like to still show them on the site but make it clear it's more because they're incredible pieces of art/craft. 

 

An example would be this knife. If we get another one, it would be a different product so we'd add that as a new item but I'd like to be able to create an archive template that essentially removes the "out of stock" info and any checkout buttons. 

 

I can create a new template but I can't seem to do anything about removing the liquid snippet for the 

{% section 'product-template' %}

If I duplicate the product-template file as product-archive it just throws an error. 

 

Any ideas how I might achieve this? 

Thanks

 

Replies 4 (4)

Uhrick
Shopify Partner
433 68 102

Hello, Welcomebrand.

 

You actually don't need to duplicate the template. There is an easier way for this to be done.

Through coding, you can set it so that the checkout button/ out of stock notice will only appear on a said condition. If you send me the code, here or through dm, of the file that the checkout button and out of stock notice are, I can try to add that condition.

Shopify Developer
Hire me for theme customizations at ricardomsilvestre@outlook.com or Upwork
Was my answer helpful to you? Please like or mark as solution
welcomebrand
Shopify Partner
77 1 115

Thanks for the offer, which templates/files would you need to see? Just to clarify - I'd like to select a template in the product page rather than rely on setting a specific tag/product conditions if possible.

Uhrick
Shopify Partner
433 68 102

Oh, if you prefer to have a different template, it's ok too. 

You'll have to :

  • Duplicate the template and give it a new name (example: 'product.archived.json' or 'product.archived.liquid')
  • Duplicate the 'product-template.liquid' file, and give a new name (I think you did it already, with 'product-archive.liquid'
  • Remove the out of stock notice and the checkout button in the code of the 'product-archive.liquid' file.
  • And then, lastly
    • if you are on a theme 2.0 (the template files will end with '.json'):
      • Go to the theme customizer, go to the archived template, delete the current section and add the new one you created ('product-archive', you'll have to have changed the name on the file's schema)
    • If you are on an older version of themes, it will be easier:
      • replace this {% section 'product-template' %} with {% section 'product-archive %}

The last step is kinda tricky if you are on 2.0, so let me know if this guide works and you are able to follow it

Shopify Developer
Hire me for theme customizations at ricardomsilvestre@outlook.com or Upwork
Was my answer helpful to you? Please like or mark as solution

KetanKumar
Shopify Partner
37596 3668 12156

@welcomebrand 

oh sorry for that

can you please create new product template and assign particlur product if don't have checkout button

If helpful then please Like and Accept Solution. Partnership of your ️ Coffee Tips and my code can bring miracles.
Want to modify or custom changes on store Hire Me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing