close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

form element binding

Thread began 3/25/2015 7:58 am by Jamie | Last modified 3/30/2015 10:44 am by Jason Byrnes | 1226 views | 5 replies |

Jamie

form element binding

Hi Jason

On the attached page, have a couple of queries.

1. With the form elements, if I were to bind them to their relevant validated entry, would that screw up adding the buyers info to Paypal and/or the orders database?
2. I have added a dynamic coupon system but cant get the page to display the discoutn line in the cart nor make the discount to the total. Have also added link in the PM to the page in question

Thanks

Jamie

Sign in to reply to this post

Jason ByrnesWebAssist

1) no, that should not effect the checkout

2) I must be blind, I don't see a voucher code input? to troubleshoot though, I will need direct FTP access

Sign in to reply to this post

Jamie

see PM re voucher code and fyi heres a screengrab of where the input is: http://prntscr.com/6lads5

Sign in to reply to this post

Jason ByrnesWebAssist

on the checkout page, you have code to set a static CouponCode session based on the coupon code form element:

<?php
@session_start();
if((((isset($_POST["txtPromoCode"]))?$_POST["txtPromoCode"]:"") != "")) {
$_SESSION["PromoCode"] = "".((isset($_POST["txtPromoCode"]))?$_POST["txtPromoCode"]:"") ."";
}
?>


all of the discount rulers are set up for other sessions like CouponIsPercent, CouponProduct and such, but there is no code in place to set those sessions.

It looks like only the rules have been created but not the code to set the sessions that are used by the rules.

Sign in to reply to this post

Jamie

gotcha... got that working now, thanks for pointing me in the right direction.

the start / end date function doesnt seem to be working....the coupon code in the PM should not work as the start date is 01-01-2015 and the end date is 28-01-2015

also, I have bound the form elements to the validated entry and when applying the voucher code, the page refreshes but doesnt remember the form details....

Sign in to reply to this post

Jason ByrnesWebAssist

I don't see where you have implemented start and end date.

in the coupon rules, you don't specify a start or end date, and in the recordset that is used to populate the session, the condition is set to look for Live = 1

nothing is setup for looking at a start or end date.

for the validated entries, it will work if you use the Checkout button to submit the form. the validation behavior on the confirm cart page is set to use the CheckoutWizard_submit button as the trigger, no validation will happen on filling in the voucher.

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