close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Adding to cart, but not carrying recordset values in item name or description?

Thread began 6/28/2019 10:06 am by Nathon Jones Web Design | Last modified 10/16/2019 1:41 pm by Nathon Jones Web Design | 819 views | 7 replies

Nathon Jones Web Design

This is the Add to Cart button...

<form name="eCartSMC_1_ATC_<?php echo($rsEDITFORM->getColumnVal("SMCformID")); ?>" method="POST" action="<?php echo $_SERVER["PHP_SELF"]; ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "")?"?".htmlentities($_SERVER["QUERY_STRING"]):""; ?>">
<input type="hidden" name="eCartSMC_1_ID_Add" value="<?php echo($rsEDITFORM->getColumnVal("SMCformID")); ?>">
<button type="submit" class="btn btn-info" name="eCartSMC_1_ATC" id="eCartSMC_1_ATC">Proceed to Payment <i class="fal fa-shopping-cart"></i></button>
</form>



I've got a hidden field called eCartSMC_1_ID_Add with the form ID value, <?php echo($rsEDITFORM->getColumnVal("SMCformID")); ?>, and this is directing to the health-screening-form-checkout.php page.

My recordset on health-screening-form.php is filtering by $_SESSION['eCartSMC_OrderID'] so perhaps that's why the value doesn't always carry over?

I'm confusing myself, as I type here.

Would a solution be to change my recordset to filter by $_SESSION['eCartSMC_OrderID'] OR $_POST['eCartSMC_OrderID']?
Is the Add to Cart behaviour event even a POST though?

Urggh. My brain is hurting.
Are you free to set up this IPN PayPal thing tomorrow, Thursday or Friday this week and perhaps we could iron out thigns like this whilst we're at it?

Cheers.
NJ

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...