|
|
@@ -145,20 +145,22 @@ class DistributionShoppingCartLabelsPdfGenerator extends AbstractGenerator imple |
|
|
|
}'; |
|
|
|
|
|
|
|
if($isSpecificFormat) { |
|
|
|
|
|
|
|
$paddingShoppingCartLabel = 3; |
|
|
|
$specificFormatWidth = $specificFormatWidth - 2 * $paddingShoppingCartLabel; |
|
|
|
$specificFormatHeight = $specificFormatHeight - 2 * $paddingShoppingCartLabel; |
|
|
|
$paddingWidthShoppingCartLabel = 8; |
|
|
|
$paddingHeightShoppingCartLabel = 5; |
|
|
|
$specificFormatWidth = $specificFormatWidth - 2 * $paddingWidthShoppingCartLabel; |
|
|
|
$specificFormatHeight = $specificFormatHeight - 2 * $paddingHeightShoppingCartLabel + 1; |
|
|
|
|
|
|
|
$css .= ' |
|
|
|
.shopping-cart-label { |
|
|
|
box-sizing: border-box; |
|
|
|
padding: '.$paddingShoppingCartLabel.'mm; |
|
|
|
padding-top: '.$paddingHeightShoppingCartLabel.'mm; |
|
|
|
padding-bottom: '.$paddingHeightShoppingCartLabel.'mm; |
|
|
|
padding-left: '.$paddingWidthShoppingCartLabel.'mm; |
|
|
|
padding-right: '.$paddingWidthShoppingCartLabel.'mm; |
|
|
|
width: '.$specificFormatWidth.'mm; |
|
|
|
height: '.$specificFormatHeight.'mm; |
|
|
|
display: block; |
|
|
|
float: left; |
|
|
|
/*border: solid 1px red;*/ |
|
|
|
}'; |
|
|
|
} |
|
|
|
else { |
|
|
@@ -179,9 +181,9 @@ class DistributionShoppingCartLabelsPdfGenerator extends AbstractGenerator imple |
|
|
|
return $css; |
|
|
|
} |
|
|
|
|
|
|
|
public function getShoppingCartLabelAsHtml(Order $order): string |
|
|
|
public function getShoppingCartLabelAsHtml(Order $order, int $index): string |
|
|
|
{ |
|
|
|
return '<div class="shopping-cart-label"> |
|
|
|
return '<div class="shopping-cart-label shopping-cart-label-'.$index.'"> |
|
|
|
<div class="inner"> |
|
|
|
<div class="username"> |
|
|
|
'.$this->orderSolver->getOrderUsername($order).' |