Show prices starting 'From'

  • Posts: 18
  • Thank you received: 0
11 years 6 months ago #145574

-- url of the page with the problem -- : www.khatalapetlodge.com.au/
-- Joomla version -- : x.x
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

Hi, if possible I would like to show my product prices 'From $...' I only want it it like this where all the products are displayed of a partical Category as seen in my first attachment. I could change it by going to System-Currency, then change the code to 'From $' BUT as seen in my second attachment, I do not particularly want to show my product prices with each characteristic displaying 'From $30', 'From $40', From $50' ...etc for a particular product. It may just confuse a client.

Hope that made sense....

Attachments:

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

  • Posts: 2334
  • Thank you received: 403
11 years 6 months ago #145667

Hi there,

You can simply edit the view of your product listing and change what's displayed here.
To do so, go to Display>Views and look for listing_price.
You should be able to find the line you want to change to "From $"

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

  • Posts: 18
  • Thank you received: 0
11 years 6 months ago #145718

Hi Eliot,

Thanks for your reply. Unfortunately adding 'From' to any of the lines in product/ listing_price for my template does not change anything on my website and also an error occurs with my webpage only displaying one of my product images. I'm not sure if I am placing the 'From' in the correct place. Could you perhaps help? Thank you!

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

  • Posts: 2334
  • Thank you received: 403
11 years 6 months ago #145722

Did you edited the file related to the template you are using?

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

  • Posts: 18
  • Thank you received: 0
11 years 6 months ago #145728

I did yes, I'm using joomlashine vintage pro as my template!

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

  • Posts: 2334
  • Thank you received: 403
11 years 6 months ago #145735

Adding "From $" after:

$first=true;
		echo JText::_('PRICE_BEGINNING');
		$i=0;

Should do the job.

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

  • Posts: 18
  • Thank you received: 0
11 years 6 months ago #146038

Hi Eliot,

Unfortunately, that did not work either...Once I add 'From $' to the file and I go to click on one of my categories, I only see one of my products randomly on the left hand corner of a white page. See photo attached.

Attachments:

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

  • Posts: 18
  • Thank you received: 0
11 years 6 months ago #146039

I have private messages you with my website login details if you want to have a look yourself! Thanks

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

  • Posts: 2334
  • Thank you received: 403
11 years 6 months ago #146060

I removed the code you added.
Please note that you should use the View edition of Hikashop so your modification will be kept when you update.
About your issue, try to specify a translation in your language file for PRICE_BEGINNING (System>Configuration>Language).
If it's ok I'll add some code to display it only where you want.

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

  • Posts: 18
  • Thank you received: 0
11 years 6 months ago #146180

Hi Eliot,

Thanks for your reply! I have tried many combinations to override the PRICE_BEGINNING, but all attempts were unsuccessful.
You are most welcome to add the required codes to my website, but I do not expect you to do it for me! :) However, if you are happy to do it, then could you only add 'From $' to the products displayed in blocks in each category. See attachment to understand what I mean.
Bear in mind I am still adding products to my website, so Im not sure if that will cause any inconsistency to the display of products with some displaying 'From $' and others just '$...'

Many Thanks for your assistance! :)

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
11 years 6 months ago #146239

Hi,

Thanks to override the PRICE_BEGINNING key with PRICE_BEGINNING="From ".
Then edit the view "product / listing_price" via the menu Display > Views, and replace the line:

			echo JText::_('PRICE_BEGINNING');
By:
		if($this->params->get('layout_type') == 'div' && JRequest::getCmd('layout') != 'show'){
			echo JText::_('PRICE_BEGINNING');
		}

Last edit: 11 years 6 months ago by Xavier.
The following user(s) said Thank You: khatala

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

  • Posts: 18
  • Thank you received: 0
11 years 6 months ago #146415

Thank you! That worked perfectly! :D

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

  • Posts: 14
  • Thank you received: 1
9 years 4 months ago #239281

I tried this and it worked good except one issue. When I go to checkout, the products in the cart show the "starting from" How can I only have it show on category product listings?
Thanks

Last edit: 9 years 4 months ago by stinky_yogi.

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

  • Posts: 84311
  • Thank you received: 13701
  • MODERATOR
9 years 4 months ago #239284

Hi,

When you go in the checkout, the cart view used there uses the file listing_price of the view checkout, and not the file listing_price of the view product.
So you need the same modification in that other view file.

The following user(s) said Thank You: stinky_yogi

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

  • Posts: 14
  • Thank you received: 1
9 years 4 months ago #239359

Thank you very much for all your support. Spot on, as usual.

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

Time to create page: 0.109 seconds
Powered by Kunena Forum