Issues setting up affiliate program

  • Posts: 146
  • Thank you received: 2
9 years 2 months ago #213756

-- url of the page with the problem -- : www.modelmisconduct.com/contacts/partner-program
-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.1

I setup the affiliate program, but I am having 3 issues that I cannot figure out:

1) The banners do not disappear from the page, after the user logs out

2) When I click "apply" after making changes to partner email, I get a 404 to this URL
www.modelmisconduct.com/contacts/partner-program/affiliate

3) same 404 issue when I hit "back"

Any ideas?

Please Log in or Create an account to join the conversation.

  • Posts: 82823
  • Thank you received: 13370
  • MODERATOR
9 years 2 months ago #213762

Hi,

1. That's the way we display the affiliate program page when you're not logged in. So that's normal.
If you don't want that, you'll have to edit the file "show" of the view "affiliate" via the menu Display>views and change the code

}
	if(!empty($this->affiliate_terms)){?>
		<span class="hikashop_affiliate_terms" id="hikashop_affiliate_terms">
			<a href="<?php echo JRoute::_('index.php?option=com_content&view=article&id='.$this->affiliate_terms); ?>"><?php echo JText::_('READ_AFFILIATE_TERMS'); ?></a>
		</span>
		<br/><?php
	}
	if(!empty($this->banners)){
		$this->setLayout('banners');
		echo $this->loadTemplate();
	}
to:
	if(!empty($this->affiliate_terms)){?>
		<span class="hikashop_affiliate_terms" id="hikashop_affiliate_terms">
			<a href="<?php echo JRoute::_('index.php?option=com_content&view=article&id='.$this->affiliate_terms); ?>"><?php echo JText::_('READ_AFFILIATE_TERMS'); ?></a>
		</span>
		<br/><?php
	}
	if(!empty($this->banners)){
		$this->setLayout('banners');
		echo $this->loadTemplate();
	}
	}

2. and 3. Please provide an affiliate account username and password so that we can login and see the issue as we don't have it on our end.

Please Log in or Create an account to join the conversation.

  • Posts: 146
  • Thank you received: 2
9 years 2 months ago #214155

login info sent via PM.
"apply" works now (for reasons unknown to me, but "back" still leads to 404.

Please Log in or Create an account to join the conversation.

  • Posts: 26156
  • Thank you received: 4028
  • MODERATOR
9 years 2 months ago #214156

Hi,

Please do not use PM but the "contact us" form instead.
So the all HikaShop support team will be able to have the information in your support ticket.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 82823
  • Thank you received: 13370
  • MODERATOR
9 years 2 months ago #214252

Hi,

Please try to replace the file components/com_hikashop/router.php with the one in the archive below and see if that helps:

File Attachment:

File Name: router_2015-09-15.zip
File Size:3 KB

Attachments:
Last edit: 9 years 2 months ago by nicolas.

Please Log in or Create an account to join the conversation.

  • Posts: 146
  • Thank you received: 2
9 years 1 month ago #215010

Yup. That worked. Thanks.

Please Log in or Create an account to join the conversation.

  • Posts: 146
  • Thank you received: 2
9 years 1 month ago #215011

I am still having an issue with the banners.

Normally www.modelmisconduct.com/shop/store is setup to use a specific template style

However, when we append the affiliate code, it goes to a different template style

www.modelmisconduct.com/shop/store?partner_id=1

Is there a reason it is doing this?

Please Log in or Create an account to join the conversation.

  • Posts: 26156
  • Thank you received: 4028
  • MODERATOR
9 years 1 month ago #215029

Hi,

I check the code of the affiliate plugin and it does not touch anything in the parameters. It just create an internal cookie.
More than that, the "itemid" is still the same in both pages.
So I admit that the issue is weird but I don't see what could cause that kind of issue in the plugin.

Regards


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 146
  • Thank you received: 2
9 years 1 month ago #215973

Any ideas for next steps?

Please Log in or Create an account to join the conversation.

  • Posts: 82823
  • Thank you received: 13370
  • MODERATOR
9 years 1 month ago #216024

Hi,

I think that it comes from either the SEF system not decoding the URL properly and/or the template switcher system not handling the extra parameter as it should.
What you could do is use an alternative URL like that:
www.modelmisconduct.com/shop/store/cid-2/partner_id-1

That way, it circumvents the problem.

Please Log in or Create an account to join the conversation.

  • Posts: 146
  • Thank you received: 2
9 years 1 month ago #216189

Not sure I understand.

what is cid-2? Not sure I know what you think I should change.

Please Log in or Create an account to join the conversation.

  • Posts: 82823
  • Thank you received: 13370
  • MODERATOR
9 years 1 month ago #216199

cid-2 is for the category_id of the main product category.
This is for the SEF system to work properly when you set the partner_id parameter as a folder of the URL.

Basically, there is nothing to change. What I'm saying you should do is that instead of giving the URL www.modelmisconduct.com/shop/store?partner_id=1 to your partner, you should instead give him the URL www.modelmisconduct.com/shop/store/cid-2/partner_id-1

Please Log in or Create an account to join the conversation.

Time to create page: 0.077 seconds
Powered by Kunena Forum