Author Topic: Change form  (Read 2014 times)

0 Members and 1 Guest are viewing this topic.

David M. Graham

  • Administrator
  • Sr. Member
  • *****
  • Offline Offline
  • Posts: 380
  • Karma: 12
    • View Profile
    • osCommerce University
Re: Change form
« Reply #6 on: February 26, 2009, 06:35:26 PM »
Not a BLOB particularly, but do look for more TEXT fields in certain places...

David

inetbiz

  • eCommerce Strategy Consultant
  • Administrator
  • Full Member
  • *****
  • Offline Offline
  • Posts: 133
  • Karma: 22
  • SKYNET; T3; Apple Inc. Coincidence?
    • View Profile
    • Hosting for Creloaded Cart
Re: Change form
« Reply #5 on: February 11, 2009, 01:39:18 PM »
Are we going for a BLOB mysql record for this, David? Makes sense to have a filter rule set somewhere else and then allow them to use a wysiwyg editor to make their content. The skype, AIM, YIM, etc should be a clickable action with stored entries for account name if they wish to use it. And why get the geourl.org entry in my store configuration and use the lat-long to use google map api in contact_us for store locations. As a separate table already used by Google feeds for multi-locations, you could do a store locator with google map. Drop down, or zipcode entry.

David M. Graham

  • Administrator
  • Sr. Member
  • *****
  • Offline Offline
  • Posts: 380
  • Karma: 12
    • View Profile
    • osCommerce University
Re: Change form
« Reply #4 on: February 10, 2009, 04:43:09 PM »
I'm not sure what CRE plans there.  I'm looking at a more robust solutions for this and creation of impressum pages in EOS Online Merchant.

It is very likely that at least part of the pages with this type functionality will become a set of default pages in the content management system.

David

ThatRonGuy

  • Newbie
  • *
  • Offline Offline
  • Posts: 4
  • Karma: 0
    • View Profile
Re: Change form
« Reply #3 on: February 10, 2009, 10:58:27 AM »
Thank you for the info!  ;D
I had the two main files worked out, but it was the TPL that I missed and I think that will be where I can easily disable the fields that are not wanted.
You know it would be nice in future updates for them to add controls of the "contact us'" page built into the admin instead of having to edit raw code. This would open it up to controls for the form's input fields.


******
UPDATE
******
The advice was PERFECT!
That did exactly what I needed... I was able to resolve ALL of the little issues I had with that page- :D
« Last Edit: February 10, 2009, 03:43:10 PM by ThatRonGuy »

David M. Graham

  • Administrator
  • Sr. Member
  • *****
  • Offline Offline
  • Posts: 380
  • Karma: 12
    • View Profile
    • osCommerce University
Re: Change form
« Reply #2 on: February 10, 2009, 07:02:28 AM »
The contact us form is constructed and managed by the contact_us system - including the catalog/contact_us.php, template/contents/contact_us.tpl.php and catalog/includes/languages/< Language >/contact_us.php files.   This is a pretty well constructed example of a properly split ATS/BTS file, with the data management done in the root or "front end controller" file and the display managed in the template file in the contents directory.  There are some display components located in the language file.  These are straightforward HTML.

Modification or removal of fields will require changes to both the front end conroller and the template for a completely clean change set, though some changes can be done fairly quickly in the template alone depending on what modification is desired.  Additional fields will require changes to both files. 

(now at :  http://www.oscommerceuniversity.com/faq.php?cID=5#55 )

ThatRonGuy

  • Newbie
  • *
  • Offline Offline
  • Posts: 4
  • Karma: 0
    • View Profile
Change form
« Reply #1 on: February 09, 2009, 07:31:16 PM »
Just wondering where/how you modify/remove the fields in the contact us form.