Different Ways to Display Price

  • Posts: 964
  • Thank you received: 11
  • Hikashop Business
12 years 5 months ago #52134

Hi There,

I added a product and entered all the info. The price of the product is $5.95. It's showing the price like this ($5.95 each).

Is there a way to show price anyway that I want to? For example, I would like to show it like this: 4 Balls for $5.95 or 2 Balls for $4.00, etc...

I checked out manage variants but it's giving me the option to choose from a drop down but I don't want it displayed like that.

Thanks in advance!!

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

  • Posts: 82760
  • Thank you received: 13347
  • MODERATOR
12 years 5 months ago #52215

Hi,
You can add several prices in your product, each one with a minimum quantity.
Then, you will get such display and you will be able to customize the text itself with translation overrides:
www.hikashop.com/en/download/languages.html#modify

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

  • Posts: 964
  • Thank you received: 11
  • Hikashop Business
12 years 5 months ago #52712

Hi Nicolas,

I cannot figure out how to do this. I attached a pic showing what I'm trying to do. The 3 pricing that I have in the example are:

4 Balls $5.95
5 Balls $6.95
$3.95 each

Thanks!!

Attachments:

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

  • Posts: 82760
  • Thank you received: 13347
  • MODERATOR
12 years 5 months ago #52808

With the method I explained, you will get only one product and the prices will all be displayed on the product page and based on the quantity added to the cart, the corresponding price will be used.

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

  • Posts: 964
  • Thank you received: 11
  • Hikashop Business
12 years 4 months ago #55989

The pricing is not what is causing the issue it's the text after the price that I need to change/edit for the product. Some products have different "text" after the price.

For example, some items would be listed like this:

Red Ball - $4.95 (each)
Green Ball - $3.95 (each)

And some like this...

Red Balls - $7.95 (set of 4)
Green Balls - $5.95 (set of 3)

Is this option not available or is it only available in the commercial versions?

Thanks!!

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

  • Posts: 82760
  • Thank you received: 13347
  • MODERATOR
12 years 4 months ago #56013

So basically, what you want is to be able to change the "per unit" on a per product basis, right ?

In that case, you should do like that:
www.hikashop.com/en/forum/4-how-to/51395...length-per-reel.html
Note that it will indeed require one of the commercial editions as custom product fields cannot be created in the Starter edition.

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

  • Posts: 2
  • Thank you received: 0
11 years 6 months ago #99458

HI, i am trying to swap the order of PRICE and Each
eg instead of £1.23 each, to Each £1.23

because i want to display Price From £1.24


Please help thanks in advance.

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

  • Posts: 82760
  • Thank you received: 13347
  • MODERATOR
11 years 6 months ago #99580

You would have to move the code:

if(isset($price->price_min_quantity) && empty($this->cart_product_price) && $this->params->get('per_unit',1)){
				if($price->price_min_quantity>1){
					echo JText::sprintf('PER_UNIT_AT_LEAST_X_BOUGHT',$price->price_min_quantity);
				}else{
					echo JText::_('PER_UNIT');
				}
			}
after the line
echo '<span class="'.implode(' ',$classes).'">';
in the file "listing_price" of the view "product" via the menu Display->Views

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

  • Posts: 2
  • Thank you received: 0
11 years 6 months ago #100564

hi i didn't quiet get that sorry. m a noob.
which code represents Each, what do i have to move ?
m bit confused. i tried to figure it out. but i'll need ur help plz

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

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

Hi,

The code for "Each" is "echo JText::_('PER_UNIT');".
But to display a text before the price, you can use the language key "PRICE_BEGINNING", in the language file you can add an override to display the desired text.

Some doc to move the element:
www.hikashop.com/fr/support/documentatio...ize-the-display.html

Doc for the override:
www.hikashop.com/fr/support/documentatio...faq.html#translation

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

Time to create page: 0.084 seconds
Powered by Kunena Forum