Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
 All Forums
 General
 Suggestions - NOT QUESTIONS
 Add Pay Later / Pay in 3 to product detail page
Author « Topic »  

John M
Advanced Member

457 Posts

Posted - 03/19/2024 :  20:13:00  
Add pay later display options such as PayPal Pay in 3 to the product detail page.

Very easy to implement to the $detailpagelayout or code directly to the proddetail.php page. For example:

Add this script below which you get from PayPal to the <head> section before the </head> of the proddetail.php page.

<script src="https://www.paypal.com/sdk/js?client-id=YOUR-CLIENT-ID¤cy=YOUR-STORE-CURRENCY&components=messages" data-namespace="PayPalSDK"></script>


Add this line below to the end of the function pdddiscountprice() in the incproddetail.php

print '<div class="paypalprice" data-pp-message data-pp-style-layout="text" data-pp-style-logo-type="inline" data-pp-style-text-color="black" data-pp-amount="' . $discountprice . '"></div>';


Alternatively create a new function in incproddetail.php e.g. function pddpaylaterprice() with the line above then add to $layoutoption paylaterprice then add to the $detailpagelayout in the includes file where you want it to display.

John

Vince
Administrator

42473 Posts

Posted - 03/20/2024 :  00:34:54  
Hi John
If you go to the ECT Admin -> Payment Providers page and go through the wizard there to connect PayPal Checkout, (it only takes a minute or so.) Then once connected you can put the PayPal Pay Later messaging on the pages you like in the settings, including the cart and the details pages.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.08 seconds. Snitz Forums 2000