Post by sandkid » Wed Dec 09, 2015 6:51 am

I have a couple of questions - regarding v2.1.0.1. First, I would like to change some of the default entries when putting in new products. I assume that they are kept in a file somewhere.

The second item is regarding the drop down menu items under the LINKS tab when entering new products. The Manufacturer and Catagories items defaults to only showing 5 items. I would like to either show all, or at least have the ability to scroll down to see all the choices to choose from.

Any help would be appreciated! ;D

-Wes-

User avatar
New member

Posts

Joined
Tue Dec 08, 2015 12:51 am
Location - Salem, Oregon

Post by inactiveaccount9912 » Wed Dec 09, 2015 7:26 pm

There are no defaults when enterin a product, everything is empty.

In those brands and category fields you must type in the name of the category/brand and it will appear in the dropdown.

Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am

Post by sandkid » Thu Dec 10, 2015 9:12 am

Thank you for responding. When I enter a new product, some of the fields are already checked or have something in them. A few are empty. For example, after clicking on PRODUCTS, and the plus sign to ADD NEW, under the Data tab, there is a field called "Out Of Stock Status". Normally, when I run out of an item and the stock count is "0", it should say that it is "Out Of Stock". But it is defaulted to say "In Stock". Why it would say "In Stock" when the product has a zero quantity has me baffled. Therefore I have to change it for every product I enter. Another example would be "Tax Class" under the same tab. It is defaulted to "None". I would prefer to have it default to "Taxable Goods" since all I sell is comic books. Then I wouldn't have to change it every time I enter a new product.

As for the category and manufacturer fields, if I know the manufacturer or the category, it would be easy. I don't always know the category. I have 6 top level categories. All of my top level categories will have many subcategories. This is why I would like to be able to scroll down the list to find the correct subcategory.

Thanks!

User avatar
New member

Posts

Joined
Tue Dec 08, 2015 12:51 am
Location - Salem, Oregon

Post by inactiveaccount9912 » Tue Dec 15, 2015 4:00 pm

Those appear selected because they are the firs options in the selects. You can change the order of the tax classes from admin > local > tax classes, the order of the statuses from admin > local > stock statuses.

Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am

Post by sandkid » Tue Dec 15, 2015 11:02 pm

Thank you, florinsith. That worked for that issue.

Now, if I could find a way to extend the drop-down menus for the "category" and "manufacturer" fields. They only show the first 5.

User avatar
New member

Posts

Joined
Tue Dec 08, 2015 12:51 am
Location - Salem, Oregon

Post by jrfcomputing » Tue Dec 15, 2015 11:38 pm

1.5.6.4 is set to show you 20. You can change the settings by going to you FTP
admin>controller>catalog>manufacture.php an category.php

and change the 5 to the number you want

Code: Select all

	public function autocomplete() {
		$json = array();

		if (isset($this->request->get['filter_name'])) {
			$this->load->model('catalog/category');

			$filter_data = array(
				'filter_name' => $this->request->get['filter_name'],
				'sort'        => 'name',
				'order'       => 'ASC',
				'start'       => 0,
				'limit'       => 5
			);

			$results = $this->model_catalog_category->getCategories($filter_data);

			foreach ($results as $result) {
				$json[] = array(
					'category_id' => $result['category_id'],
					'name'        => strip_tags(html_entity_decode($result['name'], ENT_QUOTES, 'UTF-8'))
				);
			}
		}
I have taken this code from the category.php similar in the manufacturer.php

Opencart sites I am currently working on:
http://www.cablecafe.co.uk
http://www.exclusivelygorgeous.co.uk/


User avatar
Active Member

Posts

Joined
Mon May 09, 2011 11:29 pm

Post by inactiveaccount9912 » Wed Dec 16, 2015 5:06 am

5 is more than enough, just type in the name of the brand/cat.

Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am

Post by sandkid » Wed Dec 16, 2015 11:00 am

jrfcomputing - thanks! That makes it so much easier! I really appreciate getting the solution!

florinsith, 5 may be enough for you, but it isn't enough for what I'm doing. I have subcategories under the main categories. I may know that a 1967 comic falls under the Silver Age category, but when I start typing in "Sil", it only lists the main category "Silver Age". The subcategories don't show. Because there are so many different comics, it would take me way too long to keep guessing at what it should be listed under. I have over 8,000 comics to list on my site. I need it to go faster, not slower.

User avatar
New member

Posts

Joined
Tue Dec 08, 2015 12:51 am
Location - Salem, Oregon

Post by inactiveaccount9912 » Wed Dec 16, 2015 5:17 pm

Yes, it makes sense, I just though you didnt know about autocomplete, lots of people get confused about that.

Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am
Who is online

Users browsing this forum: No registered users and 8 guests