Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Jan 2008
    Posts
    26
    Plugin Contributions
    1

    Default Required Attributes

    I am selling books in a store.
    For every product I make the book have a price for $0.
    I then set up radio attributes for edition
    example
    Print Version $50
    Web Version $40
    PDA $40

    etc
    So that I do not need to make multiple listings for each product

    I then always make Print version Default Attribute
    to be Marked Selected

    Which works out ok, so that print will always be checked.

    However, I use firebug (where you can make updates to html pages on the fly to see how the layout changes) and I can then make it so Print Version is unchecked. Then click add to cart, and a price of 0 shows up. So clearly there is no validation because you can never trust the client machine.
    Am i just doing something wrong? Or am I going to have to code my own validation script?

    I mean 99.9% of people won't bother cheating the system like this, and if they did I would obviously not honor the order. But it just seems kind of lame that with a simple 'hack' I can put in an order for a free book because I changed a bit of HTML on the client

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Required Attributes

    If the customer "hacks" it out and therefore selects no attribute, there will be no correct book selection on the order. Thus you wouldn't know which one to ship, so you would catch their fraud right away.
    And for your web version, if they don't check the box, they aren't charged, and they aren't given access to the download either.
    So, there's really no way "around" it.

    One way to enforce it could be to add a different option for "default" and make it display-only. Name it "please select a format". Then they're required to select an option. If you don't like the way that looks as radio buttons, you might try pulldown instead.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. v150 Red asterisk on required attributes & issue with required attribute
    By ShopVille in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 13 Feb 2013, 03:18 AM
  2. v150 Attributes Required
    By emery in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 25 Feb 2012, 08:37 PM
  3. v1.3.9g - Required in Attributes
    By uswebworx in forum Setting Up Categories, Products, Attributes
    Replies: 14
    Last Post: 7 Dec 2010, 06:08 PM
  4. Problem with Required attributes after moving attributes to product listing page
    By bigmo337 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 20 Jun 2010, 12:03 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