Results 1 to 6 of 6
  1. #1
    Join Date
    May 2018
    Posts
    7
    Plugin Contributions
    0

    help question How to add a checkbox that increases the cost $5 in the delivery information page.

    Zen Cart 1.5.4

    I am trying to add a custom function that increases the fix cost $5 by checking a checkbox in the delivery information page, but I have not figured out yet.
    The file I should edit might be tpl_checkout_shipping_default.php according to the information in previous threads.

    If you have any solutions, I would be appreciated if you could share it.
    Thank you.

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,106
    Plugin Contributions
    11

    Default Re: How to add a checkbox that increases the cost $5 in the delivery information page

    The simplest method might be an optional attribute for the item(s).
    "Do you need xyz" Yes = +$5 No = $0

  3. #3
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,621
    Plugin Contributions
    123

    Default Re: How to add a checkbox that increases the cost $5 in the delivery information page

    You need an order total module to do this sort of thing. The change to tpl_checkout_shipping_default.php is just to present the checkbox.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  4. #4
    Join Date
    May 2018
    Posts
    7
    Plugin Contributions
    0

    Default Re: How to add a checkbox that increases the cost $5 in the delivery information page

    Thank you for your answer. I have a lot of items on the shopping website. It is difficult to add the attribute to all the items.

  5. #5
    Join Date
    Jul 2012
    Posts
    16,718
    Plugin Contributions
    17

    Default Re: How to add a checkbox that increases the cost $5 in the delivery information page

    Quote Originally Posted by smallpotato View Post
    Thank you for your answer. I have a lot of items on the shopping website. It is difficult to add the attribute to all the items.
    There are tools in the attributes manager, option names and option values managers that support copying attributes to different product based on known conditions. It's hard to imagine that this would be more difficult than adding a feature to the shipping page where a similar consideration would need to be made.

    That said, is this additional option applicable to the entire order or on a per product basis? Ie. What is to happen if the desired operation is to be applied to only one of many product in the order? Does the fee apply one time to the entire order or per product against which it is to be applied?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #6
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,399
    Plugin Contributions
    87

    Default Re: How to add a checkbox that increases the cost $5 in the delivery information page

    How about the Priority Order Handling plugin? https://www.zen-cart.com/downloads.php?do=file&id=236

 

 

Similar Threads

  1. Replies: 1
    Last Post: 8 Apr 2015, 09:25 AM
  2. Replies: 1
    Last Post: 16 Aug 2011, 07:58 AM
  3. Replies: 2
    Last Post: 9 Jan 2009, 12:33 PM
  4. How do I add text & a checkbox to the signup or order page?
    By stevi556 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 6 Mar 2008, 12:29 AM
  5. Replies: 0
    Last Post: 10 May 2007, 01:18 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