- Posts: 280
- Thank you received: 42
Characteristics values taken from specifications
11 years 3 months ago #206919
by oxido
Characteristics values taken from specifications was created by oxido
-- 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
-- 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.
Less
More
- Posts: 12953
- Thank you received: 1778
11 years 3 months ago #206920
by Mohamed Thelji
Replied by Mohamed Thelji on topic Characteristics values taken from specifications
Hello,
Can you give me more information on what you want to do ? what kind of dropdown do you want and for what purpose ?
Using an Item custom field will do the job.
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.
11 years 3 months ago - 11 years 3 months ago #207064
by oxido
Replied by oxido on topic Characteristics values taken from specifications
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?
See my example here: jsfiddle.net/jx596bhv/3/
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?
See my example here: jsfiddle.net/jx596bhv/3/
Last edit: 11 years 3 months ago by oxido.
Please Log in or Create an account to join the conversation.
11 years 3 months ago #207139
by oxido
Replied by oxido on topic Characteristics values taken from specifications
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:
I tryed with this code, but is not working in this situation:
Code:
<?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.
11 years 3 months ago #207142
by nicolas
Replied by nicolas on topic Characteristics values taken from specifications
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.
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.195 seconds