Problems with internal product search

  • Posts: 128
  • Thank you received: 0
9 years 1 month ago #217556

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.3
-- PHP version -- : 5.4

I have a critical problem in the administration of the wishlist.
I Access Components> Hikashop. On the next screen, I go: Clients> Wishlist.
Well, on registration of a new wishlist is where the problem occurs.
Eu clico em: "Adicionar um produto existente". Search the product, select and insert. By repeating the process to insert another product from the list, it automatically deletes the first product that I inserted!
The system is excluding registered products before, every new search for product!
That's wrong!
It is wise to search I insert a product, do the search again and he added the new product!

Please help me!!!

Attachments:

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 1 month ago #217607

Hi,

I am sorry but I don't understand your issue.
You screenshot shows the popup of the wishlist edition in the HikaShop backend ; but I don't understand the process you're doing, so I don't understand your issue.

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.

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

  • Posts: 128
  • Thank you received: 0
9 years 1 month ago #217630

OK!
I will do step by step:

1) The administration> hikashop> Customer> wishlist. I click in new.
screenshot_73.jpg

2) Then I click on "+ Add on existing product"
screenshot_74.jpg

3) In the pop up that opens, first I do the search for a product.To find the product, I select the product and then click on the button "+ OK".
The selected product is inserted in my wishlist successfully!
screenshot_75.jpg and screenshot_76.jpg

4) Now is the time where the problem happens!
When I will repeat exactly the same process, the hikashop deletes the item previously added.
screenshot_77.jpg

The hikashop should include the new product without deleting the previous!
THAT WOULD BE THE RIGHT, BUT NOT WHAT HAPPENS!

REMINDER:
This only happens when using the search!

Please! help me urgent!!!

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

  • Posts: 128
  • Thank you received: 0
9 years 1 month ago #217836

Hello!
Someone will be able to help me ???

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

  • Posts: 13201
  • Thank you received: 2322
9 years 1 month ago #217851

Hi,

Please edit the view "order / product_select" in the backend template and replace all the content by this code:
www.hikashop.com/support/support/documen...ize-the-display.html

<?php
	$cart_type = JRequest::getString('cart_type','cart');
	if($this->element->order_id == 0){
		$cart_id = JRequest::getInt($cart_type.'_id','0');
		$parameters = '&cart_type='.$cart_type;
		$parameters .= '&cart_id='.$cart_id;
	}else{
		$parameters = '&order_id='.@$this->element->order_id;
	}
?>
<fieldset>
	<div class="toolbar" id="toolbar" style="float: right;">
		<button class="btn" type="button" onclick="if(document.adminForm.boxchecked.value==0){alert('<?php echo JText::_( 'PLEASE_SELECT_SOMETHING',true ); ?>');}else{submitbutton('product_add');}"><img style="vertical-align:middle;" src="<?php echo HIKASHOP_IMAGES; ?>add.png"/><?php echo JText::_('OK'); ?></button>
	</div>
</fieldset>
<div class="iframedoc" id="iframedoc"></div>
<?php if($this->config->get('category_explorer')){?>
<?php if(!HIKASHOP_BACK_RESPONSIVE) { ?>
<div id="page-product">
	<table style="width:100%">
		<tr>
			<td style="vertical-align:top;border:1px solid #CCC;background-color: #F3F3F3" width="150px">
				<?php echo hikashop_setExplorer('order&task=product_select'.$parameters,$this->pageInfo->filter->filter_id,true,'product'); ?>
			</td>
			<td style="vertical-align:top;">
<?php } else { ?>
<div id="page-product" class="row-fluid">
	<div class="span4">
		<?php echo hikashop_setExplorer('order&task=product_select'.$parameters,$this->pageInfo->filter->filter_id,true,'product'); ?>
	</div>
	<div class="span8">
<?php } ?>
<?php } ?>
			<form action="index.php?option=<?php echo HIKASHOP_COMPONENT ?>&amp;ctrl=order" method="post"  name="adminForm" id="adminForm">
<?php if(!HIKASHOP_BACK_RESPONSIVE) { ?>
				<table style="width:100%">
					<tr>
						<td>
<?php } else {?>
				<div class="row-fluid">
					<div class="span6">
<?php } ?>
							<a href="<?php echo hikashop_completeLink('order&task=product_select&filter_id=0'.$parameters,true); ?>"><?php echo JText::_( 'ROOT' ); ?>/</a>
							<?php echo $this->breadCrumb.'<br/>'.JText::_( 'FILTER' ); ?>:
							<input type="text" name="search" id="search" value="<?php echo $this->escape($this->pageInfo->search);?>" class="text_area" onchange="document.adminForm.submit();" />
							<button class="btn" onclick="this.form.submit();"><?php echo JText::_( 'GO' ); ?></button>
							<button class="btn" onclick="document.getElementById('search').value='';this.form.submit();"><?php echo JText::_( 'RESET' ); ?></button>
<?php if(!HIKASHOP_BACK_RESPONSIVE) { ?>
						</td>
						<td>
<?php } else {?>
					</div>
					<div class="span6">
						<div class="expand-filters" style="width:auto;float:right">
<?php } ?>
							<?php echo $this->productType->display('filter_product_type',$this->pageInfo->filter->filter_product_type); ?>
							<?php echo $this->childDisplay; ?>
<?php if(!HIKASHOP_BACK_RESPONSIVE) { ?>
						</td>
					</tr>
				</table>
<?php } else {?>
						</div>
						<div style="clear:both"></div>
					</div>
				</div>
<?php } ?>
				<table class="adminlist table table-striped table-hover" cellpadding="1">
					<thead>
						<tr>
							<th class="title titlenum">
								<?php echo JText::_( 'HIKA_NUM' );?>
							</th>
							<th class="title titlebox">
								<input type="checkbox" name="toggle" value="" onclick="hikashop.checkAll(this);" />
							</th>
							<th class="title">
								<?php echo JHTML::_('grid.sort', JText::_('HIKA_NAME'), 'b.product_name', $this->pageInfo->filter->order->dir,$this->pageInfo->filter->order->value ); ?>
							</th>
							<th class="title">
								<?php echo JHTML::_('grid.sort', JText::_('PRODUCT_CODE'), 'b.product_code', $this->pageInfo->filter->order->dir,$this->pageInfo->filter->order->value ); ?>
							</th>
							<th class="title">
								<?php echo JText::_('PRODUCT_PRICE'); ?>
							</th>
							<th class="title">
								<?php echo JText::_('PRODUCT_QUANTITY'); ?>
							</th>
							<th class="title">
								<?php echo JHTML::_('grid.sort',   JText::_( 'ID' ), 'b.product_id', $this->pageInfo->filter->order->dir, $this->pageInfo->filter->order->value ); ?>
							</th>
						</tr>
					</thead>
					<tfoot>
						<tr>
							<td colspan="7">
								<?php echo $this->pagination->getListFooter(); ?>
								<?php echo $this->pagination->getResultsCounter(); ?>
							</td>
						</tr>
					</tfoot>
					<tbody>
						<?php
							$k = 0;
							for($i = 0,$a = count($this->rows);$i<$a;$i++){
								$row =& $this->rows[$i];
							?>
							<tr class="<?php echo "row$k"; ?>">
								<td align="center">
								<?php echo $this->pagination->getRowOffset($i); ?>
								</td>
								<td align="center">
									<?php echo JHTML::_('grid.id', $i, $row->product_id ); ?>
								</td>
								<td>
									<?php echo $row->product_name; ?>
								</td>
								<td>
									<?php echo $row->product_code; ?>
								</td>
								<td>
									<?php echo $this->currencyHelper->displayPrices(@$row->prices); ?>
								</td>
								<td class="order">
									<input name="quantity[<?php echo $row->product_id ?>]" type="text" size="4" value="1"/>
								</td>
								<td width="1%" align="center">
									<?php echo $row->product_id; ?>
								</td>
							</tr>
						<?php
								$k = 1-$k;
							}
						?>
					</tbody>
				</table>
						<input type="hidden" name="option" value="<?php echo HIKASHOP_COMPONENT; ?>" />
				<input type="hidden" name="task" value="<?php echo JRequest::getCmd('task'); ?>" />
				<input type="hidden" name="ctrl" value="<?php echo JRequest::getCmd('ctrl'); ?>" />
				<input type="hidden" name="boxchecked" value="0" />
				<input type="hidden" name="tmpl" value="component" />
				<input type="hidden" name="order_id" value="<?php echo @$this->element->order_id;?>" />
				<input type="hidden" id="filter_id" name="filter_id" value="<?php echo $this->pageInfo->filter->filter_id; ?>" />
				<input type="hidden" name="filter_order" value="<?php echo $this->pageInfo->filter->order->value; ?>" />
				<input type="hidden" name="filter_order_Dir" value="<?php echo $this->pageInfo->filter->order->dir; ?>" />
				<input type="hidden" name="data[order][order_id]" value="<?php echo @$this->element->order_id;?>" />

				<input type="hidden" name="cart_type" value="<?php echo $cart_type; ?>" />
				<input type="hidden" name="<?php echo $cart_type.'_id';?>" value="<?php echo @$cart_id; ?>" />

				<?php echo JHTML::_( 'form.token' ); ?>
			</form>
<?php if($this->config->get('category_explorer')){?>
<?php if(!HIKASHOP_BACK_RESPONSIVE) { ?>
			</td>
		</tr>
	</table>
</div>
<?php } else { ?>
	</div>
</div>
<?php } ?>
<?php } ?>
And edit the file "administrator/components/com_hikashop/controllers/order.php" (via ftp) and replace the function "product_select()" by:
	function product_select(){
		JRequest::setVar( 'layout', 'product_select'  );
		$cart_type = JRequest::getString('cart_type','cart');
		$cart_id = JRequest::getInt($cart_type.'_id','0');
		if($cart_id == '0')
			$cart_id = JRequest::getInt('cart_id','0');
		JRequest::setVar('cart_type',$cart_type);
		JRequest::setVar($cart_type.'_id',$cart_id);
		return parent::display();
	}

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

  • Posts: 128
  • Thank you received: 0
9 years 1 month ago #217885

OK
How do I direct change in my .zip file

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

  • Posts: 13201
  • Thank you received: 2322
9 years 1 month ago #217903

Hi,

To change directly in the zip file, the files to edit are:
"com_hikashop_business.zip\back\views\order\tmpl\product_select.php" for the view and
"com_hikashop_business.zip\back\controllers\order.php" for the controller.

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

  • Posts: 128
  • Thank you received: 0
9 years 1 month ago #217954

Thank you very much!

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

  • Posts: 128
  • Thank you received: 0
9 years 3 weeks ago #218545

Now I have a new problem!
When installing the new version 2.6.0 I had to install the translation into Portuguese. Correct!
Since then the problems started. The translation package does not translate certain things, such as component management and wishlist site for example!
Then I manually translate the words untranslated, but even so, the administration and continue wishlist in English!
Helpe me!

www.conteinner.com.br

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
9 years 3 weeks ago #218584

Hi,

Please enable the language debug in the Joomla settings, this will give more details on this issue.
If there is broken strings or other things like that, this will be shown directly.

Last edit: 9 years 3 weeks ago by Xavier.

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

  • Posts: 128
  • Thank you received: 0
9 years 3 weeks ago #218596

How to do this?

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

  • Posts: 13201
  • Thank you received: 2322
9 years 3 weeks ago #218607

Joomla > System > Global configuration > System > Debug Language

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

  • Posts: 128
  • Thank you received: 0
9 years 3 weeks ago #218658

I corrected the lines mentioned in the debug joomla. But the error remains!

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 years 3 weeks ago #218661

Hi,

If the Joomla debug says that you still have the errors in that file, it means that you still have the errors in that file.
Maybe you didn't upload it back properly or something after editing it ?
Now not knowing what you have in your translation file, I can only recommend to revert to the default version of the file available on our end www.hikashop.com/download/languages.html or to provide your modified translation file so that we can check it.

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

  • Posts: 128
  • Thank you received: 0
9 years 3 weeks ago #218884

Because the file I downloaded the site gave you the mistakes that I informed you earlier, i downloaded the English version and translate again!
Did not modify the commands!

Last edit: 9 years 3 weeks ago by sergiobertini.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 years 3 weeks ago #219043

Hi,

We've checked the pt-BR language file on our end on these lines but we couldn't find any problem.

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

  • Posts: 128
  • Thank you received: 0
9 years 3 weeks ago #219063

Yeah!
Do you want to access the administration of my site to check?
I need the problem is solved!

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 3 weeks ago #219064

Hi,

Are you sure that you using the file from our website and you did not modify it ?
www.hikashop.com/download/languages.html

Because I just download the file and for the line "1098", the content is

;since version 1.4.5
and line "1421" is
SELECT_DATE_IN_FUTURE="Favor selecionar uma data no futuro"

So I don't think that you're using the file that we propose in our website. Or you have modified it during some kind of process.
But our language file, the one which can be download from our website is working good ; like Nicolas explained you in the previous message.

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.

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

  • Posts: 128
  • Thank you received: 0
9 years 3 weeks ago #219166

Solved on the site, but in administration, some items are still in English!
screenshot_96.jpg

Another problem appears:
In wishlist, when we enter the name and then save. The name is deleted!
All the lists that we created in the administration and in website, insert the name, but when we save the hikashop not saved the name.
screenshot_95.jpg

Help me!

Attachments:
Last edit: 9 years 3 weeks ago by sergiobertini.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 years 2 weeks ago #219181

Hi,

1. Some elements are new and no one translated them yet. You can do that in the language file and then click on the "share" button of the translation file edition popup in order to send over your translations so that we can add them on our end.

2. When is this issue happening ? When saving the name on frontend, in backend or both ?
Do you have a view override on the view "cart / showcart" ? If it is, please backup it and delete the override.
Are you trying to set a name when logged in or logged out ?

Last edit: 9 years 3 weeks ago by Xavier.

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

Time to create page: 0.112 seconds
Powered by Kunena Forum