Short Description in Order Sent

Just A Newbie

No avatar

2005-08-31 00:53

I use the short description for the product code....
Would like this to show up in the orders, when sent, viewed etc etc

What tpl do I need to change?

I've found the field I need to include it but I can't get it to show up....
Please ASAP

This is my last fix needed to get going....(well in this site anyways...lol)

THANKS
Cindy

henrik

No avatar

2005-08-31 01:40

I have the exact same problem. The Sort description is ideal for placing the location of the goods.

I don't know if you are using the "htmlMailOrderDetails" but if you make the thing get going, the locations should only be sent to the admin, and not the customer too.

Hope someone better coding php than os, can solve this problem!

gwmbox

Avatar: gwmbox

2008-10-04 05:46

hmm... been trying to work this one out myself - if I work it out I'll post back here - if you have the answer please let us all know :)

Cheers

beholder

Avatar: beholder

2008-10-04 23:11

this is difficult to do guys, you should ask open solution guys to help you commercially.

gwmbox

Avatar: gwmbox

2008-10-05 15:45

hmm seems so as I am yet to work this one out - still trying different things. I know the $aData[sDescriptionShort] is what we need but it seems it is not by default added to the orders db content at the time of making the order. I have tried to work out how to add it in as there appears to be various places where this data is used and then recorded and extracted for print but so far no luck - as said I'll keep trying different things and if I get it to work I'll post back - unless the dev's are willing to help...

Greg - dogsites.com.au and thatnetsite.com

gwmbox

Avatar: gwmbox

2008-10-08 03:29

Ok I have got it working and will post here soon - just trying to work out where the Short Description is given the

<p> and </p>

tags and remove them :)

Greg - dogsites.com.au and thatnetsite.com

gwmbox

Avatar: gwmbox

2008-10-08 03:55

Ok here goes :)

This is for QuickCart 3.1 Lite

I have have added strip_tags to the short description output top remove the paragraph tags - this allows you to format the short description on the page and emails as you want them :)

Open core/orders.php

about line 236 after

fwrite$rFile$iOrder.'$'.$iProduct.'$'.$iQuantity.'$'.$oProduct->aProducts[$iProduct]['fPrice'].'& #36;'.$oProduct->aProducts[$iProduct]['sName'].'$'.



and before

"\n" );



add

strip_tags$oProduct->aProducts[$iProduct]['sDescriptionShort']).'$'.



then on or about line 304 after

$oFF->saveDB_ORDERS_PRODUCTS, Array( 'iElement' => $iElement++, 'iOrder' => $aForm['iOrder'], 'iProduct' => $aData['iProduct'], 'iQuantity' => $aData['iQuantity'], 'fPrice' => $aData['fPrice'], 'sName' => $aData['sName']



and before

 ) );



add

'sDescriptionShort' => strip_tags ($aData['sDescriptionShort'])



save and close

open db/orders_products.def.php

after

'sName' => 5



add

'sDescriptionShort' => 6



and also after

'sName' => $aExp[5]



add

'sDescriptionShort' => $aExp[6]



save and close

open db/orders_temp.def.php

after

'sName' => 4



add

'sDescriptionShort' => 5



and also after

'sName' => $aExp[4]



add

'sDescriptionShort' => $aExp[5]



save and close

That is it - now all you need to do is add

$aData[sDescriptionShort]

to the templates you want the Short Description added to - I have used

 -  aData[sDescriptionShort]



after

$aData[sName]

Hope that helps you

cheers

Greg - dogsites.com.au and thatnetsite.com

Back to top
about us | contact