Code in the productname line
- mariussport
-
Topic Author
- Offline
- Test fase
Less
More
14 years 2 weeks ago #69293
by mariussport
Code in the productname line was created 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
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.
Less
More
- Posts: 12953
- Thank you received: 1778
14 years 2 weeks ago #69324
by Mohamed Thelji
Replied by Mohamed Thelji on topic Re: Code in the productname line
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.
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.
- mariussport
-
Topic Author
- Offline
- Test fase
14 years 2 weeks ago #69478
by mariussport
Replied by mariussport on topic Re: Code in the productname line
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
<?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.
Less
More
- Posts: 12953
- Thank you received: 1778
14 years 2 weeks ago #69484
by Mohamed Thelji
Replied by Mohamed Thelji on topic Re: Code in the productname line
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.
14 years 2 weeks ago #69576
by nicolas
Replied by nicolas on topic Re: Code in the productname line
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.
- mariussport
-
Topic Author
- Offline
- Test fase
14 years 2 weeks ago #69626
by mariussport
Replied by mariussport on topic Re: Code in the productname line
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
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.
Less
More
- Posts: 12953
- Thank you received: 1778
14 years 2 weeks ago #69641
by Mohamed Thelji
Replied by Mohamed Thelji on topic Re: Code in the productname line
Hi,
You'll just have to put your "<br/>" before theses lines :
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.
- mariussport
-
Topic Author
- Offline
- Test fase
14 years 2 weeks ago #69709
by mariussport
Replied by mariussport on topic Re: Code in the productname line
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
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.
Less
More
- Posts: 12953
- Thank you received: 1778
14 years 2 weeks ago #69779
by Mohamed Thelji
Replied by Mohamed Thelji on topic Re: Code in the productname line
Sorry Can you do it agin but by putting this line
instead of just <br/>
Code:
echo "<br/>";
Please Log in or Create an account to join the conversation.
- mariussport
-
Topic Author
- Offline
- Test fase
14 years 2 weeks ago #69831
by mariussport
Replied by mariussport on topic Re: Code in the productname line
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
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