Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2009
    Posts
    51
    Plugin Contributions
    0

    help question Change warning attributes message

    I would like to change this message to something a little more freindly. How? I looked in the forum and in the web dev and still did not find it..hmmmm

    Please correct the following:
    On the Option for: Size You picked an Invalid Selection: Please Select Size Before Adding To Cart

    I would like: Oops! Please select an option (color, size, ect) and then click on Add to Cart

    Do the error messages have code that customizes them? where can I find these bits to change the wording?

    Thanks!

  2. #2
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Change warning attributes message

    Use the developers tookit from admin to search "You picked an Invalid Selection" and just change the texts in the language file to suit your needs.

    The file you need is includes/languages/english.php

  3. #3
    Join Date
    Apr 2008
    Posts
    151
    Plugin Contributions
    0

    Default Re: Change warning attributes message

    Quote Originally Posted by limelites View Post
    Use the developers tookit from admin to search "You picked an Invalid Selection" and just change the texts in the language file to suit your needs.

    The file you need is includes/languages/english.php
    Hmm yeah, this is true, but still, the variables (in this case the name of the attribute options and values) are being sent from the includes/classes/shopping_cart.php , so to edit this message, you also need to know some basic php coding, I believe. I tried, but I couldn't figure it out.

    I believe these are the line to change, from shopping_cart.php :
    Code:
    Line #1575 : $the_list .= TEXT_ERROR_OPTION_FOR . '<span class="alertBlack">' . zen_options_name($key) . '</span>' . TEXT_INVALID_SELECTION . '<span class="alertBlack">' . (zen_values_name($value) == 'TEXT' ? TEXT_INVALID_USER_INPUT : zen_values_name($value)) . '</span>' . '<br />';
    I tried to fiddle a bit with this but only got a blank page.
    My php knowledge is very limited.

    Can someone tell me what to replace this with, if I want a custom message, like the person who started this thread?

    Another question - how do I edit the design of this message? Here is what it looks like on my template - not exactly the most beautiful thing I've seen


    Truly greatful for some help! Thanks alot in advance.

    best regards peter

 

 

Similar Threads

  1. Warning Message
    By BlushFashions in forum General Questions
    Replies: 3
    Last Post: 20 Dec 2006, 03:16 PM

Posting Permissions

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