Prestashop 1.7: How to show voucher code in order-confirmation.tpl - prestashop-1.7

somebody knows how to show, in Order Confirmation page of prestashop 1.7, the voucher code used in the order? Is there a variable or something like that?
thank you

Related

Hook in cart update on change

I have a Woocommerce One Page Checkout and I have the quantity input changed to a select box according this snippet.
Now I want that when I change my quantity with the select, the quantity in my shopping cart also updates with the selected quantity using AJAX. How can I achieve this in my functions.php?
The snippet later on that page does not what it should do. Can someone help me out?
Update:
Could this maybe part of my solution?

Add coupon code to an existing order in admin panel

I am currently working on adding a discount for an existing order which is not invoiced yet in Magento admin panel. To do that I thought it is better to use Coupon codes. What I am trying to do is adding a coupon code for an existing order to make a discount on that order.
Till now I have added the coupon code input box into Order control panel. I need to connect that field with the Coupon controller and add a new function to add coupon code for an existing order. Is this the correct thing to do to make a discount on an existing order or is there a better way to do that? Is there anyone who can guide me to accomplish that?
Cheers

How to Round up cart product quantity in magento?

I am working on magento 1.8 version.
I need to set a functionality like if a customer tried to order 10 products the system would either round up to 12 or provide an error message in cart page.
Is there any way to do this?
I think this extension will solve your problem. Check this http://www.magentocommerce.com/magento-connect/order-in-multiple-quantities-of-x.html

Magento how to display products under root category?

I want to display products under Magento "Default Category" ? Is there some kind of URL to do that.
I tried URL rewrite and got a url like "default-category.html", but it displays a 404 error page. I did the "Index Management" too. But, that didn't help either.
Any help is much appreciated.
Thanks And Regards,
Rupak Banerjee.
Update
see the url
Magento products will not show in category
The checklist for whether items are in stock follows. Some will seem stupid until the first time you spend an hour trying to figure this problem out:
The products must be Visible in Catalog.
The products must be Enabled.
Product must have a stock Quantity.
The product must be set to In Stock.
If the product is set not to track stock, it still has to have a stock Quantity and be set to In Stock.
The product must be assigned to the target Category.
If using multi-website mode (or if you imported the products through Data Flow), the products must be assigned to the target Website.
You must refresh your Cache / Indices, just to make sure.
Welcome to Magento. Hope that helps!
Please let me know if not working.

Prestashop smarty code

I want to implement an affiliate platform on my prestashop website.
The tracking code look's like this:
http://event.2parale.ro/events/salecheck?
amount=__ADD_SALE_VALUE__&campaign_unique=1f32b97d0&confirm=b51214c259e91116&description=__ADD_DESCRIPTION__&transaction_id=__ADD_TRANSACTION_ID__
The problem is that I don't seem to properly replace __ADD_SALE_VALUE__, _ADD_DESCRIPTION__ and __ADD_TRANSACTION_ID__ with the proper code for the total value of the order, the products sold and the order's id.
Please help.
Regards,
Sorin
You are using Smarty, right? If so this should do:
In PHP
<?php
$smarty->assign('sale_value', 1000);
// ...
$smarty->assign('transaction_id', 123456);
Smarty template:
amount={$sale_value}&campaign_unique=1f...&transaction_id={$transaction_id}

Resources