Code in the productname line

  • Posts: 122
  • Thank you received: 3
  • Hikashop Business
12 years 1 month ago #69293

Hello, in the product orders we need ( the product number) CODE. On the site in the categorie product list, its very nice published. But in the product page the code is after the product name. Thats not nice with long product names and not correct.

just started a new Hikashop Business and the site is a test fase, look at it.
Good is:
bal.mariusklabbers.nl/index.php/product-...egory/24-speerwerpen
bal.mariusklabbers.nl/index.php/product-...e/category/19-acties

(bestelnummer = order code )

Wrong is:
bal.mariusklabbers.nl/index.php/product-...iningsspeer-400-gram
bal.mariusklabbers.nl/index.php/product-...ct/1-basketbal-garmy

How to change, withs regards Mariussport, thanks

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

  • Posts: 12953
  • Thank you received: 1778
12 years 1 month ago #69324

Hi,

I think that you'll have to :
- Go to "Hikashop->Display->Views"
- Edit the Show_default file of the product view of the front-end template that you are using

Hope this will help you.

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

  • Posts: 122
  • Thank you received: 3
  • Hikashop Business
12 years 1 month ago #69478

hello and thanks for answer. I found this CSS rule: "product show default"

<?php if ($this->config->get('show_code')) { ?>
<span id="hikashop_product_code_main" class="hikashop_product_code_main">
<?php
echo $this->element->product_code;
?>

i think i have to change the line: echo $this->element->product_code;

Can you help maby.

thanks and greetings, Marius Klabbers

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

  • Posts: 12953
  • Thank you received: 1778
12 years 1 month ago #69484

Ok, How do you want to display your product code in your product page ?

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

  • Posts: 82818
  • Thank you received: 13362
  • MODERATOR
12 years 1 month ago #69576

You can simply add the tag <br/> before that product code display code and that will put the product code on a new line.

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

  • Posts: 122
  • Thank you received: 3
  • Hikashop Business
12 years 1 month ago #69626

Hi Nicolas, thats exactly wat i wamt to do, thanks.
1. In the php file i can make a text rule: Productname/Codenumber.
2. i like to see:
Productname
Codenumber

but i can't find the ride place to put <br /> sorry when i try i lose the productpage!

<div id="hikashop_product_top_part" class="hikashop_product_top_part">
<h1>
<span id="hikashop_product_name_main" class="hikashop_product_name_main">
<?php
if (hikashop_getCID('product_id')!=$this->element->product_id && isset ($this->element->main->product_name))
echo $this->element->main->product_name;
else
echo $this->element->product_name;
?>
</span>
<?php if ($this->config->get('show_code')) { ?>
<span id="hikashop_product_code_main" class="hikashop_product_code_main">
<?php
echo $this->element->product_code;
?>
</span>
<?php } ?>
</h1>

will you show me please. Thanks marius

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

  • Posts: 12953
  • Thank you received: 1778
12 years 1 month ago #69641

Hi,

You'll just have to put your "<br/>" before theses lines :

echo $this->element->product_code;
?>
</span>

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

  • Posts: 122
  • Thank you received: 3
  • Hikashop Business
12 years 1 month ago #69709

hi, it should work, but the result is a "blanc page".
To separate name and code: i can create in that line" echo "/Articlenumber". than i see
Productname/Articlenumberxxx
but that is not very nice.

greetings Marius

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

  • Posts: 12953
  • Thank you received: 1778
12 years 1 month ago #69779

Sorry Can you do it agin but by putting this line

echo "<br/>";
instead of just <br/>

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

  • Posts: 122
  • Thank you received: 3
  • Hikashop Business
12 years 1 month ago #69831

Hi,
everywhere in the php file "product show default" the function <br /> works perfect. For instance before 'product_top_part" or "product_left_part"
But not there where i want it, between the Name and Code.
At this moment i can't find the solution. maybe later on, now i have too work on the shop products.

greetings Marius

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

Time to create page: 0.079 seconds
Powered by Kunena Forum