Answer the question
In order to leave comments, you need to log in
How to add a name to a free attribute in JoomShopping?
I am writing a plugin for a quick order, among other functionality, it is possible to attach a file to the buyer. The file is uploaded to the server and a link to it is written in the free attribute of the product.
It happens like this:
JDispatcher::getInstance()->register('onBeforeAddProductToCart', function(&$cart, &$product_id, &$quantity, &$attr_id, &$freeattributes, &$updateqty, &$errors, &$displayErrorMessage, &$additional_fields, &$usetriggers) {
.......
$freeattributes['File'] = JHtml::link($path_to_file . '/' . strtolower($file['name']), $file['name']);
.......
});
a:1:{s:10:"File";s:134:" filename.jpg ";}
: filename.jpg
Uploaded file : filename.jpg
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question