CalcBuilder Forum

product description hiKashop

Usuario bsnline 2015-08-01 18:38:31

Hi,


Hikashop
field description product hikashop
i need save in the field "$hk_product_description" result from calc,
for example this but not work ...

$hk_product_description='Description: date:$date - Parcel:$nrparcel';

suggestion ?

Moonsoft support 2015-08-03 08:26:32

Hi,

$hk_product_description="Your value";

is the right way to assign the product long description, you can introduce there your other variables from your calculator, we'd try using the concat operator ( . ) :


$hk_product_description='Description: date:'.$date.' - Parcel:'.$nrparcel;

and also printing the variable ##hk_product_description## at your output for a while in order to ensure the value is properly set. Please note the long description of the product is not visible at the checkout, it shows only at the detailed product sheet. The text which hikashop shows at the cart is the

$hk_product_name

instead.

Hope this helps, regards

Usuario bsnline 2015-08-04 00:07:08

Okay, thank you very much

for "$hk_product_name" is possible costumized with progressive id session ?
for exsample: $hk_product_name="Quote-".$session;

$session = JFactory::getSession();

??

Moonsoft support 2015-08-04 16:47:17

Hi,
yes, you can add to that variable any other you can create with valid php. Please note with


$session = JFactory::getSession();

you're recovering the session full object, in order to get the session id you would need to call the getId function on that object:


$sessionid=$session->getId();

, this is the api with further information about methods available:


https://api.joomla.org/cms-3/classes/JSession.html#method_getId


Regards