How to Remove double product titles?

  • Posts: 18
  • Thank you received: 0
12 years 9 months ago #46963

Hello,

I hope this is in the right section!

My product page is showing the product title twice!
How can I remove or hide one of them?

Here is the link
www.tampamarketingcrew.com/index.php/man...-campaign-management

Thank you!
-Chris

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

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

Hi csanfilippo,

It's probably because of your template:
www.hikashop.com/en/forum/4-how-to/26504-product-code.html

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

  • Posts: 18
  • Thank you received: 0
12 years 9 months ago #47013

I have this problem on both of my websites and they are using different templates.
Both templates are from Rockettheme.
Here are the links.

prestigefitnesssolutions.com/index.php/e...kage/4-sessions-week

www.tampamarketingcrew.com/index.php/man...-campaign-management


I will be upgrading to the Essential package once I make some money but want to get this to display right for now.

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

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

The problem comes from the js of your template for the spans processing which breaks the HTML of HikaShop.

But that code will hide the product code.

You need to edit the file show of the view product via Display->Views and remove this code (do it in the good template):

<span id="hikashop_product_code_main" class="hikashop_product_code_main">
<?php
echo $this->element->product_code;
?>
</span> 

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

  • Posts: 18
  • Thank you received: 0
12 years 9 months ago #47020

Where is that css file located? Are you speaking of my template CSS file?

Or is it the "front end"/"back-end" CSS file under configuration/displays?


I am sorry I am new to Hikashop, and I really appreciate your help.

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

  • Posts: 83103
  • Thank you received: 13418
  • MODERATOR
12 years 9 months ago #47025

It's the menu Display->Views where you should go.

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

  • Posts: 18
  • Thank you received: 0
12 years 9 months ago #47033

Ok I found the CSS file,

but I am not seeing that code in the CSS file.

I did find this code...

<p class="hikashop_order_product_name"><?php echo $product->order_product_name; ?></p>
<p class="hikashop_order_product_code"><?php echo $product->order_product_code; ?></p>
<?php if($this->invoice_type=='order' && !empty($product->product_id)){ ?>

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

  • Posts: 83103
  • Thank you received: 13418
  • MODERATOR
12 years 9 months ago #47108

That's the show file of the view order. Xavier talked about the file show of the view product

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

  • Posts: 18
  • Thank you received: 0
12 years 9 months ago #47109

I can't find this in the css file!!??

<span id="hikashop_product_code_main" class="hikashop_product_code_main">
<?php
echo $this->element->product_code;
?>
</span>


It's not in there!

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

  • Posts: 83103
  • Thank you received: 13418
  • MODERATOR
12 years 9 months ago #47112

Try the file "show_default" then.

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

  • Posts: 18
  • Thank you received: 0
12 years 9 months ago #47113

Ok I will try that right now

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

  • Posts: 18
  • Thank you received: 0
12 years 9 months ago #47114

I didn't find that in their either.
Here is a copy of the css file,


<?php
/**
* @package HikaShop for Joomla!
* @version 1.5.7
* @author hikashop.com
* @copyright (C) 2010-2012 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?>
<?php
$colspan = 2;
global $Itemid;
$url_itemid = '';
if(!empty($Itemid)){
$url_itemid='&Itemid='.$Itemid;
}
if($this->invoice_type=='order'){
?>
<div id="hikashop_order_main">
<fieldset>
<div class="header hikashop_header_title"><h1><?php echo JText::_('HIKASHOP_ORDER').':'.$this->element->order_number;?></h1></div>
<div class="toolbar hikashop_header_buttons" id="toolbar">
<table>
<tr>
<?php if(hikashop_level(1) && $this->config->get('print_invoice_frontend') && !in_array($this->element->order_status,array('refunded','cancelled'))){ ?>
<td>
<a class="modal" rel="{handler: 'iframe', size: {x: 760, y: 480}}" href="<?php echo hikashop_completeLink('order&task=invoice&order_id='.$this->element->order_id.$url_itemid,true); ?>">
<span class="icon-32-print" title="<?php echo JText::_('PRINT_INVOICE'); ?>">
</span>
<?php echo JText::_('HIKA_PRINT'); ?>
</a>
</td>
<?php } ?>
<td>
<a onclick="submitbutton('cancel'); return false;" href="#" >
<span class="icon-32-back" title="<?php echo JText::_('HIKA_BACK'); ?>">
</span>
<?php echo JText::_('HIKA_BACK'); ?>
</a>
</td>
</tr>
</table>
</div>
</fieldset>
<?php }?>
<div class="iframedoc" id="iframedoc"></div>
<form action="<?php echo hikashop_completeLink('order'.$url_itemid); ?>" method="post" name="adminForm" id="adminForm">
<table width="100%">
<?php if($this->invoice_type!='order'){?>
<tr>
<td>
<span id="hikashop_order_title" class="hikashop_order_title"><?php echo JText::_('INVOICE');?></span>
<br/>
<br/>
</td>
</tr>
<?php }?>
<tr>
<td>
<div id="hikashop_order_right_part" class="hikashop_order_right_part">
<?php echo JText::_('DATE').': '.hikashop_getDate($this->element->order_created,'%d %B %Y ');?><br/>
<?php if($this->invoice_type=='order'){
echo JText::_('HIKASHOP_ORDER');
}else{
echo JText::_(strtoupper($this->invoice_type));
}
echo ': '.@$this->element->order_number;
?>
</div>
<div id="hikashop_order_left_part" class="hikashop_order_left_part"><?php
echo $this->store_address;
?></div>
</td>
</tr>
<tr>
<td>
<br/>
<br/>
<table width="100%">
<tr>
<?php
$params = null;
$js = '';
?>
<?php if(!empty($this->element->billing_address)){ ?>
<td>
<fieldset class="adminform" id="htmlfieldset_billing">
<legend style="background-color: #FFFFFF;"><?php echo JText::_('HIKASHOP_BILLING_ADDRESS'); ?></legend>
<?php
$html = hikashop_getLayout('address','address_template',$params,$js);
if(!empty($this->element->fields)){
foreach($this->element->fields as $field){
$fieldname = $field->field_namekey;
$html=str_replace('{'.$fieldname.'}',$this->fieldsClass->show($field,$this->element->billing_address->$fieldname),$html);
}
}
echo str_replace("\n","<br/>\n",str_replace("\n\n","\n",preg_replace('#{(?:(?!}).)*}#i','',$html)));
?>
</fieldset>
</td>
<?php }
if(!empty($this->element->order_shipping_id) && !empty($this->element->shipping_address)){
?>
<td>
<fieldset class="adminform" id="htmlfieldset_shipping">
<legend style="background-color: #FFFFFF;"><?php echo JText::_('HIKASHOP_SHIPPING_ADDRESS'); ?></legend>
<?php
$override = false;
if(method_exists($this->currentShipping, 'getShippingAddress')) {
$override = $this->currentShipping->getShippingAddress($this->element->order_shipping_id);
}
if($override !== false ) {
echo $override;
} else {
$html = hikashop_getLayout('address','address_template',$params,$js);
if(!empty($this->element->fields)){
foreach($this->element->fields as $field){
$fieldname = $field->field_namekey;
$html=str_replace('{'.$fieldname.'}',$this->fieldsClass->show($field,$this->element->shipping_address->$fieldname),$html);
}
}
echo str_replace("\n","<br/>\n",str_replace("\n\n","\n",preg_replace('#{(?:(?!}).)*}#i','',$html)));
}
?>
</fieldset>
</td><?php
} ?>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<br/>
<fieldset class="adminform" id="htmlfieldset_products">
<legend style="background-color: #FFFFFF;"><?php echo JText::_('PRODUCT_LIST'); ?></legend>
<table cellpadding="1" width="100%">
<thead>
<tr>
<th class="hikashop_order_item_name_title title">
<?php echo JText::_('PRODUCT'); ?>
</th>
<?php
$files = false;
foreach($this->order->products as $product){
if(!empty($product->files)) $files = true;
}
if($this->invoice_type=='order' && $files){ $colspan = 3; ?>
<th class="hikashop_order_item_files_title title">
<?php echo JText::_('HIKA_FILES'); ?>
</th>
<?php } ?>
<th class="hikashop_order_item_price_title title">
<?php echo JText::_('UNIT_PRICE'); ?>
</th>
<th class="hikashop_order_item_quantity_title title titletoggle">
<?php echo JText::_('PRODUCT_QUANTITY'); ?>
</th>
<th class="hikashop_order_item_total_title title titletoggle">
<?php echo JText::_('PRICE'); ?>
</th>
</tr>
</thead>
<tbody>
<?php
$k=0;
$group = $this->config->get('group_options',0);
foreach($this->order->products as $product){
if($group && $product->order_product_option_parent_id) continue;
?>
<tr class="row<?php echo $k;?>">
<td class="hikashop_order_item_name_value">
<?php if($this->invoice_type=='order' && !empty($product->product_id)){ ?>
<a class="hikashop_order_product_link" href="<?php echo hikashop_completeLink('product&task=show&cid='.$product->product_id.$url_itemid); ?>">
<?php } ?>
<p class="hikashop_order_product_name"><?php echo $product->order_product_name; ?></p>
<p class="hikashop_order_product_code"><?php echo $product->order_product_code; ?></p>
<?php if($this->invoice_type=='order' && !empty($product->product_id)){ ?>
</a>
<?php } ?>
<p class="hikashop_order_product_custom_item_fields">
<?php
if(hikashop_level(2) && !empty($this->fields)){
foreach($this->fields as $field){
$namekey = $field->field_namekey;
if(!empty($product->$namekey)){
echo '<p class="hikashop_order_item_'.$namekey.'">'.$this->fieldsClass->getFieldName($field).': '.$this->fieldsClass->show($field,$product->$namekey).'</p>';
}
}
}
if($group){
foreach($this->order->products as $j => $optionElement){
if($optionElement->order_product_option_parent_id != $product->order_product_id) continue;
$product->order_product_price +=$optionElement->order_product_price;
$product->order_product_total_price_no_vat+=$optionElement->order_product_total_price_no_vat;
?>
<p class="hikashop_order_option_name">
<?php
echo $optionElement->order_product_name . ' ( + '.$this->currencyHelper->format($optionElement->order_product_price,$this->order->order_currency_id).' )';
?>
</p>
<?php
}
}?>
</p>
</td>
<?php if($this->invoice_type=='order' && $files){ ?>
<td class="hikashop_order_item_files_value">
<?php
if(!empty($product->files) && ($this->order_status_download_ok || bccomp($product->order_product_price,0,5)==0)){
$html = array();
foreach($product->files as $file){
if(empty($file->file_name)){
$file->file_name = $file->file_path;
}
$fileHtml = '';
if(!empty($this->download_time_limit) && ($this->download_time_limit+$this->order->order_created)<time()){
$fileHtml = JText::_('TOO_LATE_NO_DOWNLOAD');
}
if(!empty($file->file_limit) && (int)$file->file_limit != 0) {
$download_number_limit = $file->file_limit;
if($download_number_limit < 0)
$download_number_limit = 0;
} else {
$download_number_limit = $this->download_number_limit;
}
if(!empty($download_number_limit) && $download_number_limit<=$file->download_number){
$fileHtml = JText::_('MAX_REACHED_NO_DOWNLOAD');
}
if(empty($fileHtml)){
$fileHtml = '<a href="'.hikashop_completeLink('order&task=download&file_id='.$file->file_id.'&order_id='.$this->order->order_id.$url_itemid).'">'.$file->file_name.'</a>';
if(!empty($this->download_time_limit))$fileHtml .= ' / '.JText::sprintf('UNTIL_THE_DATE',hikashop_getDate($this->order->order_created+$this->download_time_limit));
if(!empty($download_number_limit))$fileHtml .= ' / '.JText::sprintf('X_DOWNLOADS_LEFT',$download_number_limit-$file->download_number);
}else{
$fileHtml = $file->file_name .' '.$fileHtml;
}
$html[]=$fileHtml;
}
echo implode('<br/>',$html);
}
?>
</td>
<?php } ?>
<td class="hikashop_order_item_price_value">
<?php echo $this->currencyHelper->format($product->order_product_price,$this->order->order_currency_id);?>
</td>
<td class="hikashop_order_item_quantity_value">
<?php echo $product->order_product_quantity;?>
</td>
<td class="hikashop_order_item_total_value">
<?php echo $this->currencyHelper->format($product->order_product_total_price_no_vat,$this->order->order_currency_id);?>
</td>
</tr>
<?php
$k=1-$k;
}
?>
<tr>
<td style="border-top:2px solid #B8B8B8;" colspan="<?php echo $colspan; ?>">
</td>
<td class="hikashop_order_subtotal_title" style="border-top:2px solid #B8B8B8;" class="key">
<label>
<?php echo JText::_( 'SUBTOTAL' ); ?>
</label>
</td>
<td class="hikashop_order_subtotal_value" style="border-top:2px solid #B8B8B8;">
<?php echo $this->currencyHelper->format($this->order->order_subtotal_no_vat,$this->order->order_currency_id); ?>
</td>
</tr>
<?php $taxes = $this->order->order_subtotal-$this->order->order_subtotal_no_vat;
if(!empty($this->order->order_discount_code)){ ?>
<tr>
<td colspan="<?php echo $colspan; ?>">
</td>
<td class="hikashop_order_coupon_title key">
<label>
<?php echo JText::_( 'HIKASHOP_COUPON' ); ?>
</label>
</td>
<td class="hikashop_order_coupon_value" >
<?php echo $this->currencyHelper->format($this->order->order_discount_price*-1.0,$this->order->order_currency_id); ?>
</td>
</tr>
<?php }
if($taxes > 0){
if($this->config->get('detailed_tax_display') && !empty($this->order->order_tax_info)){
foreach($this->order->order_tax_info as $tax){ ?>
<tr>
<td colspan="<?php echo $colspan; ?>">
</td>
<td class="hikashop_order_tax_title key">
<label>
<?php echo $tax->tax_namekey; ?>
</label>
</td>
<td class="hikashop_order_tax_value">
<?php echo $this->currencyHelper->format($tax->tax_amount,$this->order->order_currency_id); ?>
</td>
</tr>
<?php
}
}else{ ?>
<tr>
<td colspan="<?php echo $colspan; ?>">
</td>
<td class="hikashop_order_tax_title key">
<label>
<?php echo JText::_( 'VAT' ); ?>
</label>
</td>
<td class="hikashop_order_tax_value">
<?php echo $this->currencyHelper->format($taxes,$this->order->order_currency_id); ?>
</td>
</tr>
<?php }
}
if(!empty($this->order->order_shipping_method)){ ?>
<tr>
<td colspan="<?php echo $colspan; ?>">
</td>
<td class="hikashop_order_shipping_title key">
<label>
<?php echo JText::_( 'SHIPPING' ); ?>
</label>
</td>
<td class="hikashop_order_shipping_value" >
<?php echo $this->currencyHelper->format($this->order->order_shipping_price,$this->order->order_currency_id); ?>
</td>
</tr>
<?php } ?>
<tr>
<td colspan="<?php echo $colspan; ?>">
</td>
<td class="hikashop_order_total_title key">
<label>
<?php echo JText::_( 'HIKASHOP_TOTAL' ); ?>
</label>
</td>
<td class="hikashop_order_total_value" >
<?php echo $this->currencyHelper->format($this->order->order_full_price,$this->order->order_currency_id); ?>
</td>
</tr>
</tbody>
</table>
</fieldset>
</td>
</tr>
<tr>
<td>
<?php
JPluginHelper::importPlugin('hikashop');
$dispatcher =& JDispatcher::getInstance();
$dispatcher->trigger('onAfterOrderProductsListingDisplay', array(&$this->order, 'order_front_show'));
?>
</td>
</tr>
<?php if(hikashop_level(2) && !empty($this->fields)){?>
<tr>
<td>
<fieldset class="hikashop_order_custom_fields_fieldset">
<legend><?php echo JText::_('ADDITIONAL_INFORMATION'); ?></legend>
<table class="hikashop_order_custom_fields_table adminlist" cellpadding="1" width="100%">
<?php foreach($this->fields as $fieldName => $oneExtraField) {
if(!@$oneExtraField->field_frontcomp || empty($this->order->$fieldName)) continue;
?>
<tr class="hikashop_order_custom_field_<?php echo $fieldName;?>_line">
<td class="key">
<?php echo $this->fieldsClass->getFieldName($oneExtraField);?>
</td>
<td>
<?php echo $this->fieldsClass->show($oneExtraField,$this->order->$fieldName); ?>
</td>
</tr>
<?php } ?>
</table>
</fieldset>
</td>
</tr>
<?php } ?>
<?php if(hikashop_level(2) && !empty($this->order->entries)){?>
<tr>
<td>
<fieldset class="htmlfieldset_entries">
<legend><?php echo JText::_('HIKASHOP_ENTRIES'); ?></legend>
<table class="hikashop_entries_table adminlist" cellpadding="1" width="100%">
<thead>
<tr>
<th class="title titlenum">
<?php echo JText::_( 'HIKA_NUM' );?>
</th>
<?php
if(!empty($this->fields)){
foreach($this->fields as $field){
echo '<th class="title">'.$this->fieldsClass->trans($field->field_realname).'</th>';
}
}
?>
</tr>
</thead>
<tbody>
<?php
$k=0;
$i=1;
foreach($this->order->entries as $entry){
?>
<tr class="row<?php echo $k;?>">
<td>
<?php echo $i;?>
</td>
<?php
if(!empty($this->fields)){
foreach($this->fields as $field){
$namekey = $field->field_namekey;
if(!empty($entry->$namekey)) echo '<td>'.$this->fieldsClass->show($field,$entry->$namekey).'</td>';
}
}
?>
</tr>
<?php
$k=1-$k;
$i++;
}
?>
</tbody>
</table>
</fieldset>
</td>
</tr>
<?php } ?>
</table>
<input type="hidden" name="cid[]" value="<?php echo $this->element->order_id; ?>" />
<input type="hidden" name="option" value="<?php echo HIKASHOP_COMPONENT; ?>" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="ctrl" value="<?php echo JRequest::getCmd('ctrl'); ?>" />
<input type="hidden" name="cancel_redirect" value="<?php echo JRequest::getString('cancel_redirect'); ?>" />
<input type="hidden" name="cancel_url" value="<?php echo JRequest::getString('cancel_url'); ?>" />
<?php echo JHTML::_( 'form.token' ); ?>
</form>
</div>
<div style="page-break-after:always"></div>

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

  • Posts: 83103
  • Thank you received: 13418
  • MODERATOR
12 years 9 months ago #47119

You're still editing the file "show" of the view "order"...

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

  • Posts: 18
  • Thank you received: 0
12 years 9 months ago #47123

ok it worked!!!

It was in the show default like you said.
Sorry for not understanding, I was not paying attention to "view" column!

Thank you so much!!

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

Time to create page: 0.098 seconds
Powered by Kunena Forum