Results 1 to 7 of 7
  1. #1
    Join Date
    Oct 2012
    Posts
    282
    Plugin Contributions
    0

    Default My hazmat one-time fee is not being factored into price when added to cart

    I've set up an Attribute with a One-Time charge but it is not being factored into the price. like it's being dropped once in the Cart but it does show on the product page.

    Here's how I have it set up:

    The purpose is to flag a product as HazMat so a one time shipping charge of $25 can be added. Attribute is set up w/ one value only. Once assigned to the product, a value of $25 is set in the 'One Time' field. Attribute flags include 'Default Attributes to be Marked Selected'. I've tried setting 'Used For Display Purposes Only:' to both Yes and then No but doesn't change the outcome.

    Here's a screensnap to help show how i've set. Can anyone say what i'm doing wrong here?

    big thanks in advance
    Attached Images Attached Images  

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

    Default Re: My hazmat one-time fee is not being factored into price when added to cart

    This is reminding me of something ... hmmm ...

    What version of Zen Cart are you runing?

    Clean install or an Upgrade?
    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!

  3. #3
    Join Date
    Oct 2012
    Posts
    282
    Plugin Contributions
    0

    Default Re: My hazmat one-time fee is not being factored into price when added to cart

    thanks for reading my post Ajeh,
    i was unable to get the config in the above screensnap to work. here's what i did:

    for my client i have to mark or flag certain items being either HazMat One (incur a one time charge of $25 ) or HazMat Two (one time $49). in the above config, i was trying to create a separate option for each HazMat. that is an option with only one option value but for some reason, could not get the one-time charge factored into the cart total. so i deleted and reconfig'd as an option with 2 option values and the assign a product to have only one of then, thus forcing the product have that option and incur the one time charge.

    well, it worked but the now the problem is this:

    if client buys 3 Six-inch Electric matches, a one time $25 charge is incurred but, if in addtion he buys 2 Twelve-Inch Electric matches, that one time charge is incurred again, which is unacceptable.

    so i have to create another mechanism to handle this, the one time charge needs to be a global variable. so perhaps i'll end up creating a HazMat plug-in ;-)

    i'm a mid-level PHP programmer so it will be a challenge to say the least.

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

    Default Re: My hazmat one-time fee is not being factored into price when added to cart

    Are you saying you do NOT need a 1 time HazMat charger per Product but rather a 1 time HazMat charge per Order when any of the HazMat Products are on the order?

    And are there 2 possible HazMat charges depending on the Product(s) in the Order?

    And what happens if 2 Products are in the Order where one Product has the HazMat charge of $25 and one has the HazMat charge of $49?
    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!

  5. #5
    Join Date
    Oct 2012
    Posts
    282
    Plugin Contributions
    0

    Default Re: My hazmat one-time fee is not being factored into price when added to cart

    Yes exactly, a one time charge per order.
    at the moment i can't remember, they either both get calculated or the $49 overrides the $25 one. i'll find out ASAP,
    but then to complicate matters, if the order total is $300 or above the charges get dropped.

    i've already modified the products table with a HazMat column that contains either HazMat1, HazMat2 or Null.
    i've also modified the product page to display to the customer that the product will incur a charge.

    if a global HazMAt variable is the way to go where would i instantiate the variable?

    $HazMat1 = false;
    $HazMat2 = false;

    huge thanks for any advice on this!

  6. #6
    Join Date
    Oct 2012
    Posts
    282
    Plugin Contributions
    0

    Default Re: My hazmat one-time fee is not being factored into price when added to cart

    the $49 HazMat has to cancel out the $25 Hazmat fee.

    i'm working on it

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

    Default Re: My hazmat one-time fee is not being factored into price when added to cart

    So if a Product(s) for HazMat1 is in the Order ... the HazMat Charge is $25.00 ...

    then if a Product(s) for HazMat2 is in the Order ... then the HazMat Charge should be $49 ...

    and if neither a HazMat1 or HazMat2 is in the Order ... then there should be NO HazMat charge, correct?
    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!

 

 

Similar Threads

  1. Replies: 11
    Last Post: 2 Feb 2013, 07:51 AM
  2. text attribute price isn't added to overall price when product added to cart
    By grossd in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 13 Nov 2011, 07:44 PM
  3. Handling fee not being added - zones module
    By jcun45 in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 23 Dec 2007, 06:35 PM
  4. Sale Price when Listed but not When Added to Cart
    By Mang in forum General Questions
    Replies: 3
    Last Post: 31 Mar 2007, 03:06 AM
  5. Added charge, one-time deposit/fee, minimum order
    By Pozitech in forum Managing Customers and Orders
    Replies: 2
    Last Post: 7 Nov 2006, 03:40 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