HikaShop selectors

  • Posts: 19
  • Thank you received: 0
11 years 9 months ago #88005

Here is a product on a site I am experimenting with.

My question is this. I want it so that in the product creation screen in the back end I can choose the Manufacturer, No. of Players, Level(s), and perhaps more, which can be selected from a drop down list. I am talking about those items in the box to the right of the text in the center. In essence a site manager would select a manufacture from a list and it would populate the appropriate spot in the HTML of the product. Obviously I do not want a whole slew of form coding in the HTML of the product.

Alternately, have it as a side module in the back end or at the bottom. Say like another field or four at the bottom of the product creation screen.

Cordially,
Wayne

P.S. For some reason I cannot preview this posting. The Preview pane opens up, but nothing is displayed in it. This is on Firefox.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 9 months ago #88185

Hi,

You can do that by creating custom fields of the table "product" via the menu Display->Custom fields with the Essential and Business editions.
That will allow you to select your data in the product edit page and you will be able to see the values selected on the product page as a "product details" table if you activate the "frontend display" option of the custom product fields.

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

  • Posts: 19
  • Thank you received: 0
11 years 9 months ago #88190

nicolas wrote: Hi,

You can do that by creating custom fields of the table "product" via the menu Display->Custom fields with the Essential and Business editions.
That will allow you to select your data in the product edit page and you will be able to see the values selected on the product page as a "product details" table if you activate the "frontend display" option of the custom product fields.

Afternoon Nicolas,

First thank you for the reply. Second, is there a way for me to explore how to do it without purchasing the Essential or Business editions. I have to "play" with something to understand the concept.

Continuing... you are saying that in the HTML code below that the second DIV can be made to turn into a dropdown, removing the everything but that result while saving. Or is it that in some other portion of the extension I can pull up a manufacturer and it will plug that value into the second DIV below?
<div class="prod_item">Manufacturer:</div>
<div class="prod_item2">TSR Inc. (Tactical Studies Rules, Inc.)</div>
If the second statement is correct then that will solve my problem. And by the way, I will not use tables if at all possible.

Cordially,
Wayne

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 9 months ago #88339

Hi,

Sure. You can create it on our demo website: demo.hikashop.com

I thought that you wanted to display information on the product page, not to let the user choose the information.
If you want to let the user choose the information, that is also possible with custom fields of the table "item" in the Business edition.

In either case, the value or the field will be displayed on the product page by HikaShop. If you want divs instead of a table, that's possible by customizing the file show_block_custom_main or show_block_custom_item via the menu Display->Views.
But you won't be able to have them display in the description of the product. That would be a bit more complex...

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

  • Posts: 19
  • Thank you received: 0
11 years 9 months ago #88438

nicolas wrote: Hi,

Sure. You can create it on our demo website: demo.hikashop.com

I thought that you wanted to display information on the product page, not to let the user choose the information.
If you want to let the user choose the information, that is also possible with custom fields of the table "item" in the Business edition.

In either case, the value or the field will be displayed on the product page by HikaShop. If you want divs instead of a table, that's possible by customizing the file show_block_custom_main or show_block_custom_item via the menu Display->Views.
But you won't be able to have them display in the description of the product. That would be a bit more complex...

Morning Nicolas,
Yes I want to display information on the product page that a visitor will see. I do not want him to choose the product manufacturer. BUT, I want it so that when creating the product in the back end the person creating the product can choose from a list of manufacturers. That information will get passed to the second DIV. Whatever manufacturer is selected gets passed on to the second DIV. Then when viewed on the front end, there it is.
  1. Choose product manufacturer from list when creating product.
  2. HikaShop places that string into the second DIV.
  3. Save product.
  4. View product on front end.
  5. Chosen manufacturer appears in item Description: .
I have attached a screen shot of this page this page . The orange highlighted block represents the second DIV where the selector would place the string / manufacturer's name on the linked page. And this is not the same thing as "Brand" as a manufacturer can have sub-product lines (1st Edition, 2nd Edition, etc.).

In the back end of the demo I see where my setup would be put into place. At the bottom of the product create / edit page is a spot for a Vendor. I would need one called Manufacturer. The list of manufacturer's would be in another section of HikaShop. Whoever was creating a product could choose from the popup link in the product page, and it would populate my second DIV.

Cordially,
Wayne

P.S. I do not mean to be obtuse. It is better to ask a question now than to sell it to my client and it not work. :)

Attachments:
Last edit: 11 years 9 months ago by A. Wayne Webb.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 9 months ago #88654

Hi,

So the first explanation I gave is the correct one.
That will add the custom field selected value on the product page as a row of the "specification" table.
Your div is in the description of the product, so you can't easily replace the text in the description with a custom field value.
You would have to edit the file "show_default' via the menu Display->Views and change the text:
$this->element->product_description
by:
str_replace(array('{custom_field1}','{custom_field2}'),array($this->element->custom_field1,$this->element->custom_field2),$this->element->product_description)

where the second custom_field1 and custom_field2 are replaced by the column name of your fields, and you would also have to place the tags {custom_field1} and {custom_field2} in your description.

It is definitely possible to do what you want with HikaShop.

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

Time to create page: 0.070 seconds
Powered by Kunena Forum