Community @ The Turning Gate

Support community for TTG plugins and products.

You are not logged in.

#1 2017-07-16 01:54:01

tgipson
Member
From: parker co usa
Registered: 2013-03-19
Posts: 148
Website

add text to cart

I wish to add text to the cart that explains the difference in payment methods when choosing the "Proceed to Checkout" button and the "PayPal checkout buttons".

I would like to add the following text:
If you wish to pay by check, then click the Proceed to Checkout button.
If you wish to pay by credit card or PayPal, click the PayPal Checkout button.

How would I do this?

Thank you as usual and immensely grateful for your help!

Terry


just mucking my way through this stuff...
www.terrygipsonphotography.com

Offline

#2 2017-07-16 04:22:12

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 12,916
Website

Re: add text to cart

The only way I can think of is using jQuery via the phplugins ttg_scripts hook.

try this. Put it in a phplugins file associated with the Cart's page template:

function ttg_scripts( $style, $path ) {
	echo '
		<script>
			$("<div class=\'cart-instructions\'><p>Cart Instructions</p></div>").insertBefore("form#cart #cart-buttons");
		</script>
	
	';
}  //END

It should appear directly above the row of checkout choices
I've added the class "cart-instructions" to the div so you can target it with custom css if needed.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 1.1.1 test site, Pangolin test site

Offline

#3 2017-07-16 04:30:29

tgipson
Member
From: parker co usa
Registered: 2013-03-19
Posts: 148
Website

Re: add text to cart

I'll give it a try. Thanks!


just mucking my way through this stuff...
www.terrygipsonphotography.com

Offline

Board footer

Powered by FluxBB