Forum


Calc Builder Support

Calc Builder support
Forums
Public write access is disabled. Please login

product description hiKashop 01.08.2015 18:38

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 ?

Re: product description hiKashop 03.08.2015 08:26

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
Moonsoft Team
www.moonsoft.es

Re: product description hiKashop 04.08.2015 00:07

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();

??

Re: product description hiKashop 04.08.2015 16:47

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
Moonsoft Team
www.moonsoft.es
Are you satisfied with our products/services/support?
Please help us to keep improving, add a review at  joomla extensions site and  magento connect
FaLang translation system by Faboba

Our clients' feedback