| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Minicart for 4.2 | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Minicart for 4.2
I know this has been a nice mod used by lots of people for 4.1.10 but I haven't seen it for 4.2 yet - thought I'd go ahead and mess around and see if I couldn't get it working.
For an example of what this looks like, you can go to (live site - please no test orders!) piptp.com and you'll notice the shopping cart on the upper right hand side. I'm still developing the 4.2 site, so you'll notice that one is all tables based. Be patient with me - I'm trying to remember all the changes I made over the last 4+ hours and I might miss some. Let me know if you're having problems getting it to work and I'll see what I can to help you out. First off, make a new file named minicart.tpl in your skin1/customer folder. Inside that put the following: Code:
Second, make the two new files in your skin1/customer folder you just referenced - mc_auth.tpl and mc_authbox.tpl. mc_auth.tpl started off as a copy of auth.tpl but mine now looks like this: Code:
mc_authbox.tpl code: Code:
To avoid stepping on the toes of the existing minicart class from your main.css file, I renamed mine minishopcart. Add this code to your css file: Code:
If you have a phone number (#header .phones) listed, the minishopcart will overlay over it. You can fix it (if you want) by modifying your existing phone class with the following: Code:
Basically, I left it absolutely positioned and move it over so that it wasn't covered by the new minishopcart class. Last step is to call it from your head: Code:
That should be all...again, if it doesn't work for you, let me know and I'll try to help out. Looks like x-cart left intact the minicart programming because as soon as I added something to my cart, it showed up in my new minishopcart. Hope you enjoy this - have fun hacking it to fit your site! Please let me know if you do use it - I learn by example and would love to see what you do with it.
__________________
--- 4.1.10 |
|||||||
|
#2
|
|||||||
|
|||||||
Re: Minicart for 4.2
This works great! I had to add an {else} statement for incorrect logins, etc. Great mod.
__________________
hollaratbear Xcart Gold 4.2.1 Newbie |
|||||||
|
|||
X-Cart forums © 2001-2020
|