Results 1 to 10 of 17

Hybrid View

  1. #1
    Join Date
    Dec 2005
    Posts
    34
    Plugin Contributions
    0

    product_model based on attributes

    I'm in desperate need of modding my 1.2.x zen store in order to insert in the ORDERS table a custom products_model related to the attribute bought by customers....

    Let's say I sell T-shirts:

    Products:
    V-shaped Tshirts: product_model field is filled with "001"
    Round-neck Tshirts: product_model field is filled with "002"

    Attributes might be:
    Red (an additional attribute_model field is filled with "red")
    Green (an additional attribute_model field is filled with "green")

    I would like the product_model stored in the Orders table to be "001red" if a customer decides to buy a red V-shaped tshirt.

    Could someone please help me find out which files to modify or at least point me to the right direction?

    Thanks to everyone in advance!

    Milk.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: product_model based on attributes

    What you want is "stock by attribute" and this is not a current feature of Zen Cart.

    Supposed to be added in a later release. No solution for the time being.

  3. #3
    Join Date
    Dec 2005
    Posts
    34
    Plugin Contributions
    0

    Default Re: product_model based on attributes

    Maybe somebody could help me find the proper page to modify...
    Where does the "Insert" into ORDERS table occur?
    There I might populate the products_model field with the result of (eg.):

    Whole_products_model=("Products.products_model" + "Attributes.product_model").

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: product_model based on attributes

    Search here for "stock by attributes" for additional detail

  5. #5
    Join Date
    Dec 2005
    Posts
    34
    Plugin Contributions
    0

    Default Re: product_model based on attributes

    Thank you Kobra, but I guess I JUST need to know where the INSERT statement takes place...that's all...

    I don't need to check the level of stocks by attribute...
    Does anybody know where does INSERT INTO ORDERS take place?

    e.

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: product_model based on attributes

    You can use the Developer's Toolkit in Admin > Tools to locate the file and line where a particular string occurs. Enter a relevant snippet and select "All Files" to find all instances; then you can bring up promising files to examine more closely.

  7. #7
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: product_model based on attributes

    Quote Originally Posted by milksamsa
    Thank you Kobra, but I guess I JUST need to know where the INSERT statement takes place...that's all...

    I don't need to check the level of stocks by attribute...
    Does anybody know where does INSERT INTO ORDERS take place?

    e.
    This is done in the order class ... includes/classes/order.php
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. v150 Interested in Attributes based upon Attributes add-on - Anyone else interested?
    By sports guy in forum All Other Contributions/Addons
    Replies: 10
    Last Post: 16 Jun 2015, 05:52 AM
  2. Backslash gets stripped from Product_Model
    By LuMe96 in forum Basic Configuration
    Replies: 4
    Last Post: 16 Nov 2007, 09:48 AM
  3. product_model based on attributes
    By duncdamonk in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 21 Sep 2006, 08:44 PM
  4. Sub-attributes? Making attributes of attributes appear based on which you select?
    By pioupioun in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 7 Jun 2006, 11:34 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