[Skip to main content](#vessel-content)

#   align text and price!

##

- **[jchorch](/forum/user/9669-jchorch "View jchorch's Profile")**
- [![jchorch's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9669.jpg)](/forum/user/9669-jchorch "View jchorch's Profile") Topic Author
- [ Offline](/forum/user/9669-jchorch)

Less More

- Posts: 39
- Thank you received: 1
-
-

14 years 2 weeks ago -  14 years 2 weeks ago [\#72960](#72960) by [jchorch](/forum/user/9669-jchorch "View jchorch's Profile")  *[align text and price!](/forum/2-general-talk-about-hikashop/72960-align-text-and-price#72960 "first of all, nico thanks you!! for the support with my project, here is done: --&gt;ondagiftregalos.c0m.ar. :laugh:  Now, I want to make on my site a demo store to get other projects and whit other project i will buy the hikashop pack business.  For that, I need your help with some details...  The first detail would align product text and product price just like this screenshot:  I know I have to edit in backend / view / product / &quot;listing&#95;img&#95;title&quot;  these lines:  (but i not as it should be the code correctly).   params-&gt;get('show&#95;price','-1')=='-1'){ $config =&amp; hikashop&#95;config(); $this-&gt;params-&gt;set('show&#95;price',$config-&gt;get('show&#95;price')); } if($this-&gt;params-&gt;get('show&#95;price')){ $this-&gt;setLayout('listing&#95;price'); echo $this-&gt;loadTemplate(); } ?&gt;    params-&gt;get('link&#95;to&#95;product&#95;page',1)){ ?&gt;  row-&gt;product&#95;name; if($this-&gt;params-&gt;get('link&#95;to&#95;product&#95;page',1)){ ?&gt;      HELP ME, MY HIKA FRIEND! :silly:")* was created by *[jchorch](/forum/user/9669-jchorch "View jchorch's Profile")*

first of all, nico thanks you!! for the support with my project, here is done: --&gt;ondagiftregalos.c0m.ar. :laugh:

Now, I want to make on my site a demo store to get other projects and whit other project i will buy the hikashop pack business.

For that, I need your help with some details...

The first detail would align product text and product price just like this screenshot:

[ ![&#91;img](http://img689.imageshack.us/img689/4765/tiendavirtual01.png) ](http://img689.imageshack.us/img689/4765/tiendavirtual01.png "&#91;img")

I know I have to edit in backend / view / product / "listing_img_title"

these lines:

(but i not as it should be the code correctly).

&lt;!-- PRODUCT PRICE --&gt;
&lt;?php
}
if($this-&gt;params-&gt;get('show_price','-1')=='-1'){
$config =&amp; hikashop_config();
$this-&gt;params-&gt;set('show_price',$config-&gt;get('show_price'));
}
if($this-&gt;params-&gt;get('show_price')){
$this-&gt;setLayout('listing_price');
echo $this-&gt;loadTemplate();
}
?&gt;
&lt;!-- EO PRODUCT PRICE --&gt;
&lt;!-- PRODUCT NAME --&gt;
&lt;span class="hikashop_product_name"&gt;
&lt;?php if($this-&gt;params-&gt;get('link_to_product_page',1)){ ?&gt;
&lt;a href="&lt;?php echo $link;?&gt;"&gt;
&lt;?php }
echo $this-&gt;row-&gt;product_name;
if($this-&gt;params-&gt;get('link_to_product_page',1)){ ?&gt;
&lt;/a&gt;
&lt;?php } ?&gt;
&lt;/span&gt;
&lt;!-- EO PRODUCT NAME --&gt;

HELP ME, MY HIKA FRIEND! :silly:

Last edit: 14 years 2 weeks ago by [jchorch](/forum/user/9669-jchorch "View jchorch's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzcyOTYwLWFsaWduLXRleHQtYW5kLXByaWNlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

14 years 2 weeks ago -  14 years 2 weeks ago [\#73059](#73059) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Re: align text and price!](/forum/2-general-talk-about-hikashop/72960-align-text-and-price#73059 "first of all, nico thanks you!! for the support with my project, here is done: --&gt;ondagiftregalos.c0m.ar. :laugh:  Now, I want to make on my site a demo store to get other projects and whit other project i will buy the hikashop pack business.  For that, I need your help with some details...  The first detail would align product text and product price just like this screenshot:  I know I have to edit in backend / view / product / &quot;listing&#95;img&#95;title&quot;  these lines:  (but i not as it should be the code correctly).   params-&gt;get('show&#95;price','-1')=='-1'){ $config =&amp; hikashop&#95;config(); $this-&gt;params-&gt;set('show&#95;price',$config-&gt;get('show&#95;price')); } if($this-&gt;params-&gt;get('show&#95;price')){ $this-&gt;setLayout('listing&#95;price'); echo $this-&gt;loadTemplate(); } ?&gt;    params-&gt;get('link&#95;to&#95;product&#95;page',1)){ ?&gt;  row-&gt;product&#95;name; if($this-&gt;params-&gt;get('link&#95;to&#95;product&#95;page',1)){ ?&gt;      HELP ME, MY HIKA FRIEND! :silly:")*

Hi,
I think that before modifying the code you should maybe :
- Go to "*Hikashop-&gt;Display-&gt;Content menus-&gt;'Your product listing'*"
- Set the "Type of layout" to **DIV** and the "Number of columns" to **2**

Hope this will help you.

Last edit: 14 years 2 weeks ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzcyOTYwLWFsaWduLXRleHQtYW5kLXByaWNlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jchorch](/forum/user/9669-jchorch "View jchorch's Profile")**
- [![jchorch's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9669.jpg)](/forum/user/9669-jchorch "View jchorch's Profile") Topic Author
- [ Offline](/forum/user/9669-jchorch)

Less More

- Posts: 39
- Thank you received: 1
-
-

14 years 2 weeks ago [\#73106](#73106) by [jchorch](/forum/user/9669-jchorch "View jchorch's Profile")  Replied by *[jchorch](/forum/user/9669-jchorch "View jchorch's Profile")* on topic *[Re: align text and price!](/forum/2-general-talk-about-hikashop/72960-align-text-and-price#73106 "first of all, nico thanks you!! for the support with my project, here is done: --&gt;ondagiftregalos.c0m.ar. :laugh:  Now, I want to make on my site a demo store to get other projects and whit other project i will buy the hikashop pack business.  For that, I need your help with some details...  The first detail would align product text and product price just like this screenshot:  I know I have to edit in backend / view / product / &quot;listing&#95;img&#95;title&quot;  these lines:  (but i not as it should be the code correctly).   params-&gt;get('show&#95;price','-1')=='-1'){ $config =&amp; hikashop&#95;config(); $this-&gt;params-&gt;set('show&#95;price',$config-&gt;get('show&#95;price')); } if($this-&gt;params-&gt;get('show&#95;price')){ $this-&gt;setLayout('listing&#95;price'); echo $this-&gt;loadTemplate(); } ?&gt;    params-&gt;get('link&#95;to&#95;product&#95;page',1)){ ?&gt;  row-&gt;product&#95;name; if($this-&gt;params-&gt;get('link&#95;to&#95;product&#95;page',1)){ ?&gt;      HELP ME, MY HIKA FRIEND! :silly:")*

I must have expressed myself badly, I need to accommodate the text and price.

I have it so:
[ ![&#91;img](http://imageshack.us/a/img20/3664/85852362.png) ](http://imageshack.us/a/img20/3664/85852362.png "&#91;img")

but I want it like this:
[ ![&#91;img](http://imageshack.us/a/img849/2962/19710757.png) ](http://imageshack.us/a/img849/2962/19710757.png "&#91;img")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzcyOTYwLWFsaWduLXRleHQtYW5kLXByaWNlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jchorch](/forum/user/9669-jchorch "View jchorch's Profile")**
- [![jchorch's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9669.jpg)](/forum/user/9669-jchorch "View jchorch's Profile") Topic Author
- [ Offline](/forum/user/9669-jchorch)

Less More

- Posts: 39
- Thank you received: 1
-
-

14 years 2 weeks ago [\#73397](#73397) by [jchorch](/forum/user/9669-jchorch "View jchorch's Profile")  Replied by *[jchorch](/forum/user/9669-jchorch "View jchorch's Profile")* on topic *[Re: align text and price!](/forum/2-general-talk-about-hikashop/72960-align-text-and-price#73397 "first of all, nico thanks you!! for the support with my project, here is done: --&gt;ondagiftregalos.c0m.ar. :laugh:  Now, I want to make on my site a demo store to get other projects and whit other project i will buy the hikashop pack business.  For that, I need your help with some details...  The first detail would align product text and product price just like this screenshot:  I know I have to edit in backend / view / product / &quot;listing&#95;img&#95;title&quot;  these lines:  (but i not as it should be the code correctly).   params-&gt;get('show&#95;price','-1')=='-1'){ $config =&amp; hikashop&#95;config(); $this-&gt;params-&gt;set('show&#95;price',$config-&gt;get('show&#95;price')); } if($this-&gt;params-&gt;get('show&#95;price')){ $this-&gt;setLayout('listing&#95;price'); echo $this-&gt;loadTemplate(); } ?&gt;    params-&gt;get('link&#95;to&#95;product&#95;page',1)){ ?&gt;  row-&gt;product&#95;name; if($this-&gt;params-&gt;get('link&#95;to&#95;product&#95;page',1)){ ?&gt;      HELP ME, MY HIKA FRIEND! :silly:")*

:S

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzcyOTYwLWFsaWduLXRleHQtYW5kLXByaWNlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

14 years 2 weeks ago [\#73399](#73399) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: align text and price!](/forum/2-general-talk-about-hikashop/72960-align-text-and-price#73399 "first of all, nico thanks you!! for the support with my project, here is done: --&gt;ondagiftregalos.c0m.ar. :laugh:  Now, I want to make on my site a demo store to get other projects and whit other project i will buy the hikashop pack business.  For that, I need your help with some details...  The first detail would align product text and product price just like this screenshot:  I know I have to edit in backend / view / product / &quot;listing&#95;img&#95;title&quot;  these lines:  (but i not as it should be the code correctly).   params-&gt;get('show&#95;price','-1')=='-1'){ $config =&amp; hikashop&#95;config(); $this-&gt;params-&gt;set('show&#95;price',$config-&gt;get('show&#95;price')); } if($this-&gt;params-&gt;get('show&#95;price')){ $this-&gt;setLayout('listing&#95;price'); echo $this-&gt;loadTemplate(); } ?&gt;    params-&gt;get('link&#95;to&#95;product&#95;page',1)){ ?&gt;  row-&gt;product&#95;name; if($this-&gt;params-&gt;get('link&#95;to&#95;product&#95;page',1)){ ?&gt;      HELP ME, MY HIKA FRIEND! :silly:")*

You first need to swap the price and the name in the listing_img_title file.

Then, you can add that CSS so that they both go on one line:
span.hikashop_product_name, span.hikashop_product_price_full {
display: inline !important;
}

The following user(s) said Thank You: [jchorch](/forum/user/9669-jchorch "View jchorch's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzcyOTYwLWFsaWduLXRleHQtYW5kLXByaWNlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.058 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
