Some Minor Issues Since Upgrade

  • Posts: 966
  • Thank you received: 11
10 years 1 month ago #207341

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3

Please note that the URL that I provided is a copy of the live site as I'm testing the upgrade there before adding to the live site.

Below are some issues that I have since the current upgrade. Your assistance would be appreciated.

1) I'm confused as to how to add the characteristics now on new products. I choose a characteristic, then I try to choose the sizes for that product, but when I click save, it only shows the name of the characteristic that I choose.

How do I add the sizes, when I add a size, then click save I still don't see the size.

2) I could swear that I had the "Tax Category" set-up so that when I add a NEW product it Defaults to "Default Tax Category" instead of "None". If not, is there a way to set "Default Tax Category" as the default so that I don't have to add it to every product each time.

3) Also, since the new upgrade the "Product Category" listing is REALLY tiny print.

Please see attached images.

Thank you!

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 84233
  • Thank you received: 13673
  • MODERATOR
10 years 1 month ago #207345

Hi,

1. Go in the "variants" tab at the top and click on the "add variants" button.

2. Add the code:

}else{
			//default values for new products
			$product = new stdClass();
			$product->product_published = 1;
			$product->product_type = 'main';
			$product->product_quantity = -1;
			$product->product_description = '';
			$categoryClass = hikashop_get('class.category');
			$mainTaxCategory = 'tax';
			$categoryClass->getMainElement($mainTaxCategory);
			$db->setQuery('SELECT category_id FROM '. hikashop_table('category'). ' WHERE category_type=\'tax\' && category_parent_id='.(int)$mainTaxCategory.' ORDER BY category_ordering DESC');
			$product->product_tax_id = $db->loadResult();
after the code:
if(!empty($product->categories)) {
				JArrayHelper::toInteger($product->categories);
				$query = 'SELECT c.* FROM '.hikashop_table('category').' AS c WHERE c.category_id IN ('.implode(',', $product->categories).')';
				$db->setQuery($query);
				$product->categories = $db->loadObjectList('category_id');
			}
in the file administrator/components/com_hikashop/views/product/view.html.php and that will add that back

3. The previous one had the same size. I don't see what you mean ?

Please Log in or Create an account to join the conversation.

  • Posts: 966
  • Thank you received: 11
10 years 1 month ago #207415

1) Oh I did not see that... Love it thanks. But, is there a way to remove the default? It looks like there's no way to not have a default size selected.

2) The code that I am supposed to add the code you provided after has two "}" at the end in the file, as per below. Do I put the code you provided between them or after them?

if(!empty($product->categories)) {
				JArrayHelper::toInteger($product->categories);
				$query = 'SELECT c.* FROM '.hikashop_table('category').' AS c WHERE c.category_id IN ('.implode(',', $product->categories).')';
				$db->setQuery($query);
				$product->categories = $db->loadObjectList('category_id');
			}
		}

3) Well a couple versions before, sorry not sure which one, the print was not that small. On my backend it is about a 8px size.

Thanks!

Please Log in or Create an account to join the conversation.

  • Posts: 84233
  • Thank you received: 13673
  • MODERATOR
10 years 1 month ago #207429

1. It has always been like that. In previous versions you also had to select a default value.
If you don't want any default, then create an additional value to your characteristic and call it "please select", or something like that, and select it as default.

2. I put only one } in my message because yes, you have to add the code in between the two }

3. You can always increase it with a small CSS modification to the backend CSS of HikaShop if necessary.

Please Log in or Create an account to join the conversation.

Time to create page: 0.061 seconds
Powered by Kunena Forum