Results 1 to 6 of 6
  1. #1
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default need compulsory field(s) on the "Shopping Cart" page

    Hi all

    I need compulsory field(s) on the "Shopping Cart" page for certain (but not all) categories.

    Example:

    Category 68 has restricted products.

    If the customer's shopping cart contains one or more items of say master category 68, then a field should show up below the shopping cart contents - heading of the field something like "you must complete this field before you can checkout your items".

    The customer will need to complete this compulsory field before they can proceed to the next page. In case the customer does not complete the field then they should see an alert like "your cart contains restricted items - please provide the required details before proceeding" -- or something similar.

    ZC version 1.3.7.1


    installed mods:

    Cherry Zen template
    Google analytics
    Recover Cart sales
    Sales Report
    SMS on sale
    PayPal EC

    link:

    www.frnt.org/zencart


    Any ideas please?


    Thanks / Frank

  2. #2
    Join Date
    Nov 2007
    Location
    Melbourne, Australia
    Posts
    541
    Plugin Contributions
    0

    Default Re: need compulsory field(s) on the "Shopping Cart" page

    If a customer has to enter some data to order a product, you should add a text attribute to the product that is manditory before it can be added to the shopping cart. See the tutorial for text attributes.

  3. #3
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: need compulsory field(s) on the "Shopping Cart" page

    Quote Originally Posted by tino.schlegel View Post
    If a customer has to enter some data to order a product, you should add a text attribute to the product that is manditory before it can be added to the shopping cart. See the tutorial for text attributes.
    thought about that - however, it is not one single product which is affected but whole categories containing "a heap" of products.

    Frank

  4. #4
    Join Date
    Nov 2007
    Location
    Melbourne, Australia
    Posts
    541
    Plugin Contributions
    0

    Default Re: need compulsory field(s) on the "Shopping Cart" page

    Does that mean this information is required for the order not the product(s) themselves? You can make the Special instructions for the order a manditory field. That is usually the place where customers can enter special instructions for the order.

  5. #5
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: need compulsory field(s) on the "Shopping Cart" page

    Quote Originally Posted by tino.schlegel View Post
    Does that mean this information is required for the order not the product(s) themselves? You can make the Special instructions for the order a manditory field. That is usually the place where customers can enter special instructions for the order.
    That's right.

    If the order contains one or more products from a restricted category, then - and only then - the Special Instructions field is to appear as a mandatory field before the customer can hit the checkout button.

    If the order contains no restricted products then they may proceed to the next page - no questions asked. If they want to enter any comments on the next page then that's fine - but not compulsory.

    I have sort of an idea about the logical flow but I am not a php coder by all means.

    Thanks for your efforts anyway

    Frank

  6. #6
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: need compulsory field(s) on the "Shopping Cart" page

    Managed to add the desired field on the Shopping Cart page.

    Still can't get my head around how to implement my conditions.

    Any ideas anyone?

    Thanks / Frank

 

 

Similar Threads

  1. How do I remove teh checkout link on the page "your shopping cart contents" page?
    By sunchips in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 1 Sep 2013, 09:24 PM
  2. Replies: 5
    Last Post: 21 Apr 2013, 11:37 PM
  3. Shopping cart - trying to turn off "Total Items" "Weight" and "Price"
    By deshojo in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 4 Apr 2011, 07:15 PM
  4. Replies: 2
    Last Post: 13 Jul 2010, 01:58 AM
  5. I need to make the "company" field a required field
    By semaxd in forum Managing Customers and Orders
    Replies: 2
    Last Post: 30 Jun 2008, 09:09 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR