Multiple Prices

Phoca Restaurant Menu - restaurant menu manager
baenialtnau
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 03 Apr 2014, 09:03

Multiple Prices

Post by baenialtnau »

Hi, I'd like to add multiple prices for a beverage. I.e. a Coca Cola would cost 2.5 CHF for 2dl, 3.5 CHF for 3dl and so on. There seems to be a limitation to two prices. Is there a possibility to get more options, e. g. in the Pro Version? And if so, how would I get to buy the Pro Version? Unfortunately I could not find any Contact page on your so very beautiful website. Any help appreciated! Thanks a lot in advantage.
christine
Phoca Hero
Phoca Hero
Posts: 2808
Joined: 28 Nov 2010, 17:20

Re: Multiple Prices

Post by christine »

Hi,

Thank you for your interest. Contact, see here please: https://www.phoca.cz/phocamenu
or here: https://www.phoca.cz/contact

Kind regards, Christine
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48345
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Multiple Prices

Post by Jan »

Hi, there are only two prices possible - mostly if there are more than two, it is better to group the items - or to set more items for different price:

0,3 l Beer ABC ... 3 EUR
0,5 l Beer ABC ... 5 EUR
0,3 l Beer DEF ... 4 EUR

or
0,7 l Wine ABC ... 10 EUR
1 l Wine ABC ... 15 EUR

etc.

Jan
If you find Phoca extensions useful, please support the project
Cliffdiver
Phoca Member
Phoca Member
Posts: 25
Joined: 05 Apr 2020, 09:10

Re: Multiple Prices

Post by Cliffdiver »

Hi Jan, is there a solution for multiple prices for one product?
for example: 1 pc = € 10 per pc, 5pcs = € 5 per pc.
If not, I maybe have a solution.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48345
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Multiple Prices

Post by Jan »

Hi, you can have two columns for prices, e.g.

Drink ..... 0.33 L 0.5 L
Beer ...... 5 EUR 8 EUR

Just enable second column for items (in group options)

Jan
If you find Phoca extensions useful, please support the project
Cliffdiver
Phoca Member
Phoca Member
Posts: 25
Joined: 05 Apr 2020, 09:10

Re: Multiple Prices

Post by Cliffdiver »

You mean the customer group options or something else?
If I click it I just get an error message of Joomla 4
https://gipfel.werbegams.at/index.php/s/6jC6AT9KCqnRMBJ

Found the error.
In the file default.php, located at administrator/components/com_phocacart/views/phocacarteditproductpricegroup/tmpl I added the following line

Code: Select all

use Joomla\CMS\Factory;

I added it at the beginning of the script, where three other "use" calls are located.
Now it works.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48345
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Multiple Prices

Post by Jan »

Hi, great to hear it, thank you for the info I will take a look at it for next version.

Thank you, Jan
If you find Phoca extensions useful, please support the project
Cliffdiver
Phoca Member
Phoca Member
Posts: 25
Joined: 05 Apr 2020, 09:10

Re: Multiple Prices

Post by Cliffdiver »

So just to finish the original Question of multiple prices and my work around.
The aim: 2 or more different prices, for one product (e.g. posters with the same size) depending on the ordered quantity (e.g. 3/5/10pcs)
My Solution:
1.) Create the product and insert the price for 1pc of poster (e.g. € 15,-)
2.) Go to the tab "Discount options"
3.) Create a new discount and name it for example "starting from 3 pcs", enter the discount value (5 €) and select "fix amount".
You can also choose %-value, but for me it worked with the fixed amount.
4.) Most important is the "minimum quantity value". For example if you enter 3, the € 5 will be subtracted from the € 15, when the customer buys 3+ pcs

So now you proceed steps 1-4 again, with the following differences:
Minimum order quantity is now 5, and the fixed amount changes to the value you want (e.g. € 7) to substract from the original price (€ 15)
Next is the price for 10pcs, so create a new discount, enter 10 as minimum order quantity, fixed amount for example € 10.
Repeat as often as you need it for your multiple prices.
The calculation scheme is allways the following: Original price - minimum quantity discount
3pcs -> €15 (original price) - €5
5pcs -> € 15 - € 7
10pcs -> € 15 - € 10

I hope it helps somebody who wants to create more than one price for the same product, preventing to create multiple products
Cliffdiver
Phoca Member
Phoca Member
Posts: 25
Joined: 05 Apr 2020, 09:10

Re: Multiple Prices

Post by Cliffdiver »

Jan wrote: 25 Mar 2024, 01:47 Hi, great to hear it, thank you for the info I will take a look at it for next version.

Thank you, Jan
Hy Jan, my final question: What do you mean with "Just enable second column for items (in group options)"
Sorry for the maybe silly question, but I can't find the option.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48345
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Multiple Prices

Post by Jan »

Hi,

edit a group:

Image

in Publishing Options tab, enable second column:

Image

Jan
If you find Phoca extensions useful, please support the project
Post Reply