Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 37
  1. #11
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Setting an attribute to be 'Required' does not work.

    Quote Originally Posted by Mike D View Post
    Yep, just clicking the red/green box to enable/disable things. Worked fine until today. I did see the thread about imagehandler but since I don't have that installed figured it probably doesn't apply to me.

    I'll see if I can find those radio buttons.

    I believe the reason the cart appears but shows nothing is because if you neglect to enter a value for amount of people, nobody is going on the tour/activity so it won't cost anything, and I'm thinking zen cart interprets that as $0 so there's nothing to add to the cart (assumption only, I don't know what zen cart is doing). The lack of error message is exactly my problem, I'm not sure what's causing it and I wish I hadn't stopped making daily backups a month ago when I thought I had it all figured out. I can tell you that when I did have it working and zen cart was telling me that I hadn't filled in the required fields (I'd land back on the product page with the required things at the top of the screen) there weren't asterisks next to the attributes at the bottom of the page.....unless you mean the asterisks were in the error message in which case I can't remember if there were asterisks or not.
    The asterisks (or other configureable indicator) I was referring to was the character that would be next to say, first name, if that was a required field. Seems like you have the show cart after adding product set, and the problem you are experiencing with the buttons, well even though it has nothing to do with image handler, it just so happens that the same system response was occurring and likely for the same reason, a file was "updated" or uploaded but of the wrong version. Because of that, I would also question the other files. (Files are different than the database). If possible, would recommend either restoring the backup made before whatever change caused your problem, or comparing your site to a fresh set of files and verify that changes that were made were expected.

    It seems that because the same system response is occurring on all templates, that it seems that core/base files were modified and that the cart should be verified to have the appropriate files.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  2. #12
    Join Date
    Sep 2013
    Location
    Honolulu, HI
    Posts
    88
    Plugin Contributions
    0

    Default Re: Setting an attribute to be 'Required' does not work.

    Found the radio buttons and they do the trick on changing the status. Thanks for that.

    What's more....now the attributes I added to the new products actually do show up (no idea why).

    But I can still add products without the required attributes...

  3. #13
    Join Date
    Sep 2013
    Location
    Honolulu, HI
    Posts
    88
    Plugin Contributions
    0

    Default Re: Setting an attribute to be 'Required' does not work.

    Quote Originally Posted by mc12345678 View Post
    The asterisks (or other configureable indicator) I was referring to was the character that would be next to say, first name, if that was a required field. Seems like you have the show cart after adding product set, and the problem you are experiencing with the buttons, well even though it has nothing to do with image handler, it just so happens that the same system response was occurring and likely for the same reason, a file was "updated" or uploaded but of the wrong version. Because of that, I would also question the other files. (Files are different than the database). If possible, would recommend either restoring the backup made before whatever change caused your problem, or comparing your site to a fresh set of files and verify that changes that were made were expected.

    It seems that because the same system response is occurring on all templates, that it seems that core/base files were modified and that the cart should be verified to have the appropriate files.
    Do you know which files specifically I should be checking?

  4. #14
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Setting an attribute to be 'Required' does not work.

    Quote Originally Posted by Mike D View Post
    Do you know which files specifically I should be checking?
    Okay, so I just ran a little test with the template that I am using. I was wrong that the fields would automatically have some sort of identifier adjacent to them if they were required. That is something that is captured in a few other areas such as the contact_us window, the sign-in and account creation screens, etc... If you wanted to add that type of functionality, then you would be more than likely making changes to the templates that display the applicable information. In this case, it seems it would be in the tpl_modules_attributes file (at least upon initial review of the file.) and the file should be copied to your current/desired template before making any changes, then the thing to do is to use some sort of data that is returned from the database, if the data represents that the field is required, then to present an indicator that the field is required...

    So, next thing I did was try to determine what attribute(s) were needed to prevent adding the item to the cart if not selected.

    I tried radio buttons, but I couldn't make a setting that even though I hadn't selected a radio button would prevent adding the item to the cart. The only way of using some sort of multi-select option was to use a dropdown, with a single item added to my list such that it read something like "Please select one of the below in order to purchase this item." set that to display only and default and then if I tried to add the item to the cart without selecting something other than that first item, I received an error. Other attributes that I used were text fill in boxes (similar to what you had such as first name etc...) and with them set as required, I could not add the product unless I had at least one character in the field (space counted as a character I think). I don't see/don't recall that there is a default setting for the minimum values to be in fields like that... It may need to be programmed/added in to accomplish that. Anyways, that's how I am able to control a product from being added to the cart if there is something that I expect/require. Ohh, I forgot to mention, for the Option Names that I consider required I added my own text to the name to express that it is required. So instead of Name:, I have Name (Req'd):
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #15
    Join Date
    Sep 2013
    Location
    Honolulu, HI
    Posts
    88
    Plugin Contributions
    0

    Default Re: Setting an attribute to be 'Required' does not work.

    My problem is actually that I've "wiped out the switch" or something along those lines.

    My shopping cart was working the way you explained with required attributes. If the attributes I set as required weren't present when I hit the add-to-cart button I'd end up back on the product page with the yellow error box with missing required attributes at the top of the page. I must have done something, though, because no matter how I set an attribute to be required, it's accepted no matter what.

    Could it have something to do with Zen Cart's sanitizing/validating abilities? I know that zen cart on its own is PCI Compliant, which I assume means it has some way of sanitizing information of malicious code, but my cart does no such thing (one of the reasons why I keep failing my PCI Compliance scan). Have I changed that somehow?

    I've been comparing the core files to an unchanged version to see if anything jumps out at me but so far I got nothing. Thanks so much for taking the time to help me.

  6. #16
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Setting an attribute to be 'Required' does not work.

    If you were to turn off your SEO/rewrites ... does this fix it?

    If you were to switch, for a minute, to the Classic Template, does it fix it?
    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!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #17
    Join Date
    Sep 2013
    Location
    Honolulu, HI
    Posts
    88
    Plugin Contributions
    0

    Default Re: Setting an attribute to be 'Required' does not work.

    Quote Originally Posted by Ajeh View Post
    If you were to turn off your SEO/rewrites ... does this fix it?

    If you were to switch, for a minute, to the Classic Template, does it fix it?
    Tried turning the URI mapping off with and without the Classic Green template running and the same problem occurs.

  8. #18
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Setting an attribute to be 'Required' does not work.

    Could you perhaps do a nice screenshot or so of your Attributes in the Attributes Control Panel so that we might see the settings and such?
    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!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  9. #19
    Join Date
    Sep 2013
    Location
    Honolulu, HI
    Posts
    88
    Plugin Contributions
    0

    Default Re: Setting an attribute to be 'Required' does not work.

    Quote Originally Posted by Ajeh View Post
    Could you perhaps do a nice screenshot or so of your Attributes in the Attributes Control Panel so that we might see the settings and such?
    Name:  zenattributes.jpg
Views: 126
Size:  48.7 KB

    Is this what you're looking for?

  10. #20
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Setting an attribute to be 'Required' does not work.

    The Attribute setting for:
    Attribute Required
    for Text:
    Is only used for TEXT Attributes and has no effect on Attribute that are Radiobuttons or Dropdowns ...

    On the dropdown for:
    With Transportation?
    You have YES and NO as Option Values ... add another one such as:
    Select your method
    Display Only YES
    Default YES
    Sort Order 0

    What that does is force a choice to be made of either YES or NO and not an "accidental" choice ...

    I am not, at the moment, seeing why your TEXT attributes are not working with the built in setting on the:
    Attribute Required
    for Text:
    Are you using any addons for Attributes?
    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!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 
Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. [Not a bug] My Store Does Not Work In Google Chrome
    By articleck in forum Bug Reports
    Replies: 16
    Last Post: 15 Nov 2011, 03:38 AM
  2. My Shipping estimator does not work for guests / users not logged in
    By bgroup99 in forum Built-in Shipping and Payment Modules
    Replies: 11
    Last Post: 10 Nov 2011, 07:27 PM
  3. Base price plus attribute does not seem to work for me
    By danilyn22 in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 25 Mar 2011, 02:00 AM
  4. Shipping Estimator does not work for me when not logged in
    By speedraceratl in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 22 Aug 2009, 06:14 PM
  5. Send Email tool Does not work if Customer not subscribed.
    By woodlandsprite in forum General Questions
    Replies: 4
    Last Post: 15 Jul 2006, 05:57 AM

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