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

Populate coupon field / session from an external URL

Thread began 1/18/2010 12:19 am by en6geh388551 | Last modified 1/18/2010 9:03 pm by Eric Mittman | 688 views | 2 replies |

en6geh388551

Populate coupon field / session from an external URL

Our webshop is up and running using ecart :-) and I used the 'recipe' for setting up the coupon field.

One of our partners has asked if we could provide them with a link to our webshop with pre-populated items and also prepopulated discount.
The idea is they are then sending this to their customers, who can then click on the URL and it automatically goes to the cart with items already put in and also the coupon applied.

Has anyone any ideas?

Sign in to reply to this post

victor278184

as far as i know, you should add it manually via eCart widget and upload the WA_eCart folder to update the coupon and the new setting.

this is the cons of use eCart (version 4).. i really hope the future release of eCart could handle coupon, discount, etc via database...

So far, temporary solution for me and my team is build functions that mimics eCart to rewrite some files in WA_eCart folder dynamically... its not finish but hopefully at the end of this quarter defining the coupon, discount can be done through database (so we can include it in our CMS)

hope some WA staff can give us the blueprint.. when such feature will exist

Sign in to reply to this post

Eric Mittman

You could setup a page that when linked to with the proper URL parameters it will set a coupon code and add items to the cart. It is a custom piece though that would require a bit of hand coding to get working correctly.

The first thing you would want to do is setup the coupon code portion for the discount you would like to apply to these users. Once you get that part worked out you will need to craft a new page that will look for the URL parameters that are passed in a link and use these parameters to set the session variable for the coupon code, then add the items to the cart.

This page will have a set session value server behavior on it to set the session variable for the coupon. Next you will have add to cart server behaviors on the page to get the items added to the cart.

Once the page is crafted you can construct the link. If your items are static then you will need to add in each column's parameter for the item to the link including the item id, size, quantity, etc. If you have your items coming from the db then you can just pass along the item id. To make the link trigger the server behaviors on the page you will need to update the triggers for the set session value and add to cart server behaviors. You will need to set them to work on a URL parameter that you pass in the link.

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