Importing voucher codes on Magento
Success team avatar
Written by Success team
Updated over a week ago

If you are on Magento 1.7 + our extension handles importing voucher codes automatically, all you will need to do is provide us with REST API access.

If you're not seeing the option to import vouchers automatically, this means that we can't reach your store API.

The most common causes for this are:

  1. Store is not available over the internet

If you're working on a development store and visiting it with a URL that looks like one of these:

Then there's a good chance your store is not reachable over the internet. You won't be able to import vouchers until you install LoyaltyLion on a store which is internet-accessible.

  2. The store has extra authentication turned on

If your store is password protected, we also won't be able to import voucher codes.

3. .htaccess rewrites disabling API

The third common reason we can't reach your API is because you have a .htaccess configuration that is rewriting requests to your API to the wrong place.

These are the first few lines of a working configuration:

RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # IMPORTANT: the following RewriteRule MUST come after the previous line # but before any other RewriteRules. RewriteRule ^api/rest api.php?type=rest [QSA,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]

Still having trouble? Not sure what any of this means?

Talk to us! Send us an email at support@loyaltylion.com and we'll be happy to help.

Common questions

Q. I have set up minimum spend in LL but the customer are still able to use the vouchers at the checkout that doesn't meet this requirement
 LL setting is only valid for vouchers created in LL - the voucher imported from Magento won't take into account the minimum spend set up for this reward. We strongly advise to set up the same minimum spend for vouchers created in Magento as the same min spend in LL.

Q. How do I locate LoyaltyLion voucher codes in Magento?
Magento 1
All LoyaltyLion codes will be in Magento. To locate these go to Shopping Cart Price Rules > LoyaltyLion price rule > Manage Coupon Codes.

Magento 2
Due to a limitation on the Magento 2 UI you are currently unable to view LoyaltyLion voucher codes within Magento.

Q. How do I import voucher codes from LL into my Magento store?

If you are on Magento 1.7 + our extension handles this automatically, all you will need to do is provide us with REST API access.

Did this answer your question?