Bottle deposit and base price information

  • Posts: 8
  • Thank you received: 1
1 week 2 days ago #365624

Hi!

We're looking for an e-commerce solution based on Joomla. Since HikaShop is well know in the last years, I would give it a try. But there are two things I'm not sure about.

#1 Bottle deposit

I want to create an online shop for a "Drinks Market". This market is based in Germany. Here you have to handle with "bottle deposit". This is an additional price per product, that have to be displayed on the product listings, product details page, shopping cart, order mail and invoice.

As far as I know, HikaShop does not offer such an extension.

But maybe it can be realized with HikaShop. Would it be possible to use custom fields (for products) for deposit values? These deposit values have to be displayed _and_ calculated as SUMMARIZED deposit value in the shopping cart (and order mail, invoice).

One example:
Let's say, we have two products in the shopping cart...

product price 1 = 10,00 €
deposit price 1 = 3,00 €
product price 2 = 5,00 €
deposit price 2 = 1,00 €

The shopping cart shows the product prices (single and summarized, as per default) and adds another line "deposit", that shows the sum of all deposit prices (in the example: 4,00 €). So the final result is the summarized price of 19,00 €.

#2 Base price information

Here in germany exists a regulation for price information ("Preisangabenverordnung" -> "Price Indication Ordinance" or "base price").
It means, that if we sell packages or goods by weight/volume/quantitiy/bulk we have to display the base price per unit.

One example:
A product - let's say a water bottle - contains 0,5 l. The price is 0,90 €. On the product listing page and the product details page the following has to be displayed:

Price: 0,90 € (as usually)
Content: 0,5 Litre (1,80 € / 1 Litre)

Now I try to describe the need..

For the configuration (in the backend) I would need two fields:

[UNIT_VALUE] - in my example "0,5"
[UNIT_BASE_VALUE] - in my example "1"

Now we need a little calculation for the base price per unit: [BASE_PRICE] = [ARTICLE_PRICE] / [UNIT_VALUE]
Now we need to display the result in the frontend - on following pages: ARTICLE_LISTINGS and ARTICLE_DETAIL_PAGE - like this:

Content: [UNIT_VALUE] [UNIT] ([BASE_PRICE] € / [UNIT_BASE_VALUE] [UNIT])
... and now with values:
Content: 0.5 Litre (1,80 € * / 1 Liter)

In the frontend: This information has to be displayed directly near the price information (in the html code: mainly directly after the price - with it's own css class for styling).

What do you think? Can HikaShop achive these jobs? ;)


Cheers
Rusty

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

  • Posts: 83296
  • Thank you received: 13466
  • MODERATOR
1 week 2 days ago #365625

Hi,

1.
You can do that with a custom product field ( www.hikashop.com/support/documentation/4...shop-field-form.html ) and the cart fee plugin ( www.hikashop.com/marketplace/product/279-cart-fee.html ).
With the custom field, you can fill in a fee in each product, and have it displayed on the listing / product page with the display settings of the custom field.
And with the cart fee plugin, you can have a formula to automatically calculate the sum of the fee of each product in the cart and add it as an extra line between the subtotal and the total.
So no need for a specific extension to do that since you can easily set this up with these more general features / plugin.

2. The HikaShop configuration has a setting "Display the cost per weight unit":
www.hikashop.com/support/documentation/5...html#display_product
If you activate it, the system will automatically display the cost per weight unit. For example, with it, you can configure a price of 12€ and a weight of 2KG. Then, HikaShop will automatically display "6€ per KG" on the product details page after the price with an extra span HTML element with the class hikashop_product_price_per_weight_unit
This is done in the view file product / listing_price which you can edit via the menu Display>Views if you need to extend it to support listings, use custom product fields instead of the weight / weight unit, etc.
It should be relatively easy, even if you have no PHP knowledge.
For example, if you want to use a custom product field instead of the weight of the product, you can just change the several instances of "product_weight" in that view file to use the column name of your custom field.
And if you want to add it to the listings too, you can just change the line:

if(!empty($this->element->product_id) && isset($this->row->product_weight) && bccomp(sprintf('%F',$this->row->product_weight), 0, 3)) {
to:
if(isset($this->row->product_weight) && bccomp(sprintf('%F',$this->row->product_weight), 0, 3)) {

The following user(s) said Thank You: Rusty

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

  • Posts: 8
  • Thank you received: 1
1 week 2 days ago #365628

@nicolas Thank you for your fast reply! I will check it out!

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

Time to create page: 0.043 seconds
Powered by Kunena Forum