Payment Icons Under Add to Cart in Product Page

Solved

Payment Icons Under Add to Cart in Product Page

StoreHelpNeeded
Explorer
54 1 10

Hello guys,

 

Can you help me add payment icons as they are in my footer under the add to cart button on my product page? I only want those to appear centered under the button: Visa, Mastercard, Amex, Apple Pay, Google Pay & Shopify Pay.

 

Website: shopcutify.com/blender

 

Thank you! Any help is appreciated!!

Accepted Solution (1)
BSSCommerce-HDL
Shopify Partner
2305 835 907

This is an accepted solution.

Hi @StoreHelpNeeded
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid

Step 3: Insert the below code to file -> Save

{% if template.name == 'product' %}
<script>
   let orginal_payment = document.querySelector('.inline-list.payment-icons.site-footer__payment-icons');
   let atc = document.querySelector('button[type="submit"][name="add"]');
   if(orginal_payment && atc) {
      let clone_payment = orginal_payment.cloneNode(true);
      atc.insertAdjacentElement('afterend', clone_payment);
   }
</script>
{% endif %}

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

View solution in original post

Replies 8 (8)

BSSCommerce-HDL
Shopify Partner
2305 835 907

Hi @StoreHelpNeeded

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

BSSTechVenture_0-1716308769985.png

 

Step 2: Search file theme.liquid

BSSTechVenture_1-1716308778946.png

 

Step 3: Insert the below code to file -> Save

{% if template.name == 'product' %}
<script>
   let orginal_payment = document.querySelector('.inline-list.payment-icons.site-footer__payment-icons');
   let atc = document.querySelector('.new-form-atc.addCart');
   if(orginal_payment && atc) {
      let clone_payment = orginal_payment.cloneNode(true);
      atc.insertAdjacentElement('afterend', clone_payment);
   }
</script>
{% endif %}

Here is result: 

BSSTechVenture_2-1716308920617.png

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

StoreHelpNeeded
Explorer
54 1 10

Can you please tell me where exactly I need to paste it? I am not getting the same results as you. At the bottom of the theme.liquid page?

Thank you

BSSCommerce-HDL
Shopify Partner
2305 835 907

Hi @StoreHelpNeededCan you kindly share the details theme.liquid of your problem (screenshot/ record) with us? We will check it and suggest you a solution if possible.

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

Noavi24
Tourist
3 0 0

Please, can you inform where exactly this code script should be paste on the file theme.liquid? At the very end of the page? 

BSSCommerce-HDL
Shopify Partner
2305 835 907

Hi @Noavi24, Paste it before the close body tag  </body>

 

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

Noavi24
Tourist
3 0 0

It worked but it is not centralized below the add to cart bottom.

BSSCommerce-HDL
Shopify Partner
2305 835 907

Hi @Noavi24Can you kindly share the details of your problem and store link with us? We will check it and suggest you a solution if possible.

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

BSSCommerce-HDL
Shopify Partner
2305 835 907

This is an accepted solution.

Hi @StoreHelpNeeded
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid

Step 3: Insert the below code to file -> Save

{% if template.name == 'product' %}
<script>
   let orginal_payment = document.querySelector('.inline-list.payment-icons.site-footer__payment-icons');
   let atc = document.querySelector('button[type="submit"][name="add"]');
   if(orginal_payment && atc) {
      let clone_payment = orginal_payment.cloneNode(true);
      atc.insertAdjacentElement('afterend', clone_payment);
   }
</script>
{% endif %}

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now