Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Bidding Directory   ClickBooth Network   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 05-05-2008, 05:54 PM   #1 (permalink)
Contributing Member
 
Join Date: 06-11-07
Posts: 153
iTrader: 0 / 0%
Latest Blog:
None

Capo64 is on the right pathCapo64 is on the right pathCapo64 is on the right path
Custom Cart Speed

Hi,

I'm currently using my own (very simple) shopping cart, it basically uses a string as a session variable in this format: item_id,qty;item_id,qty;etc. (So if I had 3 of item 42 and 1 of item 6 it would be "42,3;6,1".

Then I split the string at the top of every page and use an array for the rest of the page.

I started looking at classes and I love them. I want to make a cart class and use that instead (much more organized and easier to access data).

I was looking at oscommerce's script to get an idea of how they do it, but they have so many includes that it's impossible to keep track of what's what.


So my question is:
What's the fastest way to put classes into the session (I was looking at serialize and unserialize, idk if there's any alternatives because I heard they were slow)?
Capo64 is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
DSL Modem Speed Vs. Router Speed krahmaan Computers & Internet 22 04-07-2008 02:43 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 02:13 PM.
© Copyright 2008 V7 Inc