minimum basket summary

daskalides

No avatar

2007-01-24 19:39

We need to make so that the minimal sum of an order placed in the cart would be 500 (RUR). So, if someone gets stuff for less then 500 (RUR), instead of "Check Out" button, there will be sign saying "The minimum amount is 500" or if the sum would be equal or greater than 500, the "Check Out" button will appear, taking people to the OrdersDelivery page.

Where and how to make it?

Is it right that the simple if-else statement can be used?

Thanks

Dmitri

treewood (OpenSolution)

Avatar: treewood

2007-01-24 22:48

daskalides - first You need to know PHP!
1. Edit actions_client/orders.php and find that:

$content .= listBasket$iOrder );


2. After You will find give after this line above simple if( $aList['fSummary'] > 1000 ){}
3. There You need to add code to display checkout button from template or not if ammount is below minimum

We can do it for You if You want, contact us if You cant do it

daskalides

No avatar

2007-01-25 14:48

well, i get the idea... but don't think would be able to work it out properly

here is the line of mine but it's not right:

if( isset( $iOrder ) && is_numeric( $iOrder ) )
$content .= listBasket( $iOrder );
else
$content .= $tpl->tbHtml( 'orders_basket.tpl', 'NOT_FOUND' );

if( $aList['fSummary'] > 500.00 ) {
$content .= $tpl->tbHtml( 'orders_basket.tpl', 'NEXT' ); }
else {
$content .= $tpl->tbHtml( 'orders_basket.tpl', 'NOT_FOUND' ); }

}

glad any help/suggestions

Dmitri

Back to top
about us | contact