Display additional info related to Product

  • Posts: 131
  • Thank you received: 7
11 years 11 months ago #81460

Hi, Looking for some advice on the best way to achieve this:-

When displaying product "foo", foo has 2 variants "foo_flavour1" and "foo_flavour2"

When foo_flavour1 is selected as an option I want to load an additional piece of content (to be displayed underneath the product description) which describes the flavour of the product currently selected.

I thought I might be able to use loadposition to load a module in the variant product description field but it looks like this gets stripped.

Any ideas very welcome, thanks!

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

  • Posts: 260
  • Thank you received: 25
11 years 11 months ago #81483

You could use a custom field

Custom Fields


Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'
The following user(s) said Thank You: Jerome

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

  • Posts: 131
  • Thank you received: 7
11 years 11 months ago #81521

Ah! OK - yes, thanks sambob - looks like product fields are only available in the business edition. If there's no way of doing this in Essentials then looks like a purchase to Business is on its way!

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

  • Posts: 26152
  • Thank you received: 4027
  • MODERATOR
11 years 11 months ago #81527

Hi,

When an option is selected in the product page ?
You can do a lot of things thanks to custom fields (product, order and items custom fields are in the business edition. Starter edition have address custom fields).

With variants it is possible to have different prices/images/description which would change depending the selected characteristics.
With custom fields, it would require some PHP development but custom field data are quite simple to display (and to use) in HikaShop.

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.

  • Posts: 131
  • Thank you received: 7
11 years 11 months ago #81667

Jerome,

Thanks for the clarification.

I could so easily achieve what I need without doing any coding if the description for the variant did not get plug-in calls (i.e. loadposition) stripped before display.

Is there an easy way that I can change some of the display code so that it does not do the strip? Adding in the option to strip or not strip plug-in calls might be something that you consider implementing for a future version of Hika?

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

  • Posts: 82818
  • Thank you received: 13360
  • MODERATOR
11 years 11 months ago #81908

The loadposition tags are not stripped by HikaShop in the description of products or variants. The content plugins are always called.
It's maybe your content plugin/module which doesn't like being called several times on the same page ?

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

Time to create page: 0.074 seconds
Powered by Kunena Forum