If a customer adds photos to the cart - then instead of removing them - simply puts in a 0 and then saves the cart - the discount is still applied to the remaining items even though there are not enough to qualify for the discount.
I wasn't able to replicate this, despite the fact that the code appeared to be incorrect. Regardless, I have refactored it and I think it should be fixed in 0.3.2_beta2 and onwards. Please verify.
Alec,
This still appears to be a problem in 0.3.2. I have a 20% discount for 4 or more items. After adding 5 items, then setting the item number to 0 for all but one of them, the final remaining item still has a 20 % discount.
Maybe modify the code to always include a "1" when the item is added. Then if a 0 is added, call the "remove" function automatically?
Luke7799
Joined: 2007-07-10
Posts: 35
Posted: Thu, 2008-04-24 00:20
Sorry guys, just saw the PDF plugin, extremely sorry, it works a breeze thankyou.
Luke7799
Joined: 2007-07-10
Posts: 35
Posted: Thu, 2008-04-24 13:27
Just got a question regarding the checkoutpdfinvoice module. It displays the quotations used for the 6" x 8" as 6" x 8"... Please see the file attached, I would like it to display it as the actual quotation instead of its code version of that symbol.
Another possible feature request is to be able to edit the customers comments/notes, this way the notes that you edited are displayed when you print the pdf version.
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Thu, 2008-04-24 07:39
Quote:
Basically some type of image processing script was running
Hi Pigwet,
I don't recognise any of those commands ... pngtopnm etc ... not anything to do with Checkout, as far as I can tell. Just to be 100% sure - when you say you uploaded the CheckoutDownloadStatusPlugin.zip please confirm for me that what you *actually* did was download it to your desktop, unzip it locally, and ftp-upload the single contained file (checkoutDownloadStatusPlugin.inc) into the modules/checkoutdownload/classes directory to overwrite the existing file there?
Did you actually get as far as trying to download any files then? it sounds like not, in which case that file that you uploaded would not have been executed and the problem must lie elsewhere.
(By the way, a quick google for pngtopnm reveals it as part of netPBM - are you using PNG format files on your site? you might want to have a look at your image library settings and perhaps use ImageMagick if NetPBM is causing grief.)
I'll have another look at the discount/removed item thing later today.
Luke: I'll look at the pdf thing today too.
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Thu, 2008-04-24 10:12
tcphoto wrote:
I would be happy if the user was taken directly to the download link after confirming their selection in Step 2 if the total is zero, and if the total is greater than zero the payment is processed normally. (I would rather not permit downloads before a payment has cleared. I am only using that as a work-around for now.) Is that what you mean when you say the checkoutpaypal plugin will not display itself unless the cart total is greater than zero? I guess I am having trouble visualizing the user experience. I have not tried to use checkoutemail.
From 0.3.3, checkoutpaypal no longer shows unless there's a positive balance to pay, and in addition at the confirmation stage orders are moved directly to "payment cleared" status unless the transaction amount is positive (meaning payment is required.) This is done immediately before the "order confirmation screen" is displayed - a payment plugin still needs to take the user from the checkout page to this point. Checkoutemail does the job, but of course it asks for customer details first, including email address. A 'checkoutfree' plugin which just redirects the user straight to confirmation (and download) would be very simple, I'll knock one together if I have time. If you're in a hurry, just take checkoutemail and cut out about 93% of the code ;-)
Quote:
If I can find the time, I would be happy to attempt to modify the checkoutdownload module, but I probably will need some assistance as I am new to PHP. (I am more of a C++ type.)
if you're brave enough to code in the poisonous forest that is C++ then php will be a doddle.
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Thu, 2008-04-24 13:53
pigwet wrote:
Alec,
This still appears to be a problem in 0.3.2. I have a 20% discount for 4 or more items. After adding 5 items, then setting the item number to 0 for all but one of them, the final remaining item still has a 20 % discount.
Hi Pigwet,
I'm sorry I still can't reproduce this behaviour. Can you post a screenshot of your discount table (in the Admin page) please. Also confirm that you're entering the digit zero in the quantity box for the first 4 items then going straight to the checkout page. Not that it should make any difference, but the first stage is for me to reproduce what you're seeing happen.
Thanks
______________
The Gallery Forum helps those who help themselves.
pigwet
Joined: 2008-03-08
Posts: 16
Posted: Thu, 2008-04-24 15:43
Alec,
I first followed these instructions - which is why I originally referred to the .class extension yesterday.
alecmyers wrote:
Quote:
A rogue capital in the path by the look of it!
Yes I think so, well spotted.
Try changing line 54 of CheckoutDownloadStatusPlugin.class to read as follows:
EDIT: no, actually, that can't be it, even though it's an error....
OK, here's a new checkoutdownload module with a couple of other typos fixed too.
I *CONFIRM* that I downloaded the .inc zip, extracted it and ftpd it to the correct folder.
The jpgtopnm script is what is called when a thumbnail is made. Maybe the items I added to my cart needed additional or resized thumbnails to be made? I do not have any pngs.
I could have seen this being a problem last week when I uploaded 2000 race photos - but yesterday I only uploaded 20 photos just to test. My ISP said that the problem did not occur when I uploaded the photos, but at the instant I went to checkout. From what I remember, I do NOT think that I even got to the download button so you are correct.
At this point I will reinstall everything checkout 0.3.3 related and give it another shot.
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Thu, 2008-04-24 15:54
pigwet wrote:
At this point I will reinstall everything checkout 0.3.3 related and give it another shot.
0.3.2 - 0.3.3 I haven't uploaded yet.
Do you create thumbnails at upload time? Adding a photo to your cart does indeed load a thumbnail, but it does it through the regular Gallery API which will create it at that time if it's not cached.
I'm also concerned to track down your problem with the discounts, but will wait to have a look at your discount table ...
______________
The Gallery Forum helps those who help themselves.
pigwet
Joined: 2008-03-08
Posts: 16
Posted: Thu, 2008-04-24 15:57
Alec,
Screen shot of 0.3.1 BUT I set it up exactly the same way in 0.3.2. I typed 0 and THEN hit "save changes". Then I went to checkout. When saved, the products are not removed - they just have nothing in their quantity boxes.
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Thu, 2008-04-24 16:07
pigwet wrote:
Alec,
Screen shot of 0.3.1 BUT I set it up exactly the same way in 0.3.2. I typed 0 and THEN hit "save changes". Then I went to checkout. When saved, the products are not removed - they just have nothing in their quantity boxes.
No, indeed, it all looks healthy. Products with zero quantity are deliberately left in the cart (with a blank quantity box) so they're easy to put back, as discussed previously in this thread - note that it's only an issue one way or the other with items set as dropdowns though) I realise that that isn't to *everyone's* taste, but it's the way I want it, so... Nevertheless, they're still not counted for discount purposes - only items with quantities postively greater than zero count towards that. I don't suppose you can arrange admin access to your install for me, so I can try to figure out what's going on, can you?
______________
The Gallery Forum helps those who help themselves.
pigwet
Joined: 2008-03-08
Posts: 16
Posted: Thu, 2008-04-24 16:06
alecmyers wrote:
pigwet wrote:
At this point I will reinstall everything checkout 0.3.3 related and give it another shot.
0.3.2 - 0.3.3 I haven't uploaded yet.
Do you create thumbnails at upload time? Adding a photo to your cart does indeed load a thumbnail, but it does it through the regular Gallery API which will create it at that time if it's not cached.
I'm also concerned to track down your problem with the discounts, but will wait to have a look at your discount table ...
I realize that 0.3.3 is not up yet.
Uploading many photos it tricky - the only thing I got to work reliably is the server upload option. So I ftp to a folder, add to gallery, then delete the original photos.
When I add 1000's of photos (using the the server upload option) to gallery, if you up run the 'create thumbnails now' the server will time out. So I add the photos to gallery, and then set up the albums to display 1000s of thumbnails initially on each page. Then I visit the page and let each thumbnail create and load (takes a really long time). Then when all the thumbnails are created, I send the link out to my customers and change the number of thumbnails displayed on a single page to something more reasonable.
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Thu, 2008-04-24 16:17
pigwet wrote:
When I add 1000's of photos ...
Sure - but - aside from what you do when you have 1000's of photos, what did you do when you uploaded the 20 in the test installation? if you made the thumbnails at upload time then it's less likely that creating a thumbnail when you added the photo to the cart pulled the server over. If you didn't, then it's possible that a glitch (or maybe a faulty image - I don't know much about netPBM) was the problem, and the timing was coincidental in as much as it was adding it to the cart that required the thumbnail to be built for the first time.
wiz69
Joined: 2008-04-25
Posts: 23
Posted: Fri, 2008-04-25 09:33
I'm using 0.3.2 beta2 version ...
anda when press, from a mail, DOWNLOAD AS ZIP, I've always these error
Security Violation
The action you attempted is not permitted.
Back to the Gallery
Error Detail -
Error (ERROR_BAD_PARAMETER) : /web/htdocs/.../home/foto/modules/checkoutDownload/module.inc
in modules/core/classes/helpers/GalleryPluginHelper_simple.class at line 94 (gallerycoreapi::error)
in modules/core/classes/helpers/GalleryPluginHelper_simple.class at line 88 (gallerypluginhelper_simple::loadplugin)
in modules/core/classes/GalleryCoreApi.class at line 209 (gallerypluginhelper_simple::loadplugin)
in modules/core/classes/GalleryView.class at line 153 (gallerycoreapi::loadplugin)
in main.php at line 318 (galleryview::loadview)
in main.php at line 94
in main.php at line 83
System Information
Gallery version 2.2.2
PHP version 4.4.7 cgi
Webserver Apache/2.0
Database mysqlt 5.0.54-log
Toolkits NetPBM
Operating system Linux webx25.ad.aruba.it 2.6.18-53.1.4.el5PAE #1 SMP Wed Feb 13 15:24:10 CET 2008 i686
Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)
I've updated the download module with the ZIP attachment on this forum ... but
nothing was changed.
What's the problem???
Thanks, great job.
Wiz69
pigwet
Joined: 2008-03-08
Posts: 16
Posted: Fri, 2008-04-25 13:24
This is the same error I was getting earlier - and I never did get it to work.
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Fri, 2008-04-25 19:24
Hi Pigwet,
please try the 0.3.3_beta version. Still hoping to hear from you about admin access to your installation to look at your discounts problem, if it's still there in 0.3.3.
paulcobb
Joined: 2006-05-04
Posts: 122
Posted: Fri, 2008-04-25 20:12
Upgraded to 0.3.3. beta version
When in:
Site Admin
Checkout Orders
Select an order by 'ID'
'Download PDF format invoice' option button
the following:
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /var/www/html/gallery2/modules/checkoutpdfinvoice/PDFOut.inc on line 126
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /var/www/html/gallery2/modules/checkoutpdfinvoice/PDFOut.inc on line 178
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/gallery2/modules/checkoutpdfinvoice/PDFOut.inc:126) in /var/www/html/gallery2/modules/checkoutpdfinvoice/lib/fpdf/fpdf.php on line 1022
FPDF error: Some data has already been output to browser, can't send PDF file
Paul
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Fri, 2008-04-25 23:12
Hi Paul,
Thanks for that one. See if this fixes it (goes in modules/checkoutpdfinvoice/)
Ok alecmyer, now download problem seems ok in versione 0.3.3 beta.
I've tested the download function from ADMIN into order detail.
But into the email (in status CONFIRMED) that customer receive, there isnt' the button
DOWNLOAD AS ZIP ....
In version 0.3.2 beta2 the button exit into the mail.
Another question. Why order number seems to be random?????
Thanks
Wiz
wiz69
Joined: 2008-04-25
Posts: 23
Posted: Sat, 2008-04-26 06:01
Other info on 0.3.3 beta checkout download.
Also if I check OVERRIDE PERMISSION an APPEND DATE (with a specific BASE FILENAME),
1) the file name that download (from the order DETAIL of user ADMIN) is always
G2cart.zip (perhaps there is something to set in PLUG-IN ZIP DOWLOAD???)
2) the photo into the file are WATERMARKED and not the original. How can donwload
the original photo and not the watermarked version that I show to the
customer in my site?
Thanks in adv
Wiz
paulcobb
Joined: 2006-05-04
Posts: 122
Posted: Sat, 2008-04-26 07:15
Quote:
See if this fixes it (goes in modules/checkoutpdfinvoice/)
Yep that's sorted it
Paul
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Sat, 2008-04-26 10:26
Quote:
1) the file name that download (from the order DETAIL of user ADMIN) is always
G2cart.zip (perhaps there is something to set in PLUG-IN ZIP DOWLOAD???)
2) the photo into the file are WATERMARKED and not the original. How can donwload
the original photo and not the watermarked version that I show to the
customer in my site?
The settings in the checkoutdownload admin page should be obeyed reliably in this version - please try it.
Re: order numbers - they are the id assigned by Gallery to the checkoutTransaction Entity. The same numbering sequence is shared by all Gallery entities, including checkoutItems (line items in each order), photos, derivatives, thumbnails etc, so it can jump, especially if you upload some photographs. But it's definitely not random.
[EDIT: updated attachment to restore email button function]
Sorry, I'm having terrible finger trouble with the forum this morning, as anyone who's subscribed to this thread will have noticed.
The latest update to the checkoutdownload module is the one called checkoutdownload_updated.zip, above.
wiz69
Joined: 2008-04-25
Posts: 23
Posted: Sun, 2008-04-27 21:31
In this update there are two problem:
1) Now the DONWNLOAD AD ZIP button in mail show ... but, clicked, return the error page:
Security Violation
The action you attempted is not permitted.
Using ORDER STATUS, and then the button DOWNLOAD AS ZIP on the web page ... all is ok.
2) Price are rounded to the minor value integer (es. photo price 1,50 x qta 1 = 1,00)
Wiz
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Sun, 2008-04-27 21:51
Hi Wiz,
1) can you post (or send me via pm) the html for the button in the email (that doesn't work), and also the html for the same button in the order status page (that does work). If you are logged in as an administrator, you should see a more detailed error message - please post it.
2) Please try the price with a decimal point rather than a decimal comma (1.50) and tell me if that works.
Thanks
wiz69
Joined: 2008-04-25
Posts: 23
Posted: Mon, 2008-04-28 05:25
Here the error page
Security Violation
The action you attempted is not permitted.
Back to the Gallery
Error Detail -
Error (ERROR_BAD_PARAMETER) : /web/htdocs/.../home/foto/modules/checkoutDownload/module.inc
in modules/core/classes/helpers/GalleryPluginHelper_simple.class at line 94 (gallerycoreapi::error)
in modules/core/classes/helpers/GalleryPluginHelper_simple.class at line 88 (gallerypluginhelper_simple::loadplugin)
in modules/core/classes/GalleryCoreApi.class at line 209 (gallerypluginhelper_simple::loadplugin)
in modules/core/classes/GalleryView.class at line 153 (gallerycoreapi::loadplugin)
in main.php at line 318 (galleryview::loadview)
in main.php at line 94
in main.php at line 83
System Information
Gallery version 2.2.2
PHP version 4.4.7 cgi
Webserver Apache/2.0
Database mysqlt 5.0.54-log
Toolkits ImageMagick, NetPBM
Operating system Linux webx29.ad.aruba.it 2.6.18-53.1.4.el5PAE #1 SMP Wed Feb 13 15:24:10 CET 2008 i686
Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2008-04-28 08:37
Hi Wiz,
Please try this new modules/checkoutdownload/templates/email/download.tpl file
I want to insert a customization in the final page checkout, when customer press button to confirm order.
In particular, I want to insert a PIN check to confirm the order.
Can you indicate the source in which I can insert this personalization?
You have two choices:
1) Add an extra field to the checkout/templates/SelectPhotos.tpl (copy the discount-code idea) and parse it in confirm.inc - throw an error (similar to the one if the postage is required and not set) which is displayed in SelectPhotos.tpl. That means the pin has to be entered before the final page checkout.
2) If the pin-code *has* to be entered on the final checkout page, you will have to do the work within each payment plugin: so, for instance, add an extra field to checkoutemail/templates/Details.tpl and parse the contents in Email.inc. To get checkoutpaypal to do the same thing, you will need to add a new field to checkoutpaypal/templates/PaymentButton.tpl to input the code, change the "action" for that form to a new (Gallery) Controller that will test the PIN then redirect to the original form's destination (i.e. Paypal) - although I'm not sure what will happen to the form contents (the order contents) in that case - you might need to insert a new Gallery View that repeats the form contents with a button/message that says something like "Your PIN is accepted - click here to complete your payment at Paypal".
Good luck!
tcphoto
Joined: 2008-03-11
Posts: 11
Posted: Mon, 2008-04-28 09:47
Quote:
From 0.3.3, checkoutpaypal no longer shows unless there's a positive balance to pay, and in addition at the confirmation stage orders are moved directly to "payment cleared" status unless the transaction amount is positive (meaning payment is required.) This is done immediately before the "order confirmation screen" is displayed - a payment plugin still needs to take the user from the checkout page to this point. Checkoutemail does the job, but of course it asks for customer details first, including email address. A 'checkoutfree' plugin which just redirects the user straight to confirmation (and download) would be very simple, I'll knock one together if I have time. If you're in a hurry, just take checkoutemail and cut out about 93% of the code ;-)
Thanks alec - that was quick! I'm not in a hurry (at least not much). I have not yet upgraded to 0.3.3 because my site is live. I guess I should find the time to figure out how to install a second instance of gallery2 for testing, but I haven't had time yet.
I have another feature request that I am not sure if it has been addressed or not. (I should have probably figured out a way to test first before I ask this, so please pardon me if I am being lazy.) My problem is that with version 0.1.18 of Checkout, the "Continue shopping" button does not always return the user to the album they were previously viewing. Sometimes it works, and sometimes it doesn't. For example, if someone empties the cart and then click "Continue shopping" they are redirected to the root album. Also if the user clicks "Continue to checkout" and from there they click "Continue shopping" they are redirected to the root album. This is a problem for me because I want to keep the root album hidden. I have searched through all the forums, but I can't seem to find an answer that fixes the issue in the cases I mentioned. I am also reluctant to spend much time "fixing" version 0.1.8 since I plan to upgrade once your new version is stable.
Thanks again for all your great work!
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2008-04-28 09:55
I will loook into this for 0.3.3/4, but I can't guarantee anything. When you say it redirects to the root album, it should, I think, redirect to /main.php - I guess you could use .htaccess to rewrite this to your album of choice.
tcphoto
Joined: 2008-03-11
Posts: 11
Posted: Mon, 2008-04-28 10:17
Quote:
I will loook into this for 0.3.3/4, but I can't guarantee anything. When you say it redirects to the root album, it should, I think, redirect to /main.php
Thanks Alec,
Yes, that is exactly what it does. However there are also the cases when "Continue shopping" redirects to the last album the user was viewing. For example if the user adds a photo to the cart or clicks "View cart" from the sidebar, and then clicks "Continue shopping", they are taken back to the photo or album page they were previously viewing. This is the functionality I am looking for. For some reason (which is currently beyond me) the 'returnUrl' value seems to get wiped out once the user empties the cart or proceeds to step 2.
I also noticed that the breadcrumb leads back to root album only. Is there a way to make the breadcrumb show up the same way it would for the last album or photo the user was viewing?
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2008-04-28 11:57
I think the return url disappears because it's not explicitly carried through every single link and form - will investigate.
Breadcrumbs: not supplied by Checkout at all, they're under the control of the theme, I think, so there's not much I can do about them.
[EDIT] I've made a couple of quick mods which means that the continue shopping from stage 2 (confirm) now returns you to the same item page, rather than the root album. Once you've gone to a payment plugin, that information is no longer available, though. The returnURL is carried around in the status variable, which is fragile (for instance if you refresh the page with f5 it gets wiped, which is not ideal). Better might be to put in the session data, but I'll have to think through the consequences of that.
tcphoto
Joined: 2008-03-11
Posts: 11
Posted: Mon, 2008-04-28 15:50
Quote:
Breadcrumbs: not supplied by Checkout at all, they're under the control of the theme, I think, so there's not much I can do about them.
Yes, you are right. I'll try customizing the breadcrumbs in my theme then.
Thanks for all your help, and for looking into the returnUrl thing!
wiz69
Joined: 2008-04-25
Posts: 23
Posted: Mon, 2008-04-28 20:09
Alec,
OK for "." over "," ....
but DOWNLOAD AS ZIP from email doesn't work.
I'll make a new test and update this post.
Yes ..... occurs a strange thing ... the button open WINZIP blank!!!
with the name of photo file + [1] ... but empty, without starting download.
And, in the confirmation mail, also creating folder local and CustomerDetails.tpl
file in my language, the label customer detail continue to show in english.
It's pherhaps linked to the CONFIRM.TPL that contain
these phisical path of the other template file?
You've brought to my attention another issue, with the ',' vs. '.' - if the decimal separator in your locale isn't '.' then you currently get inconsistences - sometimes one, sometimes the other.
This is because sometimes amounts are formated with |string_format:"%.2f" in the template, and sometimes not.
I think the best solution is to include an admin setting for numeric formatting string, and to use this in all checkout templates, like the date/time formats on the general admin page. I'll put that in tomorrow, and upload a new set of files.
Regarding the download... sounds like a php error somewhere... will get back to you with some debug info requests tomorrow.
tcphoto
Joined: 2008-03-11
Posts: 11
Posted: Tue, 2008-04-29 01:07
I worked on the breadcrumb issue and came up with the following:
The breadcrumb links are handled by modules/core/templates/blocks/BreadCrumb.tpl and not by the theme directly. By modifying this file I was able to remove the breadcrumb altogether from any 'module' type page that does not have any parents. While this isn't ideal, it does remove the confusion for the user and allows me to have a setup where the root album can remain hidden. In case anyone is interested, here is what I changed:
{if ($theme.pageType == 'admin')}
<a href="{g->url arg1="view=core.ShowItem"
arg2="itemId=`$theme.item.id`"}" class="BreadCrumb-{counter name="BreadCrumb"}">
{$theme.item.title|markup:strip|default:$theme.item.pathComponent}</a>
{elseif ($theme.pageType == 'module')}
{if $theme.item.parentId > 0}
<a href="{g->url arg1="view=core.ShowItem"
arg2="itemId=`$theme.item.id`"}" class="BreadCrumb-{counter name="BreadCrumb"}">
{$theme.item.title|markup:strip|default:$theme.item.pathComponent}</a>
{else}
{* don't display a link to the root album *}
{/if}
{else}
What might be more ideal is if there is a way to know that the module type is "checkout" and only hide the breadcrumb then. Do you know if there is a way to do that?
This exercise got me thinking about the returnURL issue too. Maybe I am thinking way too far outside the box here, but I am wondering if it is possible to assign a "parent" to the checkout view. If this is possible, it might be able to be used to solve both the breadcrumb problem and the returnUrl problem. I just don't have enough of an understanding of the G2 structure to know how or where to look for this.
wiz69
Joined: 2008-04-25
Posts: 23
Posted: Tue, 2008-04-29 05:23
Letter as "à", "è" etc .... using in text are presented in this manner
Source code (TPL, INC, etc.)
text="Quantità"
---> on the web .... Quantit?
And I'm using .... text="Quantita'"
Wiz
wiz69
Joined: 2008-04-25
Posts: 23
Posted: Tue, 2008-04-29 09:11
Download BUTTON on email.
Confirmed: clicking the DWONLOAD button, don't start any DOWNLOAD bu open directly WINZIP.
Here the HTML code present in email:
Download autorizzato. Ora puoi prelevare il file da qui:
<br/>
<form action="http://www..../foto/main.php?g2_view=checkoutdownload.Download&g2_transactionId=530&g2_verify1=1209455387&g2_verify2=3004854854816d31bd85cc1%2C77718480&g2_navId=xd9d31a5a" method="post">
<button type="submit">Download file Zip</button>
</form>
<br/>
<br/>
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Tue, 2008-04-29 09:22
Hi Wiz,
It works from the admin/web page, but not from the email, is that right? For the same download?
wiz69
Joined: 2008-04-25
Posts: 23
Posted: Tue, 2008-04-29 09:50
Yes works perfectly from web page, also opened form STATUS ORDER
BUTTON, by a registered user.
Also in EMAIL doesn't work the button.
Wiz
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Tue, 2008-04-29 11:53
wiz69 wrote:
Letter as "à", "è" etc .... using in text are presented in this manner
Source code (TPL, INC, etc.)
text="Quantità"
---> on the web .... Quantit?
And I'm using .... text="Quantita'"
Wiz
Hi Wiz,
I've compiled in the Italian PO locally, and I get the correct accented figures, eg: "Prodotto/Prezzo/Quantità", "Checkout::Il tuo ordine è stato confermato.", "Modalità di spedizione e costi." etc., including in emails. So I'm not sure why you don't, there's nothing special in this module that should affect Gallery's regular localisation procedures. Let's see what happens when I've uploaded a version with the localisations included.
If you're editing the template files and putting the Italian in directly, make sure you use UTF-8 encoding (Gallery requires UTF-8), or you will get wrong characters displaying.
By the way, I've now got Italian and German - anyone else want to volunteer?
Regarding the downloads: can you pm me the complete html for the email that doesn't work, and the webpage that does - please leave the full url there, so I can try downloading for myself. Thanks
wiz69
Joined: 2008-04-25
Posts: 23
Posted: Tue, 2008-04-29 12:52
Ok it's clear. I send you the complete web and email html of a new order.
For UTF-8 can make an example?
If in TPL there is someting like ...="Quantità" ... how can I encode
the "à" in UTF-8???
thanks and excuse me for this question ... but I want resolve tihis character
problem.
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Tue, 2008-04-29 13:04
For UTF-8 you need to use an editor that lets you select your file-encoding - set the file to be stored as UTF-8. I use Crimson Editor (on windows) http://www.crimsoneditor.com/ which is free.
akordwig
Joined: 2008-04-29
Posts: 2
Posted: Tue, 2008-04-29 17:20
Just installed your betaa couple days ago, so far no unknown breaks.
One question though: The German translation does not work. Any way to fix this (seems a known issue, but that does not really help).
I would be happy to help with translations into German if required.
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Tue, 2008-04-29 17:23
The german translation's not included yet. I've been sent one, but I haven't compiled it in - next upload should have it though.
pigwet
Joined: 2008-03-08
Posts: 16
Posted: Tue, 2008-04-29 18:22
Alec,
Just installed 0.3.3_beta from the front page (watermarked images were downloaded instead of full resolution) and then the checkoutdownload_updated.zip from above and everything appears to work great.
All shopping cart discount errors are fixed! Excellent.
Daniel
wiz69
Joined: 2008-04-25
Posts: 23
Posted: Tue, 2008-04-29 19:38
Excuse me Alec ... from afternoon I want to send HTML email!!!
But from this moorning my site online doesn't send no more CONFIRMATION
or COMPLETED MAIL for order.
What's the problem from you experience?
This moorning I've modified some TPL in local folder (now renamed to test)
why the site doesn't send any mail to customer.
Also entering with ADMINISTRATOR and clicking re-confirm order (befor this
moorning the mail was received) .... the test-customer doesn't receive
any mail!!!
----------- >>> UPDATE .... PROVIDER PROBLEM!!!! INCREDIBLE.
ALEC now send you HTML EMAIL e WEB in PM for DOWNLOAD BUTTON
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Tue, 2008-04-29 20:01
I've just uploaded (am uplaoding) the latest modifications to the top of the thread - 0.3.3_beta2.
It has Italian translations (thanks to wiz69) and German, but for checkoutdownload only - if someone would like to step in with the other four modules in German that would be dandy. Also Spanish, French, Dutch, anyone? Japanese? Arabic? Hebrew? If you do translate please make sure to save in UTF-8 format and *fill in all the header fields*. If anyone has willing but wants help with the practicalities, pm me.
Unfortunately I don't have time to verify that all strings are correctly translated - if someone sends me a translation... that's what goes in the module. If anyone spots any errors or missing strings then don't tell me - just correct the PO file and pm it to me with your corrections.
There are significant difference in the way checkout handles the "continue shopping" destination - this should now return you to the image/page you were viewing when you entered checkout. (Please test and report.)
Also new is numeric format field for currency strings: yes, now you can bill people in scientific notation, or in hexadecimal. W00t.
(I forgot to add - I read that there are caching issues with the server and translations - such that adding new language files can take some hours to take effect. If you don't see the Italian appear straight away, that might be why. One workaround is to stop/start apache, if you are in a position to do so on your server.)
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Tue, 2008-04-29 20:14
Quote:
ALEC now send you HTML EMAIL e WEB in PM for DOWNLOAD BUTTON
Hi Wiz,
The email link works fine from my PC - it downloads a zip file with one picture in (cute baby by the way)
Can you try your email link from a different pc (or copy and paste it into different browsers) and see what happens? (if you do copy-and-paste you have to edit all the & entities back to & as in .../main.php?g2_view=checkoutdownload.Download&g2_transactionId=535&....)
Posts: 16
Alec,
This still appears to be a problem in 0.3.2. I have a 20% discount for 4 or more items. After adding 5 items, then setting the item number to 0 for all but one of them, the final remaining item still has a 20 % discount.
Maybe modify the code to always include a "1" when the item is added. Then if a 0 is added, call the "remove" function automatically?
Posts: 35
Sorry guys, just saw the PDF plugin, extremely sorry, it works a breeze thankyou.
Posts: 35
Just got a question regarding the checkoutpdfinvoice module. It displays the quotations used for the 6" x 8" as 6" x 8"... Please see the file attached, I would like it to display it as the actual quotation instead of its code version of that symbol.
Posts: 21
Another possible feature request is to be able to edit the customers comments/notes, this way the notes that you edited are displayed when you print the pdf version.
Posts: 4342
Hi Pigwet,
I don't recognise any of those commands ... pngtopnm etc ... not anything to do with Checkout, as far as I can tell. Just to be 100% sure - when you say you uploaded the CheckoutDownloadStatusPlugin.zip please confirm for me that what you *actually* did was download it to your desktop, unzip it locally, and ftp-upload the single contained file (checkoutDownloadStatusPlugin.inc) into the modules/checkoutdownload/classes directory to overwrite the existing file there?
Did you actually get as far as trying to download any files then? it sounds like not, in which case that file that you uploaded would not have been executed and the problem must lie elsewhere.
(By the way, a quick google for pngtopnm reveals it as part of netPBM - are you using PNG format files on your site? you might want to have a look at your image library settings and perhaps use ImageMagick if NetPBM is causing grief.)
I'll have another look at the discount/removed item thing later today.
Luke: I'll look at the pdf thing today too.
Posts: 4342
From 0.3.3, checkoutpaypal no longer shows unless there's a positive balance to pay, and in addition at the confirmation stage orders are moved directly to "payment cleared" status unless the transaction amount is positive (meaning payment is required.) This is done immediately before the "order confirmation screen" is displayed - a payment plugin still needs to take the user from the checkout page to this point. Checkoutemail does the job, but of course it asks for customer details first, including email address. A 'checkoutfree' plugin which just redirects the user straight to confirmation (and download) would be very simple, I'll knock one together if I have time. If you're in a hurry, just take checkoutemail and cut out about 93% of the code ;-)
if you're brave enough to code in the poisonous forest that is C++ then php will be a doddle.
Posts: 4342
Hi Pigwet,
I'm sorry I still can't reproduce this behaviour. Can you post a screenshot of your discount table (in the Admin page) please. Also confirm that you're entering the digit zero in the quantity box for the first 4 items then going straight to the checkout page. Not that it should make any difference, but the first stage is for me to reproduce what you're seeing happen.
Thanks
______________
The Gallery Forum helps those who help themselves.
Posts: 16
Alec,
I first followed these instructions - which is why I originally referred to the .class extension yesterday.
I *CONFIRM* that I downloaded the .inc zip, extracted it and ftpd it to the correct folder.
The jpgtopnm script is what is called when a thumbnail is made. Maybe the items I added to my cart needed additional or resized thumbnails to be made? I do not have any pngs.
I could have seen this being a problem last week when I uploaded 2000 race photos - but yesterday I only uploaded 20 photos just to test. My ISP said that the problem did not occur when I uploaded the photos, but at the instant I went to checkout. From what I remember, I do NOT think that I even got to the download button so you are correct.
At this point I will reinstall everything checkout 0.3.3 related and give it another shot.
Posts: 4342
0.3.2 - 0.3.3 I haven't uploaded yet.
Do you create thumbnails at upload time? Adding a photo to your cart does indeed load a thumbnail, but it does it through the regular Gallery API which will create it at that time if it's not cached.
I'm also concerned to track down your problem with the discounts, but will wait to have a look at your discount table ...
______________
The Gallery Forum helps those who help themselves.
Posts: 16
Alec,
Screen shot of 0.3.1 BUT I set it up exactly the same way in 0.3.2. I typed 0 and THEN hit "save changes". Then I went to checkout. When saved, the products are not removed - they just have nothing in their quantity boxes.
Posts: 4342
No, indeed, it all looks healthy. Products with zero quantity are deliberately left in the cart (with a blank quantity box) so they're easy to put back, as discussed previously in this thread - note that it's only an issue one way or the other with items set as dropdowns though) I realise that that isn't to *everyone's* taste, but it's the way I want it, so... Nevertheless, they're still not counted for discount purposes - only items with quantities postively greater than zero count towards that. I don't suppose you can arrange admin access to your install for me, so I can try to figure out what's going on, can you?
______________
The Gallery Forum helps those who help themselves.
Posts: 16
I realize that 0.3.3 is not up yet.
Uploading many photos it tricky - the only thing I got to work reliably is the server upload option. So I ftp to a folder, add to gallery, then delete the original photos.
When I add 1000's of photos (using the the server upload option) to gallery, if you up run the 'create thumbnails now' the server will time out. So I add the photos to gallery, and then set up the albums to display 1000s of thumbnails initially on each page. Then I visit the page and let each thumbnail create and load (takes a really long time). Then when all the thumbnails are created, I send the link out to my customers and change the number of thumbnails displayed on a single page to something more reasonable.
Posts: 4342
Sure - but - aside from what you do when you have 1000's of photos, what did you do when you uploaded the 20 in the test installation? if you made the thumbnails at upload time then it's less likely that creating a thumbnail when you added the photo to the cart pulled the server over. If you didn't, then it's possible that a glitch (or maybe a faulty image - I don't know much about netPBM) was the problem, and the timing was coincidental in as much as it was adding it to the cart that required the thumbnail to be built for the first time.
Posts: 23
I'm using 0.3.2 beta2 version ...
anda when press, from a mail, DOWNLOAD AS ZIP, I've always these error
Security Violation
The action you attempted is not permitted.
Back to the Gallery
Error Detail -
Error (ERROR_BAD_PARAMETER) : /web/htdocs/.../home/foto/modules/checkoutDownload/module.inc
in modules/core/classes/helpers/GalleryPluginHelper_simple.class at line 94 (gallerycoreapi::error)
in modules/core/classes/helpers/GalleryPluginHelper_simple.class at line 88 (gallerypluginhelper_simple::loadplugin)
in modules/core/classes/GalleryCoreApi.class at line 209 (gallerypluginhelper_simple::loadplugin)
in modules/core/classes/GalleryView.class at line 153 (gallerycoreapi::loadplugin)
in main.php at line 318 (galleryview::loadview)
in main.php at line 94
in main.php at line 83
System Information
Gallery version 2.2.2
PHP version 4.4.7 cgi
Webserver Apache/2.0
Database mysqlt 5.0.54-log
Toolkits NetPBM
Operating system Linux webx25.ad.aruba.it 2.6.18-53.1.4.el5PAE #1 SMP Wed Feb 13 15:24:10 CET 2008 i686
Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)
I've updated the download module with the ZIP attachment on this forum ... but
nothing was changed.
What's the problem???
Thanks, great job.
Wiz69
Posts: 16
This is the same error I was getting earlier - and I never did get it to work.
Posts: 4342
Hi Pigwet,
please try the 0.3.3_beta version. Still hoping to hear from you about admin access to your installation to look at your discounts problem, if it's still there in 0.3.3.
Posts: 122
Upgraded to 0.3.3. beta version
When in:
Site Admin
Checkout Orders
Select an order by 'ID'
'Download PDF format invoice' option button
the following:
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /var/www/html/gallery2/modules/checkoutpdfinvoice/PDFOut.inc on line 126
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /var/www/html/gallery2/modules/checkoutpdfinvoice/PDFOut.inc on line 178
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/gallery2/modules/checkoutpdfinvoice/PDFOut.inc:126) in /var/www/html/gallery2/modules/checkoutpdfinvoice/lib/fpdf/fpdf.php on line 1022
FPDF error: Some data has already been output to browser, can't send PDF file
Paul
Posts: 4342
Hi Paul,
Thanks for that one. See if this fixes it (goes in modules/checkoutpdfinvoice/)
Posts: 23
Ok alecmyer, now download problem seems ok in versione 0.3.3 beta.
I've tested the download function from ADMIN into order detail.
But into the email (in status CONFIRMED) that customer receive, there isnt' the button
DOWNLOAD AS ZIP ....
In version 0.3.2 beta2 the button exit into the mail.
Another question. Why order number seems to be random?????
Thanks
Wiz
Posts: 23
Other info on 0.3.3 beta checkout download.
Also if I check OVERRIDE PERMISSION an APPEND DATE (with a specific BASE FILENAME),
1) the file name that download (from the order DETAIL of user ADMIN) is always
G2cart.zip (perhaps there is something to set in PLUG-IN ZIP DOWLOAD???)
2) the photo into the file are WATERMARKED and not the original. How can donwload
the original photo and not the watermarked version that I show to the
customer in my site?
Thanks in adv
Wiz
Posts: 122
Yep that's sorted it
Paul
Posts: 4342
The settings in the checkoutdownload admin page should be obeyed reliably in this version - please try it.
Re: order numbers - they are the id assigned by Gallery to the checkoutTransaction Entity. The same numbering sequence is shared by all Gallery entities, including checkoutItems (line items in each order), photos, derivatives, thumbnails etc, so it can jump, especially if you upload some photographs. But it's definitely not random.
[EDIT: updated attachment to restore email button function]
Posts: 23
which problem resolve the attachment?
Posts: 4342
Sorry, I'm having terrible finger trouble with the forum this morning, as anyone who's subscribed to this thread will have noticed.
The latest update to the checkoutdownload module is the one called checkoutdownload_updated.zip, above.
Posts: 23
In this update there are two problem:
1) Now the DONWNLOAD AD ZIP button in mail show ... but, clicked, return the error page:
Security Violation
The action you attempted is not permitted.
Using ORDER STATUS, and then the button DOWNLOAD AS ZIP on the web page ... all is ok.
2) Price are rounded to the minor value integer (es. photo price 1,50 x qta 1 = 1,00)
Wiz
Posts: 4342
Hi Wiz,
1) can you post (or send me via pm) the html for the button in the email (that doesn't work), and also the html for the same button in the order status page (that does work). If you are logged in as an administrator, you should see a more detailed error message - please post it.
2) Please try the price with a decimal point rather than a decimal comma (1.50) and tell me if that works.
Thanks
Posts: 23
Here the error page
Security Violation
The action you attempted is not permitted.
Back to the Gallery
Error Detail -
Error (ERROR_BAD_PARAMETER) : /web/htdocs/.../home/foto/modules/checkoutDownload/module.inc
in modules/core/classes/helpers/GalleryPluginHelper_simple.class at line 94 (gallerycoreapi::error)
in modules/core/classes/helpers/GalleryPluginHelper_simple.class at line 88 (gallerypluginhelper_simple::loadplugin)
in modules/core/classes/GalleryCoreApi.class at line 209 (gallerypluginhelper_simple::loadplugin)
in modules/core/classes/GalleryView.class at line 153 (gallerycoreapi::loadplugin)
in main.php at line 318 (galleryview::loadview)
in main.php at line 94
in main.php at line 83
System Information
Gallery version 2.2.2
PHP version 4.4.7 cgi
Webserver Apache/2.0
Database mysqlt 5.0.54-log
Toolkits ImageMagick, NetPBM
Operating system Linux webx29.ad.aruba.it 2.6.18-53.1.4.el5PAE #1 SMP Wed Feb 13 15:24:10 CET 2008 i686
Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)
Posts: 4342
Hi Wiz,
Please try this new modules/checkoutdownload/templates/email/download.tpl file
Posts: 4342
You have two choices:
1) Add an extra field to the checkout/templates/SelectPhotos.tpl (copy the discount-code idea) and parse it in confirm.inc - throw an error (similar to the one if the postage is required and not set) which is displayed in SelectPhotos.tpl. That means the pin has to be entered before the final page checkout.
2) If the pin-code *has* to be entered on the final checkout page, you will have to do the work within each payment plugin: so, for instance, add an extra field to checkoutemail/templates/Details.tpl and parse the contents in Email.inc. To get checkoutpaypal to do the same thing, you will need to add a new field to checkoutpaypal/templates/PaymentButton.tpl to input the code, change the "action" for that form to a new (Gallery) Controller that will test the PIN then redirect to the original form's destination (i.e. Paypal) - although I'm not sure what will happen to the form contents (the order contents) in that case - you might need to insert a new Gallery View that repeats the form contents with a button/message that says something like "Your PIN is accepted - click here to complete your payment at Paypal".
Good luck!
Posts: 11
Thanks alec - that was quick! I'm not in a hurry (at least not much). I have not yet upgraded to 0.3.3 because my site is live. I guess I should find the time to figure out how to install a second instance of gallery2 for testing, but I haven't had time yet.
I have another feature request that I am not sure if it has been addressed or not. (I should have probably figured out a way to test first before I ask this, so please pardon me if I am being lazy.) My problem is that with version 0.1.18 of Checkout, the "Continue shopping" button does not always return the user to the album they were previously viewing. Sometimes it works, and sometimes it doesn't. For example, if someone empties the cart and then click "Continue shopping" they are redirected to the root album. Also if the user clicks "Continue to checkout" and from there they click "Continue shopping" they are redirected to the root album. This is a problem for me because I want to keep the root album hidden. I have searched through all the forums, but I can't seem to find an answer that fixes the issue in the cases I mentioned. I am also reluctant to spend much time "fixing" version 0.1.8 since I plan to upgrade once your new version is stable.
Thanks again for all your great work!
Posts: 4342
I will loook into this for 0.3.3/4, but I can't guarantee anything. When you say it redirects to the root album, it should, I think, redirect to /main.php - I guess you could use .htaccess to rewrite this to your album of choice.
Posts: 11
Thanks Alec,
Yes, that is exactly what it does. However there are also the cases when "Continue shopping" redirects to the last album the user was viewing. For example if the user adds a photo to the cart or clicks "View cart" from the sidebar, and then clicks "Continue shopping", they are taken back to the photo or album page they were previously viewing. This is the functionality I am looking for. For some reason (which is currently beyond me) the 'returnUrl' value seems to get wiped out once the user empties the cart or proceeds to step 2.
I also noticed that the breadcrumb leads back to root album only. Is there a way to make the breadcrumb show up the same way it would for the last album or photo the user was viewing?
Posts: 4342
I think the return url disappears because it's not explicitly carried through every single link and form - will investigate.
Breadcrumbs: not supplied by Checkout at all, they're under the control of the theme, I think, so there's not much I can do about them.
[EDIT] I've made a couple of quick mods which means that the continue shopping from stage 2 (confirm) now returns you to the same item page, rather than the root album. Once you've gone to a payment plugin, that information is no longer available, though. The returnURL is carried around in the status variable, which is fragile (for instance if you refresh the page with f5 it gets wiped, which is not ideal). Better might be to put in the session data, but I'll have to think through the consequences of that.
Posts: 11
Yes, you are right. I'll try customizing the breadcrumbs in my theme then.
Thanks for all your help, and for looking into the returnUrl thing!
Posts: 23
Alec,
OK for "." over "," ....
but DOWNLOAD AS ZIP from email doesn't work.
I'll make a new test and update this post.
Yes ..... occurs a strange thing ... the button open WINZIP blank!!!
with the name of photo file + [1] ... but empty, without starting download.
And, in the confirmation mail, also creating folder local and CustomerDetails.tpl
file in my language, the label customer detail continue to show in english.
It's pherhaps linked to the CONFIRM.TPL that contain
these phisical path of the other template file?
{if $showCustomer}
{include file='modules/checkout/templates/email/CustomerDetails.tpl'}
{/if}
{if $showContents}
{include file='modules/checkout/templates/email/TransactionContents.tpl'}
{/if}
Wiz
Posts: 4342
Yes, the include statement should probably be more like
{include file="gallery:modules/checkout/templates/email/TransactionContents.tpl" l10Domain="modules_checkout"}You've brought to my attention another issue, with the ',' vs. '.' - if the decimal separator in your locale isn't '.' then you currently get inconsistences - sometimes one, sometimes the other.
This is because sometimes amounts are formated with |string_format:"%.2f" in the template, and sometimes not.
I think the best solution is to include an admin setting for numeric formatting string, and to use this in all checkout templates, like the date/time formats on the general admin page. I'll put that in tomorrow, and upload a new set of files.
Regarding the download... sounds like a php error somewhere... will get back to you with some debug info requests tomorrow.
Posts: 11
I worked on the breadcrumb issue and came up with the following:
The breadcrumb links are handled by modules/core/templates/blocks/BreadCrumb.tpl and not by the theme directly. By modifying this file I was able to remove the breadcrumb altogether from any 'module' type page that does not have any parents. While this isn't ideal, it does remove the confusion for the user and allows me to have a setup where the root album can remain hidden. In case anyone is interested, here is what I changed:
BEFORE
{if ($theme.pageType == 'admin' || $theme.pageType == 'module')} <a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$theme.item.id`"}" class="BreadCrumb-{counter name="BreadCrumb"}"> {$theme.item.title|markup:strip|default:$theme.item.pathComponent}</a> {else}AFTER
{if ($theme.pageType == 'admin')} <a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$theme.item.id`"}" class="BreadCrumb-{counter name="BreadCrumb"}"> {$theme.item.title|markup:strip|default:$theme.item.pathComponent}</a> {elseif ($theme.pageType == 'module')} {if $theme.item.parentId > 0} <a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$theme.item.id`"}" class="BreadCrumb-{counter name="BreadCrumb"}"> {$theme.item.title|markup:strip|default:$theme.item.pathComponent}</a> {else} {* don't display a link to the root album *} {/if} {else}What might be more ideal is if there is a way to know that the module type is "checkout" and only hide the breadcrumb then. Do you know if there is a way to do that?
This exercise got me thinking about the returnURL issue too. Maybe I am thinking way too far outside the box here, but I am wondering if it is possible to assign a "parent" to the checkout view. If this is possible, it might be able to be used to solve both the breadcrumb problem and the returnUrl problem. I just don't have enough of an understanding of the G2 structure to know how or where to look for this.
Posts: 23
Letter as "à", "è" etc .... using in text are presented in this manner
Source code (TPL, INC, etc.)
text="Quantità"
---> on the web .... Quantit?
And I'm using .... text="Quantita'"
Wiz
Posts: 23
Download BUTTON on email.
Confirmed: clicking the DWONLOAD button, don't start any DOWNLOAD bu open directly WINZIP.
Here the HTML code present in email:
Download autorizzato. Ora puoi prelevare il file da qui:
<br/>
<form action="http://www..../foto/main.php?g2_view=checkoutdownload.Download&g2_transactionId=530&g2_verify1=1209455387&g2_verify2=3004854854816d31bd85cc1%2C77718480&g2_navId=xd9d31a5a" method="post">
<button type="submit">Download file Zip</button>
</form>
<br/>
<br/>
Posts: 4342
Hi Wiz,
It works from the admin/web page, but not from the email, is that right? For the same download?
Posts: 23
Yes works perfectly from web page, also opened form STATUS ORDER
BUTTON, by a registered user.
Also in EMAIL doesn't work the button.
Wiz
Posts: 4342
Hi Wiz,
I've compiled in the Italian PO locally, and I get the correct accented figures, eg: "Prodotto/Prezzo/Quantità", "Checkout::Il tuo ordine è stato confermato.", "Modalità di spedizione e costi." etc., including in emails. So I'm not sure why you don't, there's nothing special in this module that should affect Gallery's regular localisation procedures. Let's see what happens when I've uploaded a version with the localisations included.
If you're editing the template files and putting the Italian in directly, make sure you use UTF-8 encoding (Gallery requires UTF-8), or you will get wrong characters displaying.
By the way, I've now got Italian and German - anyone else want to volunteer?
Regarding the downloads: can you pm me the complete html for the email that doesn't work, and the webpage that does - please leave the full url there, so I can try downloading for myself. Thanks
Posts: 23
Ok it's clear. I send you the complete web and email html of a new order.
For UTF-8 can make an example?
If in TPL there is someting like ...="Quantità" ... how can I encode
the "à" in UTF-8???
thanks and excuse me for this question ... but I want resolve tihis character
problem.
Posts: 4342
For UTF-8 you need to use an editor that lets you select your file-encoding - set the file to be stored as UTF-8. I use Crimson Editor (on windows) http://www.crimsoneditor.com/ which is free.
Posts: 2
Just installed your betaa couple days ago, so far no unknown breaks.
One question though: The German translation does not work. Any way to fix this (seems a known issue, but that does not really help).
I would be happy to help with translations into German if required.
Posts: 4342
The german translation's not included yet. I've been sent one, but I haven't compiled it in - next upload should have it though.
Posts: 16
Alec,
Just installed 0.3.3_beta from the front page (watermarked images were downloaded instead of full resolution) and then the checkoutdownload_updated.zip from above and everything appears to work great.
All shopping cart discount errors are fixed! Excellent.
Daniel
Posts: 23
Excuse me Alec ... from afternoon I want to send HTML email!!!
But from this moorning my site online doesn't send no more CONFIRMATION
or COMPLETED MAIL for order.
What's the problem from you experience?
This moorning I've modified some TPL in local folder (now renamed to test)
why the site doesn't send any mail to customer.
Also entering with ADMINISTRATOR and clicking re-confirm order (befor this
moorning the mail was received) .... the test-customer doesn't receive
any mail!!!
----------- >>> UPDATE .... PROVIDER PROBLEM!!!! INCREDIBLE.
ALEC now send you HTML EMAIL e WEB in PM for DOWNLOAD BUTTON
Posts: 4342
I've just uploaded (am uplaoding) the latest modifications to the top of the thread - 0.3.3_beta2.
It has Italian translations (thanks to wiz69) and German, but for checkoutdownload only - if someone would like to step in with the other four modules in German that would be dandy. Also Spanish, French, Dutch, anyone? Japanese? Arabic? Hebrew? If you do translate please make sure to save in UTF-8 format and *fill in all the header fields*. If anyone has willing but wants help with the practicalities, pm me.
Unfortunately I don't have time to verify that all strings are correctly translated - if someone sends me a translation... that's what goes in the module. If anyone spots any errors or missing strings then don't tell me - just correct the PO file and pm it to me with your corrections.
There are significant difference in the way checkout handles the "continue shopping" destination - this should now return you to the image/page you were viewing when you entered checkout. (Please test and report.)
Also new is numeric format field for currency strings: yes, now you can bill people in scientific notation, or in hexadecimal. W00t.
(I forgot to add - I read that there are caching issues with the server and translations - such that adding new language files can take some hours to take effect. If you don't see the Italian appear straight away, that might be why. One workaround is to stop/start apache, if you are in a position to do so on your server.)
Posts: 4342
Hi Wiz,
The email link works fine from my PC - it downloads a zip file with one picture in (cute baby by the way)
Can you try your email link from a different pc (or copy and paste it into different browsers) and see what happens? (if you do copy-and-paste you have to edit all the & entities back to & as in .../main.php?g2_view=checkoutdownload.Download&g2_transactionId=535&....)