Zeta Osclass Theme v1.3.8 Fixed bug related

africaseller

New member
XNullUser
Joined
Aug 30, 2025
Messages
2
Reaction score
6
Points
1
Location
lagos
NullCash
46
Zeta Osclass Theme v 1.3.8
Fixed bug related to category setting, when price was disabled for category, price box was not hidden properly.
Post automatically merged:

Fixed bug related to category setting, when price was disabled for category, price box was not hidden properly.
 

Attachments

  • 212_zetaosclasstheme_v138_20250902_3KTiJ3TmyP.zip
    2.3 MB · Views: 4
  • 212_zetaosclasstheme_v138_20250902_3KTiJ3TmyP.zip
    2.3 MB · Views: 9

Atlash

New member
XNullUser
Joined
Aug 22, 2025
Messages
24
Reaction score
0
Points
1
Location
Bg
NullCash
2
Zeta Osclass Theme v 1.3.8
Fixed bug related to category setting, when price was disabled for category, price box was not hidden properly.
Post automatically merged:

Fixed bug related to category setting, when price was disabled for category, price box was not hidden properly.
Hey thanks for sharing!
Do you know in which file and on which line the bug was found?
Thanks for advice
 

canismano

Active member
XNullUser
Joined
Nov 16, 2024
Messages
116
Reaction score
26
Points
28
Location
id
NullCash
200
Hey thanks for sharing!
Do you know in which file and on which line the bug was found?
Thanks for advice


Compared to the previous version 1.3.7 with 1.3.8, you'll find several updated files, including: style.css, global.js, user-login.php, user-register.php and especially item-post.php (category setting, when price was disabled for category, price box was not hidden properly)

In item-post.php on line 192, the price-box div has been added to:

<div class="price-box">
<label for="price"><?php _e('Price', 'zeta'); ?> <span class="req">*</span></label>

<div class="enter<?php if($price_type == 'FREE' || $price_type == 'CHECK') { ?> disable<?php } ?>">
<div class="input-box">
<?php ItemForm::price_input_text(); ?>
<?php echo zet_simple_currency(); ?>
</div>

<div class="or"><span><?php _e('or', 'zeta'); ?></span></div>
</div>

<div class="selection">
<a href="#" data-price="0" class="btn btn-secondary<?php if($price_type == 'FREE') { ?> active<?php } ?>" title="<?php echo osc_esc_html(__('Item is offered for free', 'zeta')); ?>"><i class="fas fa-hand-holding-usd"></i> <?php _e('Items for free', 'zeta'); ?></a>
<a href="#" data-price="" class="btn btn-secondary<?php if($price_type == 'CHECK') { ?> active<?php } ?>" title="<?php echo osc_esc_html(__('Based on agreement with seller', 'zeta')); ?>"><i class="far fa-handshake"></i> <?php _e('Check with seller', 'zeta'); ?></a>
</div>
</div>

and line 476 old:

if(catId > 0) {
if(catPriceEnabled[catId] == 1) {
$('.item-publish section.s4').show(0).removeClass('hidden');
} else {
$('.item-publish section.s4').hide(0).addClass('hidden');
$('#price').val('');
}

new:

if(catId > 0) {
if(catPriceEnabled[catId] == 1) {
$('.item-publish .price-box').show(0).removeClass('hidden');
} else {
$('.item-publish .price-box').hide(0).addClass('hidden');
$('#price').val('');
}
 

aikis

Active member
Elite
XNullUser
Joined
Oct 9, 2021
Messages
137
Reaction score
115
Points
43
Website
autopmr.com
NullCash
107
There was a bug in 1.37 and it was repeated in 1.38 I am giving the corrected file - Parse error: syntax error, unexpected token "public", expecting "case" or "default" or "}" in C:\OSPanel\domains\ceaiton\oc-includes\osclass\controller\user.php on line 412
 

Attachments

  • user.zip
    5.3 KB · Views: 0
Top