Empty shopping cart

The custom layout ‘empty shopping cart’ can be used to create a custom layout for an empty shopping cart. The use this custom layout you need to take two steps. The first step is marking the spot where the message should come in the original shopping cart page. This place can be marked with the myShop extension myshop-block:noproducts (see line 12).

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTDXHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml-transitional.dtd">
<html xmlns="http://www.w3,org/1999/xhtml">
        <head>
                <title>Shoppingcart example with an empty shoppingcart page</title>
        </head>
        <body>
                <table style="myshop-has:products" width="90%" bgcolor="white" border="0" cellspacing="0" cellpadding="0"> 
                        <!-- see example shoppingcart -->
                </table>
                <span style="myshop-block:noresults"/>
        </body>
</html>

Now you can upload a XHTML page with an custom message in the editor screen for setting the custom layout pages. The example below shows the code of such a page with a custom message.

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> 
        <head>
                <title>Example of a simple custom message page</title>
        </head>
        <body>
                <table width="100%">
                        <tr>
                                <td valign="top" align="center">
                                        Your shopping cart is empty. Go back to the shop to order products.<br/><br/>
                                        <a style="myshop-action:help-basket">Help</a>
                                </td>
                        </tr>
                </table>
        </body>
</html>

The custom message is also used in the standard shopping cart (without custom layout).

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment