unit of quantity

  • Posts: 203
  • Thank you received: 0
10 years 5 months ago #182746

-- HikaShop version -- : HikaShop Business 2.3.4
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4.30
-- Browser(s) name and version -- : Firefox 33

Hello support team,

is it possible to change the unit of quantity for some products to per bundle and keep per piece for the other products?

Thx

Andreas

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

  • Posts: 13201
  • Thank you received: 2322
10 years 5 months ago #182768

Hi,

Yes, but it will require some code customizations.
In the view "product / listing_price" you can add a php if condition around the code:

echo '<span class="hikashop_product_price_per_unit">'.JText::_('PER_UNIT').'</span>';
In order to use another translation key for some products. You can apply the "if" on the product category or something else depending on what you need.

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

  • Posts: 203
  • Thank you received: 0
10 years 5 months ago #182812

okay thx

that should be a feature of hika for the future i think

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

  • Posts: 83930
  • Thank you received: 13585
  • MODERATOR
10 years 5 months ago #182815

The exact process is explained in our FAQ:
"I sell packed products, how can I change "each" text in the product page ?"
www.hikashop.com/support/support/documen...on/106-faq.html#tran

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

  • Posts: 11
  • Thank you received: 0
10 years 5 months ago #183191

Hi
On this page, Product price is being shown in 'Yard'

I want to show it in 'Each' but only for this category

Attachments:
Last edit: 10 years 5 months ago by cimran12.

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

  • Posts: 83930
  • Thank you received: 13585
  • MODERATOR
10 years 5 months ago #183201

Hi,

The process is explained in our FAQ:
"I sell packed products, how can I change "each" text in the product page ?"
www.hikashop.com/support/support/documen...on/106-faq.html#tran
So please follow it.

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

  • Posts: 203
  • Thank you received: 0
10 years 4 months ago #187359

Okay thx that worked fine.

But when i want to sell products with stagger prices like 1 for 1euro and 3 for 2,50 euro. Theres is still "for each" behind the 2,50 euro

how can ic correct this?

thx

andreas

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

  • Posts: 83930
  • Thank you received: 13585
  • MODERATOR
10 years 4 months ago #187366

Hi,

Then how about you change the translation PER_UNIT_AT_LEAST_X_BOUGHT to something like this:
PER_UNIT_AT_LEAST_X_BOUGHT=" for buying at least %s"
You can do that with a translation override:
hikashop.com/download/languages.html#modify

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

Time to create page: 0.095 seconds
Powered by Kunena Forum