Ok.. i seeThanks!
Excuse my English, it's not very fluent.
I am referring to the image of the QR code, to the image of the logo, which must appear when the pdf ticket is generated.
Works fine on the version that was reuploaded on this threadWas there an error? or is everything correct?
same here, and in console the script said
Congrats! Eventmie Pro updated successfully to version 1.7.0
so, 1.7, not 1.8 ?
ok i'll try, thanksWhat happens is that when you install via webinstaller, v1.7 is installed, while when you do it manually via Composer you get v1.8
When I purchased the Pro version, and installed using webinstaller, it gave me an error; I was told to run the composer install command, and it did. But I realized that in this way v1.7 was installedok i'll try, thanks
Hi THX,C
contact your host it may have some thing to do with server. I had a issue on one script like that. I didn't even know it was a server side that needs configuration. Immediately i informed them. They told me they fix the issue. After i check the script all problem was gone
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<style>
* {
padding: 0;
margin: 0;
font-family: 'DejaVu Sans', sans-serif;
}
body {
margin: 0 auto !important;
padding: 0 !important;
height: 100% !important;
width: 100% !important;
font-size: 14px;
font-family: 'DejaVu Sans', sans-serif;
}
table {
width: 95%;
padding: 1px;
margin: 0 auto !important;
border-spacing: 0 !important;
border-collapse: collapse !important;
table-layout: fixed !important;
}
table table table {
table-layout: auto;
}
table td {
padding: 5px;
font-size: 14px;
word-wrap: break-word;
}
.center {
text-align: center;
}
.text-left {
text-align: left;
}
.text-right {
text-align: right;
}
[dir=rtl] .text-right {
text-align: left;
}
[dir=rtl] .text-left {
text-align: right;
}
p {
font-size: 18px;
display: block;
}
.title-bar {
padding: 0 !important;
border-bottom: 2px solid #2b2b2b;
}
.title-bar .s-heading {
color: #797979;
font-size: 14px;
margin: 0 0 5px 0;
}
.title-bar .m-heading {
color: #3c3c3c;
font-size: 16px;
margin: 0;
}
</style>
</head>
<body {!! is_rtl() ? 'dir="rtl"' : '' !!}>
<!-- when testing -->
{{-- <div style="max-width: 680px;margin: 0 auto;"> --}}
<!-- when generating -->
<div>
<div>
<table>
<tr>
<td class="title-bar center">
<table>
<tr>
<td style="padding: 10px;width: 40%;" class="text-right">
<img src="{{ "data:image/png;base64,".base64_encode(file_get_contents(public_path('/storage/'.setting('site.site_favicon')))) }}" style="width: 64px;">
</td>
<td style="padding: 10px;width: 60%;" class="text-left">
<p class="m-heading">{{ (setting('site.site_name') ? setting('site.site_name') : config('app.name')) }}</p>
<p class="s-heading">{{ setting('site.site_slogan') }}</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<!-- 1. Event details -->
<div>
<table>
<tr>
<td style="padding: 20px 10px 10px 10px;width: 30%;" class="text-right">
<img style="width: 100%;border-radius: 12px;" src="{{ "data:image/png;base64,".base64_encode(file_get_contents(public_path('/storage/'.$event->thumbnail))) }}">
</td>
<td style="padding: 10px;width: 70%;" class="text-left">
<div>
<table>
<tr>
<td class="text-left">
<img src="{{ "data:image/png;base64,".base64_encode(file_get_contents(public_path('/storage/extras/red-carpet.png'))) }}" style="width: 24px;">
<p>{{$event->title}}</p>
</td>
</tr>
<tr>
<td class="text-left">
<img src="{{ "data:image/png;base64,".base64_encode(file_get_contents(public_path('/storage/extras/location.png'))) }}" style="width: 24px;">
<p>{{ucfirst($event->venue)}} | {{ucfirst($event->address)}}</p>
</td>
</tr>
<tr>
<td class="text-left">
<img src="{{ "data:image/png;base64,".base64_encode(file_get_contents(public_path('/storage/extras/calendar.png'))) }}" style="width: 24px;">
<p>
@if($booking['event_start_date'] == $booking['event_end_date'])
{{ userTimezone($booking['event_start_date'].' '.$booking['event_start_time'], 'Y-m-d H:i:s', format_carbon_date(true)) }}
@else
{{ userTimezone($booking['event_start_date'].' '.$booking['event_start_time'], 'Y-m-d H:i:s', format_carbon_date(true)) }} -
@if( userTimezone($booking['event_start_date'].' '.$booking['event_start_time'], 'Y-m-d H:i:s', 'Y-m-d') <= userTimezone($booking['event_end_date'].' '.$booking['event_end_time'], 'Y-m-d H:i:s', 'Y-m-d'))
{{ userTimezone($booking['event_end_date'].' '.$booking['event_end_time'], 'Y-m-d H:i:s', format_carbon_date(true))}}
@else
{{ userTimezone($booking['event_start_date'].' '.$booking['event_start_time'], 'Y-m-d H:i:s', format_carbon_date(true))}}
@endif
@endif
{{ '('.userTimezone($booking['event_start_date'].' '.$booking['event_start_time'], 'Y-m-d H:i:s', format_carbon_date(false)).' - '.userTimezone($booking['event_end_date'].' '.$booking['event_end_time'], 'Y-m-d H:i:s', format_carbon_date(false)).')' }}
{{ '('. showTimezone() .')' }}
</p>
</td>
</tr>
<tr>
<td class="text-left">
<img src="{{ "data:image/png;base64,".base64_encode(file_get_contents(public_path('/storage/extras/identity.png'))) }}" style="width: 24px;">
<p>{{ ucfirst($booking['customer_name']) }}</p>
</td>
</tr>
<tr>
<td class="text-left">
<img src="{{ "data:image/png;base64,".base64_encode(file_get_contents(public_path('/storage/extras/ticket.png'))) }}" style="width: 24px;">
<p>{{ $booking['ticket_title'].' '.$booking['ticket_price'].' '.$currency }} <small>(x{{$booking['quantity']}})</small></p>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
<div>
<table>
<tr>
<td><hr style="border: 1px solid #000;"></td>
</tr>
</table>
</div>
<!-- 2. Booking details -->
<br>
<div>
<table>
<tr>
<td class="center">
<p><span style="font-size: 24px;font-weight: 600;">#</span> {{$booking['order_number']}}</p>
</td>
</tr>
</table>
</div>
<!-- 2. QrCode -->
<div>
<table>
<tr>
<td style="text-align: center;padding-top: 25px;">
@php $qrcode = $booking['customer_id'].'/'.$booking['id'].'-'.$booking['order_number'].'.png'; @endphp
<img src="{{ "data:image/png;base64,".base64_encode(file_get_contents(public_path('/storage/qrcodes/'.$qrcode))) }}" style="width: 70%;">
</td>
</tr>
</table>
</div>
</div>
</body>
</html>
Replace just this-Code:<html> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <style> * { padding: 0; margin: 0; font-family: 'DejaVu Sans', sans-serif; } body { margin: 0 auto !important; padding: 0 !important; height: 100% !important; width: 100% !important; font-size: 14px; font-family: 'DejaVu Sans', sans-serif; } table { width: 95%; padding: 1px; margin: 0 auto !important; border-spacing: 0 !important; border-collapse: collapse !important; table-layout: fixed !important; } table table table { table-layout: auto; } table td { padding: 5px; font-size: 14px; word-wrap: break-word; } .center { text-align: center; } .text-left { text-align: left; } .text-right { text-align: right; } [dir=rtl] .text-right { text-align: left; } [dir=rtl] .text-left { text-align: right; } p { font-size: 18px; display: block; } .title-bar { padding: 0 !important; border-bottom: 2px solid #2b2b2b; } .title-bar .s-heading { color: #797979; font-size: 14px; margin: 0 0 5px 0; } .title-bar .m-heading { color: #3c3c3c; font-size: 16px; margin: 0; } </style> </head> <body {!! is_rtl() ? 'dir="rtl"' : '' !!}> <!-- when testing --> {{-- <div style="max-width: 680px;margin: 0 auto;"> --}} <!-- when generating --> <div> <div> <table> <tr> <td class="title-bar center"> <table> <tr> <td style="padding: 10px;width: 40%;" class="text-right"> <img src="{{ "data:image/png;base64,".base64_encode(file_get_contents(public_path('/storage/'.setting('site.site_favicon')))) }}" style="width: 64px;"> </td> <td style="padding: 10px;width: 60%;" class="text-left"> <p class="m-heading">{{ (setting('site.site_name') ? setting('site.site_name') : config('app.name')) }}</p> <p class="s-heading">{{ setting('site.site_slogan') }}</p> </td> </tr> </table> </td> </tr> </table> </div> <!-- 1. Event details --> <div> <table> <tr> <td style="padding: 20px 10px 10px 10px;width: 30%;" class="text-right"> <img style="width: 100%;border-radius: 12px;" src="{{ "data:image/png;base64,".base64_encode(file_get_contents(public_path('/storage/'.$event->thumbnail))) }}"> </td> <td style="padding: 10px;width: 70%;" class="text-left"> <div> <table> <tr> <td class="text-left"> <img src="{{ "data:image/png;base64,".base64_encode(file_get_contents(public_path('/storage/extras/red-carpet.png'))) }}" style="width: 24px;"> <p>{{$event->title}}</p> </td> </tr> <tr> <td class="text-left"> <img src="{{ "data:image/png;base64,".base64_encode(file_get_contents(public_path('/storage/extras/location.png'))) }}" style="width: 24px;"> <p>{{ucfirst($event->venue)}} | {{ucfirst($event->address)}}</p> </td> </tr> <tr> <td class="text-left"> <img src="{{ "data:image/png;base64,".base64_encode(file_get_contents(public_path('/storage/extras/calendar.png'))) }}" style="width: 24px;"> <p> @if($booking['event_start_date'] == $booking['event_end_date']) {{ userTimezone($booking['event_start_date'].' '.$booking['event_start_time'], 'Y-m-d H:i:s', format_carbon_date(true)) }} @else {{ userTimezone($booking['event_start_date'].' '.$booking['event_start_time'], 'Y-m-d H:i:s', format_carbon_date(true)) }} - @if( userTimezone($booking['event_start_date'].' '.$booking['event_start_time'], 'Y-m-d H:i:s', 'Y-m-d') <= userTimezone($booking['event_end_date'].' '.$booking['event_end_time'], 'Y-m-d H:i:s', 'Y-m-d')) {{ userTimezone($booking['event_end_date'].' '.$booking['event_end_time'], 'Y-m-d H:i:s', format_carbon_date(true))}} @else {{ userTimezone($booking['event_start_date'].' '.$booking['event_start_time'], 'Y-m-d H:i:s', format_carbon_date(true))}} @endif @endif {{ '('.userTimezone($booking['event_start_date'].' '.$booking['event_start_time'], 'Y-m-d H:i:s', format_carbon_date(false)).' - '.userTimezone($booking['event_end_date'].' '.$booking['event_end_time'], 'Y-m-d H:i:s', format_carbon_date(false)).')' }} {{ '('. showTimezone() .')' }} </p> </td> </tr> <tr> <td class="text-left"> <img src="{{ "data:image/png;base64,".base64_encode(file_get_contents(public_path('/storage/extras/identity.png'))) }}" style="width: 24px;"> <p>{{ ucfirst($booking['customer_name']) }}</p> </td> </tr> <tr> <td class="text-left"> <img src="{{ "data:image/png;base64,".base64_encode(file_get_contents(public_path('/storage/extras/ticket.png'))) }}" style="width: 24px;"> <p>{{ $booking['ticket_title'].' '.$booking['ticket_price'].' '.$currency }} <small>(x{{$booking['quantity']}})</small></p> </td> </tr> </table> </div> </td> </tr> </table> </div> <div> <table> <tr> <td><hr style="border: 1px solid #000;"></td> </tr> </table> </div> <!-- 2. Booking details --> <br> <div> <table> <tr> <td class="center"> <p><span style="font-size: 24px;font-weight: 600;">#</span> {{$booking['order_number']}}</p> </td> </tr> </table> </div> <!-- 2. QrCode --> <div> <table> <tr> <td style="text-align: center;padding-top: 25px;"> @php $qrcode = $booking['customer_id'].'/'.$booking['id'].'-'.$booking['order_number'].'.png'; @endphp <img src="{{ "data:image/png;base64,".base64_encode(file_get_contents(public_path('/storage/qrcodes/'.$qrcode))) }}" style="width: 70%;"> </td> </tr> </table> </div> </div> </body> </html>
in the webinstall version there is no /tickets/ directory, and no pdf.blade.php, even if i create the folder & file, image dont apear... but tx.Replace just this-
eventmie-pro/resources/views/tickets/pdf.blade.php
fixes issue that doesn't allow images to appear correctly in tickets
Do you paste that code to overwrite the one in pdf.blade.php?Replace just this-
eventmie-pro/resources/views/tickets/pdf.blade.php
fixes issue that doesn't allow images to appear correctly in tickets
Yes¿Pegas ese código para sobrescribir el que está en pdf.blade.php?
its possible, if you are using webinstaller just run "composer install" command in root directory, then refresh url,unable to install on Local Host
i'm using Xampp server
I am Looking for Help ..........
Thank You
its possible, if you are using webinstaller just run "composer install" command in root directory, then refresh url,unable to install on Local Host
i'm using Xampp server
I am Looking for Help ..........
Thank You
its possible, if you are using webinstaller just run "composer install" command in root directory, then refresh url,
its possible, if you are using webinstaller just run "composer install" command in root directory, then refresh url,