How to create cmment field PER PRODUCT in cart at checkout time?

14.11.2020 17:42
#1
Philippe91
Joomshopping forum user no avatar
Name: Philippe
03.10.2020
Posts: 41
Quote
How to create cmment field PER PRODUCT in cart at checkout time?

Hello,
Quite new to Joomshopping, I am building a site (test only for now) for a friend who sells food products.
Everything is fine except that I would need to be able to add a free comment textarea field for each product at checkout time.
I mean, for instance, I purchase a chicken but I would like to specify "small size","normal size" or "large".
I don't think I have seen a way to add this anywhere. Do you have an extension or plugin which can cover this?
Thanks for your help and best regards
Philippe


Joomla: 3.9.22
JoomShopping: 4.18.4
PHP: 7.4.12
MySQL: 5.7.30
Website Url: http://www.chroconsult.fr/test
 
14.11.2020 20:16
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25903
Quote
Aw: How to create cmment field PER PRODUCT in cart at checkout time?

Use free attribute.

Options / free atribute (need enable in configuration)

 
15.11.2020 19:58
#3
Philippe91
Joomshopping forum user no avatar
Name: Philippe
03.10.2020
Posts: 41
Quote
Aw: How to create comment field PER PRODUCT in cart at checkout time?

Thanks much! Works perfect...
Just a last request, if I may::
In the generated pdf, I just need the name and the quantity of the product since I am actually generating requests not invoices.
I've been digging through the "generate_pdf_order.php" file to comment out what I don't need and it's almost ok except that I cannot remove the last columns from the products table.
I just want to keep Name and Quantity.
Can you please tell me where in the file does tcpdf declare the table columns?

I have this just before the product loop but it still displays empty last columns:

$pdf->SetXY(107,116);
$pdf->MultiCell(18, 4, _JSHOP_QUANTITY, 1, 'L');

//$pdf->SetXY(125,116);
//$pdf->MultiCell(25, 4, _JSHOP_SINGLEPRICE, 1, 'L');
//$pdf->MultiCell(25, 4,' '); Tried without text but doesn't help
//$pdf->SetXY(150,116);
//$pdf->MultiCell(40, 4,_JSHOP_TOTAL, 1,'R');
//$pdf->MultiCell(40, 4,'');

Thanks again

Philippe
Aw: How to  create comment field PER PRODUCT in cart at checkout time?

 
15.11.2020 21:19
#4
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25903
Quote
Aw: How to create cmment field PER PRODUCT in cart at checkout time?

Try change

$pdf->Rect(20, $y, 170, $yn - $y );
$pdf->Rect(20, $y, 130, $yn - $y );

if ($jshopConfig->show_product_code_in_order){
$pdf->line(85, $y, 85, $yn);
}
$pdf->line(107, $y, 107, $yn);
$pdf->line(125, $y, 125, $yn);


-------------


delete
$pdf->line(107, $y, 107, $yn);
$pdf->line(125, $y, 125, $yn);

or other

 
16.11.2020 10:36
#5
Philippe91
Joomshopping forum user no avatar
Name: Philippe
03.10.2020
Posts: 41
Quote
Aw: How to create cmment field PER PRODUCT in cart at checkout time?

Hello again,
Thanks for the reply. However, commenting out these 2 lines does not seem to help as you can see at the top of the screenshot.
What I am trying to achieve is a table with just 2 columns, 1 for the name and the second for the quantity.(bottom of the screenshot)

There seems to be only two $pdf->line instructions at 107 and 125 (X positions?) and nothing further. I have been looking for lines beyond with no luck.

Since a real tcpdf documentation does not seem to exist, I am trying to find out help wherever I can :)

Thank you for helping out!

Cheers

Philippe
Aw: How to  create cmment field PER PRODUCT in cart at checkout time?


Last change: 16.11.2020 10:37
 
16.11.2020 13:59
#6
Philippe91
Joomshopping forum user no avatar
Name: Philippe
03.10.2020
Posts: 41
Quote
Aw: How to create cmment field PER PRODUCT in cart at checkout time?

After a long while, finally got it to work, tweaking the pdf format...
It wa way more than just the two $pdf->lines stuff: tweaking of multicell locations.
Thanks for your help
Philippe

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.