There is mention in the wiki that some modules can't be hooked onto certain places, and that alterations may need to be carried out to achieve the desired effect. Does anyone have any tips / advice on what I need to hack?
Coffee and hookers to the winner....
Regards,
Mokijo
Super simple cart summary in header
Theme switcher / changer - For mobile devices (work in progress)
Just a thought, can I just add the cart to the bottom of the left hand column and use css positioning to place it where I need it??? If so, any tips would be appreciated...
Super simple cart summary in header
Theme switcher / changer - For mobile devices (work in progress)
I have the idea that it's just a duplicate of the cart-module where the jquery part for the slide is ripped out.
I ahve to investigate.
From 1263337704:
I have the idea that it's just a duplicate of the cart-module where the jquery part for the slide is ripped out.
If you get any joy with your attempts, please can you report back? I reckon a lot of people would appreciate it.
On a side note, I see plently of french sites doing just this. Shame my French abilities are zero. I'm sure someone from their sub-forum would clear this up in a jiffy!
Super simple cart summary in header
Theme switcher / changer - For mobile devices (work in progress)
http://www.prestasho...ee_theme_pwxmas
function hookTOP($params)
{
return $this->hookRightColumn($params);
}
Now I tried adding that to the blockcart.php I had copied into the "my_theme/modules/blockcart" folder. Mega fail.
So off I went to the main modules/blockcart folder and modified the original .php file and it worked! Have to figure out how to format it to my liking but its a start.
Just a little concerned that I had to modify a file outside of my themes folder. I was under the impression this was a no-no (i.e causes problems when you update?)
Hmmm....
:question:
Super simple cart summary in header
Theme switcher / changer - For mobile devices (work in progress)
I reckon that was worth at least three coffees and half a hooker (The good half ;-) )
Cheers xxx
Super simple cart summary in header
Theme switcher / changer - For mobile devices (work in progress)
Scrapped using the blockcart module. Then tried the user info block module. Problem is I don't want the 'welcome', 'login' etc. Just looking for "item: 0 ; total:£ 0:00 ;
Please, please, please, with a big fat cherry on top, any suggestions???
Do I even need a module for this?
Super simple cart summary in header
Theme switcher / changer - For mobile devices (work in progress)
I don't suppose you have an image "mock up" of what you want ? I have been working on templates and modules recently and have some knowledge but I am not sure what you want
ta
Please find attached a lil' mockup.
However I think I may have found a solution. Please can you give me your opinion on its robustness? Seems to work on my test installation...
Items: {$cart_qties} <-- shows the number of items in cart, or 0 if empty -->
Total: {convertPrice price=$cart->getOrderTotal(true, 4)} <-- shows total cost excluding shipping, or £0.00 if cart is empty -->
Go To Basket <-- link to cart page -->
There's plenty of hooks to add css to, so it should provide endless options for people to style it as they wish (fancy background images for example!!!). Plus it ain't no smelly module so you can place it anywhere.
I haven't a clue what i'm doing in .php, so I just hit those spans with chuncks taken from the cart modules. Eventually i found some code that seems to work :cheese:
If it proves to be usuable, would anyone object to me naming this lil chunk of code "mokijo's super simple cart summary" ???
:red:
Attached Files
Super simple cart summary in header
Theme switcher / changer - For mobile devices (work in progress)
;-)
Super simple cart summary in header
Theme switcher / changer - For mobile devices (work in progress)
--------------------------------------
I will use your source code to change the world
HTML-
CSS-
#carthnm {
float: right;
width: 400px;
}
.carthnm ul {
margin: 0;
padding: 0 5px 0 0;
list-style: none;
}
.carthnm li {
float: right;
height: 30px;
line-height: 30px;
}
.carthnm_basket a {
text-indent: -1000em;
width: 27px;
height: 27px;
display: block;
overflow: hidden;
background: transparent url(../img/basket.gif) no-repeat left top;
padding-right: 15px
}
.carthnm_total {
padding: 0 13px 0 0;
}
.carthnm_item {
padding: 0 13px 0 0;
}
.carthnm_number {
padding: 0;
color: #5ab8cb;
}
.carthnm_button a{
font-size: 12px;
color: #000;
text-decoration: none;
background-color: #b6d584;
padding: 5px 10px;
vertical-align: top;
}
.carthnm_button a:hover {
color: #fff;
text-decoration: none;
}
The cart summary is floated to the right, hence the reverse order of my
Regards
Mokijo
ps. If you float the cart to the left, reverse the order of
UPDATE: please see this post for more clarification on implementing this hack
Attached Files
Super simple cart summary in header
Theme switcher / changer - For mobile devices (work in progress)
Super simple cart summary in header
Theme switcher / changer - For mobile devices (work in progress)
Quote
Hello Soro,
Not sure what else I can add to my thread...
The CSS goes into your global.css file: yoursite.com/themes/yourtheme/css/global.css
The HTML goes into your header.tpl: yoursite.com/themes/yourtheme/header.tpl (probably above, or within, the
Re- The basket icon: Visit http://www.smashingmagazine.com and search for 'ecommerce icons' to find one that suits your site. You'll need to place your icon in the yoursite.com/themes/yourtheme/img folder. You'll also need to tweek the CSS a little.
This kind of Mod is meant for those who know their way around a CSS / HTML file, so you may want to learn the basics first. The link above is your friend!!!
Good luck
Super simple cart summary in header
Theme switcher / changer - For mobile devices (work in progress)
now i just need to work on css a little bit.
:)
Is there a clever way to make it update on the fly. And can it use the ajax fly to basket?
Thanks.




Back to top










