show "price with options" for items without option

  • Posts: 75
  • Thank you received: 1
12 years 10 months ago #43425

Hello Nicolas,

we have some products without options, but the price is, as you know calculated from the length.
We want our customer to see the calculated price, like the "price with options"
Is there a possiblity to show also for this items (without options) the price calculated ("price with options").

Thanks for your help.

Attachments:

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

  • Posts: 83124
  • Thank you received: 13420
  • MODERATOR
12 years 10 months ago #43585

That would require that you edit the file "show_default" (or "show" if you don't have it) of the product view to display the price of the products without options are the price with options.

It's just two lines to add:

$currency = hikashop_get('class.currency');
echo JText::_('PRICE_WITH_OPTIONS').': '.$currency->format($this->element->prices[0]->price_value, hikashop_getCurrency());

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

  • Posts: 75
  • Thank you received: 1
12 years 10 months ago #43827

Hello Nicolas,

I am sorry, I did not explain clearly enought what I want:

For every products where the customer have to enter "Length" or/and "width", the calculated price has to be displayed before the customer put it into the cart. This concerns only the products with "Length" or/and "width".

1)Now, some products with "Length" or/and "width" which have options, the calculated price is diplayed together with the options in the "price with options". This case is ideal for us, but there are also
some products with "Length" or/and "width" which do not have options, the calculated price is not displayed and go directly to the cart. This is what we want to change.

The lines you gave us shows the basic price (without tax) and not the calculated price.

Thank you.

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

  • Posts: 83124
  • Thank you received: 13420
  • MODERATOR
12 years 10 months ago #44013

Hi,

If you want to have that price calculated based on the custom fields, the custom JS code which was added to your website in order to recalculate the price based on the custom fields when there are options will have to be modified.
I don't remember the modifications which were made so I can't give more information on what to do. Could you give links to a page with and without options so that we can see the JS code and how you could adapt it ?

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

  • Posts: 75
  • Thank you received: 1
12 years 10 months ago #44058

Nicolas,

the price is already calculated by the "length" and "width". You made this modification three weeks ago.

This link shows a product which the customer have to enter length and width. The caculated price based on length and width is displayed in "Preis mit Optionen" (price with options). After this the customer can put this acrylic cut into the cart:

plexiglas-deko.de/index.php?ctrl=product...y_pathway=28&lang=de


This link show a product which the customer have to enter the lenght. The caculated price base on length is not displayed anywhere, because we do not options for this items. But we want to show the price before the customer can put this cut of tube into the cart.


plexiglas-deko.de/index.php?option=com_h...4&Itemid=543&lang=de
plexiglas-deko.de/index.php?option=com_h...6&Itemid=545&lang=de

Thank you

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

  • Posts: 83124
  • Thank you received: 13420
  • MODERATOR
12 years 10 months ago #44290

Hi,

It should be working now

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

  • Posts: 75
  • Thank you received: 1
12 years 9 months ago #44851

Hello Nicolas,

now, it seems to me in these products, the calculated price are displayed.

plexiglas-deko.de/index.php?option=com_h...emid=543&lang=de
plexiglas-deko.de/index.php?option=com_h...emid=545&lang=de


and in these product the calculated price are disappeared:

plexiglas-deko.de/index.php?ctrl=product...thway=28&lang=de


Could you please make all products displayed with the price with options?

Thank you.

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

  • Posts: 83124
  • Thank you received: 13420
  • MODERATOR
12 years 9 months ago #45075

Hi,

Your links are not working. Please post them again.

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

  • Posts: 75
  • Thank you received: 1
12 years 9 months ago #45084

Nicolas,

as mention, the price of the products calculated from the length and width (sheets) is not displayed anymore. It shows only the basic price.

plexiglas-deko.de/index.php?option=com_h...y_pathway=28&lang=de

Strangely enough the price of the products calculates from only the length (tubes, bars) is displayed.


plexiglas-deko.de/index.php?option=com_h...y_pathway=53&lang=de


Could you please check this for me?

Thank you for your help.

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

  • Posts: 75
  • Thank you received: 1
12 years 9 months ago #45424

Nicolas,

I dont know how could this happens, but the file show product in display is disappeared and all product is not displayed anymore.
Can you please help as soon as possible. I am really desperate.
Thanks a lots.

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

  • Posts: 26189
  • Thank you received: 4030
  • MODERATOR
12 years 9 months ago #47280

Hi,

I saw that for this url, it does not work:
plexiglas-deko.de/index.php?option=com_h...y_pathway=28&lang=de
JS Call : plexiglas-deko.de/index.php?ctrl=product...e=0.10345&Itemid=540

But for that one (which point to the same product), it works.
plexiglas-deko.de/index.php?option=com_h...sparent-klar&lang=de
JS Call: plexiglas-deko.de/index.php?option=com_h...g=de&price=0.0053794

The difference between this two url is the "Itemid=540&category_pathway=28".
In the first case the JS call does not contains "option=com_hikashop", I may have a link with the Itemid.
Well, the JavaScript call return a 404 error so it could not retrieve the correct price and it display "undefined" instead.

Regards,
Jerome


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 75
  • Thank you received: 1
12 years 8 months ago #49238

Nicolas,

please tell me what did you change here. Please give me the steps so I can change it myself again.
Thanks for your great support.

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

  • Posts: 83124
  • Thank you received: 13420
  • MODERATOR
12 years 8 months ago #49295

The modifications I made were more than 2 or 3 lines of code. And I don't remember them.
I don't have any backup of the changes I made.

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

Time to create page: 0.089 seconds
Powered by Kunena Forum