close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Specific Discounts Not Working

Thread began 2/08/2012 11:36 am by mora398588 | Last modified 2/10/2012 1:30 pm by Jason Byrnes | 482 views | 5 replies |

mora398588

Specific Discounts Not Working

Some time ago, I had created member discounts based on a session variable equal to the member's userLevel. My user levels range from 1 to 3. My sql database maintains the user levels for each type of user.

As I stated earlier, I created discounts in eCart to allow for discount on our services and products based on the member's user level. Just yesterday, certain members were unable to take advantage of their discounts (i.e., user level 2 and 3). When I tested our site, only user level 1 was actually being discounted correctly.

I went back into my eCart object to review my member discounts and they appeared to be assembled correctly. Each member discount is organized the same with the exception that each member discount is based on a different user level and extends a different discount.

I was unable to resolve the issue and I need assistance to determine where my discounts may be going wrong.

I have provided a copy of my eCart object and cart.php page for your review. Thank you for your assistance.

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

Jason ByrnesWebAssist

in all of the discount rules, the calculation is set to give the same discount:

Subtotal of totalPrice where Category = Webinars Plus 0


all of the discount rules use this same calculation, they are not configured to offer a different discount based on the userlevel.

Sign in to reply to this post

mora398588

Not all the discount rules provide the same discount.

If you reference the following discount rules...Associate Member Discount, Preferred Member Discount and Standard Member Discount -

they are all configured based on a user level and there specific discount. For example, the preferred member discount is based in user level 2 with a discount of 20%. The standard member discount is based on user level 3 with a discount of 15%.

With the support of WebAssist, I created the webinar discounts to cancel the member discounts (when the member was logged in) to offer our webinars at no cost - thus cancelling the price of the webinar. This discount is also not working - that is, it is not cancelling the member discounts, but adding to it leaving a credit or negative balance.

Where am I going wrong here?

Sign in to reply to this post

Jason ByrnesWebAssist

I'm going to need some more information to be able to tell what may be wrong.

forst, for testing purposes, create a new page and add the eCart Display Manager to it. In the display manager, go to the second page and set it to show all columns.

then add the following code just before the closing <html> tag:

php:
<pre><?php var_dump($_SESSION); ?></pre>



now login as one of the users that is not working correctly and add something that should be discountable to the cart, then go to the test view cart page.

send a screen shoot of this page in a zip archive and a detailed explanation of how the discounts should be displaying versus how they are displaying.

it's to know what may be wrong with the info you have provided. I'm not entirely sure how they are supposed to be working, nor am i sure how they are working, I need that information to be able to investigate.

Sign in to reply to this post

mora398588

Jason,

I wanted to follow-up and let you know that I was able to resolve the problem today. I noticed that I had created a column labeled "discountable2" for the purpose of eCart identifying the specific item in my sql database. The discounts in questions were not linked to this column (per say).

In addition, this solution has also corrected my webinar discounts as well. This closes this thread.

Thank you once again for your kindness in helping me out.

Sign in to reply to this post

Jason ByrnesWebAssist

ok, glad to hear it is sorted.

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