| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Add Customer Location and Date/Time Stamp to Customer Reviews | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Add Customer Location and Date/Time Stamp to Customer Reviews
eg.
Author: Joe Bloggs Location: London Posted: 17-03-2008 23:28:56 Message: Blah blah blah 1) Apply this SQL patch... Code:
Replace... Code:
Code:
Replace... Code:
Code:
Before... Code:
Code:
Removal of this code is recommended, as it auto-populates the customer email address into the name field (if customer is logged in). Code:
__________________
xcartmods.co.uk |
|||||||
#2
|
|||||||
|
|||||||
Re: Add Customer Location and Date/Time Stamp to Customer Reviews
Is there a way to make sure a customer is logged in to leave a review.
__________________
Xcart 5.1.6 Building New Store Xcart4.6.4 Gold Plus Xcart 4.6.4 Platinum Smart Template, Mail Chimp Upgrade Checkout One (One Page Checkout) Checkout One X-Payments Connector Checkout One Deluxe Tools Call For Price On Sale Module Buy Together Module MAP Price MOD |
|||||||
#3
|
|||||||
|
|||||||
Re: Add Customer Location and Date/Time Stamp to Customer Reviews
Yes, go to General Settings ╩ Customer reviews options
__________________
xcartmods.co.uk |
|||||||
#4
|
|||||||
|
|||||||
Re: Add Customer Location and Date/Time Stamp to Customer Reviews
What about just adding the date and time? How can this be done?
__________________
Shareen sparker2@cox.net http://www.stitches4u.com X-Cart Version 4.5.0 with Smart Template vs 4.4.x |
|||||||
#5
|
|||||||||
|
|||||||||
Re: Add Customer Location and Date/Time Stamp to Customer Reviews
Sorry to bump an old thread, but I thought I should bring up a slight vulnerability in your code. The Location Field is not being escaped for html input, which could lead to all sorts of havoc if your reviews are not moderated.
To fix this, Search for Code:
Code:
Thanks for sharing your code, and I hope my modification can save some people from a potential headache. The internet can be a dangerous place.
__________________
X-Cart 4.1.9 |
|||||||||
#6
|
|||||||
|
|||||||
Re: Add Customer Location and Date/Time Stamp to Customer Reviews
Good catch, thanks dziner
__________________
xcartmods.co.uk |
|||||||
#7
|
|||||||||
|
|||||||||
Re: Add Customer Location and Date/Time Stamp to Customer Reviews
Has anyone adapted this code to work with 4.4x? My attempts have all failed. :\
__________________
- www.nerdseven.com - Gadgets & Gizmos from Out of This World - Sound Sensitive T-Shirts That Flash to the Beat of Music (http://www.tqualizer.com) X-Cart Version 4.1.10 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|