Characteristics values taken from specifications

  • Posts: 258
  • Thank you received: 30
  • Hikaserial Subscription Hikashop Business
10 years 2 months ago #206919

-- HikaShop version -- : business 2.3.3
-- Joomla version -- : 3.4.1

I want to make this possible, to specify more values in "specifications" ,and to show up in product page a Characteristic dropdown with values taken from specifications.

You can see in this image what i want to do.



Or I might create a dropdown that contains the values from specifications, the customer select one value when he add an order, and i want that selected value to appear in command and on invoice.

I want to do that because i will change very often the specifications of the products

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

  • Posts: 12953
  • Thank you received: 1778
10 years 2 months ago #206920

Hello,
Can you give me more information on what you want to do ? what kind of dropdown do you want and for what purpose ?

I might create a dropdown that contains the values from specifications, the customer select one value when he add an order, and i want that selected value to appear in command and on invoice.


Using an Item custom field will do the job.

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

  • Posts: 258
  • Thank you received: 30
  • Hikaserial Subscription Hikashop Business
10 years 2 months ago #207064

Hi Mohamed,
Item custom field do the job, but partial for what i want.
I need to create the item custom field with all values possible (1,2,3,4... 30) added, but in my product page i dont want to have all values visible.
For product 1 i want to have only this values: 05, 12, 19, 26 .
For product 2 i want to have this values: 02, 08, 15, 21.

So how can i make the custom item field to take the values from "Specifications -> Size"
If for product 1 "Specifications -> Size" are : 05, 12, 19, 26, the values from item custom field to be 05, 12, 19, 26 ;
If for product 2 "Specifications -> Size" are : 02, 08, 15, 21, the values from item custom field to be 02, 08, 15, 21 ;
Can i do that ? What file i need to modify if is needed? :cheer:

See my example here: https://jsfiddle.net/jx596bhv/3/

Last edit: 10 years 2 months ago by oxido.

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

  • Posts: 258
  • Thank you received: 30
  • Hikaserial Subscription Hikashop Business
10 years 2 months ago #207139

How can i add a new column in backend to Order listing? The fiel type is "item"


I tryed with this code, but is not working in this situation:

<?php $class = hikashop_get('class.product');
$productData = $class->get($product->product_id);
echo $productData->days_custom;
?>

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

  • Posts: 84304
  • Thank you received: 13699
  • MODERATOR
10 years 2 months ago #207142

Hi,

1. You want to have one custom field of the table "product" where you'll enter the values you want in each product.
Then, you want also one custom item field with only one value (for example: 'please select').
Then, you can add your javascript to the show_block_custom_item view file via the menu Display>Views to add the values from the custom product field to the item custom field dropdown.

2. Custom item fields are stored in the order_product table, not the product table.
You'll have to manually do the MySQL query in order to load the data in the days_custom column of the order_product table based on the order_id/product_id.

PS: please open new threads for unrelated questions.

The following user(s) said Thank You: oxido

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

Time to create page: 0.069 seconds
Powered by Kunena Forum