2 problems with links and tabular view

  • Posts: 91
  • Thank you received: 1
11 years 5 months ago #148493

hello again :D

first problem
i have linkt to the produkt, and link looks like this
mysitename/produkt/produktname.html
when i have manufacturer enabled in produkt view the link is like this
mysitename/manufacturername.html
and i dont have that link to my site.
and i want to have link like this
mysitename/manufacturer/manufacturername.html
because i have that link :)

2 problem
compare produkt links problem
when i have produkcts in compare view
the products have links like this
mysitename/component/hikashop/produkt/produktname.html
how to make this looks like this
mystitename/produkts/produkt/produktname.html
?
3 problem - tabular
is posible to make another tab in tabular like video tab?

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

  • Posts: 12953
  • Thank you received: 1778
11 years 5 months ago #148501

Hi,
1. 2. Note that using "SEF url options" tab options through "Hikashop->System->Configuration->Feature" will probably help you.

3. The solution will probably be to add some code customization to add your "video" tab through the "listing_table" file of the "product" view through "Hikashop->Display->Views"

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

  • Posts: 91
  • Thank you received: 1
11 years 5 months ago #149791

1.2. Sef url options dosent help in this problem.
3. I realy dont know good php :) to make this work :)

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

  • Posts: 13201
  • Thank you received: 2322
11 years 5 months ago #149857

Hi,

Thanks to give us your settings regarding the SEF options.
Using an advanced sef manager components can probably help you in having the desired URLs.

For the Tab I suppose that you are talking about the product show page with the tabs.
So you have to edit the view "product / show_tabular" and add a tab by adding the following code in the "ul":

<li id="hikashop_show_tabular_NEWTABNAME_li" class="hikashop_tabs_li ui-corner-top"><a onclick="displayTab('hikashop_show_tabular_NEWTABNAME');" href="javascript:void(0);"><?php echo JText::_('NEWTABNAME');?></a></li>
And this code:
<div class="hikashop_tabs_content" id="hikashop_show_tabular_description">
...
</div>
In the content.

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

  • Posts: 91
  • Thank you received: 1
11 years 5 months ago #150246

Ok so i add the firs code to ul. hika_tabs_ul and now tab apear :)
but where i must add the secound code?
In products content description?
I try to add this code in product description and the content in the<div class="hikashop_tabs_content" id="hikashop_show_tabular_description">
... - this contnent
</div> dosent show in video tab.

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

  • Posts: 91
  • Thank you received: 1
11 years 5 months ago #150304

I think about create, new database...
because vide tab will have all products...
and product will have diffrent video

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

  • Posts: 13201
  • Thank you received: 2322
11 years 5 months ago #150325

Hi,

Sorry my mistake, the code must be:

<div class="hikashop_tabs_content" id="hikashop_show_tabular_NEWTABNAME">
...
</div>
I forgot a replacement. And you can place it after any other div with the class "hikashop_tabs_content".

To have different videos depending on the product, the easiest way is to create a new custom field in the "product" table via the menu Display > Custom fields. Then in backend for each product set his video url/path.
And in the view edition, in the tab set a path containing the url set in the custom field.

To get the content of a custom field you have to use code like:
$this->element->CUSTOMFIELDNAME

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

  • Posts: 91
  • Thank you received: 1
11 years 4 months ago #151388

Hello again :)
OK i set up a tab - work ok.
i set up a div content - is ok
i put in div
<?php

echo ($this->element->customfieldname);

?>
AND the video shows in video tab in tabular product view
BUT :)
The video shows in specification tab too :)
How to change that ;)?

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

  • Posts: 91
  • Thank you received: 1
11 years 4 months ago #151395

and another problem, customtext delete iframe

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

  • Posts: 91
  • Thank you received: 1
11 years 4 months ago #151396

ok secound problem is done :)

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

  • Posts: 13201
  • Thank you received: 2322
11 years 4 months ago #151392

Hi,

Could you post the code you have for the tabs ?
Thanks to put it between the following tags [ code] ... [ /code] (without spaces)

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

  • Posts: 91
  • Thank you received: 1
11 years 4 months ago #151522

Sure :) here U go!

<div id="hikashop_product_bottom_part" class="hikashop_product_bottom_part show_tabular">
  <div id="hikashop_tabs_div">
    <ul class="hikashop_tabs_ul">
      <li id="hikashop_show_tabular_description_li" class="hikashop_tabs_li ui-corner-top"><a onclick="displayTab('hikashop_show_tabular_description');" href="javascript:void(0);"><?php echo JText::_('PRODUCT_DESCRIPTION');?></a></li>
	  <li id="hikashop_show_tabular_Video_li" class="hikashop_tabs_li ui-corner-top"><a onclick="displayTab('hikashop_show_tabular_Video');" href="javascript:void(0);"><?php echo JText::_('Video');?></a></li>
      <?php if($hide_specs == 0){ ?>
      <li id="hikashop_show_tabular_specification_li" class="hikashop_tabs_li ui-corner-top"><a onclick="displayTab('hikashop_show_tabular_specification');" href="javascript:void(0);"><?php echo JText::_('SPECIFICATIONS');?></a></li>
      <?php }
      if($status_vote == "comment" || $status_vote == "two" || $status_vote == "both" ){
      ?>
      <li id="hikashop_show_tabular_comment_li" class="hikashop_tabs_li ui-corner-top"><a onclick="displayTab('hikashop_show_tabular_comment');" href="javascript:void(0);"><?php echo JText::_('PRODUCT_COMMENT');?></a></li>
      <li id="hikashop_show_tabular_new_comment_li" class="hikashop_tabs_li ui-corner-top"><a onclick="displayTab('hikashop_show_tabular_new_comment');" href="javascript:void(0);"><?php echo JText::_('PRODUCT_NEW_COMMENT');?></a></li>
      <?php } ?>
    </ul>
    <?php
    if(!empty($this->element->extraData->bottomBegin))
      echo implode("\r\n",$this->element->extraData->bottomBegin);
    ?>
    <div class="hikashop_tabs_content" id="hikashop_show_tabular_description">
      <div id="hikashop_product_description_main" class="hikashop_product_description_main">
        <?php
        echo JHTML::_('content.prepare',preg_replace('#<hr *id="system-readmore" */>#i','',$this->element->product_description));
        ?>
      </div>

      <span id="hikashop_product_url_main" class="hikashop_product_url_main">
        <?php
        if (!empty ($this->element->product_url)) {
          echo JText :: sprintf('MANUFACTURER_URL', '<a href="' . $this->element->product_url . '" target="_blank">' . $this->element->product_url . '</a>');
        }
        ?>
      </span>
    </div>
<div class="hikashop_tabs_content" id="hikashop_show_tabular_Video">
     <?php
	
        echo ($this->element->video);
	
        ?>
</div>
    <?php if($hide_specs == 0){ ?>
    <div class="hikashop_tabs_content" id="hikashop_show_tabular_specification">
    <?php
      $this->setLayout('show_block_dimensions');
      echo $this->loadTemplate();
      if(!empty($this->fields)){
        $this->setLayout('show_block_custom_main');
        echo $this->loadTemplate();
      }
    ?>
    </div>
    <?php }
if($status_vote == "comment" || $status_vote == "two" || $status_vote == "both" ){ ?>
<form action="<?php echo hikashop_currentURL() ?>" method="post" name="hikashop_comment_form" id="hikashop_comment_form">
    <?php
    if(!empty($this->element->extraData->bottomMiddle))
      echo implode("\r\n",$this->element->extraData->bottomMiddle);
    ?>
      <div class="hikashop_tabs_content" id="hikashop_show_tabular_comment">
        <div id="hikashop_product_vote_listing" class="hikashop_product_vote_listing">
          <?php
            echo $layout_vote_listing;
          ?>
        </div>
      </div>
      <div class="hikashop_tabs_content" id="hikashop_show_tabular_new_comment">
        <div id="hikashop_product_vote_form" class="hikashop_product_vote_form">
          <?php
            echo $layout_vote_form;
          ?>
        </div>
      </div>
</form>
<?php } ?>
<input type="hidden" name="selected_tab" id="selected_tab" value="hikashop_show_tabular_description"/>
    <?php
    if(!empty($this->element->extraData->bottomEnd))
      echo implode("\r\n",$this->element->extraData->bottomEnd);
    ?>
  </div>
</div>

Last edit: 11 years 4 months ago by misa22.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 4 months ago #151524

The code seems to be correct.
Could you give us a link to a product page with that problem ?

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

  • Posts: 91
  • Thank you received: 1
11 years 4 months ago #151687

i send U private message :)

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

  • Posts: 13201
  • Thank you received: 2322
11 years 4 months ago #151665

Ok now I see why that's happening, that because in specifications it list all the custom fields, and because the video is a custom field so it appear in the specifications.

To avoid that you will have to edit the view "product / show_block_custom_main" and put an if condition to not display the field if it's the video one. Something like:

if($fieldName == 'VIDEOFIELDNAME') continue;
After:
foreach ($this->fields as $fieldName => $oneExtraField) {

The following user(s) said Thank You: misa22

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

  • Posts: 91
  • Thank you received: 1
11 years 4 months ago #151724

it works :) beutufill :) Thank U!:)

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

Time to create page: 0.104 seconds
Powered by Kunena Forum