This is the documentation for concrete5 version 5.6 and earlier. View Current Documentation

The page where I've made the changes is http://www.yourdomain.com/checkout/payment/form/

Please open your payment methods form.php & put the below code.


echo t('Review Address')

if(!is_array($exclude_sections)) {
    $exclude_sections = array();
}

Loader::model('payment/method', 'core_commerce');
Loader::model('order/product', 'core_commerce');

$method = "";
$pm = CoreCommercePaymentMethod::getByID($order->getOrderPaymentMethodID());
if ($pm) {
    $method = $pm->getPaymentMethodName();
}

$products = CoreCommerceOrderProduct::getByOrderID($order->getOrderID());
$adjustments = $order->getOrderLineItems();
$billing = $order->getAttribute('billing_address');
$shipping = $order->getAttribute('shipping_address');
$bill_attr = AttributeSet::getByHandle('core_commerce_order_billing');
$ship_attr = AttributeSet::getByHandle('core_commerce_order_shipping');
$form = Loader::helper('form');


if(!in_array('billing',$exclude_sections)) { 
 echo ($shipping||$ship_attr) ? t('Billing Information') : t('Billing/Shipping Information')
        
echo $order->getAttribute('billing_first_name')
echo $order->getAttribute('billing_last_name')
echo $order->getOrderEmail()
echo $billing->getAddress1()
echo $billing->getAddress2()
echo $billing->getCity(), echo $billing->getFullStateProvince() - echo $billing->getPostalCode()
echo $billing->getFullCountry();
echo $order->getAttribute('billing_phone')  
 }  

if (!in_array('billing',$exclude_sections) && ($shipping || $ship_attr)) { 
             echo t('Shipping Information');

             if ($shipping) { 
            echo $order->getAttribute('shipping_first_name')
getAttribute('shipping_last_name')
             echo $shipping->getAddress1()
             echo $shipping->getAddress2()
             echo $shipping->getCity(),  echo $shipping->getFullStateProvince() -  echo $shipping->getPostalCode()
            echo $billing->getFullCountry();
              } 
              }



I'm using Paypal Payment Pro. So the path where I'm inserting the code is: /packages/core_commerce/models/ payment/methods/paypal_website_payments_pro/form.php

Loading Conversation