Registration Email Activation for certain Groups

  • Posts: 34
  • Thank you received: 0
9 years 9 months ago #164230

Hi

I'm working on my client site using latest Hikashop Business version.
User Group FTW For Hikashop installed and configured .
On Shop registration page, user will be able to select group "Retail Shopper" or "Corporate Client"
Since user account activation is set to "none" Retail Shopper will be able to auto login and proceed with checkout.

If group selected by the user is "Corporate client" , we would like to approve the user by admin and user should not be able to auto login, unless user is activated and approved by admin.

Please advise..

If user account activation is set to self, we get error in frontend upon activation by user
There is no such account in our database or the account has already been activated.

Question Regarding Product characteristics
On product page, we have displayed Product code, but when a product characterstic or variant is created and added to product , the the id of the default variant is always appended to product code like 357-B2018_2 where 357-B2018 is the actual product code

How do remove the variant id from product code ..? Or can we just show it when variant is selected..?

Thanks

Jag

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

  • Posts: 13201
  • Thank you received: 2322
9 years 9 months ago #164238

Hi,

Your first need is not handled by HikaShop, it don't seem to be an ecommerce job, but more a login extension one.
So you can potentially use another extension to manage the users or create your own plugin to disable a user if he choose "corporate client" group.

For the second thing, you can edit the view "product / show_default" and replace:

echo $this->element->product_code;

By:
if(isset(echo $this->element->main->product_code))
    echo $this->element->main->product_code;
else
    echo $this->element->product_code;

The following user(s) said Thank You: Hurley

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

  • Posts: 34
  • Thank you received: 0
9 years 8 months ago #165752

Thanks,

FTW Hikashop Usergroup plugin Developer did provide a fix for group activation while registering

I got few more questions

1. On compare products view page, can we have compare Dimensions data displayed within custom fields data table, so that dimension names are not repeated and added to table for easy view. Please check image attached. Have been trying to edit compare view though.

2. On checkout page, ajax for updating quantity in the cart requires massive editing..? please suggest.

Thanks for your advise

Jag

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
9 years 8 months ago #166027

Hi,

1. You can edit the view "product / compare" in order to adapt the display as you want.
hikashop.com/support/support/documentati...ize-the-display.html

2. It will require many modifications in views and core files. Many data needs to be updated, etc.

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

  • Posts: 34
  • Thank you received: 0
9 years 8 months ago #166071

Hi

How to add dimensions within extra field code in compare view
<?php
foreach( $this->fields[0] as $fieldName => $oneExtraField ) {
if($oneExtraField->field_type != "customtext") {
?>
<tr id="hikashop_compare_tr_cf_<?php echo $oneExtraField->field_id;?>">
<td class="hikashop_compare_custom_first_column">
<span id="hikashop_product_custom_name_<?php echo $oneExtraField->field_id;?>" class="hikashop_product_custom_name">
<?php echo $this->fieldsClass->getFieldName($oneExtraField);?>
</span>
</td>
<?php foreach($this->elements as $element) { ?>
<td class="hikashop_compare_custom_prod_column">
<?php
if(!empty($element->$fieldName)) {
?>
<span id="hikashop_product_<?php echo $element->product_id; ?>_custom_value_<?php echo $oneExtraField->field_id;?>" class="hikashop_product_custom_value">
<?php echo $this->fieldsClass->show($oneExtraField,$element->$fieldName); ?>
</span>
<?php } else {
$t = JText::_('COMPARE_EMPTY');
if( $t != 'COMPARE_EMPTY' ) { echo $t; }
}
} ?>
</td>
</tr>

Thanks

Jag

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

  • Posts: 13201
  • Thank you received: 2322
9 years 8 months ago #166093

Hi,

Just to be sure, you want to add the dimensions in the table under "Diameter" and "Volume", right ?

If it is, you have to remove the code:

			<?php if(isset($element->product_weight) && bccomp($element->product_weight,0,3)){ ?>
			<span id="hikashop_product_weight_main" class="hikashop_product_weight_main">
				<?php echo JText::_('PRODUCT_WEIGHT').': '.rtrim(rtrim($element->product_weight,'0'),',.').' '.JText::_($element->product_weight_unit); ?><br />
			</span>
			<?php
			}
			if($this->config->get('dimensions_display',0) && bccomp($element->product_width,0,3)){ ?>
			<span id="hikashop_product_width_main" class="hikashop_product_width_main">
				<?php echo JText::_('PRODUCT_WIDTH').': '.rtrim(rtrim($element->product_width,'0'),',.').' '.JText::_($element->product_dimension_unit); ?><br />
			</span>
			<?php }
			if($this->config->get('dimensions_display',0) && bccomp($element->product_length,0,3)){ ?>
			<span id="hikashop_product_length_main" class="hikashop_product_length_main">
				<?php echo JText::_('PRODUCT_LENGTH').': '.rtrim(rtrim($element->product_length,'0'),',.').' '.JText::_($element->product_dimension_unit); ?><br />
			</span>
			<?php }
			if($this->config->get('dimensions_display',0) && bccomp($element->product_height,0,3)){ ?>
			<span id="hikashop_product_height_main" class="hikashop_product_height_main">
				<?php echo JText::_('PRODUCT_HEIGHT').': '.rtrim(rtrim($element->product_height,'0'),',.').' '.JText::_($element->product_dimension_unit); ?><br />
			</span>
			<?php } ?>
And add code like the following where you want:
<tr id="hikashop_dimensions_tr_dimensions">
	<td class="hikashop_compare_details_first_column"><?php echo JText::_('PRODUCT_WEIGHT'); ?></td>
	<?php
	foreach($this->elements as $k => $element) {
		if(isset($element->product_weight) && bccomp($element->product_weight,0,3)){ ?>
			<td class="hikashop_product_weight_main">
				<?php echo rtrim(rtrim($element->product_weight,'0'),',.').' '.JText::_($element->product_weight_unit); ?><br />
			</td>
			<?php
		}
	}
	?>
</tr>
<tr id="hikashop_dimensions_tr_dimensions">
	<td class="hikashop_compare_details_first_column"><?php echo JText::_('PRODUCT_WIDTH'); ?></td>
	<?php
	foreach($this->elements as $k => $element) {
		if(isset($element->product_width) && bccomp($element->product_width,0,3)){ ?>
			<td class="hikashop_product_width_main">
				<?php echo rtrim(rtrim($element->product_width,'0'),',.').' '.JText::_($element->product_dimension_unit); ?><br />
			</td>
			<?php
		}
	}
	?>
</tr>
<tr id="hikashop_dimensions_tr_dimensions">
	<td class="hikashop_compare_details_first_column"><?php echo JText::_('PRODUCT_LENGTH'); ?></td>
	<?php
	foreach($this->elements as $k => $element) {
		if(isset($element->product_length) && bccomp($element->product_length,0,3)){ ?>
			<td class="hikashop_product_length_main">
				<?php echo rtrim(rtrim($element->product_length,'0'),',.').' '.JText::_($element->product_dimension_unit); ?><br />
			</td>
			<?php
		}
	}
	?>
</tr>
<tr id="hikashop_dimensions_tr_dimensions">
	<td class="hikashop_compare_details_first_column"><?php echo JText::_('PRODUCT_HEIGHT'); ?></td>
	<?php
	foreach($this->elements as $k => $element) {
		if(isset($element->product_height) && bccomp($element->product_height,0,3)){ ?>
			<td class="hikashop_product_height_main">
				<?php echo rtrim(rtrim($element->product_height,'0'),',.').' '.JText::_($element->product_dimension_unit); ?><br />
			</td>
			<?php
		}
	}
	?>
</tr>

The following user(s) said Thank You: Hurley

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

  • Posts: 34
  • Thank you received: 0
9 years 8 months ago #166188

Great!..Thanks, worked perfectly

Jag

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

Time to create page: 0.076 seconds
Powered by Kunena Forum