Hello,
I've been using opencart 3.0.2 for about 2 weeks now, but i do have a decent amount of experience in other programs/code.
So I've got a problem with adding a link to my dropdown menu in the header ("dropdown-menu pull-right") the class(line of code) is located in:
E:\Apache24\htdocs\opencart\catalog\view\theme\default\template\common\cart.twig
I've added an image of how the inspector sees the dropdown in the frontend.
Feel free to tell me if there is any other information you would need,
Milo
I've been using opencart 3.0.2 for about 2 weeks now, but i do have a decent amount of experience in other programs/code.
So I've got a problem with adding a link to my dropdown menu in the header ("dropdown-menu pull-right") the class(line of code) is located in:
E:\Apache24\htdocs\opencart\catalog\view\theme\default\template\common\cart.twig
I've added an image of how the inspector sees the dropdown in the frontend.
Feel free to tell me if there is any other information you would need,
Milo
Attachments
frontend.PNG (48.98 KiB) Viewed 615 times
So you want to have a drop down menu( like My account) after Checkout?
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Try to add
After
And you can add css for header_cart
Code: Select all
<li><div class="header_cart">{{ cart }}</div></li>
Code: Select all
<li><a href="<?php echo $checkout; ?>.......
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
hmm, tried to add the code into header.twig and some others. Did you think of any specific file i should add this into?xxvirusxx wrote: ↑Mon Apr 23, 2018 4:40 pmTry to addAfterCode: Select all
<li><div class="header_cart">{{ cart }}</div></li>
And you can add css for header_cartCode: Select all
<li><a href="<?php echo $checkout; ?>.......
Refresh ocmod, clear cache
Also you can use div
Or just one div
And add to css:
More css tune for mobile...
Also you can use div
Code: Select all
<div class="nav pull-right">
<div class="header_cart">{{ cart }}</div>
</div>
Code: Select all
<div class="header_cart">{{ cart }}</div>
Code: Select all
.header_cart {
max-width:200px;
float: right!important;
}
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Alright haven't added any text yet to the link but should i just change the div to "header_checkout" so that it redirects the user to checkout?xxvirusxx wrote: ↑Mon Apr 23, 2018 6:27 pmRefresh ocmod, clear cache
Also you can use divOr just one divCode: Select all
<div class="nav pull-right"> <div class="header_cart">{{ cart }}</div> </div>
And add to css:Code: Select all
<div class="header_cart">{{ cart }}</div>
More css tune for mobile...Code: Select all
.header_cart { max-width:200px; float: right!important; }
Attachments
frontendv.2.PNG (11.07 KiB) Viewed 552 times
Class header_cart is to be used in CSS....to make changes only for that div..
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
I've gotten the link for checkout to work, but when i hover over the checkout link a weird red line shows up. I attached a screenshot of this. It says in the inspector that it is the <a href=".." line that is the redline.
Sorry for this late answer.
Attachments
redline.PNG (9.45 KiB) Viewed 495 times
Who is online
Users browsing this forum: moreduff and 269 guests