Click to See Complete Forum and Search --> : What is PHP function to make shopping cart


Weedpacket
07-25-2003, 08:01 AM
?

stolzyboy
07-25-2003, 10:26 AM
are you serious, anyway its make_shopcart() //pass parameters in the brackets for size of store, colors, style, payment methods, payment process, etc...

epimeth
07-25-2003, 03:51 PM
don't forget to init_shopcart() and close_shopcart() !

goldbug
07-25-2003, 04:03 PM
My favorite function is
ram_cart_into_aisle_of_canned_goods()

followed by a response of

store_cleanup('aisle 3');

:)

dalecosp
07-25-2003, 04:17 PM
Originally posted by goldbug
My favorite function is
ram_cart_into_aisle_of_canned_goods()

followed by a response of

store_cleanup('aisle 3');

:) Right! Usually put in a conditional; if() is great, but while() is much more fun...

:D

dalecosp
07-25-2003, 04:21 PM
On a related subject, that string in the search engine brings up only two threads in the entire month of July, one of which is this one ... so I do hope that Mr. Weedpacket will enlighten this hillbilly before August is over at the very latest...

I'm betting either a) testing the intellitext :( or b) just adding some life to the ol' EL, here...

stolzyboy
07-25-2003, 04:27 PM
i have a feeling it is the latter

so you mean that function really doesn't exist

hmmm...no wonder it always get call to undefined function errors, i thought i had params wrong

dalecosp
07-25-2003, 04:48 PM
Nope. I think you forgot:--with-shopcart=/path/to/abstraction.layer.lib in your ./configure file....

;)

stolzyboy
07-25-2003, 04:52 PM
Originally posted by dalecosp
Nope. I think you forgot:--with-shopcart in your ./configure file....

;)

ahhh crap, i knew i was forgetting something

btw, can you tell me what this means

Parse error: parse error, unexpected T_VARIABLE in C:\FoxServ\www\index.php on line 56

it happens on this line

$imdumb //this is the line

j/k

dalecosp
07-25-2003, 05:10 PM
Hmm, I think you need to add "magic_semicolons_gpc=on" in your php.ini file ... but, it's not available unless you upgrade to v.5....

:eek:

:D

jebster
07-25-2003, 07:53 PM
Originally posted by Weedpacket
?

TOTALLY OT!

How did you make it some when you mouse over "shopping cart" it has a little thing with text that pops up?

superwormy
07-25-2003, 08:11 PM
ROFL best thread ever!!!


if (shopcart_Hits_ParkedCar()) {

$responsibleForDamage = FALSE;

}

dalecosp
07-25-2003, 08:12 PM
If you'll notice, those things are all over the board. Go to the feedback area of the forum and read eoghain's thread re: this.

It's called "intellitext", and that's all I have to say about it.

Look @ this: My Microsoft server is the greatest thing I've ever networked into the resource center! This php.net site makes lots of money in the computer business!

Funny, eh?

Dang, only 3 hits...

dalecosp
07-25-2003, 08:20 PM
ROFL best thread ever!!!
if (shopcart_Hits_ParkedCar()) {

switch ($market_chain) {
case "Wal-Mart":
$responsibleForDamage = FALSE;
break; // yah, your fender...
case "Target":
$responsibleForDamage = FALSE;
break; // yah, your bumper...
case "Sears, Roebuck & Co.":
$responsibleForDamage = FALSE;
break; // yah, your windshield...
case "Macy's":
$responsibleForDamage = FALSE;
break; // yah, your nose, and cheekbones...
case "Anything I own":
$responsibleForDamage = TRUE;
break; // yah, your bank account...
}
}

Moonglobe
07-25-2003, 09:05 PM
AK! Parse error: left out a bracket. now, what about:

if (hank_into_bank())
{
if (transefer_funds($gates,$me)
{
fill_shopping_cart_with($crap);
buy_five_million_dollar_mansion();
blame_it_on($him);
charge_it_to($him);
send_it_to($me);
}
else
{
destroy_bank();
}
}
else
{
echo "aw damn, they're using Linux!\n";
}


:D

dalecosp
07-25-2003, 09:53 PM
Hmm, never know about those guys who find parse errors in jokes. Either they're really really smart and visual, or they have waaaaay too much time to spend on this forum...

BTW, congrats, I see you found another one...hmm, Linux, eh, but not FreeBSD...

Weedpacket
07-25-2003, 10:39 PM
RITALMAOACIDSs. I've just discovered if I laugh hard enough it turns into a Tim Curry-style "yuck yuck".

There's backend administration as well:

if(( !in_array($cart, $unreturned)
&& !in_array($cart, $stolen_by_joyriders)
&& !in_array($cart, $dumped_in_creek)
&& !in_array($cart, $acquired_by_competing_store)
&& !(in_array($cart, $abandoned_in_mall) && $staff->areLazy())
)||( in_array($cart, $acquired_from_competing_store)
|| in_array($cart, $found_in_residential_driveway)
))
$carts_available[] = $cart;

dalecosp
07-26-2003, 12:50 AM
Hey, good to hear you're laughing ... I've heard it's good physiological therapy. :)

As for RITALMAOACIDSs, um, that's a new one? ESR doesn't list it....I mean, the substr($yourquote, 3, 4) returns TRUE, but otherwise...

Weedpacket
07-26-2003, 04:10 AM
Rolling In The Aisle, Laughing My Arse Off And Crashing Into Display Stacks.

BuzzLY
07-26-2003, 04:03 PM
Originally posted by Moonglobe
AK! Parse error: left out a bracket. now, what about:

if (hank_into_bank())
{
if (transefer_funds($gates,$me)
{
fill_shopping_cart_with($crap);
buy_five_million_dollar_mansion();
blame_it_on($him);
charge_it_to($him);
send_it_to($me);
}
else
{
destroy_bank();
}
}
else
{
echo "aw damn, they're using Linux!\n";
}


:D

Sounds great. But how do you hank into a bank? And is someone that does that called a hanker? Would the lead hanker be called the Hanker Chief? Is this where the phrase "I've got a hankerin' for some money" comes from?

I'm so confused... ;)

dv6cougar
07-26-2003, 04:40 PM
don't forget error handling :)

$error = array();
global $error;
function store_error($error) {
echo "Damn, your having some trouble with your store script";
echo "your error(s) are as follows:<br /><br />";
echo "<ul>\n";
foreach($error as $msg) {
echo "<li>$msg</li>\n";
}
echo "</ul>";

}
if($all_accounts == NULL) {
$error[] = "Dude, your broke";

}
if($store_name == NULL) {
$error[] = "Your store doesn't even have a name";
}
if(($store_bs == "yes") || $store_bs == NULL)) {
$error[] = "Your store seems to be bs";
}
if(($php_manual == "never been seen")
|| ($store_owner == "php beginner") {
$error[] = "Oh jeez, read the manual or pay someone to make
the shopping cart for you. **hint hint**";
}
if($error) {
store_error($error);
exit;
}





:cool:

Elizabeth
07-26-2003, 04:53 PM
Originally posted by BuzzLY
Would the lead hanker be called the Hanker Chief? Buzz, that is really BAD! :D

-Elizabeth

Elizabeth
07-26-2003, 04:55 PM
Originally posted by Weedpacket
Rolling In The Aisle, Laughing My Arse Off And Crashing Into Display Stacks.
I thought ritalmaoacids were those little buggers in beer that make people better looking the more you drink.

-Elizabeth

Weedpacket
07-26-2003, 10:49 PM
Originally posted by Elizabeth
I thought ritalmaoacids were those little buggers in beer that make people better looking the more you drink.

-Elizabeth Or the secret ingredient added to the hamburger's "special sauce" to get the kids hyped up.

planetsim
07-26-2003, 11:30 PM
Why is when i use this script


class hackmicrosoft{

function lookimin(){
if($this->mircosoft == "richbums"){
$this->stealfunds();
}else{
$this->stealfunds();
}
}

function stealfunds(){
$this->sendtome();
}

function sendtome(){
return = "All Money transfered";
}

}


I get a download popup

"This is a security fix, we suggest downloading it"

dalecosp
07-27-2003, 12:43 AM
LOL, don't you mean ---I get a downlo*d popup

"This is a s*curity fix, we suggest downlo*ding it"I'm gonna have to press the "default brows*r" button on Mozilla soon... :(

epimeth
07-27-2003, 06:55 PM
ritalmaoacids <-- now that one made me ritalmaoacids


and all you hankers out there... don't forget

if (feds_find_out())
{
if (!destroy_evidence())
{
echo 'oh ****';
get_good_lawyer();
}
}

planetsim
07-27-2003, 07:10 PM
That would be something good for me to add.. Except i wouldnt need the lawyers... im talking microsoft here.

dalecosp
07-27-2003, 11:53 PM
My wífë säys thät wë'vë övërlöökëd thë pössíbílíty öf hömëlëss öld lädíës ín pössëssíön öf shöppíng cärts...

Änd Î'm sürë mänägëmënt wíll wänt tö knöw äböüt thís önë äs söön äs thë scüttlëbütt híts thë böärd rööm....

Äny clüë höw tö cödë thís?

TÎÄ,

dälëcösp --- clüëlëss nëwbíë...
----------------------------------------
Whät's ä "pärsë ërrör"?

Moonglobe
07-28-2003, 12:00 AM
<?php
íf (fínd_cärt($öld_lädy)=="shë's göt ít!")
{
gët_cärt_bäck();
tëll_hër("nëxt tímë BÜY sömëthíng bëförë yöü stëäl ä cärt!");
}
ëlsë
{
lëävë_hër_älönë($ön_fëär_öf_prsëcütíön);
}?>

thät gööd ënöügh? ör shöüld í ädd ín thë stüff äböüt thë përcëntägë öf thë cöst öf thë cärt shë böüght, änd höw thät cömpärës tö thë nët wörth öf thë cömpäny, ëtc....

:D
förgöt thë BØRK fíltër

dalecosp
07-28-2003, 01:43 AM
Originally posted by Weedpacket
My c&ouml;d&eacute; w&ograve;&ugrave;ld n&egrave;&eacute;d &aacute; n&euml;w &agrave;rr&agrave;y...

&& !in_array($cart, $used_as_accommodation)
Yës; Î thínk yöü rëäd hër mínd, índëëd :D

Încídëntälly, yöür Börk fíltër öütpüts ä líttlë díffërëntly thän thë önë wë'vë dëvëlöpëd lätëly, Î thínk. Ärë thërë ädväntägës tö yöürs? Lööks äs íf yöü'rë üsíng HTML ëqüívs....

dalecosp
07-28-2003, 01:45 AM
Ümm, whërë'd ít gö?