close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Multiple cart.php

Thread began 1/23/2011 7:06 pm by mick106153 | Last modified 1/25/2011 1:35 pm by Jason Byrnes | 885 views | 3 replies |

mick106153

Multiple cart.php

Is it possible to have more than one type of cart page?
I ask because the site I'm working on now will be selling goods and also signing up participants in an historical re-enactment.
I would like those who sign up as re-enactors to be sent to a cart page that looks more like the kind of form one might have used 200 years ago for that purpose.
The information gathered there would be different as well.

Any thoughts or advice?

Mick

Sign in to reply to this post

Jason ByrnesWebAssist

I think the problem you are going to run into is if they purchase both types of products at the same time.



you can test for an item being in the cart by ID using this code:

php:
<?php

if($<yourCartName>->InCart("1") == true)) { 
    
header("Location: other_cart.php");

?>
Sign in to reply to this post

mick106153

Thanks Jason

Would it be possible than to have both on the same cart.php and, depending on where you came from, hide the elements not needed?
And, if so, how?

Mick

Sign in to reply to this post

Jason ByrnesWebAssist

yes, you could do this, using the same if statement from my previous reply:
<?php if($<yourCartName>->InCart("1") == true)) { ?>
<form element>
<?php } ?>


assuming that the registration item has an id of 1

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...