No OC version posted.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
In the default theme, I don't notice the amount from the product review being coded. Are you using a custom theme? If so, switch to the default theme and see if the amount still displays in the product review tab.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I use non-default template, but from pavotheme, but defaul this box is displayed the same way.
https://ibb.co/h5R3pb
The point is that I do not need to have a choice at all for the product review as the 'quantity of products', because you can choose more than what it is.
https://ibb.co/h5R3pb
The point is that I do not need to have a choice at all for the product review as the 'quantity of products', because you can choose more than what it is.
This is not from the product review ... it's from the product page itself. Unless using an extension, the quantity must be set in order to add the products to the cart.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Well, I'm talking about the same product page. There is an opportunity to choose the quantity of products. I do not need this feature. in this part of the page. Just have a button 'put in a shopping cart' and so on. That would be to put only one item at the beginning. And you can change the quantity of goods at the next checkout page as it is now.
For example, this page:
https://pigu.lt/en/spintos/spinta-oliwi ... id=7549468
it is not possible to choose the quantity of goods immediately, it is possible only later.the same thing is needed for me.
https://ibb.co/gNyqnw
https://ibb.co/cSo9Eb
For example, this page:
https://pigu.lt/en/spintos/spinta-oliwi ... id=7549468
it is not possible to choose the quantity of goods immediately, it is possible only later.the same thing is needed for me.
https://ibb.co/gNyqnw
https://ibb.co/cSo9Eb
Not sure about pavotheme but default theme you should goto catalog/view/theme/YOUR_THEME/template/product/product.tpl and find
And change it to
This should hide the quantity from the product page.
You may have to goto extensions/modifications and click refresh and then clear browser cache to see the changes
Code: Select all
<div class="form-group">
<label class="control-label" for="input-quantity"><?php echo $entry_qty; ?></label>
<input type="text" name="quantity" value="<?php echo $minimum; ?>" size="2" id="input-quantity" class="form-control" />
<input type="hidden" name="product_id" value="<?php echo $product_id; ?>" />
<br />
<button type="button" id="button-cart" data-loading-text="<?php echo $text_loading; ?>" class="btn btn-primary btn-lg btn-block"><?php echo $button_cart; ?></button>
</div>
Code: Select all
<div class="form-group">
<!-- <label class="control-label" for="input-quantity"><?php echo $entry_qty; ?></label>
<input type="text" name="quantity" value="<?php echo $minimum; ?>" size="2" id="input-quantity" class="form-control" />
<input type="hidden" name="product_id" value="<?php echo $product_id; ?>" />
<br /> -->
<button type="button" id="button-cart" data-loading-text="<?php echo $text_loading; ?>" class="btn btn-primary btn-lg btn-block"><?php echo $button_cart; ?></button>
</div>
You may have to goto extensions/modifications and click refresh and then clear browser cache to see the changes
Well, the code for this file shows me somewhat differently:
Is it possible to somehow fix it with these codes?
Code: Select all
<?php echo $header; ?>
<?php
$config = $sconfig;
$themeConfig = (array)$config->get('themecontrol');
$productConfig = array(
'product_enablezoom' => 1,
'product_zoommode' => 'basic',
'product_zoomeasing' => 1,
'product_zoomlensshape' => "round",
'product_zoomlenssize' => "150",
'product_zoomgallery' => 0,
'enable_product_customtab' => 0,
'product_customtab_name' => '',
'product_customtab_content' => '',
'product_related_column' => 0,
);
$listingConfig = array(
'category_pzoom' => 1,
'quickview' => 0,
'show_swap_image' => 0,
'catalog_mode' => 1,
'layout_pinfo' => 'default'
);
$listingConfig = array_merge($listingConfig, $themeConfig );
$categoryPzoom = $listingConfig['category_pzoom'];
$quickview = $listingConfig['quickview'];
$swapimg = ($listingConfig['show_swap_image'])?'swap':'';
$productConfig = array_merge( $productConfig, $themeConfig );
$languageID = $config->get('config_language_id');
$layout_pinfo = $listingConfig['layout_pinfo'];
?>
<div class="container">
<?php require( PAVO_THEME_DIR."/template/common/config_layout.tpl" ); ?>
<?php require( PAVO_THEME_DIR."/template/common/breadcrumb.tpl" ); ?>
<div class="row"><?php if( $SPAN[0] ): ?>
<div id="sidebar-left" class="col-md-<?php echo $SPAN[0];?>">
<?php echo $column_left; ?>
</div>
<?php endif; ?>
<section id="sidebar-main" class="col-md-<?php echo $SPAN[1];?>"><div id="content"><?php echo $content_top; ?>
<?php require(modification(PAVO_THEME_DIR."/template/product/product_detail_hitech.tpl")); ?>
<?php if ($products) {
$heading_title = $text_related;
?>
<div class="box products-related"> <?php require( PAVO_THEME_DIR."/template/common/products_related.tpl" ); ?> </div>
<?php } ?>
<?php if ($tags) { ?>
<p><?php echo $text_tags; ?>
<?php for ($i = 0; $i < count($tags); $i++) { ?>
<?php if ($i < (count($tags) - 1)) { ?>
<a href="<?php echo $tags[$i]['href']; ?>"><?php echo $tags[$i]['tag']; ?></a>,
<?php } else { ?>
<a href="<?php echo $tags[$i]['href']; ?>"><?php echo $tags[$i]['tag']; ?></a>
<?php } ?>
<?php } ?>
</p>
<?php } ?>
<?php echo $content_bottom; ?></div>
</section>
<?php if( $SPAN[2] ): ?>
<div id="sidebar-right" class="col-md-<?php echo $SPAN[2];?>">
<?php echo $column_right; ?>
</div>
<?php endif; ?></div>
</div>
<script type="text/javascript"><!--
$('select[name=\'recurring_id\'], input[name="quantity"]').change(function(){
$.ajax({
url: 'index.php?route=product/product/getRecurringDescription',
type: 'post',
data: $('input[name=\'product_id\'], input[name=\'quantity\'], select[name=\'recurring_id\']'),
dataType: 'json',
beforeSend: function() {
$('#recurring-description').html('');
},
success: function(json) {
$('.alert, .text-danger').remove();
if (json['success']) {
$('#recurring-description').html(json['success']);
}
}
});
});
//--></script>
<script type="text/javascript"><!--
$('#button-cart').on('click', function() {
$.ajax({
url: 'index.php?route=checkout/cart/add',
type: 'post',
data: $('#product input[type=\'text\'], #product input[type=\'hidden\'], #product input[type=\'radio\']:checked, #product input[type=\'checkbox\']:checked, #product select, #product textarea'),
dataType: 'json',
beforeSend: function() {
$('#button-cart').button('loading');
},
complete: function() {
$('#button-cart').button('reset');
},
success: function(json) {
$('.alert, .text-danger').remove();
$('.form-group').removeClass('has-error');
if (json['error']) {
if (json['error']['option']) {
for (i in json['error']['option']) {
var element = $('#input-option' + i.replace('_', '-'));
if (element.parent().hasClass('input-group')) {
element.parent().after('<div class="text-danger">' + json['error']['option'][i] + '</div>');
} else {
element.after('<div class="text-danger">' + json['error']['option'][i] + '</div>');
}
}
}
if (json['error']['recurring']) {
$('select[name=\'recurring_id\']').after('<div class="text-danger">' + json['error']['recurring'] + '</div>');
}
// Highlight any found errors
$('.text-danger').parent().addClass('has-error');
}
if (json['success']) {
$('#notification').html('<div class="alert alert-success">' + json['success'] + '<button type="button" class="close" data-dismiss="alert">×</button></div>');
$('#cart-total').html(json['total']);
$('html, body').animate({ scrollTop: 0 }, 'slow');
$('#cart > ul').load('index.php?route=common/cart/info ul li');
}
}
});
});
//--></script>
<script type="text/javascript"><!--
$('.date').datetimepicker({
pickTime: false
});
$('.datetime').datetimepicker({
pickDate: true,
pickTime: true
});
$('.time').datetimepicker({
pickDate: false
});
$('button[id^=\'button-upload\']').on('click', function() {
var node = this;
$('#form-upload').remove();
$('body').prepend('<form enctype="multipart/form-data" id="form-upload" style="display: none;"><input type="file" name="file" /></form>');
$('#form-upload input[name=\'file\']').trigger('click');
$('#form-upload input[name=\'file\']').on('change', function() {
$.ajax({
url: 'index.php?route=tool/upload',
type: 'post',
dataType: 'json',
data: new FormData($(this).parent()[0]),
cache: false,
contentType: false,
processData: false,
beforeSend: function() {
$(node).button('loading');
},
complete: function() {
$(node).button('reset');
},
success: function(json) {
$('.text-danger').remove();
if (json['error']) {
$(node).parent().find('input').after('<div class="text-danger">' + json['error'] + '</div>');
}
if (json['success']) {
alert(json['success']);
$(node).parent().find('input').attr('value', json['code']);
}
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
});
});
//--></script>
<script type="text/javascript"><!--
$('#review').delegate('.pagination a', 'click', function(e) {
e.preventDefault();
$('#review').fadeOut('slow');
$('#review').load(this.href);
$('#review').fadeIn('slow');
});
$('#review').load('index.php?route=product/product/review&product_id=<?php echo $product_id; ?>');
$('#button-review').on('click', function() {
$.ajax({
url: 'index.php?route=product/product/write&product_id=<?php echo $product_id; ?>',
type: 'post',
dataType: 'json',
data: $("#form-review").serialize(),
beforeSend: function() {
$('#button-review').button('loading');
},
complete: function() {
$('#button-review').button('reset');
},
success: function(json) {
$('.alert-success, .alert-danger').remove();
if (json['error']) {
$('#review-form').prepend('<div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i> ' + json['error'] + '</div>');
}
if (json['success']) {
$('#review-form').prepend('<div class="alert alert-success"><i class="fa fa-check-circle"></i> ' + json['success'] + '</div>');
$('input[name=\'name\']').val('');
$('textarea[name=\'text\']').val('');
$('input[name=\'rating\']:checked').prop('checked', false);
}
}
});
});
$(document).ready(function() {
$('.thumbnail a').click(
function(){
$.magnificPopup.open({
items: {
src: $('img',this).attr('src')
},
type: 'image'
});
return false;
}
);
});
//--></script>
<?php if( $productConfig['product_enablezoom'] ) { ?>
<script type="text/javascript" src=" catalog/view/javascript/jquery/elevatezoom/elevatezoom-min.js"></script>
<script type="text/javascript">
if( $(window).width() >= 992 ) {
var zoomCollection = '<?php echo $productConfig["product_zoomgallery"]=="basic"?".product-image-zoom":"#image";?>';
$( zoomCollection ).elevateZoom({
<?php if( $productConfig['product_zoommode'] != 'basic' ) { ?>
zoomType : "<?php echo $productConfig['product_zoommode'];?>",
<?php } ?>
lensShape : "<?php echo $productConfig['product_zoomlensshape'];?>",
lensSize : <?php echo (int)$productConfig['product_zoomlenssize'];?>,
easing:true,
gallery:'image-additional-carousel',
cursor: 'pointer',
galleryActiveClass: "active"
});
}
</script>
<?php } else { ?>
<script type="text/javascript">
$(document).ready(function() {
$('thumbnails').magnificPopup({
type:'image',
delegate:{
enable:true
}
});
});
</script>
<?php } ?>
<?php echo $footer; ?>
This topic should rather be created in the Extensions Support section of the forum. Not as a general support question since this inquiry is rather about an extension.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: No registered users and 222 guests