hi
I have many questions. ...
1)
if i have 3 items ( with "add to cart" widget ) , each item must be identify using specificy id.
The script is base on hikashop_product_quantity_field_X , why not use X as the value of the column of __hikashop_product.product_id since X is unique even it can be not contiuous?
Is there many files and items to change in the php side to change $i to the product_id ? Is it possible ? ( don't break all logic)
2)
in which order appear the item when hikashop use X $i++ ?
There must be a SQL that let me show that ?
Does this can be change using the Joomla Back End GUI ?
2)
if the page contain only 1 item with add_cart widget , X=1 hikashop_product_quantity_field_X
X by default is continuous ( increment logic).So X are unique So why not use X=product_id ?
IS there a way to use product_id in the parameters of displaybutton define in cart.php ?
3)
the javascript use predefine id ( create in php side) why not use this.id as the first parameter of hikashopModifyQuantity(id, ....) ( is also use in html in name=[id]) .
4)
why identify product using class with layout column / row , why not product_id ?
<div class="hikashop_products">
<div class="hikashop_product hikashop_product_column_1 hikashop_product_row_1" style="width:32%;">
<div class="hikashop_product hikashop_product_column_1 hikashop_product_row_2" style="width:32%;">
since HS use Class that mean that this notation in only for CSS Layout manage by php ? right ?
5)
Is there many implementations of hikashopModifyQuantity(id,obj,add,form,type,moduleid)
I find this function with same parameters in two differents location of the same files - if else ...) ?
If i need to add new javascript function ...i need to copy my code in 2 differents location in the same phpfile inside same variable ? !!
I am not a javascript developper ....Soto i there is a reason to implement things like this ?