Extract total from my cart -> place amount in paypal button

soldouttix
Member
Member

I use a hosted shopping cart and am very limited to what I can do with it.   I need to pass the order total amount from my shopping cart into the:

 

<input type="hidden" name="amount" value="9.99">

 

field of the Paypal button.

 

 

The order total in my shopping cart has a unique tag around it:

 

<strong class="accent_02">$9.99</strong>

 

Is it possible to use javascript or anything else to dynamically extract the text between this tag and place into value field of the paypal button?

 

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.