| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
X-Cart 5 Adding Preferred Delivery Date to Checkout | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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 |
|||||||
#2
|
|||||||||
|
|||||||||
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 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|