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

Applying charges - only for products in a particular category?

Thread began 8/03/2015 2:10 pm by Nathon Jones Web Design | Last modified 8/06/2015 5:04 pm by Nathon Jones Web Design | 1003 views | 13 replies

Nathon Jones Web Design

Let's strip this back...

I have re-added the "Surcharge" Calculation:
([Category]==2)?[TotalPrice] * 0.05:0

I have created a Charge called "Cask Surcharge" as follows...

Number of items with Category of 2 > 0

Based on column subtotal
Subtotal of column "Surcharge" plus 0

This appears to be working, so I'm confused about why you were directing me towards creating a "RealPrice" calculation and altering the "TotalPrice" calculation. Can you explain because I don't want to complicate things with my Save to Database stuff simply because I haven't created/edited those two calculations.

Regarding the charges display, on the view basket page it is simply listed as "Charges" not "Cask Surcharge".

Checking the view basket page code I have this:

//WA eCart Merchandizing Show Start
if ($whiskyCART->GetCharges() > 0) {
<td class="eC_SummaryLabel">Charges</td>
<td id="whiskyCART_JSON_Display_Charges"><?php echo WA_eCart_DisplayMoney($whiskyCART, $whiskyCART->GetCharges()); ?></td>
//WA eCart Merchandizing Show End

So...I can manually change the word "Charges" but what if I have more than one charge, each with it's own title? Is it possible to list the actual charge/s and charge name/s separately? Like line items?

Thank you.

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





Ease of use


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