Jump to content

Referral shows 0 discount


Recommended Posts

PS 1.5.2 default theme.

I have configured referral program module to as shown in attachment.

 

post-692-0-38386700-1352479201_thumb.jpg

 

However when a user clicks on my referral to recommend to friends, they are shown Get a discount of 0 for you and your friends by recommending this Website.

 

It's quick and it's easy. Just fill in the first name, last name, and e-mail address(es) of your friend(s) in the fields below. When one of them makes at least 1 order , he or she will receive a 0 voucher and you will receive your own voucher worth 0.

 

---- See attached screenshot.

 

post-692-0-49542700-1352479189_thumb.jpg

 

How do I fix this?

  • Like 1
Link to comment
Share on other sites

  • 2 months later...
  • 3 months later...
  • 3 months later...

This is happening for me too when I enter a fixed value.  If I do a percentage a number shows up but it doesn't let the customer know that it is a percentage.

Get a discount of 5 for you and your friends by recommending this Website.
It's quick and it's easy. Just fill in the first name, last name, and e-mail address(es) of your friend(s) in the fields below. When one of them makes at least 1 order , he or she will receive a 5 voucher and you will receive your own voucher worth 5. 

if I put in a fixed value I get

Get a discount of 0 for you and your friends by recommending this Website.
It's quick and it's easy. Just fill in the first name, last name, and e-mail address(es) of your friend(s) in the fields below. When one of them makes at least 1 order , he or she will receive a 0 voucher and you will receive your own voucher worth 0. 

I think it has to do with  modules/referralprogram/controllers/front/program.php
But I cannot see where the problem lies.

// get discount value (ready to display)
		$discount_type = (int)(Configuration::get('REFERRAL_DISCOUNT_TYPE'));
		if ($discount_type == 1)
			$discount = Discount::display((float)(Configuration::get('REFERRAL_PERCENTAGE')), $discount_type, new Currency($this->context->currency->id));
		else
			$discount = Discount::display((float)(Configuration::get('REFERRAL_DISCOUNT_VALUE_'.(int)($this->context->currency->id))), $discount_type, new Currency($this->context->currency->id));

		$activeTab = 'sponsor';
		$error = false; 
Link to comment
Share on other sites

Or can it be this:

modules/referralproram/views/templates/front/program.tpl

<div id="idTab1">
		<p class="bold">
			<strong>{l s='Get a discount of %d for you and your friends by recommending this Website.' sprintf=$discount mod='referralprogram'}</strong>
		</p>
		{if $canSendInvitations}
			<p>
				{l s='It\'s quick and it\'s easy. Just fill in the first name, last name, and e-mail address(es) of your friend(s) in the fields below.' mod='referralprogram'}
				{if $orderQuantity > 1}
					{l s='When one of them makes at least %d orders' sprintf=$orderQuantity mod='referralprogram'}
				{else}
					{l s='When one of them makes at least %d order' sprintf=$orderQuantity mod='referralprogram'}
				{/if},
				{l s='he or she will receive a %1$d voucher and you will receive your own voucher worth %2$d.' sprintf=[$discount,$discount] mod='referralprogram'}
			</p>
Link to comment
Share on other sites

  • 2 months later...
×
×
  • Create New...