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

X-Cart 5 Adding Preferred Delivery Date to Checkout

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 10-28-2015, 01:13 AM
 
IgorK IgorK is offline
 

Newbie
  
Join Date: Oct 2015
Posts: 3
 

Default X-Cart 5 Adding Preferred Delivery Date to Checkout

Hi,

This is my first time working on the X-Cart 5 and I am struggling to add a new field to the Checkout page that will store a preferred delivery date entered by customer. The value of the field will be passed into the form and saved in the database. Afterwards, I can access that value and show it on the invoice page as well as the Order list page from the Admin panel.

What I have done so far: I am working using CustomSkin module. I have defined a new $preferredDeliveryDate property in ..CustomSkin../Model/Order. Inside the View/Checkout class I have found there are two steps: Shipping and Review. Instead of defining a new step, I was hoping to reuse the functionality of Customer notes field right before the place order button as it was simply added as HTML. However, I am not clear how data of the field is passed (JS?) and how to access it later. I need to be able to update the $preferredDeliveryDate after the Place order and access it to show it's value.

This may not be ideal, but I need this to be done quickly and don't have much time to figure out the entire system. If it is possible would you show where and how to add this field as well as how to access it and print on a page.

Thanks!
__________________
X-Cart 5.2.6
Reply With Quote
  #2  
Old 11-02-2015, 01:38 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

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

Default Re: X-Cart 5 Adding Preferred Delivery Date to Checkout

Please check the following files:
- skins\default\en\checkout\steps\review\parts\place _order.note.tpl
- \XLite\Controller\Customer\Checkout::doPayment()

These are the files that handle customer notes.
__________________
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-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may 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:42 PM.

   

 
X-Cart forums © 2001-2020