Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Move checkout payment input fields into Shipping / Payment

 
Reply
   X-Cart forums > X-Payments > X-Payments issues & questions
 
Thread Tools
  #1  
Old 07-28-2016, 09:57 PM
 
paulmighty paulmighty is offline
 

Member
  
Join Date: Apr 2014
Posts: 11
 

Default Move checkout payment input fields into Shipping / Payment

I included a screenshot to help explain what I'm trying to reorder on the XC5 checkout screen.

I'm trying to move the <div class="payment-tpl"> from the Reviews are in XC5's Checkout over to display below the step 4 "Payment methods" subsection, but I cannot seem to figure out how to make the getPaymentTemplate() function work in a different TPL. When I try to move <div class="payment-tpl"> into a paymentMethods.tpl, XC5 throws errors saying the getPaymentTemplate method is undefined.

__________________
X-Cart Version: 5.2
Reply With Quote
  #2  
Old 07-28-2016, 11:50 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Move checkout payment input fields into Shipping / Payment

I believe it is X-Payments that renders the credit card form. If so, I think moving the form to the second column may be not an easy task (if possible at all) - due to security reasons X-Payments may require it to be the last thing that a custom completes on the page before clicking the Place Order button. But I'm not sure 100% here.

Quote:
XC5 throws errors saying the getPaymentTemplate method is undefined.

It is because every template in XC5 has a widget class that shares its methods with the template. You moved the template to a different place, and this might change the widget class (some templates inherit the widget class from parent templates).

Try to enable the Webmaster mode (added by Theme Tweaker module) - when it is enabled the storefront displays a sidebar with information on used templates and widget classes associated with templates.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
Reply
   X-Cart forums > X-Payments > X-Payments issues & questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:57 PM.

   

 
X-Cart forums © 2001-2020