close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

No discount for a particular item

Thread began 7/02/2010 6:36 pm by mora398588 | Last modified 7/13/2010 10:53 am by Jason Byrnes | 1766 views | 5 replies |

mora398588

No discount for a particular item

I have created varied discounts for certain users logged in. As a result, when a user is logged in and is making a purchase, the cart will reflect the total with the discount applied (i.e.: 25% off).

However, I am selling a particular item that I do not want my users getting a discount on. I would prefer that the item be purchased at regular price. How can I update my eCart Object to take a particular item into consideration and not apply a discount to just that one item?

Sign in to reply to this post

Jason ByrnesWebAssist

on the column tab, you need to create a new column to flag items the discount should apply to. set the column name to something like "discountable" for items the discount applies to, set the value to 1, for items the discount does not apply to set the value for the discountable column to 0.

in the discount calculations, set the calculation to "Based on items with a specific value":

Total of 'TotalPrice' where 'discountable' has a value of '1' 'times' '.15'

Sign in to reply to this post

mora398588

I understand what you saying here, but I am uncertain as to the next step. With the addition of the new "discountable" column, how and where do I enter the values for the discountable items?

Do I need to update the cart.php page? Do I need to enter the discountable column to the cart page or any other page?

Sign in to reply to this post

Jason ByrnesWebAssist

you need to update the add to cart button to assign the value discountable value to the item.


If you are using a static cart, enter the value directly in the add to cart bindings.

If you are using a dynamic cart, you need to add a new column to your database, assign the value in the database, then update the add to cart button , and bind the new cart column to the new database column.

Sign in to reply to this post

mora398588

Taxable Items

Thank you for your solution suggestions.

I have a similar issue pertaining to taxable items. There are number of items that not considered taxable. How would I modify the eCart to only tax items that are taxable?

Sign in to reply to this post

Jason ByrnesWebAssist

same idea. create a new cart column called taxable.

Set the value to 1 for items that should be taxed and 0 for items that should not be taxed.

In the tax rule, set the calculation to "Based on items with a specific value":

Total of 'TotalPrice' where 'taxable' has a value of '1' 'times' '.8'

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