More than one price

  • Posts: 251
  • Thank you received: 2
12 years 11 months ago #39601

I Nicolas,

If I have more than one price for certain products, it is possible to show some text before price? How to add?

Like this:

From € 1000,00
to € 1500,00

Thank you so much!

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

  • Posts: 179
  • Thank you received: 17
12 years 11 months ago #39605

1. Firstly find the category ID of the products category.

2. Got to 'Display' tab, and Choose 'Content Modules' and..
3. Pick the module you want to edit ie. 'Associated products listing for category listing menu XX'.
4. In this there is 'Parameters for Products' on the right hand side.You will see 'Price display method' Choose Price range.

This will now show a price range.

As an extra you will find Under the 'Configuration' settings, picking 'Languages' and clicking the change icon you can change the wording on the ranges as well. I think the correct ones to override are :
PRICE_BEGINNING=""
PRICE_SEPARATOR="<br/>"
PRICE_END=""

Last edit: 12 years 11 months ago by rikatos.

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

  • Posts: 251
  • Thank you received: 2
12 years 10 months ago #40948

Hi Nicolas I noted that if I have two prices, the system always show me the highest price as the first.

I tryed to invert the prices in the product panel but nothing changes.

Here an example

www.hidesign.it/it/catalogo/product/show...aise-longue-lama-921

Last edit: 12 years 10 months ago by Nello.

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

  • Posts: 83103
  • Thank you received: 13416
  • MODERATOR
12 years 10 months ago #41177

if you want to revert the prices display on the product page you can add the code:

$this->row->prices=array_reverse($this->row->prices,true);

at the beginning of the file "listing_price" of the view "product" via the menu Display->Views.

The following user(s) said Thank You: Nello

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

  • Posts: 251
  • Thank you received: 2
12 years 10 months ago #41252

Hi Nicolas

I modified the file listing_price, and now if I have more than one price all works well,

as you can see here www.hidesign.it/it/catalogo/product/show...o-e-poltrona-carrera

but if I have a product without price an error occurs, as you can see here

www.hidesign.it/it/catalogo/product/show/cid-209/lampada-olivia

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

  • Posts: 251
  • Thank you received: 2
12 years 10 months ago #41254

I solved!

I move the code from the beginning of the file, after the line

if(empty($this->row->prices)){
echo JText::_('FREE_PRICE');
}else{

$this->row->prices=array_reverse($this->row->prices,true);

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

Time to create page: 0.077 seconds
Powered by Kunena Forum