Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2012
    Posts
    2
    Plugin Contributions
    0

    Default Creating and Tracking Custom Designed Products

    Hello All,

    This is my first post, and I am fairly new to using Zen Cart, so please bear with me. I am in the process of building a site for a custom printing company that will allow users to design printed items online.

    It would be impractical to include all of the possible permutations in the products database, because there are hundreds of possible images, and lots of different items and colors. The pricing scheme is based upon the number of colors printed, with the first 2 colors being included in the base price, and each additional color $3.00, no matter how many images are on the printed object.

    I have already planned to add a product of each type to the database, and use attributes for the number of colors, so I think I have that one figured out, as there are a fairly limited number of available products to print on.

    I have already designed the code to create the delimited string describing the total design, and have built the parser and code to reload it. It is working great.

    There is a save function in the application that allows the user to save a design. I am just putting the design string into a persistant cookie which can be deleted, or parsed and the design reloaded if the user wants to do more work on the save. The strings are substantially under the 4k limit for cookies, but some can get pretty large with all the possible images/colors front and back 6 images and 6 colors per side.

    Soooo, my questions are:
    1) What would be the best way to store that string during a session so it could be reaccessed once it was added to the cart, and then do cleanup if the user abandons the cart.

    2) What would be the best method of maintaining that design string once an order is placed for order fulfillment, etc.

    I have some ideas that I think will work, but I was really curious as to how the experts would tackle this problem. I will likely create a new table in the database orderid_design or something to permanently store the design in a blob text field, tied to the order number, but some advice on how to manage this during a session, especially if the user is not allowing cookies. I have a reasonable amount of experience in Php and working with databases, but fairly limited with this particular problem.

    Any assistance would be greatly appreciated

    Sorry for the wall of text, just didn't want to waste anyone's time by not explaining the issues.

  2. #2
    Join Date
    Jul 2012
    Posts
    2
    Plugin Contributions
    0

    Default Re: Creating and Tracking Custom Designed Products

    Ok, having not completely familiarized myself with Zen Cart, I realized that I could just stuff the info into a text attribute. I checked the database and saw that the text field was a blob. Big enough to handle my design strings, so I will just do it that way. I made the assumption that the text attributes field was probably not large enough to handle the strings.

    Thanks to all that read my post and at least thought about the issure. =)

 

 

Similar Threads

  1. Creating a custom shop style to build products
    By jacksaundersdesign in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 20 Jul 2010, 05:06 PM
  2. Creating Custom Fields for Products based on Category
    By Kma1819 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 12 Feb 2008, 11:51 AM
  3. Creating and calling a custom page
    By tqualizer_man in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 20 Nov 2006, 04:24 AM
  4. SideBoxes : each custom designed
    By mat123slade in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 17 Oct 2006, 03:28 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