Skip to main content

Issues setting up affiliate program

More
11 years 1 month ago #213756 by sison2466
-- 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.

More
11 years 1 month ago #213762 by nicolas
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
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:
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(); } }

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.

More
11 years 1 month ago #214155 by sison2466
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.

More
11 years 1 month ago #214156 by Jerome
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.

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

More
11 years 1 month ago - 11 years 1 month ago #214252 by nicolas
Hi,

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

This attachment is hidden for guests.
Please log in or register to see it.
Last edit: 11 years 1 month ago by nicolas.

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

More
11 years 1 month ago #215010 by sison2466
Yup. That worked. Thanks.

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

More
11 years 1 month ago #215011 by sison2466
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.

More
11 years 1 month ago #215029 by Jerome
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.

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

More
11 years 3 weeks ago #215973 by sison2466
Any ideas for next steps?

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

More
11 years 3 weeks ago #216024 by nicolas
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.

More
11 years 3 weeks ago #216189 by sison2466
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.

More
11 years 3 weeks ago #216199 by nicolas
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.363 seconds
Powered by Kunena Forum