Answer the question
In order to leave comments, you need to log in
Is it possible to raise the pop-up shopping cart on the screen in OpenCart?
The question is this: when ordering from 3 items or more, the pop-up shopping cart on the screen sits too low. How to raise it? I noticed that the position of the basket depends on the screen size, and is most likely set by js. But I can not find what specifically affects its position. Help who knows?
The project can be viewed here
Answer the question
In order to leave comments, you need to log in
Of course there is a possibility, it uses a colorbox with a top padding setting of 45% .
Script /catalog/view/theme/journal2/js/journal.js.
The problem is on line 835.
$(".ajaxcart").colorbox({
onLoad : function() { $(this).colorbox.resize(); },
onComplete : function() { start_show(); $(this).colorbox.resize(); },
fastIframe: false,
scrolling: false,
initialWidth: false,
innerWidth: false,
maxWidth: false,
height: false,
initialHeight: false,
innerHeight: false,
//returnFocus: false,
top: '45%' <- убрать
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question