Hi,
In Business Plus V16, I would like to add an additional piece of text to my cart and checkout and Norman at Drillpine was kind enough to get me most of the way there. My problem is that my product descriptions come from Sage via Link and are limited to 60 characters. That's enough to describe the variation of the product and the part number, but not enough to fully describe what the product actually is.
So, currently I get something like :
123.45678.999 • 130mm • Polished Brass
Where what I really need is
123.45678.999 • 130mm • Polished Brass Face Fixing Pull Handle
So, in ActinicOrder.pm it was suggested I add this line :
$sProductLineHTML .= $$pProduct{CUSTOMVARS}{Parent_Name};
(where Parent_Name is the new variable I have created and populated in each product)
Immediately before this line :
$ProdTable = ProductLineHTML($$pProduct{'REFERENCE'}, $sProdLink, $sQuantityText, $sProductLineHTML, $sDuplicateLinkLineHTML, $$pProduct{'DUPLICATES'}, $sThumbnail, $bIncludeButtons);
This works for the first item added to the cart, but each subsequent item consists of it's own variation followed by the previous cart product's additional text and then it's own additional text, something like :
(1st cart item, all good) 123.45678.999 • 130mm • Polished Brass Face Fixing Pull Handle
(2nd cart item, not good) 987.65432.111 • 600mm • Satin Chrome Face Fixing Pull HandleBolt Fixing Pull Handle
I believe this may be caused by the .= in the first line of code, which appends rather than replaces the subsequent text, but if I remove the . all I get is the Parent_Name text and not the variation.
If any one has any ideas, please keep it simple as I am a lot more stupid than perhaps this post suggests.
Thanks,
Steve
In Business Plus V16, I would like to add an additional piece of text to my cart and checkout and Norman at Drillpine was kind enough to get me most of the way there. My problem is that my product descriptions come from Sage via Link and are limited to 60 characters. That's enough to describe the variation of the product and the part number, but not enough to fully describe what the product actually is.
So, currently I get something like :
123.45678.999 • 130mm • Polished Brass
Where what I really need is
123.45678.999 • 130mm • Polished Brass Face Fixing Pull Handle
So, in ActinicOrder.pm it was suggested I add this line :
$sProductLineHTML .= $$pProduct{CUSTOMVARS}{Parent_Name};
(where Parent_Name is the new variable I have created and populated in each product)
Immediately before this line :
$ProdTable = ProductLineHTML($$pProduct{'REFERENCE'}, $sProdLink, $sQuantityText, $sProductLineHTML, $sDuplicateLinkLineHTML, $$pProduct{'DUPLICATES'}, $sThumbnail, $bIncludeButtons);
This works for the first item added to the cart, but each subsequent item consists of it's own variation followed by the previous cart product's additional text and then it's own additional text, something like :
(1st cart item, all good) 123.45678.999 • 130mm • Polished Brass Face Fixing Pull Handle
(2nd cart item, not good) 987.65432.111 • 600mm • Satin Chrome Face Fixing Pull HandleBolt Fixing Pull Handle
I believe this may be caused by the .= in the first line of code, which appends rather than replaces the subsequent text, but if I remove the . all I get is the Parent_Name text and not the variation.
If any one has any ideas, please keep it simple as I am a lot more stupid than perhaps this post suggests.
Thanks,
Steve
Comment