Cart Drawer opens when you click "add to cart" can you add PAY PAL

New Member
5 0 0

Im using Out of the Sandbox FLEX Theme and want to know if you can add a PAYPAL button to the Cart Drawer below the Check out button

0 Likes
Shopify Partner
275 51 57

Hello 
Yes but please share your store url first.

Thanks

Want to modify or custom changes on store hire me.
My Email: guleriathakur43@gmail.com
If helpful then please Like and Accept Solution.
If you happy and want to donate small, click here: Paypal
0 Likes
New Member
5 0 0

Screenshot (229).png

0 Likes
Shopify Partner
275 51 57

Same as you have in cart page ?
If yes, Go to cart.liquid and search for code 

<div class="additional-checkout-buttons">

Copy whole code which is in this div and paste in Drawer cart under 'Checkout' button 

Want to modify or custom changes on store hire me.
My Email: guleriathakur43@gmail.com
If helpful then please Like and Accept Solution.
If you happy and want to donate small, click here: Paypal
0 Likes
New Member
5 0 0

This is the code for the cart_main.liquid section

 

<div class="one-whole column is-flex is-align-center is-justify-end">
{% if content_for_additional_checkout_buttons %}
<div class="additional-checkout-buttons">
{{ content_for_additional_checkout_buttons }}
</div>

 

THis is the code for the cart.ajax.liquid template

 

{% comment %} Checkout {% endcomment %}
<div class="ajax-cart__button-wrapper text-align-center">
{% if settings.go_to_checkout %}
<button type="submit" class="ajax-cart__button button--add-to-cart button">{% if settings.show_lock_icon %}{% include settings.icon, name: 'lock' %}{% endif %}{{ 'layout.general.checkout' | t }}</button>
<a class="ajax-cart__cart-link" href="/cart" >{{ 'layout.general.go_to_cart' | t }}</a>
{% else %}
<a href="/cart" class="ajax-cart__button button--add-to-cart button" >{% if settings.show_lock_icon %}{% include settings.icon, name: 'lock' %}{% endif %}{{ 'layout.general.go_to_cart' | t }} </a>
{% endif %}
</div>

 

I tried what you siad but it didnt work, I may have gotten something wrong

0 Likes
Shopify Partner
275 51 57
{% comment %} Checkout {% endcomment %}
<div class="ajax-cart__button-wrapper text-align-center">
{% if settings.go_to_checkout %}
<button type="submit" class="ajax-cart__button button--add-to-cart button">{% if settings.show_lock_icon %}{% include settings.icon, name: 'lock' %}{% endif %}{{ 'layout.general.checkout' | t }}</button>
<a class="ajax-cart__cart-link" href="/cart" >{{ 'layout.general.go_to_cart' | t }}</a>
{% else %}
<a href="/cart" class="ajax-cart__button button--add-to-cart button" >{% if settings.show_lock_icon %}{% include settings.icon, name: 'lock' %}{% endif %}{{ 'layout.general.go_to_cart' | t }} </a>
{% endif %}
</div>
{% if content_for_additional_checkout_buttons %}
<div class="additional-checkout-buttons">
{{ content_for_additional_checkout_buttons }}
</div>
Want to modify or custom changes on store hire me.
My Email: guleriathakur43@gmail.com
If helpful then please Like and Accept Solution.
If you happy and want to donate small, click here: Paypal
0 Likes
New Member
5 0 0

Still not working might be a bit to tricky for me , put what you coded in on top of the existing and i just have a double up,Screenshot (230).png

0 Likes
Shopify Partner
275 51 57

Yes, seems you duplicate code that's why is appears twice, if you want i can check it, please create staff account and drop a email.

Want to modify or custom changes on store hire me.
My Email: guleriathakur43@gmail.com
If helpful then please Like and Accept Solution.
If you happy and want to donate small, click here: Paypal
0 Likes