Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2010
    Location
    WEST USA
    Posts
    16
    Plugin Contributions
    0

    Default Price set by attribute input feild

    Hi fellow zenners,

    I got a quick question for you all... I've been using this system for less then half a year, and am still having trouble find snippets of codes i want to edit and change......

    im currently using 1.8.5... i think.... xD... should be.. to much numbers to remember....

    what im looking for...

    " I need to get my price to change by having it be inputted by a customer in a input-text-field.... "

    With currently what i have built right now..... that is the simplest way to say what i need done...

    but ultimately what I'm after is to have an outside source price be inputted into zen-cart, WITHOUT having change the attribute price... Hence, render the price of the attributes from a custom Database,

    Current Standing
    Right now I'm able to input the cost of the attributes into the text field, but I'm unable to find where i can tell it to read my pricing rather then the one set in zen cart...

    where the help is need...
    I need to find the code that tells zenny's structure to read my secondary DB for the attribute pricing of the product, rather then its own DB

    MY CURRENT MOD STORY
    currently im merging another database driving web modules into zen-carts product-info page, with-out completely merging the two system, so they ARE NOT co-dependent on one another....

    Currently I have several text fields defining ONE product... and that one product being outputted with several defined variables telling it how to read my product...

    Here is my current $_SESSION['cart'] array printed.... NOTICE how im only reffering to Product 184
    PHP Code:
    shoppingCart Object
    (
        [
    contents] => Array
            (
                [
    184:cabb209e0ab403dc52e02c42892107dz] => Array
                    (
                        [
    qty] => 1
                        
    [attributes_values] => Array
                            (
                                [
    1] => 3XL 
                                
    [2] => Grey
                                
    [8] => Sweatshirt  $15.89
                            
    )

                        [
    attributes] => Array
                            (
                                [
    1] => 
                                [
    2] => 
                                [
    8] =>
                            )

                    )

                [
    184:8a50d9703de2d9051178d867df73202z] => Array
                    (
                        [
    qty] => 7
                        
    [attributes_values] => Array
                            (
                                [
    1] => 3XL 
                                
    [2] => Navy
                                
    [8] => Sweatshirt  $15.89
                            
    )

                        [
    attributes] => Array
                            (
                                [
    1] => 
                                [
    2] => 
                                [
    8] =>
                            )

                    )

            )

        [
    total] => 0
        
    [weight] => 0
        
    [cartID] => 21923
        
    [content_type] => 
        [
    free_shipping_item] => 0
        
    [free_shipping_weight] => 0
        
    [free_shipping_price] => 0
        
    [observers] => Array
            (
            )


    Product 184 is my base product image that holds the attribute controllers, but i want to be able to change the prices of each size, color, item, or any other feilds i wish to add.... WITHOUT it changing the pricing for my other inputs....


    IM AVOIDING CREATING NEW PRODUCTS FOR EACH....


    So with that one product... where can i tell it to read a custom price for each of the attributes i'm going to define for it?

    WHERE CAN I FIND THE FUNCTION I CAN CHANGE SO THAT THE ORDER OF EACH ITEM IN THE CART AND THE ORDER READS THE CUSTOM PRICE I'LL BE INPUTTING?

    I'm looking to leaving the order process untouched as much as possible... everything needs to be render in the cart and not just front end stuff...

    thanks any help would be greatly appreciated.

    i attached an example image
    Attached Images Attached Images  

  2. #2
    Join Date
    Jan 2010
    Location
    WEST USA
    Posts
    16
    Plugin Contributions
    0

    Default Re: Price set by attribute input feild

    zenners..... I FIGURED IT OUT!! after sitting here thinking about the approach and my options... I found that all the functions are hidden in the cart/includes/classes/shopping_cart.php

    I've successfully brought the variable in from the product page into the processing of the product to be added...

    at the same time i've been learning the structure of the cart and it seems rather simple once its set into pieces.....

    all of it is in there, all the functionality can be changed or new one added... be sure to not change anything unless you know what your doing.....

    I've brought my custom pricing into the cart with even touching the output total! which is a good thing so my price can be dynamically imputed by the other DB driven system!

    cart/includes/classes/shopping_cart.php

    That file has all the output functions processing functions, for the output on the Cart page, the processing of the Total price, and lots more so I hope this helps whoever, when it comes down to custom pricing.... VERY custom pricing... or using zencart as just a CART.

 

 

Similar Threads

  1. v151 How to have text attribute set price?
    By QuicksilverWeb in forum General Questions
    Replies: 13
    Last Post: 28 Aug 2013, 05:00 PM
  2. v150 Attribute to price product by manual input
    By ShopVille in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 4 Feb 2013, 01:38 AM
  3. Attribute - add price text / file input
    By 4jDesigns in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 19 Sep 2011, 03:22 PM
  4. how set price attribute wise....??
    By chetanthumar in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 20 Jul 2010, 04:26 PM
  5. Change price by attribute set to lowest option
    By joerubes in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 6 Feb 2008, 04:42 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