Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

[Contribution] Ship In Cart


611 replies to this topic

#41 wizardsandwars

  • Community Member
  • 4,476 posts
  • Real Name:Chris Bradley

Posted 24 March 2003, 16:26

Being predominatly a database programmer, and very new to programming on the web, I hope you excuse my ignorant question, but what is "registering" a variable, a why do we do it?
-------------------------------------------------------------------------------------------------------------------------
NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.
If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

#42 mattice

  • Community Member
  • 2,637 posts
  • Real Name:Matthijs van der Vegte
  • Location:Belgium / Netherlands

Posted 24 March 2003, 16:39

We do it because it beats drinking beer and talking to women I guess... :shock:

No seriously, sessions can hold data; the session nr. on the URL (or in the cookie) corresponds with a file (or db record) that holds stuff. Variables, arrays, whatever. Ussually variables. These are available at ALL time, making them convenient to program with. You 'register' a variable to the specific session (=client) that calls the script. Registering could be seen as 'writing to the specific session file for this client, making the var immediately available as $whatever on every page to come for this specific client"

www.php.net/sessions :D

Mattice
"Politics is the art of preventing people from taking part in affairs which properly concern them"

#43 wizardsandwars

  • Community Member
  • 4,476 posts
  • Real Name:Chris Bradley

Posted 24 March 2003, 16:44

So when you register a variable, does it always show up in the URL for that session?
-------------------------------------------------------------------------------------------------------------------------
NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.
If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

#44 mattice

  • Community Member
  • 2,637 posts
  • Real Name:Matthijs van der Vegte
  • Location:Belgium / Netherlands

Posted 24 March 2003, 16:54

Nope, not at all.
It is available in the global scope.
Best thing to do is to read the link really. ;)
"Politics is the art of preventing people from taking part in affairs which properly concern them"

#45 wizardsandwars

  • Community Member
  • 4,476 posts
  • Real Name:Chris Bradley

Posted 24 March 2003, 17:00

Yeah, I did, I just found myself needing clarification.

Thnaks.
-------------------------------------------------------------------------------------------------------------------------
NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.
If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

#46 ednique

  • Community Member
  • 111 posts
  • Real Name:Edwin Bekaert
  • Location:Belgium

Posted 24 March 2003, 18:04

Have a look at this site:

http://www.crimescene.com/store/

add someting to your basket and see all shipping info...

#47 mattice

  • Community Member
  • 2,637 posts
  • Real Name:Matthijs van der Vegte
  • Location:Belgium / Netherlands

Posted 24 March 2003, 18:12

Quote

add someting to your basket and see all shipping info...

I don't see ANY shipping info in my basket?

Quote

Yeah, I did, I just found myself needing clarification.
Okay ;) So it is the session identifier (sID) that gets appended to the url.
say the sID is 123 you would have a file called /tmp/123 or a db record in table sessions called 123 that holds the variables we 'register' to it. These variables are in 'global scope' which means they are there ALL the time to use. They are 'invisible', like the remote address is constantly there but not 'visible' in the url.

Hope that clears things up
Mattice
"Politics is the art of preventing people from taking part in affairs which properly concern them"

#48 wizardsandwars

  • Community Member
  • 4,476 posts
  • Real Name:Chris Bradley

Posted 24 March 2003, 18:22

Oh, I SEE! :idea:

Sometimes, my grasp of web programming concepts are swiched on like a light switch.

Quote

add someting to your basket and see all shipping info...

I see shipping info, but nothing different from the original contribution.
-------------------------------------------------------------------------------------------------------------------------
NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.
If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

#49 ednique

  • Community Member
  • 111 posts
  • Real Name:Edwin Bekaert
  • Location:Belgium

Posted 24 March 2003, 18:32

So how come mattice didn't see anything?
did you add something to the basket? something that isn't a downloadable product?

Quote

I see shipping info, but nothing different from the original contribution.
Yeah i know, but i was happy to see someone's using it! :lol:
It's even a Live store...

Anyway, this weekend I will update the Ship in Cart contribution

And I even think it would be a great way of checking if your shipping modules are working correctly...
Just keep changing country and zip and check if prices are correct!

#50 wizardsandwars

  • Community Member
  • 4,476 posts
  • Real Name:Chris Bradley

Posted 24 March 2003, 19:19

Yup! I plan on installing this contrib as is at my earliest convenience, and then upgrading when you have finished the country and zip code functionality.
-------------------------------------------------------------------------------------------------------------------------
NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.
If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

#51 jchasick

  • Community Member
  • 1,511 posts
  • Real Name:jeff
  • Location:California

Posted 24 March 2003, 20:15

using MS1 I didnt see any additional info in my cart display either... :cry:
Reading is beneficial - Searching is enlightening
find answers at wiki.oscommerce.com/top

#52 ednique

  • Community Member
  • 111 posts
  • Real Name:Edwin Bekaert
  • Location:Belgium

Posted 24 March 2003, 20:48

That's strange....

I also use the MS1 ...

Can you send me your shopping_cart.php ?

#53 jchasick

  • Community Member
  • 1,511 posts
  • Real Name:jeff
  • Location:California

Posted 24 March 2003, 21:30

actually, the problem is that i cannot find the code you list in your file to replace in my shopping_cart.php file

you say replace [snip]

Replace the old display code:
<!-- shipping cost -->
<tr>
<td class="main">
<?php
if(sizeof($quotes)){
etc,etc, etc

and this code does not exist in my file

$Id: shopping_cart.php,v 1.71 2003/02/14 05:51:28 hpdl Exp $
Reading is beneficial - Searching is enlightening
find answers at wiki.oscommerce.com/top

#54 ednique

  • Community Member
  • 111 posts
  • Real Name:Edwin Bekaert
  • Location:Belgium

Posted 24 March 2003, 21:37

You are reading the upgrade instructions ....

If you haven't installed it before start reading at:

INSTALLATION:
------------------

#55 ednique

  • Community Member
  • 111 posts
  • Real Name:Edwin Bekaert
  • Location:Belgium

Posted 24 March 2003, 21:38

I guess it's full moon hé :lol:

#56 jchasick

  • Community Member
  • 1,511 posts
  • Real Name:jeff
  • Location:California

Posted 24 March 2003, 21:45

it must be - i have so many partial contributions i am trying to finish writing i am just starting to go blind looking at code and read me files..... :lol:

8)
Reading is beneficial - Searching is enlightening
find answers at wiki.oscommerce.com/top

#57 dreamscape

  • Community Member
  • 1,546 posts
  • Real Name:departing this world in search of another

Posted 24 March 2003, 23:43

Quote

Quote

add someting to your basket and see all shipping info...

I don't see ANY shipping info in my basket?

I also went to that site and don't see any shipping info in the cart

#58 ednique

  • Community Member
  • 111 posts
  • Real Name:Edwin Bekaert
  • Location:Belgium

Posted 25 March 2003, 08:23

???

You guys make me say 'AAAAAAaaaaaaaaahhhhhhhhh' :shock:

Why don't you see it?
Add an item to the basket and it must appear !

Go to http://test.ednique.be

#59 mattice

  • Community Member
  • 2,637 posts
  • Real Name:Matthijs van der Vegte
  • Location:Belgium / Netherlands

Posted 25 March 2003, 10:23

I saw that one before, it was the police stuff site that didn't work.
But I don't think this link is any different then the actual contribution that is now in place? I thought this would show the 'development' version, or should I login to see the country dropdown?

Thanx,
Mattice
"Politics is the art of preventing people from taking part in affairs which properly concern them"

#60 ednique

  • Community Member
  • 111 posts
  • Real Name:Edwin Bekaert
  • Location:Belgium

Posted 25 March 2003, 10:38

OK I think I got it now...

y'all have to wait for this we to get to see the country/zip implementation...

Any idea's on showing the order totals in the basket as I've mensioned in this forum before?