Our site www.viart.com site is operated by latest Viart Shop 5 with default Clear design
Topic Information
theruck
theruck
as per title. i need to display just the total price and the number of items in the basket. i need to display it in the header or custom block. any ideas how to accomplish this?
 
Metz
Metz
would love to know this as well. Smile
 
dmOZ
dmOZ
You will need to follow the example of how to the example for adding a login block to the header
 
http://www.viart.com/add_blocks_into_header.html
and
http://www.viart.com/CMS_Layouts.html
 
I created a 'tiny cart' variant of this by
1. Edit templates/user/header.html file to add a tag {cart_header} at the position you want the new 'tiny cart' to appear.
2. adding the Products > Small Cart to the page, above the Global >Header block
3. Set the properties of the block as follows:
a. Tag Name: cart_header
b. HTML template: block_cart_header.html
 
I also edited the templates/user/block_cart_header.html to tweak its appearance.
 
Big downside is that to have this new cart appear on every page, you then need to repeat 2 & 3 above on EVERY page. Wall Bash
 
I also couldnt get it to sit quite right in my layout Crying and so I ended up removing it for now plus the hassle of repeating 2&3 on every CMS Page was a pain.
 
If someone comes up with a better solution, love to hear it.
 
dmOZ
dmOZ
further more detailed info can be found at
http://www.viart.com/build_in_blocks.html
 
which gives more in-depth info and specifically how to add the small-cart block to your header.
 
theruck
theruck
just for let you all know,
much easier solution than clicking the small cart block on every page is opening the blocks/header.php file and after <?php
add
 
include_once("./blocks/block_cart.php");
 
dmOZ
dmOZ
I am trying to add a Slider to the header, but same sort of issue.
 
I want the same slider to appear on every page, but how to add that.
 
Slider is called "Slider1"
Slider type: Horizontal
Slider Width = 100%
Slider Height = 90
Block View Type: Content Only
 
 
Similar issue if I want a banner in the header of every page, but in that case I need to also add some HTML to control its appearance an number of banners to show
 
dmOZ
dmOZ
THERUCK
 
Can you clarify for me how you got your suggestion to work.
 
Did you have to put anything into templates/user/header.html
 
if so, what and where did you put it?
Was there anything else you had to do?