Post by johnp » Sat Nov 20, 2021 10:58 pm

Hi all. Can anyone help me out with the code below please. It works on PHP 5.6 but I need it to work on PHP 7.4. Many thanks in advance. :)

Code: Select all

<?php if (!$seller['seller_id']) { ?>

Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK

Post by JNeuhoff » Sun Nov 21, 2021 12:32 am

I don't see any reason why it shouldn't work in PHP 7.4.

Having said that, you need to provide some more details in order for someone to be able to help you here. Your PHP code doesn't even exist anywhere in a standard OpenCart 1.5.6.4. So it looks like you are using an extension.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by johnp » Sun Nov 21, 2021 12:58 am

Thanks for the reply. I am indeed using an extension. It's a multiseller extension from Ernie's Github repository. Here's the code in context:

Code: Select all

<?php if (!$seller['seller_id']) { ?>
			<select name="customer[customer_id]">
				<optgroup label="<?php echo $ms_catalog_sellerinfo_customer_new; ?>">
				<option value="0"><?php echo $ms_catalog_sellerinfo_customer_create_new; ?></option>
				</optgroup>
				<?php if (isset($customers)) { ?>
				<optgroup label="<?php echo $ms_catalog_sellerinfo_customer_existing; ?>">
				<?php foreach ($customers as $c) { ?>
				<option value="<?php echo $c['c.customer_id']; ?>"><?php echo $c['c.name']; ?></option>
				<?php } ?>
				</optgroup>
				<?php } ?>
https://github.com/IP-CAM/Multi-Merch-M ... -v.1.5.6.x
Last edited by johnp on Sun Nov 21, 2021 3:26 am, edited 1 time in total.

Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK

Post by JNeuhoff » Sun Nov 21, 2021 1:01 am

You could try this:

Code: Select all

<?php if (!empty($seller['seller_id'])) { ?>

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by johnp » Sun Nov 21, 2021 1:08 am

Many thanks. I'll give it a try. :)

Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK

Post by johnp » Sun Nov 21, 2021 1:12 am

Thanks. That worked but there's other errors showing. I don't think this one is worth spending too much time on. Shame as the extension was pretty decent.

Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK

Post by xxvirusxx » Sun Nov 21, 2021 1:59 am

Next error/warning is?

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by johnp » Sun Nov 21, 2021 3:24 am

Code: Select all

2021-11-20 19:22:36 - PHP Notice:  Trying to access array offset on value of type bool in /home/qualit10/public_html/cleanmypatio.co.uk/oc15/admin/view/template/multiseller/seller-form.tpl on line 15
2021-11-20 19:22:36 - PHP Notice:  Trying to access array offset on value of type bool in /home/qualit10/public_html/cleanmypatio.co.uk/oc15/admin/view/template/multiseller/seller-form.tpl on line 26
2021-11-20 19:22:36 - PHP Notice:  Trying to access array offset on value of type bool in /home/qualit10/public_html/cleanmypatio.co.uk/oc15/admin/view/template/multiseller/seller-form.tpl on line 90
2021-11-20 19:22:36 - PHP Notice:  Trying to access array offset on value of type bool in /home/qualit10/public_html/cleanmypatio.co.uk/oc15/admin/view/template/multiseller/seller-form.tpl on line 98
2021-11-20 19:22:36 - PHP Notice:  Trying to access array offset on value of type bool in /home/qualit10/public_html/cleanmypatio.co.uk/oc15/admin/view/template/multiseller/seller-form.tpl on line 106
2021-11-20 19:22:36 - PHP Notice:  Trying to access array offset on value of type bool in /home/qualit10/public_html/cleanmypatio.co.uk/oc15/admin/view/template/multiseller/seller-form.tpl on line 119
2021-11-20 19:22:36 - PHP Notice:  Trying to access array offset on value of type bool in /home/qualit10/public_html/cleanmypatio.co.uk/oc15/admin/view/template/multiseller/seller-form.tpl on line 120
2021-11-20 19:22:36 - PHP Notice:  Trying to access array offset on value of type bool in /home/qualit10/public_html/cleanmypatio.co.uk/oc15/admin/view/template/multiseller/seller-form.tpl on line 128
2021-11-20 19:22:36 - PHP Notice:  Trying to access array offset on value of type bool in /home/qualit10/public_html/cleanmypatio.co.uk/oc15/admin/view/template/multiseller/seller-form.tpl on line 134
2021-11-20 19:22:36 - PHP Notice:  Trying to access array offset on value of type bool in /home/qualit10/public_html/cleanmypatio.co.uk/oc15/admin/view/template/multiseller/seller-form.tpl on line 147

Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK

Post by johnp » Sun Nov 21, 2021 3:24 am

Plus a load more that won't fit in one message. :)

Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK

Post by johnp » Sun Nov 21, 2021 3:26 am

Here's the whole relevant file code.

Code: Select all

<?php echo $header; ?>
<div id="content">
	<div class="breadcrumb">
	<?php foreach ($breadcrumbs as $breadcrumb) { ?>
	<?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
	<?php } ?>
	</div>
	<div class="box">
	<div class="heading">
		<h1><img src="view/image/multiseller/ms-profile.png" alt="" /> <?php echo isset($seller['seller_id']) ? $ms_catalog_sellerinfo_heading : $ms_catalog_sellers_newseller; ?></h1>
		<div class="buttons"><a id="ms-submit-button" class="button"><?php echo $button_save; ?></a></div>
	</div>
	<div class="content">
	<form id="ms-sellerinfo">
		<input type="hidden" id="seller_id" name="seller[seller_id]" value="<?php echo $seller['seller_id']; ?>" />
		<div id="tabs" class="htabs">
			<a href="#tab-general"><?php echo $tab_general; ?></a>
			<a href="#tab-commission"><?php echo $ms_commissions_fees; ?></a>
		</div>
		<div id="tab-general">		
		<table class="ms-product form" id="ms-sellerinfo">
		<tr><td colspan="2"><h3><?php echo $ms_catalog_sellerinfo_customer_data; ?></h3></td></tr>
		<tr>
			<td><span class="required">*</span> <?php echo $ms_catalog_sellerinfo_customer; ?></td>
			<td>
			<?php if (!$seller['seller_id']) { ?>
			<select name="customer[customer_id]">
				<optgroup label="<?php echo $ms_catalog_sellerinfo_customer_new; ?>">
				<option value="0"><?php echo $ms_catalog_sellerinfo_customer_create_new; ?></option>
				</optgroup>
				<?php if (isset($customers)) { ?>
				<optgroup label="<?php echo $ms_catalog_sellerinfo_customer_existing; ?>">
				<?php foreach ($customers as $c) { ?>
				<option value="<?php echo $c['c.customer_id']; ?>"><?php echo $c['c.name']; ?></option>
				<?php } ?>
				</optgroup>
				<?php } ?>
			</select>
			<?php } else { ?>
				<a href="<?php echo $this->url->link('sale/customer/update', 'token=' . $this->session->data['token'] . '&customer_id=' . $seller['seller_id'], 'SSL'); ?>"><?php echo $seller['name']; ?></a>
			<?php } ?>
			</td>
		</tr>

		<tr>
			<td><?php echo $ms_catalog_sellerinfo_customer_firstname; ?></td>
			<td>
				<input type="text" name="customer[firstname]" value="" />
			</td>
		</tr>

		<tr>
			<td><?php echo $ms_catalog_sellerinfo_customer_lastname; ?></td>
			<td>
				<input type="text" name="customer[lastname]" value="" />
			</td>
		</tr>

		<tr>
			<td><?php echo $ms_catalog_sellerinfo_customer_email; ?></td>
			<td>
				<input type="text" name="customer[email]" value="" />
			</td>
		</tr>

		<tr>
			<td><?php echo $ms_catalog_sellerinfo_customer_password; ?></td>
			<td>
				<input type="password" name="customer[password]" value="" />
			</td>
		</tr>

		<tr>
			<td><?php echo $ms_catalog_sellerinfo_customer_password_confirm; ?></td>
			<td>
				<input type="password" name="customer[password_confirm]" value="" />
			</td>
		</tr>

		<tr><td colspan="2"><h3><?php echo $ms_catalog_sellerinfo_seller_data; ?></h3></td></tr>
		<tr>
			<?php if (!empty($seller['ms.nickname'])) { ?>
				<td><?php echo $ms_catalog_sellerinfo_nickname; ?></td>
				<td style="padding-top: 5px">
					<b><?php echo $seller['ms.nickname']; ?></b>
				</td>			
			<?php } else { ?>
				<td><span class="required">*</span> <?php echo $ms_catalog_sellerinfo_nickname; ?></td>
				<td>
					<input type="text" name="seller[nickname]" value="<?php echo $seller['ms.nickname']; ?>" />
				</td>
				<?php } ?>
		</tr>

		<tr>
			<td><?php echo $ms_catalog_sellerinfo_keyword; ?></td>
			<td>
				<input type="text" name="seller[keyword]" value="<?php echo $seller['keyword']; ?>" />
			</td>
		</tr>

		<tr>
			<td><?php echo $ms_catalog_sellerinfo_sellergroup; ?></td>
			<td><select name="seller[seller_group]">
				<?php foreach ($seller_groups as $group) { ?>
				<option value="<?php echo $group['seller_group_id']; ?>" <?php if ($seller['ms.seller_group'] == $group['seller_group_id']) { ?>selected="selected"<?php } ?>><?php echo $group['name']; ?></option>
				<?php } ?>
			</select>
			</td>
		</tr>
		
		<tr>
			<td>
				<span><?php echo $ms_catalog_sellerinfo_product_validation; ?></span>
				<span class="help"><?php echo $ms_catalog_sellerinfo_product_validation_note; ?></span>
			</td>
			<td>
					<select name="seller[product_validation]">
						<option value="1" <?php if($seller['ms.product_validation'] == 1) { ?> selected="selected" <?php } ?>><?php echo $ms_config_product_validation_none; ?></option>
					<option value="2" <?php if($seller['ms.product_validation'] == 2) { ?> selected="selected" <?php } ?>><?php echo $ms_config_product_validation_approval; ?></option>
				</select>
			</td>
		</tr>		
		
		<tr>
			<td><?php echo $ms_catalog_sellerinfo_description; ?></td>
			<td>
				<textarea name="seller[description]"><?php echo $seller['ms.description']; ?></textarea>
			</td>
		</tr>
		<tr>
			<td><?php echo $ms_catalog_sellerinfo_company; ?></td>
			<td>
				<input type="text" name="seller[company]" value="<?php echo $seller['ms.company']; ?>" />
			</td>
		</tr>
		<tr>
			<td><?php echo $ms_catalog_sellerinfo_country; ?></td>
			<td><select name="seller[country]">
					<?php if (1==1) { ?>
				<option value="" selected="selected"><?php echo $ms_catalog_sellerinfo_country_dont_display; ?></option>
				<?php } else { ?>
				<option value=""><?php echo $ms_catalog_sellerinfo_country_dont_display; ?></option>
				<?php } ?>
				
				<?php foreach ($countries as $country) { ?>
				<?php if ($seller['ms.country_id'] == $country['country_id']) { ?>
				<option value="<?php echo $country['country_id']; ?>" selected="selected"><?php echo $country['name']; ?></option>
				<?php } else { ?>
				<option value="<?php echo $country['country_id']; ?>"><?php echo $country['name']; ?></option>
				<?php } ?>
				<?php } ?>
			</select>
			</td>
		</tr>
		
		<tr>
			<td><?php echo $ms_catalog_sellerinfo_zone; ?></td>
			<td>
				<select name="seller[zone]">
				</select>
				<p class="ms-note"><?php echo $ms_catalog_sellerinfo_zone_note; ?></p>
			</td>
		</tr>
		
		<tr>
			<td><?php echo $ms_catalog_sellerinfo_paypal; ?></td>
			<td>
				<input type="text" name="seller[paypal]" value="<?php echo $seller['ms.paypal']; ?>" />
			</td>
		</tr>
				
		<tr>
			<td><?php echo $ms_catalog_sellerinfo_avatar; ?></td>
			<td>
				<div id="sellerinfo_avatar_files">
					<?php if (!empty($seller['avatar'])) { ?>
					<input type="hidden" name="seller[avatar_name]" value="<?php echo $seller['avatar']['name']; ?>" />
					<img src="<?php echo $seller['avatar']['thumb']; ?>" />
					<?php } ?>
				</div>
			</td>
		</tr>
		
		<?php $msSeller = new ReflectionClass('MsSeller'); ?>
		<tr>
			<td><?php echo $ms_status; ?></td>
			<td>
				<select name="seller[status]">
				<?php foreach ($msSeller->getConstants() as $cname => $cval) { ?>
					<?php if (strpos($cname, 'STATUS_') !== FALSE) { ?>
						<option value="<?php echo $cval; ?>" <?php if ($seller['ms.seller_status'] == $cval) { ?>selected="selected"<?php } ?>><?php echo $this->language->get('ms_seller_status_' . $cval); ?></option>
					<?php } ?>
				<?php } ?>
			</select>
			</td>
		</tr>

		<tr>
			<td>
				<span><?php echo $ms_catalog_sellerinfo_notify; ?></span>
			</td>
			<td>
			<input type="radio" name="seller[notify]" value="1" />
			<?php echo $text_yes; ?>
			<input type="radio" name="seller[notify]" value="0" checked="checked" />
			<?php echo $text_no; ?>
			</td>
		</tr>
		
		<tr>
			<td>
				<span><?php echo $ms_catalog_sellerinfo_message; ?></span>
				<span class="help"><?php echo $ms_catalog_sellerinfo_message_note; ?></span>
			</td>
			
			<td>
				<textarea name="seller[message]" disabled="disabled"></textarea>
			</td>
		</tr>
		</table>
		</div>
	
		<div id="tab-commission">
		<table class="form">
		<input type="hidden" name="seller[commission_id]" value="<?php echo $seller['commission_id']; ?>" />
		<?php if (isset($seller['actual_fees'])) { ?>
		<tr>
			<td><?php echo $ms_commission_actual; ?></td>
			<td><?php echo $seller['actual_fees']; ?></td>
		</tr>
		<?php } ?>
		
		<tr>
			<td><?php echo $this->language->get('ms_commission_' . MsCommission::RATE_SALE); ?></td>
			<td>
				<input type="hidden" name="seller[commission][<?php echo MsCommission::RATE_SALE; ?>][rate_id]" value="<?php echo isset($seller['commission_rates'][MsCommission::RATE_SALE]['rate_id']) ? $seller['commission_rates'][MsCommission::RATE_SALE]['rate_id'] : ''; ?>" />
				<input type="hidden" name="seller[commission][<?php echo MsCommission::RATE_SALE; ?>][rate_type]" value="<?php echo MsCommission::RATE_SALE; ?>" />
				<?php echo $this->currency->getSymbolLeft(); ?>
				<input type="text" name="seller[commission][<?php echo MsCommission::RATE_SALE; ?>][flat]" value="<?php echo isset($seller['commission_rates'][MsCommission::RATE_SALE]['flat']) ? $this->currency->format($seller['commission_rates'][MsCommission::RATE_SALE]['flat'], $this->config->get('config_currency'), '', FALSE) : '' ?>" size="3"/>
				<?php echo $this->currency->getSymbolRight(); ?>
				+<input type="text" name="seller[commission][<?php echo MsCommission::RATE_SALE; ?>][percent]" value="<?php echo isset($seller['commission_rates'][MsCommission::RATE_SALE]['percent']) ? $seller['commission_rates'][MsCommission::RATE_SALE]['percent'] : ''; ?>" size="3"/>%
			</td>
		</tr>

		<tr>
			<td><?php echo $this->language->get('ms_commission_' . MsCommission::RATE_LISTING); ?></td>
			<td>
				<input type="hidden" name="seller[commission][<?php echo MsCommission::RATE_LISTING; ?>][rate_id]" value="<?php echo isset($seller['commission_rates'][MsCommission::RATE_LISTING]['rate_id']) ? $seller['commission_rates'][MsCommission::RATE_LISTING]['rate_id'] : ''; ?>" />
				<input type="hidden" name="seller[commission][<?php echo MsCommission::RATE_LISTING; ?>][rate_type]" value="<?php echo MsCommission::RATE_LISTING; ?>" /> 
				<?php echo $this->currency->getSymbolLeft(); ?>
				<input type="text" name="seller[commission][<?php echo MsCommission::RATE_LISTING; ?>][flat]" value="<?php echo isset($seller['commission_rates'][MsCommission::RATE_LISTING]['flat']) ? $this->currency->format($seller['commission_rates'][MsCommission::RATE_LISTING]['flat'], $this->config->get('config_currency'), '', FALSE) : '' ?>" size="3"/>
				<?php echo $this->currency->getSymbolRight(); ?>
				+<input type="text" name="seller[commission][<?php echo MsCommission::RATE_LISTING; ?>][percent]" value="<?php echo isset($seller['commission_rates'][MsCommission::RATE_LISTING]['percent']) ? $seller['commission_rates'][MsCommission::RATE_LISTING]['percent'] : ''; ?>" size="3"/>%
				<select name="seller[commission][<?php echo MsCommission::RATE_LISTING; ?>][payment_method]">
					<optgroup label="<?php echo $ms_payment_method; ?>">
						<option value="0" <?php if(isset($seller['commission_rates'][MsCommission::RATE_LISTING]) && $seller['commission_rates'][MsCommission::RATE_LISTING]['payment_method'] == 0) { ?> selected="selected" <?php } ?>><?php echo $ms_payment_method_inherit; ?></option>
						<option value="<?php echo MsPayment::METHOD_BALANCE; ?>" <?php if(isset($seller['commission_rates'][MsCommission::RATE_LISTING]) && $seller['commission_rates'][MsCommission::RATE_LISTING]['payment_method'] == MsPayment::METHOD_BALANCE) { ?> selected="selected" <?php } ?>><?php echo $ms_payment_method_balance; ?></option>
						<option value="<?php echo MsPayment::METHOD_PAYPAL; ?>" <?php if(isset($seller['commission_rates'][MsCommission::RATE_LISTING]) && $seller['commission_rates'][MsCommission::RATE_LISTING]['payment_method'] == MsPayment::METHOD_PAYPAL) { ?> selected="selected" <?php } ?>><?php echo $ms_payment_method_paypal; ?></option>
					</optgroup>
				</select>
			</td>
		</tr>
		</table>
		</div>
		<!--  end commission tab -->
	</div>
	</form>
	</div>
	</div>
	
	<script type="text/javascript">
	$(function() {
		$('#tabs a').tabs();
	
		$('input[name^="customer"]').parents('tr').hide();
		$('[name="seller[notify]"], [name="seller[message]"]').parents('tr').show();
		$('select[name="customer[customer_id]"]').bind('change', function() {
			if (this.value == '0') {
				$('input[name^="customer"]').parents('tr').show();
				$('[name="seller[notify]"], [name="seller[message]"]').parents('tr').hide();
			} else {
				$('input[name^="customer"]').parents('tr').hide();
				$('[name="seller[notify]"], [name="seller[message]"]').parents('tr').show();
			}
		}).change();
	
		$('input[name="seller[notify]"]').change(function() {
			if ($(this).val() == 0) {
				$('textarea[name="seller[message]"]').val('').attr('disabled','disabled');
			} else {
				$('textarea[name="seller[message]"]').removeAttr('disabled');
			}
		});
	
		$("#ms-submit-button").click(function() {
			var button = $(this);
			var id = $(this).attr('id');
			$.ajax({
				type: "POST",
				dataType: "json",
				url: 'index.php?route=multiseller/seller/jxsavesellerinfo&token=<?php echo $token; ?>',
				data: $('#ms-sellerinfo').serialize(),
				beforeSend: function() {
					button.hide().before('<span class="wait">&nbsp;<img src="view/image/loading.gif" alt="" /></span>');
					$('p.error').remove();
					$('.warning').text('').hide();
				},
				complete: function(jqXHR, textStatus) {
					button.show().prev('span.wait').remove();
				},
				error: function(jqXHR, textStatus, errorThrown) {
					$('.warning').text(textStatus).show();
				},
				success: function(jsonData) {
					if (!jQuery.isEmptyObject(jsonData.errors)) {
						$('#error_'+id).text('');
						for (error in jsonData.errors) {
							$('[name="'+error+'"]').after('<p class="error">' + jsonData.errors[error] + '</p>');
						}
						window.scrollTo(0,0);
					} else {
						window.location = 'index.php?route=multiseller/seller&token=<?php echo $token; ?>';
					}
				 	}
			});
		});

		$("select[name='seller[country]']").bind('change', function() {
			$.ajax({
				url: 'index.php?route=sale/customer/country&token=<?php echo $token; ?>&country_id=' + this.value,
				dataType: 'json',
				beforeSend: function() {
					$("select[name='seller[country]']").after('<span class="wait">&nbsp;<img src="view/image/loading.gif" alt="" /></span>');
				},
				complete: function() {
					$('.wait').remove();
				},
				success: function(json) {
					html = '<option value=""><?php echo $ms_catalog_sellerinfo_zone_select; ?></option>';

					if (json['zone']) {
						for (i = 0; i < json['zone'].length; i++) {
							html += '<option value="' + json['zone'][i]['zone_id'] + '"';
							
							if (json['zone'][i]['zone_id'] == '<?php echo $seller['ms.zone_id']; ?>') {
								html += ' selected="selected"';
							}
			
							html += '>' + json['zone'][i]['name'] + '</option>';
						}
					} else {
						html += '<option value="0" selected="selected"><?php echo $ms_catalog_sellerinfo_zone_not_selected; ?></option>';
					}
					
					$("select[name='seller[zone]']").html(html);
				},
				error: function(xhr, ajaxOptions, thrownError) {
					alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
				}
			});
		}).trigger('change');
	});
	</script>
<?php echo $footer; ?>

Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK

Post by johnp » Sun Nov 21, 2021 9:59 pm

I wouldn't wory too much about it. I've had a play and there's errors in several files. Ideally it'll need a good going through to convert it which to be fair is a commercial support job.

Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK

Post by CharlesWilliams » Thu May 26, 2022 3:08 pm

If properly written extension, it should update also properly, does not matter OC or prestashop. So if you need to install just only additional DB table you can do it in phpmyadmin. Another way, you can copy that table code to you admin controller somewhere after public function index() { and when you open that module in OC admin, table should install. That query should look something like this:
Code: Select all

Code: Select all

$this->db->query("
            CREATE TABLE IF NOT EXISTS `" . DB_PREFIX . "your_additinal_table` (
                `some_id` int(11) NOT NULL,
                `bla_bla` varchar(255) NOT NULL,
                `another_bla_bla` varchar(255) NOT NULL,
                PRIMARY KEY `some_id` (`some_id`)
            ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
        ");
After that you can delete that code.
MyInsite


Posts

Joined
Thu May 19, 2022 2:27 pm
Who is online

Users browsing this forum: No registered users and 120 guests