Skip to main content

Code in the productname line

More
14 years 2 weeks ago #69293 by mariussport
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.

More
14 years 2 weeks ago #69324 by Mohamed Thelji
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.

More
14 years 2 weeks ago #69478 by mariussport
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.

More
14 years 2 weeks ago #69484 by Mohamed Thelji
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.

More
14 years 2 weeks ago #69576 by nicolas
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.

More
14 years 2 weeks ago #69626 by mariussport
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.

More
14 years 2 weeks ago #69641 by Mohamed Thelji
Hi,

You'll just have to put your "<br/>" before theses lines :
Code:
echo $this->element->product_code; ?> </span>

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

More
14 years 2 weeks ago #69709 by mariussport
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.

More
14 years 2 weeks ago #69779 by Mohamed Thelji
Sorry Can you do it agin but by putting this line
Code:
echo "<br/>";
instead of just <br/>

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

More
14 years 2 weeks ago #69831 by mariussport
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.185 seconds
Powered by Kunena Forum