Jump to content

[SOLVED] Move Block Cart into Block TopMenu


Recommended Posts

Hello itiago50,

 

According to your number of posts you are new on the forum, so welcome :).

 

However, you didn't post in the right section, so I moved your topic into the "Configuring & using PrestaShop" section. I invite you to read our forum rules, they will guide you for your futur posts :).

Link to comment
Share on other sites

okay, so go to modules > positions and search for modules list named: "displayTop"

search there (on dispalyTop modules list) for cart module and move it right after the block top menu module.

 

then:

 

1) open blocktopmenu.tpl file located in: themes/YOUR_THEME/modules/blocktopmenu/blocktopmenu.tpl and remove this code:

		</ul>
	</div>

from lines 19.20

 

2) then open: /themes/YOUR_THEME/modules/blockcart/bockcart.tpl and at the very end of the file add:

                        </li>
		</ul>
	</div>

and at the begining of the file add:

<li>

now recompile theme :-)

Link to comment
Share on other sites

hi

 

amazing!! you are the best. it works. :)

but the shopping cart stays on the second line of topmenu and at the center of the row. i tryed to change the position to the end of the row on right, but when i click on 'add to cart' the popup window with the confirmation added does not show correctly.

Link to comment
Share on other sites

hi.

Thank you for your patience in helping me.
the website is not yet online. in fact this is the last thing I have to arrange to be all ok in Store Launch on 1 June.
i tryed to add an image but is not working.

 

i will try to see on css file if there is any way tu put the shopping cart on right.

my knowledge is basic but can be a way to give :s

i will post again with the result.

Link to comment
Share on other sites

thank you! :)

 

now go to blockcart.css file

change:

#header .shopping_cart {
position: relative;
float: right;
padding-top: 50px;
}

to:

#header .shopping_cart {
position:absolute;
top:7px;
right:0px;
}

and also:

 

remember that you added <Li> element at the beginign of module .tpl file ?(blockcart.tpl)

change it to:

 

<li style="float:right;">


effect:
yTw6Y5s.png

Link to comment
Share on other sites

you're welcome :-)

thank you for your patience 

im gouing to mark topic as solved

 

you can also mark topics as solved.

it's not necessary but it's good practice here :-)

 

 

[sOLVED] Topic
If, after posting a topic, you find a solution to your problem, please indicate it in your post and describe the solution.
Furthermore if you are the author of the topic for which a solution has been found, please edit your topic title to mark it as [sOLVED].

To mark a topic as [solved] :
- Edit the first post of your topic by clicking on the "Edit" button,
- Click on the "Use full editor" button,
- Add the "[solved]" string at the beginning of your topic title and click on the "Submit Modified Post" button.
Link to comment
Share on other sites

  • 3 months later...

Hello vekia. I did everythink as you explain  in this topic, and in front office its look ok, but only one problem: when i pressing the button Add to cart ,i have a popup window to chose what to do next, did i want to checkout or continue shopping, and that window is not in middle of screen, but in right side, and only half of them is visible. And its goes like that then i add <li style="float:right;"> .How can i bring that popup window back to middle of screen? Thanks for help. 

Edited by overlord (see edit history)
Link to comment
Share on other sites

  • 3 months later...

Hello vekia. I did everythink as you explain  in this topic, and in front office its look ok, but only one problem: when i pressing the button Add to cart ,i have a popup window to chose what to do next, did i want to checkout or continue shopping, and that window is not in middle of screen, but in right side, and only half of them is visible. And its goes like that then i add <li style="float:right;"> .How can i bring that popup window back to middle of screen? Thanks for help. 

even m facing this problem

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...