Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2005
    Location
    UK and Ireland
    Posts
    250
    Plugin Contributions
    1

    Default Mandatory Text Attribute

    Hi Zenners,

    Standard Zen Vs Javascript needed - seeking a solution to ensure that a Text Message attribute is entered mandatory by cients when they click ADD TO CART

    e.g.

    Enter your personal message here (Max 120 characters)...
    Message [##################################################]


    JavaScript we almost have working:

    ===============
    function checkMsg(thisForm) {
    var formName = thisForm.id;
    var elmt = document.getElementById(formName);
    var elmntVal = elmt.id[txt_5].value;
    if (elmntVal == "") {
    var agree=confirm("You have not entered a personal message!!\nAre you sure you wish to continue?");
    if (agree) return true;
    else return false;
    }
    else return true;
    }
    ===============

    Any JavaScript Gurus offering help?

    Thanks
    The JSWeb Team
    ..the only hosting provider that specialises totally in Zen Cart to help you.
    JSWeb | UK / Ireland ZenCart Design and Hosting Specialists

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,726
    Plugin Contributions
    6

    Default Re: Mandatory Text Attribute

    Did you try to just click on the setting for:
    Attribute Required
    for Text:
    No Yes
    This is able to be set on a Per Product Per Attribute basis ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  3. #3
    Join Date
    Jul 2005
    Location
    UK and Ireland
    Posts
    250
    Plugin Contributions
    1

    Default Re: Mandatory Text Attribute

    Thanks Linda,

    Missed that in Attributes... Attributes Controller > Product > Required = ON
    The JSWeb Team
    ..the only hosting provider that specialises totally in Zen Cart to help you.
    JSWeb | UK / Ireland ZenCart Design and Hosting Specialists

 

 

Similar Threads

  1. Attribute Text does not show text entry box, HELP!
    By dinki in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 8 Nov 2006, 01:14 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •