Results 1 to 3 of 3
  1. #1
    Join Date
    May 2005
    Location
    Western MA, USA
    Posts
    604
    Plugin Contributions
    6

    product attributes price modifiers affectec by other data

    hello again,
    working on yet anoth crazy mod for ZC and need a little advice.
    my main problem is that I cant seem to locate the form processing code for the 'add to cart'. I know it is w/i the product_info stuff somewhere but I have been grepping for the actionad and cant find it.


    what I am trying to do. my products have attribte that have to run through a complex eqaution to get the the final price.
    one school says do it live using AJAX, I could calulate an attrbute value in a hidden field as well as have it update. the value live on the site before they hit add to cart, and then have the cart add to cart w/ that price. if that is the what shoukd I call the field?.
    the other otion is to the the math after I hit the add to cart button. where can I find it.


    JOsh
    Last edited by sanguisdesign; 29 Jun 2006 at 10:51 PM. Reason: spelling errors noticed

  2. #2
    Join Date
    Sep 2004
    Location
    Western Massachusetts
    Posts
    2,945
    Plugin Contributions
    5

    Default Re: product attributes price modifiers affectec by other data

    the processes performed when adding an item to the cart function start with includes/main_cart_actions.php at line 41, which calls the function actionAddProduct() in includes/classes/shopping_cart.php

    You should note that adding a product to the cart doesn't necessarily fix the price: the price is recalculated when the cart is restored after logging in, when viewing the shopping cart page, and when proceediing to checkout. Those calculations are performed (eventually) by the function calculate() in includes/classes/shopping_cart.php

    If you do decide to edit that file, be aware that it is a core file and there is no override capability for it.
    Neville
    An assumption is what you arrive at when you get tired of thinking...

  3. #3
    Join Date
    May 2005
    Location
    Western MA, USA
    Posts
    604
    Plugin Contributions
    6

    Default Re: product attributes price modifiers affectec by other data

    bunyip,
    I cant find these files, and it is prob be caseu I did not mention that the cart I am working on is 1.2.7
    any more advise for me oh wise one?


    JOsh

 

 

Similar Threads

  1. Replies: 8
    Last Post: 26 Feb 2016, 11:58 PM
  2. Need to show product price as ONE OF the attributes price, but not lowest??
    By infocom in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 19 Nov 2009, 06:15 PM
  3. Price Factor: Based on other attributes?
    By 01011010 in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 21 Nov 2007, 08:06 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