View Full Version : Sub-Total on Checkout Pages?
1st Ergo
04-17-06, 07:47 PM
Hi,
Is there a way to display a subtotal (of all the items in the basket) on the checkout screens.
ie:
Item #1: $5.00
Item #2: $6.00
Sub Total: $11.00
Shipping: .........
Tax: ..............
Total: ........
Thank you.
David
sebenza
04-18-06, 04:06 AM
Like a mini-basket?
1st Ergo
04-18-06, 04:26 AM
Hi Scott,
No, I am talking about the standard Miva basket. I don't see a token that gives a subtotal of the items in the basket before it figures shipping, taxes, etc....
Thanks.
David
Well, you could use the minibasket module at
http://www.emporiumplus.com/go/wcw/PROD/1AAM5/1AA00072
It stores that as one of the variables for the array display among several other features. The variable is
&mvt:minibask:subtotalF;
1st Ergo
04-18-06, 10:43 PM
Hi Bill,
I have this module. What I'm after is being able to display the subtotal right in the Miva Basket without duplicating the other data already in the basket.
Is there a way to make the &mvt:minibask:subtotalF; work by assigning the mini basket item to that page and then using that token? I'm guessing that won't work.
Thanks.
David
That will work fine if you have mini-basket version 5.008 or newer. Assign the minibask to that page. Then prior to the foreach loop that displays products in the basket, insert the token
<mvt:item name="minibask" param="mini" />
Then in the actual basket, after the items foreach loop has finished and before the other charges loop, you can use the &mvt:minibask:subtotalF; variable.
1st Ergo
04-19-06, 12:08 AM
Bill,
That worked, but the mini basket is displayed as well.
I was hoping to just use that one token without displaying the mini basket on the same page the Miva basket is displayed.
Is there a way to do this without displaying the mini basket?
Thank you for your help.
David
That token pulls in the template you can customize in the minibasket admin screen. If you are not using that token anywhere else, simply remove or comment out all of the code in that admin input for the "mini". The variable will still be available for use on the page. Now if you are using the fully customizable mini with the store morph code, you could wrap a conditional around the mini template code. EG if the Screen NE 'BASK' show the mini template display.
1st Ergo
04-19-06, 07:22 PM
Perfect! Thank you Bill.
Here is the code I used.
<mvt:if expr="SCREEN NE 'BASK'">
display mini basket
<mvt:else>
</mvt:if>
vBulletin® v3.7.4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.