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

#   Price Beginning

##

- **[Tracy](/forum/user/12641-tracy "View Tracy's Profile")**
- [![Tracy's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12641-tracy "View Tracy's Profile") Topic Author
- [ Offline](/forum/user/12641-tracy)

Less More

- Posts: 32
- Thank you received: 1
-
-

13 years 2 months ago [\#117493](#117493) by [Tracy](/forum/user/12641-tracy "View Tracy's Profile")  *[Price Beginning](/forum/2-general-talk-about-hikashop/860746-price-beginning#117493 "Hi  I needed to have a couple of options for the PRICE&#95;BEGINNING string ie &quot;from&quot; and &quot; &quot; To do this i Changed the following line in the Listing&#95;Price view  to  salemethod1 is then set up as a custom backend field with the two options.  This works fine but my problem is that i only want this to display in the category listing and not on the product page. How would I achieve this?")* was created by *[Tracy](/forum/user/12641-tracy "View Tracy's Profile")*

Hi

I needed to have a couple of options for the PRICE_BEGINNING string ie "from" and " "
To do this i Changed the following line in the Listing_Price view
Code:

echo JText::_('PRICE_BEGINNING');

to Code:

if(isset($this-&gt;element-&gt;main)) echo JText::_($this-&gt;element-&gt;main-&gt;salemethod1); elseif(isset($this-&gt;row)) echo JText::_($this-&gt;row-&gt;salemethod1); else echo JText::_($this-&gt;element-&gt;salemethod1); $i=0;

salemethod1 is then set up as a custom backend field with the two options.

This works fine but my problem is that i only want this to display in the category listing and not on the product page.
How would I achieve this?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2MDc0Ni1wcmljZS1iZWdpbm5pbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 2 months ago [\#117612](#117612) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Price Beginning](/forum/2-general-talk-about-hikashop/860746-price-beginning#117612 "Hi  I needed to have a couple of options for the PRICE&#95;BEGINNING string ie &quot;from&quot; and &quot; &quot; To do this i Changed the following line in the Listing&#95;Price view  to  salemethod1 is then set up as a custom backend field with the two options.  This works fine but my problem is that i only want this to display in the category listing and not on the product page. How would I achieve this?")*

Hi,

I think that using: Code:

if(JRequest::getVar('layout','show') == 'listing'){ // your code }

can be the solution.

The following user(s) said Thank You: [Tracy](/forum/user/12641-tracy "View Tracy's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2MDc0Ni1wcmljZS1iZWdpbm5pbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Tracy](/forum/user/12641-tracy "View Tracy's Profile")**
- [![Tracy's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12641-tracy "View Tracy's Profile") Topic Author
- [ Offline](/forum/user/12641-tracy)

Less More

- Posts: 32
- Thank you received: 1
-
-

13 years 2 months ago [\#117733](#117733) by [Tracy](/forum/user/12641-tracy "View Tracy's Profile")  Replied by *[Tracy](/forum/user/12641-tracy "View Tracy's Profile")* on topic *[Price Beginning](/forum/2-general-talk-about-hikashop/860746-price-beginning#117733 "Hi  I needed to have a couple of options for the PRICE&#95;BEGINNING string ie &quot;from&quot; and &quot; &quot; To do this i Changed the following line in the Listing&#95;Price view  to  salemethod1 is then set up as a custom backend field with the two options.  This works fine but my problem is that i only want this to display in the category listing and not on the product page. How would I achieve this?")*

Thanks Xavier

Worked perfectly

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2MDc0Ni1wcmljZS1iZWdpbm5pbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Tracy](/forum/user/12641-tracy "View Tracy's Profile")**
- [![Tracy's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12641-tracy "View Tracy's Profile") Topic Author
- [ Offline](/forum/user/12641-tracy)

Less More

- Posts: 32
- Thank you received: 1
-
-

13 years 2 months ago [\#117752](#117752) by [Tracy](/forum/user/12641-tracy "View Tracy's Profile")  Replied by *[Tracy](/forum/user/12641-tracy "View Tracy's Profile")* on topic *[Price Beginning](/forum/2-general-talk-about-hikashop/860746-price-beginning#117752 "Hi  I needed to have a couple of options for the PRICE&#95;BEGINNING string ie &quot;from&quot; and &quot; &quot; To do this i Changed the following line in the Listing&#95;Price view  to  salemethod1 is then set up as a custom backend field with the two options.  This works fine but my problem is that i only want this to display in the category listing and not on the product page. How would I achieve this?")*

Hi Xavier.

Just noticed a strange occurence after using your method. A hikashop cart module which i have at the top of every page only displays correctly on product listing pages.

On all other pages it moves down about 40px. I changed the css to make it right on most page but now on a product listings it is 40px too high.

Here is a link to how it should look
[ www.therebelcakeco.com/](http://www.therebelcakeco.com/)

And here to a product listing page
[ www.therebelcakeco.com/boiled-sweets](http://www.therebelcakeco.com/boiled-sweets)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2MDc0Ni1wcmljZS1iZWdpbm5pbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 2 months ago [\#117803](#117803) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Price Beginning](/forum/2-general-talk-about-hikashop/860746-price-beginning#117803 "Hi  I needed to have a couple of options for the PRICE&#95;BEGINNING string ie &quot;from&quot; and &quot; &quot; To do this i Changed the following line in the Listing&#95;Price view  to  salemethod1 is then set up as a custom backend field with the two options.  This works fine but my problem is that i only want this to display in the category listing and not on the product page. How would I achieve this?")*

Hi,

I don't think that the two problems are related.
The modification don't do anything on the cart module.

I don't really see why you have a difference like that between the two pages. The html code seems to be the same in this part of the website.
It's maybe due to the absolute positioning.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2MDc0Ni1wcmljZS1iZWdpbm5pbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Tracy](/forum/user/12641-tracy "View Tracy's Profile")**
- [![Tracy's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12641-tracy "View Tracy's Profile") Topic Author
- [ Offline](/forum/user/12641-tracy)

Less More

- Posts: 32
- Thank you received: 1
-
-

13 years 2 months ago -  13 years 2 months ago [\#117821](#117821) by [Tracy](/forum/user/12641-tracy "View Tracy's Profile")  Replied by *[Tracy](/forum/user/12641-tracy "View Tracy's Profile")* on topic *[Price Beginning](/forum/2-general-talk-about-hikashop/860746-price-beginning#117821 "Hi  I needed to have a couple of options for the PRICE&#95;BEGINNING string ie &quot;from&quot; and &quot; &quot; To do this i Changed the following line in the Listing&#95;Price view  to  salemethod1 is then set up as a custom backend field with the two options.  This works fine but my problem is that i only want this to display in the category listing and not on the product page. How would I achieve this?")*

Hi Xavier,

It is definitely related because when i remove the code you gave me the cart displays correctly. I also just realised that it only happens when something is in the cart, otherwise its ok, so i dont know if you did this to see what i was talking about.

I have removed the code for the moment so that you can see when you click on the two links above they now both show the same and correctly.

Last edit: 13 years 2 months ago by [Tracy](/forum/user/12641-tracy "View Tracy's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2MDc0Ni1wcmljZS1iZWdpbm5pbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 2 months ago [\#117862](#117862) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Price Beginning](/forum/2-general-talk-about-hikashop/860746-price-beginning#117862 "Hi  I needed to have a couple of options for the PRICE&#95;BEGINNING string ie &quot;from&quot; and &quot; &quot; To do this i Changed the following line in the Listing&#95;Price view  to  salemethod1 is then set up as a custom backend field with the two options.  This works fine but my problem is that i only want this to display in the category listing and not on the product page. How would I achieve this?")*

Yes, you're right.
The cart display price use the same view, so it can be affected.

Thanks to try the following code: Code:

if(JRequest::getVar('layout','show') == 'listing' &amp;&amp; $this-&gt;params-&gt;get('from','nothing') != 'module'){ // your code }

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2MDc0Ni1wcmljZS1iZWdpbm5pbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Tracy](/forum/user/12641-tracy "View Tracy's Profile")**
- [![Tracy's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12641-tracy "View Tracy's Profile") Topic Author
- [ Offline](/forum/user/12641-tracy)

Less More

- Posts: 32
- Thank you received: 1
-
-

13 years 2 months ago [\#117867](#117867) by [Tracy](/forum/user/12641-tracy "View Tracy's Profile")  Replied by *[Tracy](/forum/user/12641-tracy "View Tracy's Profile")* on topic *[Price Beginning](/forum/2-general-talk-about-hikashop/860746-price-beginning#117867 "Hi  I needed to have a couple of options for the PRICE&#95;BEGINNING string ie &quot;from&quot; and &quot; &quot; To do this i Changed the following line in the Listing&#95;Price view  to  salemethod1 is then set up as a custom backend field with the two options.  This works fine but my problem is that i only want this to display in the category listing and not on the product page. How would I achieve this?")*

Nearly right!!!

Now it is moved on all pages when there is something in the cart. (ie when a price is displayed) however when the cart is empty (no price displayed) it is still in its original position. so if i edit css to move it when item are in the cart it will be in wrong position when cart is empty.

Maybe there is a way to get the empty cart to display a price of "€0.00" and it might work?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2MDc0Ni1wcmljZS1iZWdpbm5pbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 2 months ago [\#117873](#117873) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Price Beginning](/forum/2-general-talk-about-hikashop/860746-price-beginning#117873 "Hi  I needed to have a couple of options for the PRICE&#95;BEGINNING string ie &quot;from&quot; and &quot; &quot; To do this i Changed the following line in the Listing&#95;Price view  to  salemethod1 is then set up as a custom backend field with the two options.  This works fine but my problem is that i only want this to display in the category listing and not on the product page. How would I achieve this?")*

And with a "&#124;&#124;" instead the "&amp;&amp;" in the if condition ? ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2MDc0Ni1wcmljZS1iZWdpbm5pbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Tracy](/forum/user/12641-tracy "View Tracy's Profile")**
- [![Tracy's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12641-tracy "View Tracy's Profile") Topic Author
- [ Offline](/forum/user/12641-tracy)

Less More

- Posts: 32
- Thank you received: 1
-
-

13 years 2 months ago [\#117906](#117906) by [Tracy](/forum/user/12641-tracy "View Tracy's Profile")  Replied by *[Tracy](/forum/user/12641-tracy "View Tracy's Profile")* on topic *[Price Beginning](/forum/2-general-talk-about-hikashop/860746-price-beginning#117906 "Hi  I needed to have a couple of options for the PRICE&#95;BEGINNING string ie &quot;from&quot; and &quot; &quot; To do this i Changed the following line in the Listing&#95;Price view  to  salemethod1 is then set up as a custom backend field with the two options.  This works fine but my problem is that i only want this to display in the category listing and not on the product page. How would I achieve this?")*

No difference in position of cart but brought back the original problem of "from" in the product page ![:(](/media/kunena/emoticons/22.png ":(")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2MDc0Ni1wcmljZS1iZWdpbm5pbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 2 months ago [\#117984](#117984) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Price Beginning](/forum/2-general-talk-about-hikashop/860746-price-beginning#117984 "Hi  I needed to have a couple of options for the PRICE&#95;BEGINNING string ie &quot;from&quot; and &quot; &quot; To do this i Changed the following line in the Listing&#95;Price view  to  salemethod1 is then set up as a custom backend field with the two options.  This works fine but my problem is that i only want this to display in the category listing and not on the product page. How would I achieve this?")*

So you can put back the "&amp;&amp;" and edit the view "product / cart" to add a "&lt;br/&gt;" tag or something else when the cart is empty.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2MDc0Ni1wcmljZS1iZWdpbm5pbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Tracy](/forum/user/12641-tracy "View Tracy's Profile")**
- [![Tracy's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12641-tracy "View Tracy's Profile") Topic Author
- [ Offline](/forum/user/12641-tracy)

Less More

- Posts: 32
- Thank you received: 1
-
-

13 years 2 months ago [\#118049](#118049) by [Tracy](/forum/user/12641-tracy "View Tracy's Profile")  Replied by *[Tracy](/forum/user/12641-tracy "View Tracy's Profile")* on topic *[Price Beginning](/forum/2-general-talk-about-hikashop/860746-price-beginning#118049 "Hi  I needed to have a couple of options for the PRICE&#95;BEGINNING string ie &quot;from&quot; and &quot; &quot; To do this i Changed the following line in the Listing&#95;Price view  to  salemethod1 is then set up as a custom backend field with the two options.  This works fine but my problem is that i only want this to display in the category listing and not on the product page. How would I achieve this?")*

Thanks xavier.

Managed to get it sorted by messing around with the css after all.

Thanks again

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2MDc0Ni1wcmljZS1iZWdpbm5pbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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.129 seconds

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