Showing posts with label Dynamicweb Ecommerce. Show all posts
Showing posts with label Dynamicweb Ecommerce. Show all posts

Tuesday, September 30, 2008

Adding general handling fee in Dynamicweb eCommerce

I had the challange resently to add a default handling fee to a eCommerce soloution implemented using Dynamicweb eCommerce. After struggling a while with it I found a soloution. I created a negative sales discount on the amount which every customer would have to pay if the total amount was no more than a given amount.

So you simply create a discount - a "Total Sales Price Discount" on a given NEGATIVE amount of money. You also define a rule which takes care of the limit given in your case, say: "The customer should spend more than 1000€, before the handling fee will be zero".

It is perhaps not a very logical way - but it works! :-)

Tuesday, August 5, 2008

Anything in the basket?

If you have a Dynamicweb Web soloution with eCommerce you may want to inform the visitor/customer about the number of products in the basket. One logical place to add this information would be on the PAGE template - and yes, it's that simpel!

A very simpel example would be to add:

In basket: <!--@Ecom:Order.OrderLines.TotalQuantity--> products

Unfortunally if there is nothing in the basket Dynamicweb will just leave the tag unpassed, so your HTML code will not contain "0" if nothing is in the basket.

To solve this situation you will need to write some javascript. I Suggest that you put the basket information inside - say - a DIV with a specifik ID ("GlobalBasket" for instance) and then set the CSS Display to "none". The javascript code should then toggle the CSS Display attribute if nessesary.

Here is a simple example:

<div id="GlobalBasket" style="display: none">
<b>In basket: <!--@Ecom:Order.OrderLines.TotalQuantity--> products</b>
</div>
<div id="GlobalBasketEmpty" style="display: none">
<b>Basket is empty</b>
</div>
<script type="text/javascript">
var iQuantity = parseInt('<!--@Ecom:Order.OrderLines.TotalQuantity-->');
if (iQuantity>0 || !isNaN(iQuantity)) {
document.getElementById('GlobalBasket').style.display = 'block'; // Or Inline
} else {
document.getElementById('GlobalBasketEmpty').style.display = 'block'; // Or Inline
}
</script>


I have added a "GlobalBasketEmpty" DIV to this example - it will be show in case of the basket is empty.

Thursday, July 3, 2008

Visit my BLOG at Dynamicweb

From time to time I am writing "articles" on a blog at my job @ Dynamicweb A/S. You might find them interesting - so visit my blog @ Dynamicweb.

Thursday, May 15, 2008

Documentation of Dynamicweb CMS

Here are some important places for finding documentation for Dynamicweb CMS:
A portal of information about Dynamicweb (and Syncron VIA):
http://documentation.dynamicweb.dk/

The system - running examples of use and how-tos:
http://demo.dynamicweb.dk/

Back-end online manual:
http://manual.net.dynamicweb.dk/

Templates online manual:
http://templates.dynamicweb.dk/

Wednesday, March 26, 2008

How to empty a card in Dynamicweb Ecommerce

You can empty the card using any URL inside your site, just extend the URL with these params: CartCmd=emptycart