close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

adding coupons to powerstore

Thread began 9/21/2009 11:57 am by segalmedia367166 | Last modified 9/25/2009 2:38 am by uberbean | 2038 views | 8 replies |

segalmedia367166

adding coupons to powerstore

Dear all,

I am creating a store with Powerstore2. My client asked for a coupon system. I also own e-cart. How long would it take an average semi-newbie to implement such functionality (a range is fine)?

Sign in to reply to this post

Dani Chankhour

Since you have eCart, you should be able to modify the eCart object to add coupons.

We have a tutorial on this page:

ecart/

under solution recipes and it is called "Creating a Coupon system for your eCart store (Interactive Tutorial)"

which could help you get started.

Sign in to reply to this post

larsentim278054

Is that involving promotional codes?

Is there also a way to offer free shipping? meaning, a promotion code to have it ignore the shipping costs?

EDIT: Sorry, I should've checked out the support pages before asking. I do see that you can set it to offer free shipping if the cart value is over a certain value. That sort of answers my question. So I assume you can make the trigger a promotional code?

Sign in to reply to this post

Dani Chankhour

Correct, Promotional Code will act similar to having a Coupon.

Sign in to reply to this post

msjj000Beta Tester

tried it but got stuck

Hi Dani,

Thanks for the tips. I followed the tutorial for eCart 4.0 (I have SuperSuite with eCart v4.5 & PowerStore 2) and went through the process however I assume that I am close but no cigar. The tut was slightly different to eCart v4.5

I've pasted some of the code that eCart generates - can you give me a suggestion on what to look for?

On cart.php page
line 397 - 399
<h3><br />
Enter Promotional Codes Below </h3>
<form action="" method="get" name="CouponCode"><input name="txtPromoCode" type="text" /></<input name="Button" type="Submit" />form>

line 9 - 14
<?php
if (!session_id()) session_start();
if((((isset($_GET["txtPromoCode"]))?$_GET["txtPromoCode"]:"") != "")) {
$_SESSION["PromoCode"] = "".((isset($_GET["txtPromoCode"]))?$_GET["txtPromoCode"]:"") ."";
}
?>

Thanks, Mark.
www.uberbean.com

Sign in to reply to this post

Dani Chankhour

It looks like it is just a syntax error:

replace this line:
<form action="" method="get" name="CouponCode"><input name="txtPromoCode" type="text" /></<input name="Button" type="Submit" />form>

with:

<form action="" method="get" name="CouponCode"><input name="txtPromoCode" type="text" /><input name="Button" type="Submit" /></form>

Sign in to reply to this post

msjj000Beta Tester

Note proceeding to checkout

Hi Dani,

Thanks for that - its fixed up the page view. The cart.php page now doesn't proceed to checkout.php and there doesn't appear to be a reduction in price shown on this page - should it show up here or the confirm.php page?

I've attached the cart.php for your ref.

Thanks, Mark.

Attached Files
cart.zip
Sign in to reply to this post

Dani Chankhour

I have opened a support ticket to further debug this issue:

supporthistory.php

Sign in to reply to this post

msjj000Beta Tester

Ticket Updated

Hi Dani,

I've updated the ticket and attached the required details.

Thanks, Mark.

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