close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Discount Code Not Updating In Order Header

Thread began 2/05/2016 5:44 am by mrobben375515 | Last modified 2/05/2016 2:12 pm by Ray Borduin | 1388 views | 6 replies |

mrobben375515

Discount Code Not Updating In Order Header

I am able to pass the discount value to the order table, however, the code used is not going in. I am using the value <?php echo $eCart1->RuleLooperValue("Discounts"); ?> to update the discount value that works. However, <?php echo $eCart1->RuleLooperName("Discounts"); ?> is not passing the name to the order header. Can you help me please? See attached for private access to site and pages.

Sign in to reply to this post

Ray BorduinWebAssist

Those functions are meant to be used within a while loop to show all discounts... What is it you are trying to do with them here? I have a feeling a different approach is necessary. What value do you want stored as the rule name? It looks like you only have one Discount rule applied. If you did get this working it will only show the first discount rule anyway it doesn't find the active one.

Sign in to reply to this post
Did this help? Tips are appreciated...

mrobben375515

I am trying to update the order table with the discount value and the discount code. I am using the confirm.php page and I am editing the code using the server behavior "eCart Store Summary in Database". The only options I am seeing that relate to the discount is the Rulelooper.

The code is entered and applied on the cart.php page. In my cart.php page, I do move the discount code to a session variable titled "PromoCode". However, when I click on the server behavior "eCart Store Summary in Database" I do not see that available to put into that field.

Sign in to reply to this post

Ray BorduinWebAssist

Use this:

php:
<?php echo(isset($_SESSION['PromoCode'])?$_SESSION['PromoCode']:""); ?>
Sign in to reply to this post
Did this help? Tips are appreciated...

mrobben375515

Very good. Should I do this on the cart.php page or in the confirm.php page?

Sign in to reply to this post

Ray BorduinWebAssist

Wherever you want to reference the promo code being used.

Sign in to reply to this post
Did this help? Tips are appreciated...

mrobben375515

Never mind, I found the server behavior to clear the session variables.

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