Products duplicated in Vendor Control Panel

  • Posts: 306
  • Thank you received: 42
  • Hikamarket Multivendor Hikashop Business
8 years 11 months ago #224116

-- HikaShop version -- : 2.6.0
-- HikaMarket version -- : 1.6.7
-- Joomla version -- : 3.4.5
-- PHP version -- : 5.4.29

When products have options they are duplicated in the order product list in the vendor control panel:

Product list in the vendor control panel



Product list for the same order in the hikashop back end admin


The invoice is correct:



regards
Trevor

** Update ***
I have just tested this on another site (off-line) and the results are the same.
***

Attachments:
Last edit: 8 years 11 months ago by trevsmiff.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 11 months ago #224125

Hi,

Thanks for the report.
In the file "components/com_hikamarket/views/ordermarket/view.html.php" please remove the code

	if($options) {
		foreach($products as &$product) {
			if(!empty($product['product']))
				$order->products[] = $product['product'];
			if(!empty($product['options'])) {
				foreach($product['options'] as &$opt) {
					$order->products[] = $opt;
				}
				unset($opt);
			}
		}
		unset($product);
	}
That block of code has been modified with the new design for the vendor order and has introduced that issue.
I'm working on the new order design for the main vendor ; I added a test case with some product options to be sure that the problem will be solve.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Last edit: 8 years 11 months ago by Jerome. Reason: fix "productmarket" > "ordermarket"

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

  • Posts: 306
  • Thank you received: 42
  • Hikamarket Multivendor Hikashop Business
8 years 11 months ago #224130

Hi Jerome

I cant find those lines in the file 'components/com_hikamarket/views/productmarket/view.html.php'
What are the line numbers?

regards
Trevor

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

  • Posts: 306
  • Thank you received: 42
  • Hikamarket Multivendor Hikashop Business
8 years 11 months ago #224132

Did you mean "components/com_hikamarket/views/ordermarket/view.html.php" perhaps?

I have removed those lines from that file and the problem has been resolved thanks.

regards
Trevor

Last edit: 8 years 11 months ago by trevsmiff.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 11 months ago #224135

Hi,

Yes, ordermarket ; sorry for the confusion.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: trevsmiff

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

Moderators: Obsidev
Time to create page: 0.082 seconds
Powered by Kunena Forum