- Posts: 34
- Thank you received: 0
Registration Email Activation for certain Groups
12 years 4 months ago #164230
by Hurley
Registration Email Activation for certain Groups was created by Hurley
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
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.
12 years 4 months ago #164238
by Xavier
Replied by Xavier on topic Registration Email Activation for certain Groups
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:
By:
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:
Code:
echo $this->element->product_code;
By:
Code:
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.
12 years 3 months ago #165752
by Hurley
Replied by Hurley on topic Registration Email Activation for certain Groups
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
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
Please Log in or Create an account to join the conversation.
12 years 3 months ago #166027
by Xavier
Replied by Xavier on topic Registration Email Activation for certain Groups
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.
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.
12 years 3 months ago #166071
by Hurley
Replied by Hurley on topic Registration Email Activation for certain Groups
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
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.
12 years 3 months ago #166093
by Xavier
Replied by Xavier on topic Registration Email Activation for certain Groups
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:
And add code like the following where you want:
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:
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 } ?>
Code:
<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.
12 years 3 months ago #166188
by Hurley
Replied by Hurley on topic Registration Email Activation for certain Groups
Great!..Thanks, worked perfectly
Jag
Jag
Please Log in or Create an account to join the conversation.
Time to create page: 0.070 seconds