A more fundamental problem, which we now multiply when using Magestores Giftvoucher-Extension (M1) noticed:
The presentation of the voucher side is adaptable intensively. If you install the extension, fall at multi-tasking, that are not so easy to fix:
- Is always first (very short but well-perceptible) the default template loaded Amazon, displayed and then replaced by their own voucher.
- Plunges between coupon value and the Euro sign “nbsp” on, which should not be there.
- The date MM / DD / YYYY used
- Are there umlauts (e.g.. “Date of Expiry”) a problem.
- Becomes “GIFT-XXX-XXX” displayed as code placeholder
- and a few other things, the nerves.
To resolve these problems is mainly adapt a file. The preview.phtml folder /annawand.de/test/app/design/frontend/base/default/template/giftvoucher/product/template
move this file, we in the first step in our custom template before we adjust them once.
It now goes mainly to adjustments in the short view of the coupon on page load. The voucher itself can usually be configured from the backend.
I check in once in preview.phtml from top to bottom:
- To change the date format for the validity: In line 27 the range date(‘m/d/Y’, in date(‘d.m.Y’, change.
Should one not like the color of the text in the preview, the rows 57 and 58
$_styleColor = '# DC8C71'; $_textColor = '#949392';
adapt
In the preview pop-up is statically “Preview”. If you want to have the translatable, you do in row 74 from
<h4 class="a-popover-header-content" id="a-popover-header-1">Preview </h4>
dies
<h4 class="a-popover-header-content" id="a-popover-header-1"><?php echo $this->__('Preview');?></h4>- One of the most annoying “ ” hiding in row 110. This can remove or adjust.
- Depending on the design you have to line 128 customize and there deposit the voucher design. In the standard, this is “templateId : ‘amazon-giftcard-01’,”
In line 129 then you can still out
notes: '<?php echo $notes ?>',
dies machen
notes: '<?php echo nl2br($notes); echo '' ?>',
Now you have to define the image of the voucher, which you want to have. Contributing to the URL in row 131 one at
giftImageUrl: '<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) .'/giftvoucher/template/images/simple-gift-card/default.png' ?>',
could then e.g.. like this
giftImageUrl: '<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) .'/giftvoucher/template/images/amazon-giftcard-01/meingutscheinbild.jpg ' ?>',
Depending on the design you have to look
- In lines then you look just what you still want to change. So you can store a desired standard value (Line 135), define the placeholder for the Coupon Code (Line 136) etc..
Last, you can still (if a problem is with “ ” the value of this has yet e.g. in line 161 ago “var html = tmpl(data);” insert:
//replace special character if(data && data['Poison value']) { data['Poison value'] = data['Poison value'].replace(" ", " "); } console.log(data);

Now most of you have already solved. but some changes in the CSS are probably still needed.
