"Add to Cart" button is already located at the specified position in the default theme.
View all extensions | Request custom work | Pricing | Contact Me
thanks for you reply, I use always the standard template and make a copy and rename it."Add to Cart" button is already located at the specified position in the default theme.
But on mobile phones you have to scroll very long if the description is long.
I found this java script but did not work
Code: Select all
<script>
$(function(){
// We create a function
function moveCart(){
// If user screen is smaller than 768 pixel
if($(window).width() < 768 ){
/*
select cart area including cart button, options, product title and ...
if you want to only move cart button use '#product' instead of '#content > .row > .col-sm-4'
*/
$('#content > .row > .col-sm-4').removeClass('col-sm-4').addClass('moved-div');
// now move it
$('.moved-div').insertAfter('.thumbnails');
} else {
/*
if user resized his/her screen width and now screen is wider than 767 pixel and we moved cart area before, move it to its original place.
*/
if($('.moved-div').length){
$('.moved-div').insertAfter('#content > .row > .col-sm-8').addClass('col-sm-4').removeClass('moved-div');
}
}
}
// run function
moveCart();
$(window).resize(function(){
// run function again if user resized screen
moveCart();
})
});
</script>
The issue seems to be related to your theme, and unfortunately, it cannot be fixed without reviewing the source code.
View all extensions | Request custom work | Pricing | Contact Me
You can always create a new service request in the Commercial Support section of the forum to have this issue fixed as a custom job.k2tec wrote: ↑Thu Jul 27, 2023 6:04 pmthanks for you reply, I use always the standard template and make a copy and rename it."Add to Cart" button is already located at the specified position in the default theme.
But on mobile phones you have to scroll very long if the description is long.
I found this java script but did not workCode: Select all
<script> $(function(){ // We create a function function moveCart(){ // If user screen is smaller than 768 pixel if($(window).width() < 768 ){ /* select cart area including cart button, options, product title and ... if you want to only move cart button use '#product' instead of '#content > .row > .col-sm-4' */ $('#content > .row > .col-sm-4').removeClass('col-sm-4').addClass('moved-div'); // now move it $('.moved-div').insertAfter('.thumbnails'); } else { /* if user resized his/her screen width and now screen is wider than 767 pixel and we moved cart area before, move it to its original place. */ if($('.moved-div').length){ $('.moved-div').insertAfter('#content > .row > .col-sm-8').addClass('col-sm-4').removeClass('moved-div'); } } } // run function moveCart(); $(window).resize(function(){ // run function again if user resized screen moveCart(); }) }); </script>
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Thanks straightlight for your reply.
If the support forum don't have a answer to this I will. But I hope that some people still share there knowledge on the forum.
SohBH
If the support forum don't have a answer to this I will. But I hope that some people still share there knowledge on the forum.
SohBH
I think you don't read my post. this is a standard themeThe issue seems to be related to your theme, and unfortunately, it cannot be fixed without reviewing the source code.
You can move the tab content to the bottom
<ul class="nav nav-tabs">
<div class="tab-content">
<ul class="nav nav-tabs">
<div class="tab-content">
View all extensions | Request custom work | Pricing | Contact Me
Who is online
Users browsing this forum: Majestic-12 [Bot] and 56 guests