Price with options - how to show on product page

  • Posts: 209
  • Thank you received: 18
8 years 3 months ago #256292

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.4

I have looked everywhere for this but for the life of me I can't seem to get the "Price with options" to show on the product page. I get the base price ok and my options are all okay - but I can't get the summed price to display.

Is this a field somewhere in Hikashop config, or CSS or do I need to edit a view?

Any help would be tremendous!

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

  • Posts: 4816
  • Thank you received: 653
  • MODERATOR
8 years 3 months ago #256299

Hello,

Yes, when your customer reach the product page, options are unselected by default, and so the price can't be WITH the options.
Now, of course some customization is possible in order to have a product page with your needed features.
Your needs is to have by default selected your option

You can modify your view here :
- In components => HikaShop => Configuration
- In Display dropdown select Views
- Use the three dropdown filters like this : product/ YOUR FRONTEND TEMPLATE/ Front end
- Find your view : option view.

See the code :
originale, find $optionElement->product_id & and put it in the $value (around line 16) :



That must able your product page to have by default the first option selected AND the option price add in "Price with options".
Maybe, some Css add in order to highlights this price with options will be needed.



Hope this will fit your needs

Regards

Attachments:
Last edit: 8 years 3 months ago by Philip.

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

  • Posts: 209
  • Thank you received: 18
8 years 3 months ago #256350

Thanks Philip, but that makes no sense to me.

I simply want to DISPLAY the "price with options" on the product page. Right now I can not.

Are you telling me that in order to achieve the Hikashop demo shown in your picture, that you have made changes to the php of the views?

There is some css that controls the field, which indicates that it is available for display
#hikashop_product_price_with_options_main{margin:5px 0px; display:block}

How do I get it to display on the product page?

Last edit: 8 years 3 months ago by JIK. Reason: more info

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

  • Posts: 83401
  • Thank you received: 13494
  • MODERATOR
8 years 3 months ago #256398

Hi,

No, the price wih options is automatically displayed on the product page. There is no change necessary to display it. There is actually no option to not display it and you would have to add custom code to remove it.
So this means that either you or your template provider did something to not have it displayed on the product page.
As we don't know what was done, we can't say what you should do to have it back.

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

  • Posts: 209
  • Thank you received: 18
8 years 3 months ago #256462

Hi Nicholas, I switched over to the Beez3 template and removed all of my code revisions but the price with options does not show on the product page.

I am rebuilding an old J25 / Hika 2.2 site so this is a fresh install of Joomla and latest Hikashop in a subfolder. Interestingly, the price does show on the old J25 / Hika 2.2 pages, but not the clean install.

Any other ideas?

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

  • Posts: 209
  • Thank you received: 18
8 years 3 months ago #256465

Found my problem & solution. It happened because I exported products from the old site and imported them via csv into the new site. These imported products do not show the Price with options on the product page. When I create a product from scratch it does show. Go figure!

Thanks Nicolas & Philip for your assistance anyway. :)

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

  • Posts: 2
  • Thank you received: 0
8 years 2 months ago #259059

Hello, how much time.
I would like to know if there is the option for each product, to have 2 or 3 values ​​depending on an accessory.
for example:
In the case of a form that has an "x" value in case the customer wants to add a logo, in the same product can I put a value option?
I hope I have been clear.

I could not find the page where you have the code above. Can you give me the way?
In settings I also did not find the view option
"Use the three dropdown filters like this: product / YOUR FRONTEND TEMPLATE / Front end
- Find your view: option view." ???
Thank you

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

  • Posts: 26204
  • Thank you received: 4032
  • MODERATOR
8 years 2 months ago #259185

Hi,

I'm sorry but we are not able to understand fully your message.
For more details on what is possible thank to product options, you can see our demo website and that page :
demo.hikashop.com/index.php/en/hikashop/...ct-page/with-options

Let us know if you have any further question.

Regards,


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.

Time to create page: 0.090 seconds
Powered by Kunena Forum