Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Adding DB Table

Featured Replies

I've run into a bit of a problem adding a new table in the DB, so far nothing I have tried has worked and I cant see why...

 

manufacturer.tpl

<tr>
             <td><?php echo $entry_contact; ?></td>
             <td><input type="text" name="contact" size="50" value="<?php echo $contact; ?>" size="10" /></td>
           </tr>

 

admin/model/catalog/manufacturer.php (line 36)

if (isset($data['contact'])) {
		$this->db->query("UPDATE " . DB_PREFIX . "manufacturer_contact SET contact = '" . $this->db->escape($data['contact']) . "' WHERE manufacturer_id = '" . (int)$manufacturer_id . "'");
	}

 

admin/controllerl/catalog/manufacturer.php (line 354)

if (isset($this->request->post['contact'])) {
		$this->data['contact'] = $this->request->post['contact'];
	} elseif (!empty($manufacturer_info)) {
		$this->data['contact'] = $manufacturer_info['contact'];
	} else {
		$this->data['contact'] = ``;
	}

 

This is the error I'm getting

Notice: Undefined index: contact in C:\xampp\htdocs\opencart\upload\admin\controller\catalog\manufacturer.php on line 357

 

if anyone can point out what im missing I would be very greatful

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.