Skip to main content

Show prices starting 'From'

12 years 9 months ago #145574 by khatala
-- 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....

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

12 years 8 months ago #145667 by Eliot
Replied by Eliot on topic Show prices starting 'From'
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.

12 years 8 months ago #145718 by khatala
Replied by khatala on topic Show prices starting 'From'
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.

12 years 8 months ago #145722 by Eliot
Replied by Eliot on topic Show prices starting 'From'
Did you edited the file related to the template you are using?

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

12 years 8 months ago #145728 by khatala
Replied by khatala on topic Show prices starting 'From'
I did yes, I'm using joomlashine vintage pro as my template!

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

12 years 8 months ago #145735 by Eliot
Replied by Eliot on topic Show prices starting 'From'
Adding "From $" after:
Code:
$first=true; echo JText::_('PRICE_BEGINNING'); $i=0;

Should do the job.

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

12 years 8 months ago #146038 by khatala
Replied by khatala on topic Show prices starting 'From'
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.

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

12 years 8 months ago #146039 by khatala
Replied by khatala on topic Show prices starting 'From'
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.

12 years 8 months ago #146060 by Eliot
Replied by Eliot on topic Show prices starting 'From'
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.

12 years 8 months ago #146180 by khatala
Replied by khatala on topic Show prices starting 'From'
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! :)

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

12 years 8 months ago - 12 years 8 months ago #146239 by Xavier
Replied by Xavier on topic Show prices starting 'From'
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:
Code:
echo JText::_('PRICE_BEGINNING');
By:
Code:
if($this->params->get('layout_type') == 'div' && JRequest::getCmd('layout') != 'show'){ echo JText::_('PRICE_BEGINNING'); }
Last edit: 12 years 8 months ago by Xavier.
The following user(s) said Thank You: khatala

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

12 years 8 months ago #146415 by khatala
Replied by khatala on topic Show prices starting 'From'
Thank you! That worked perfectly! :D

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

10 years 6 months ago - 10 years 6 months ago #239281 by stinky_yogi
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: 10 years 6 months ago by stinky_yogi.

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

10 years 6 months ago #239284 by nicolas
Replied by nicolas on topic Show prices starting 'From'
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.

10 years 6 months ago #239359 by stinky_yogi
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.117 seconds
Powered by Kunena Forum