Fixed: Errors in console and notices in Admin Products which occurs when admin tries to save the price or seo tab without the room type infomrmation

This commit is contained in:
vishalsingh.qlo325
2024-10-08 15:16:10 +05:30
parent 8714b918f6
commit c2945883b6
2 changed files with 2 additions and 2 deletions

View File

@@ -265,7 +265,7 @@ $(document).ready(function () {
</div>
<!-- by webkul -->
{if $WK_ALLOW_ADVANCED_PAYMENT}
{if isset($WK_ALLOW_ADVANCED_PAYMENT) && $WK_ALLOW_ADVANCED_PAYMENT}
<div class="form-group">
<div class="col-lg-1"><span class="pull-right">{include file="controllers/products/multishop/checkbox.tpl" field="price" type="price"}</span></div>
<label class="control-label col-sm-2">

View File

@@ -304,7 +304,7 @@ product_tabs['Seo'] = new function(){
var self = this;
this.onReady = function() {
if ($('#link_rewrite_'+id_lang_default).length)
if ($('#link_rewrite_'+id_lang_default).length && id_product)
if ($('#link_rewrite_'+id_lang_default).val().replace(/^\s+|\s+$/gm,'') == '') {
updateFriendlyURLByName();
}