Product Detail Page - Price with Minimum Quanity

  • Posts: 567
  • Thank you received: 11
9 years 6 months ago #232100

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.4.45

Dear

We face a problem when setting out multi level pricing such as 100/5000 units, 200/10000 units

the calculation work correctly, however, the display is ugly

as seen in attached link, all the different pricing show on top of product detail page right part

can we hide all these pricing and show only the current level pricing?

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

  • Posts: 4820
  • Thank you received: 654
  • MODERATOR
9 years 6 months ago #232164

Hello,

HikaShop is unable to display the right price on the product page through quantity criteria like this.

I suggest you several solution but maybe some of them won't fit your needs :

- Taste and content aren't linked to your price, so switch them to custom field, and create several products one for under 1000 unity, an other for at least 1000 etc...
You won't have too much variant to set with Taste and Content.
default : your customer won't be able to choose quantity like actually, I mean 5000 =>5001... but only select "pack"
500 units, 1000 units etc...

- other way is to create custom code with ajax in order to refresh price linked to quantity change, and for this you must contact one of our partners, here .

- Last and simpliest solution, just use css code to don't display price at all but use your price table, and put it on the top of the page.
Default : your customer have to make their own calculation...

Sorry for this answer.

Regards,

Last edit: 9 years 6 months ago by Philip.

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

  • Posts: 567
  • Thank you received: 11
9 years 6 months ago #232186

Philip wrote: Hello,

HikaShop is unable to display the right price on the product page through quantity criteria like this.

I suggest you several solution but maybe some of them won't fit your needs :

- Taste and content aren't linked to your price, so switch them to custom field, and create several products one for under 1000 unity, an other for at least 1000 etc...
You won't have too much variant to set with Taste and Content.
default : your customer won't be able to choose quantity like actually, I mean 5000 =>5001... but only select "pack"
500 units, 1000 units etc...

- other way is to create custom code with ajax in order to refresh price linked to quantity change, and for this you must contact one of our partners, here .

- Last and simpliest solution, just use css code to don't display price at all but use your price table, and put it on the top of the page.
Default : your customer have to make their own calculation...

Sorry for this answer.

Regards,



I do seriously suggest hikashop to take this into upgrade list because as a mature e-commerce product to have this kind of view during multiple pricing shows the low quality side of the ui ux design

however, the 2nd and 3rd method can be combined to have a hot fix. Can you help to advise which view file to edit so that we can hide all pricing using css and call it back using jquery when quantity matched

we will publish this fix out as well

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

  • Posts: 84307
  • Thank you received: 13701
  • MODERATOR
9 years 6 months ago #232229

Hi,

Having the price updates based on what you select in options or characteristics is indeed quite common and HikaShop do.
But having a total displayed taking into account the quantity entered is less common.
And usually, you do want to show all the quantity price steps of a product, not just the current one. This is confirmed by what you have in the prices table below on your product page. It's basically a formatted version of what is displayed automatically by HikaShop in the prices area (taking into account that you removed the text saying X€ for Y items, etc).

If you want to add a onchange on the quantity input field, you want to edit the file "show_quantity" of the view "product" via the menu Display>Views. There, you can add your javascript function call in the onchange attribute of the quantity input field based on the quantity field selection method you selected.
By default it's this line:

<input id="hikashop_product_quantity_field_<?php echo $i; ?>" type="text" value="<?php echo JRequest::getInt('quantity',$min_quantity); ?>" class="hikashop_product_quantity_field" name="quantity" onchange="hikashopCheckQuantityChange('hikashop_product_quantity_field_<?php echo $i; ?>',<?php echo $max_quantity; ?>,<?php echo $min_quantity; ?>);" />

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

  • Posts: 567
  • Thank you received: 11
9 years 6 months ago #232289

Thanks nicolas, this is one of the part we would like to edit

what about the table part? which view are it in because we do think that this part should be customized too to have better display
$xxx for xxxxx purchase
$xxx for xxxxx purchase
$xxx for xxxxx purchase

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

  • Posts: 84307
  • Thank you received: 13701
  • MODERATOR
9 years 6 months ago #232292

Hi,

That part is displayed by the file "listing_price" of the view "product".

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

Time to create page: 0.065 seconds
Powered by Kunena Forum