Advanced Search

Search Results (Searched for: )

23 Aug 2016 07:01

custom fields requested on vendor registration

Category: Market: Bug Report

-- HikaShop version -- : 2.6.3
-- HikaMarket version -- : 1.7.0
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.5
-- Error-message(debug-mod must be tuned on) -- : none

hi

i created required custom fields for the user registration and not for the vendor registration. the problem is every time i apply as a vendor an error occurs informing me to fill in the custom fields for the user. Funny is that Its not visible on the registration form but it is requested when i apply as vendor

what should i do

thanks
23 Aug 2016 18:03

how to disable add to cart button on certain field

Category: Product & Category Display

tried you suggestion but it doesnt work. i remove the changes and used the initial code

this is the link to the page
Part of the message is hidden for the guests. Please log in or register to see it.


this is the settings






thanks again
23 Aug 2016 19:01

how to add default values to registration field

Category: Install & Update

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.5
-- Error-message(debug-mod must be tuned on) -- : none

hi

i would like to add default values to the registration field, could you guide me on the best way to do this? hoping to edit
components/com_users/models/forms/registration.xml

<field
name="name"
type="text"
description="COM_USERS_REGISTER_NAME_DESC"
filter="string"
label="COM_USERS_REGISTER_NAME_LABEL"
required="true"
size="30"
value="Select a nice username!"
/>

i dont know if this will result in an issue with hikashop? or it might get overridden.

Anyway something like below with default values




thanks
24 Aug 2016 19:16

how to add default values to registration field

Category: Install & Update

hi lousyfool

thank you

i cant get it to work

this is the xml file i want to add placeholders

/components/com_users/models/forms/registration.xml

and i added it here

/templates/system/form/com_users/registration.xml

this is the override




is this correct?
24 Aug 2016 19:22

how to add default values to registration field

Category: Install & Update

thank jerome

Hi,

Please read the "custom field" documentation.
www.hikashop.com/support/documentation/i...ield-form.html#infos

Regards,


i think this, above, is for custom fields

im trying to add a place holder to fields on the registration form

<input type="text" name="data[register][name]" id="register_name" value="" class="required" size="30" maxlength="50" aria-required="true" required="required" placeholder="nice name">

any tips to do this on hikashop?

thanks
25 Aug 2016 03:20
25 Aug 2016 05:46

how to make a product grid view

Category: Product & Category Display

hi there can you please tell me where to add the code below?

Hi,

The filters are saved per menu item.
So the issue you have with the filters is normal since you're using different menu items.
If you want to keep the filters values throughout the different display modes, then you should have only one menu item, and instead customize further the code of the view file to change the layout based on an extra parameter in the URL.

So it would be something like that:

<?php
if(!@$_GET['columns'] || $_GET['columns']>3){ $_GET['columns'] = 1;
$this->params->set('columns', $_GET['columns']);
 ?>
<a href="http://.../store">1 column</a>
<a href="http://.../store?columns=2">2 columns</a>
<a href="http://.../store?columns=3">3 columns</a>


thanks
28 Aug 2016 15:45

how to make a product grid view

Category: Product & Category Display

hi Nic

tried the code above its not working. also the links are not working. its a blank screen

this is the error
Strict Standards: Only variables should be assigned by reference in /home/.../public_html/plugins/system/form_xml_override/form_xml_override.php on line 15

Parse error: syntax error, unexpected end of file in /home/.../public_html/templates/purity_iii/html/com_hikashop/product/listing.php on line 352

this is the code
<?php
/**
 * @package	HikaShop for Joomla!
 * @version	2.6.3
 * @author	hikashop.com
 * @copyright	(C) 2010-2016 HIKARI SOFTWARE. All rights reserved.
 * @license	GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
?>

[b][i]<?php
if(!@$_GET['columns'] || $_GET['columns']>3){ $_GET['columns'] = 1;
$this->params->set('columns', $_GET['columns']);
 ?>
<a href="http://.../store">1 column</a>
<a href="http://.../store?columns=2">2 columns</a>
<a href="http://.../store?columns=3">3 columns</a>[/i][/b]

 

<?php
if(!$this->module && isset($this->element->category_canonical) && !empty($this->element->category_canonical)){
	$canonicalUrl = hikashop_cleanURL($this->element->category_canonical);

	$doc = JFactory::getDocument();
	$doc->addCustomTag( '<link rel="canonical" href="'.$canonicalUrl.'" />' );
}




if(hikashop_level(2) && JRequest::getVar('hikashop_front_end_main',0) && JRequest::getVar('task')=='listing' && $this->params->get('show_compare')) {?>
<script type="text/javascript">
<!--
var compare_list = {length: 0};
function setToCompareList(product_id,name,elem) {
	var compareBtn = document.getElementById('hikashop_compare_button');
	if( compare_list[product_id] ) {
		var old = compare_list[product_id];
		compare_list[product_id] = null;
		compare_list.length--;
		if( elem == null ) elem = old.elem;
		var nn = elem.nodeName.toLowerCase();
		if( nn == 'a' )
			elem.innerHTML = "<?php echo JText::_('ADD_TO_COMPARE_LIST');?>";
		else if( nn == 'input' )
		{
			if(elem.type.toLowerCase()=='submit')
				elem.value = "<?php echo JText::_('ADD_TO_COMPARE_LIST');?>";
			else
				elem.checked = false;
		}
	} else {
		if(compare_list.length < <?php echo $this->config->get('compare_limit',5); ?> ) {
			compare_list[product_id] = {name: name, elem: elem};
			compare_list.length++;
			var nn = elem.nodeName.toLowerCase();
			if( nn == 'a' )
				elem.innerHTML = "<?php echo JText::_('REMOVE_FROM_COMPARE_LIST');?>";
			else if( nn == 'input' )
			{
				if(elem.type.toLowerCase()=='submit')
					elem.value = "<?php echo JText::_('REMOVE_FROM_COMPARE_LIST');?>";
				else
					elem.checked = true;
			}
		} else {
			alert("<?php echo JText::_('COMPARE_LIMIT_REACHED');?>");
			elem.checked = false;
		}
	}
	if(compare_list.length == 0 ) {
		compareBtn.style.display = 'none';
	} else {
		compareBtn.style.display = '';
	}
	return false;
}
function compareProducts() {
	var url = '';
	for(var k in compare_list) {
		if( compare_list[k] != null && k != 'length' ) {
			if( url == '' )
				url = 'cid[]=' + k;
			else
				url += '&cid[]=' + k;
		}
	}
	window.location = "<?php
		$u = hikashop_completeLink('product&task=compare'.$this->itemid,false,true);
		if( strpos($u,'?')  === false ) {
			echo $u.'?';
		} else {
			echo $u.'&';
		}
	?>" + url;
	return false;
}
window.hikashop.ready( function() {
	$$('input.hikashop_compare_checkbox').each(function(el){
		el.checked = false;
	});
});
//-->
</script>
<?php }

ob_start();
$titleType='h1';
if(version_compare(JVERSION,'1.6','<')){
	$title = $this->params->get('show_page_title');
}elseif($this->module){
	$title = $this->params->get('showtitle');
	$titleType='h2';
}else{
	$title = (string) $this->params->get('show_page_heading');
	if($title===''){
		$params = JComponentHelper::getParams( 'com_menus' );
		$title = $params->get('show_page_heading');
	}
}

if($title && JRequest::getVar('hikashop_front_end_main',0) && (!$this->module || $this->pageInfo->elements->total)){
	$name = $this->params->get('page_title');
	if($this->module){
		$name = $this->params->get('title');
	}elseif($this->params->get('page_heading')){
		$name = $this->params->get('page_heading');
	}
	?>
	<<?php echo $titleType; ?>>
	<?php echo $name; ?>
	</<?php echo $titleType; ?>>
	<?php
}

	if(($this->params->get('show_image') && !empty($this->element->file_path))|| ($this->params->get('show_description',!$this->module)&&!empty($this->element->category_description))){
?>
		<div class="hikashop_category_description">
<?php
		if($this->params->get('show_image') && !empty($this->element->file_path)){
			jimport('joomla.filesystem.file');
			if(JFile::exists($this->image->getPath($this->element->file_path,false))){
?>
			<img src="<?php echo $this->image->getPath($this->element->file_path); ?>" class="hikashop_category_image" title="<?php echo $this->escape(@$this->element->file_description); ?>" alt="<?php echo $this->escape(@$this->element->file_name); ?>"/>
<?php
			}
		}
		if($this->params->get('show_description',!$this->module)&&!empty($this->element->category_description)){
?>
			<div class="hikashop_category_description_content"><?php
				echo JHTML::_('content.prepare',$this->element->category_description);
			?></div>
<?php
		}
?>
		</div>
<?php
	}

	if(!empty($this->fields)){
		ob_start();
		$this->fieldsClass->prefix = '';
		foreach($this->fields as $fieldName => $oneExtraField) {
			if(!empty($this->element->$fieldName)){ ?>
			<tr class="hikashop_category_custom_<?php echo $oneExtraField->field_namekey;?>_line">
				<td class="key">
					<span id="hikashop_category_custom_name_<?php echo $oneExtraField->field_id;?>" class="hikashop_category_custom_name">
						<?php echo $this->fieldsClass->getFieldName($oneExtraField);?>
					</span>
				</td>
				<td>
					<span id="hikashop_category_custom_value_<?php echo $oneExtraField->field_id;?>" class="hikashop_category_custom_value">
						<?php echo $this->fieldsClass->show($oneExtraField,$this->element->$fieldName); ?>
					</span>
				</td>
			</tr>
<?php
			}
		}
		$custom_fields_html = ob_get_clean();
		if(!empty($custom_fields_html)){
?>
		<div id="hikashop_category_custom_info_main" class="hikashop_category_custom_info_main">
			<h4><?php echo JText::_('CATEGORY_ADDITIONAL_INFORMATION');?></h4>
			<table width="100%">
				<?php echo $custom_fields_html; ?>
			</table>
		</div>
<?php
		}
	}
$mainInfo = ob_get_clean();
ob_start();
$display_filters = $this->params->get('display_filters', -1);
if($display_filters=='-1'){
	$config =& hikashop_config();
	$display_filters=$config->get('show_filters');
}
if(hikashop_level(2) && JRequest::getVar('hikashop_front_end_main',0) && (JRequest::getVar('task','listing')=='listing' || !empty($this->force_display_filter)) && $display_filters=='1'){
	$this->setLayout('filter');
	$htmlFilter = $this->loadTemplate();
}

if(!empty($htmlFilter)&&@$_GET['task']!='category') echo $htmlFilter;

$filter_type = (int)$this->params->get('filter_type');
$layout_type = $this->params->get('layout_type');
if(empty($layout_type)) $layout_type = 'div';

if($filter_type !== 3) {
	$this->setLayout('listing');
	$html = $this->loadTemplate($layout_type);
	if(!$this->module) echo $mainInfo;
	if(!empty($html)){
		if($this->module) echo $mainInfo;
		if(!empty($htmlFilter) && @$_GET['task']=='category')
			echo $htmlFilter;
?>
	<div class="hikashop_products_listing">
<?php
		if(JRequest::getVar('hikashop_front_end_main',0) && JRequest::getVar('task')=='listing' && $this->params->get('show_compare')) {
?>
			<div id="hikashop_compare_zone" class="hikashop_compare_zone">
<?php
		$empty='';
		$params = new HikaParameter($empty);
		echo $this->cart->displayButton(JText::_('COMPARE_PRODUCTS'),'compare_button',$params,'#','compareProducts();return false;','style="display:none;" id="hikashop_compare_button"',0,1,' hikashop_compare_button');
?>
			</div>
<?php
		}
		echo $html;
?>
	</div>
<?php
	}elseif(( !$this->module || JRequest::getVar('hikashop_front_end_main',0) ) && (@$_REQUEST['ctrl']=='product' || @$_REQUEST['view']=='product') && (@$_REQUEST['task']=='listing' || @$_REQUEST['layout']=='listing') && !empty($this->filters) && count($this->filters)){
		echo JText::_('HIKASHOP_NO_RESULT');
	}

	$html = ob_get_clean();
	if(!empty($html)) {
?>
	<div id="<?php echo $this->params->get('main_div_name');?>" class="hikashop_category_information hikashop_products_listing_main"><?php echo $html; ?></div>
<?php
	}
} else if(!empty($this->rows) && !empty($this->categories)) {

	if(!$this->module) echo $mainInfo;

	$allrows = $this->rows;

	$pagination = '';
	if((!$this->module || JRequest::getVar('hikashop_front_end_main',0)) && $this->pageInfo->elements->total) {
		$pagination = $this->config->get('pagination','bottom');
		$this->config->set('pagination', '');
	}

	if((!empty($allrows) || !$this->module || JRequest::getVar('hikashop_front_end_main',0)) && in_array($pagination, array('top','both')) && $this->params->get('show_limit') && $this->pageInfo->elements->total) {
		$this->pagination->form = '_top';
?>
	<form action="<?php echo hikashop_currentURL(); ?>" method="post" name="adminForm_<?php echo $this->params->get('main_div_name').$this->category_selected;?>_top">
		<div class="hikashop_products_pagination hikashop_products_pagination_top">
		<?php echo $this->pagination->getListFooter($this->params->get('limit')); ?>
		<span class="hikashop_results_counter"><?php echo $this->pagination->getResultsCounter(); ?></span>
		</div>
		<input type="hidden" name="filter_order_<?php echo $this->params->get('main_div_name').$this->category_selected;?>" value="<?php echo $this->pageInfo->filter->order->value; ?>" />
		<input type="hidden" name="filter_order_Dir_<?php echo $this->params->get('main_div_name').$this->category_selected;?>" value="<?php echo $this->pageInfo->filter->order->dir; ?>" />
		<?php echo JHTML::_( 'form.token' ); ?>
	</form>
<?php
	}

	$main_div_name = $this->params->get('main_div_name');
	foreach($this->categories as $category) {
		if(empty($category['products']))
			continue;

		$this->rows = array();
		foreach($allrows as $p) {
			if(in_array($p->product_id, $category['products']))
				$this->rows[] = $p;
		}

		$this->params->set('main_div_name', $main_div_name.'_'.$category['category']->category_id);

		$this->setLayout('listing');
		$html = $this->loadTemplate($layout_type);
		if(!empty($html)) {
			if(!empty($htmlFilter) && @$_GET['task']=='category')
				echo $htmlFilter;
?>
	<h2><?php echo $category['category']->category_name; ?></h2>
	<div class="hikashop_products_listing">
<?php
		if(JRequest::getVar('hikashop_front_end_main',0) && JRequest::getVar('task')=='listing' && $this->params->get('show_compare')) {
?>
			<div id="hikashop_compare_zone" class="hikashop_compare_zone">
<?php
			$empty='';
			$params = new HikaParameter($empty);
			echo $this->cart->displayButton(JText::_('COMPARE_PRODUCTS'),'compare_button',$params,'#','compareProducts();return false;','style="display:none;" id="hikashop_compare_button"',0,1,' hikashop_compare_button');
?>
			</div>
<?php
		}
		echo $html;
?>
	</div>
<?php
		}
	}
	$this->params->set('main_div_name', $main_div_name);
	$this->config->set('pagination', $pagination);

	if((!empty($allrows) || !$this->module || JRequest::getVar('hikashop_front_end_main',0)) && in_array($pagination,array('bottom','both')) && $this->params->get('show_limit') && $this->pageInfo->elements->total) {
		$this->pagination->form = '_bottom';
?>
	<form action="<?php echo hikashop_currentURL(); ?>" method="post" name="adminForm_<?php echo $this->params->get('main_div_name').$this->category_selected;?>_bottom">
		<div class="hikashop_products_pagination hikashop_products_pagination_bottom">
		<?php echo $this->pagination->getListFooter($this->params->get('limit')); ?>
		<span class="hikashop_results_counter"><?php echo $this->pagination->getResultsCounter(); ?></span>
		</div>
		<input type="hidden" name="filter_order_<?php echo $this->params->get('main_div_name').$this->category_selected;?>" value="<?php echo $this->pageInfo->filter->order->value; ?>" />
		<input type="hidden" name="filter_order_Dir_<?php echo $this->params->get('main_div_name').$this->category_selected;?>" value="<?php echo $this->pageInfo->filter->order->dir; ?>" />
		<?php echo JHTML::_( 'form.token' ); ?>
	</form>
<?php }

	$html = ob_get_clean();
	if(!empty($html)) {
?>
		<div id="<?php echo $this->params->get('main_div_name');?>" class="hikashop_category_information hikashop_products_listing_main hikashop_product_listing_<?php echo $this->element->category_id; ?>"><?php echo $html; ?></div>
<?php
	}
}

if(!$this->module){
?>
<div class="hikashop_submodules" style="clear:both">
<?php
	if(!empty($this->modules)){
		jimport('joomla.application.module.helper');
		foreach($this->modules as $module) {
			echo JModuleHelper::renderModule($module);
		}
	}
?>
</div>
<?php
}

thanks
28 Aug 2016 16:56

how to resize image in cart?

Category: How to?

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.5
-- Error-message(debug-mod must be tuned on) -- : none

hi gus how do i resize image in my cart?

thanks
28 Aug 2016 18:25

how to disable add to cart button on certain field

Category: Product & Category Display

oh i see, here it is.

also all products are behaving the same. Both add to cart and wishlist does not appear. Not just one when i use this code
if($this->row->addtocartoption == 1)
{
$this->params->set('catalogue', 1);
}
else
{
$this->params->set('catalogue', 0);
}

sample product






thanks
29 Aug 2016 08:28

how to make a product grid view

Category: Product & Category Display

Great the bracket worked but its always a list or single column.

the other links such as http://...store?columns=2 and
http://...h/store?columns=3 doesnt work

also nic

i hope its ok,can you please remove my website link on your reply posts just for security reasons.

thanks a lot
29 Aug 2016 19:11

how to display user profile

Category: Customers

hi

i have 2 issues.

1. when i access User control panel > edit profile > and make changes it redirects to the joomla user edit link. how do i redirect it to something else?

i actually went ahead on this and created an override. edited the file
/templates/mytemplate/html/com_users/controllers/profile.php and change the code below. unfortunately its not redirecting
// Redirect to the list screen.
				$this->setMessage(JText::_('COM_USERS_PROFILE_SAVE_SUCCESS'));
				
				$this->setRedirect(JRoute::_('http://xxx.com/profile', false));
			
				break;


2. i made 2 links one is for the User control panel and the other is the joomla Edit User Profile. If id disable Edit User Profile i can no longer save changes to the user control panel > edit profile. is this a correct behavior?

thanks
30 Aug 2016 11:35

how to make a product grid view

Category: Product & Category Display

thank you its working

unfortunately all modules are affected by this. So my horizontal carousel slides are all single column.

maybe we should add the override in a different view?




thanks again
30 Aug 2016 19:25

how to display user profile

Category: Customers

ok let me clarify please

i created a menu named buyer profile > user control panel.



i cant save any changes to the user profile using this link.

i created another menu Users Manager » Edit User Profile

this link saves the changes to the user.

what could be the problem please?

BTW user control panel has custom fields from hikashop

thanks
31 Aug 2016 18:51

how to display user profile

Category: Customers

ok i understand it now

but a few more questions.

1. when i fill up and save user edit form it redirects to joomla form with out the custom fields



where are the custom fields?

2. when i go back to the menu link user edit orm everything is ok.




so even do after saving the custom fields are not there it was saved successfully

3. now if i click on save or submit, the image upload always saves even do no changes or no file was uploaded.. Same thing if i change the name or company affiliation the image disappears or gets replace with a null value i guess.



.
how can we make it retain the image ? if no changes were done?

BTW this is the settings of my image upload buttoon





thanks
31 Aug 2016 19:27

how to make a product grid view

Category: Product & Category Display

hi

how do i complete this?
//If we are on a product listing module
if($this->module){ null;}
else {
<?php
if(!@$_GET['columns'] || $_GET['columns']>3){ $_GET['columns'] = 1;
$this->params->set('columns', $_GET['columns']);
 ?>
<a href="http://mayari.com.ph/store">1 column</a>
<a href="http://mayari.com.ph/store?columns=2">2 columns</a>
<a href="http://mayari.com.ph/store?columns=3">3 columns</a>
}
its not working. thanks
01 Sep 2016 18:21

how to make a product grid view

Category: Product & Category Display

thanks jerome

let me explain. i got the code below to work but my carousel modules are all in a list or single column because of code below.
//code for grid view altering columns
<?php
if(!@$_GET['columns'] || $_GET['columns']>3){ $_GET['columns'] = 1;
$this->params->set('columns', $_GET['columns']);
 ?>
<a href="http://mayari.com.ph/store">1 column</a>
<a href="http://mayari.com.ph/store?columns=2">2 columns</a>
<a href="http://mayari.com.ph/store?columns=3">3 columns</a>
}

mohammed thejii gave me the code below but i dont know how to use it.

hi and thank you Mohamed Thelji

what should i do with this please?

Hello,

In that case the solution will be to use that PHP condition to check if we are in a module or not :

//If we are on a product listing module
if($this->module){

}

01 Sep 2016 18:41

how to display user profile

Category: Customers

hi nic

i just tried it with beez3 but the problem persists.

this is the joomla edit link edit

this is the hikashop user panel user panel


Part of the message is hidden for the guests. Please log in or register to see it.


you may login and try to add and edit a photo.

issues
1. if add an image and you save or submit, it gets redirected to the user profile with out the hikashop custom fields
2. every time you edit a field the image is always changed. exaple if you change name field the image upload will be replaced by a null value or empty, actually i dont know if its null but its empty. So you have to reupload the image again


BTW if i save the changes it is redirected to this link mayari.com.ph/edit-user-proflle/profile
instead of this one mayari.com.ph/edit-user-proflle .

HikaShop user account plugin is enabled and has mayari.com.ph/edit-user-proflle id to force redirect

thanks
03 Sep 2016 07:08

how to display user profile

Category: Customers

thanks jerome

using the ajax image worked great.

the last problem is that if i save or submit. it still redirects to the profile or edit user profile page with out the custom fields.

the edit user profile link is http://.../Edit-User-Profile
when i save it goes to http://.../Edit-User-Profile/profile

it should go to http://.../Edit-User-Profile.

how can i force the redirect after save to hikashop menu?

thanks again
Displaying 141 - 160 out of 490 results.
Time to create page: 1.098 seconds
Powered by Kunena Forum