Skip to main content

[solved] Hikamarket Terms and Conditions keeps asking to accept

More
9 years 3 weeks ago - 8 years 9 months ago #277247 by flexsus
-- HikaShop version -- : 3.1.1
-- HikaMarket version -- : 1.7.3
-- Joomla version -- : 3.7.5
-- PHP version -- : 7.0.10
-- Browser(s) name and version -- : all
-- Error-message(debug-mod must be tuned on) -- : none

Hi Hikashop
In checkout I was using "Terms and Conditions", but it seems new to me that I can use "Hikamarket Terms and Conditions". So I removed Hikashop TOS and added only Hikamarket TOS. This gives me checkbox for Hikashop TOS and checkbox for each vendor. As I would expect. This is perfect, except that Hikamarket TOS keeps sending me error on check, that I have to accept TOS.

Is this a bug or I'm doing anything wrong?

Best regards,
Henrik

.ninja { color: black; visibility: hidden; }
In case of fire:
1. git commit
2. git push
3. exit building
Last edit: 8 years 9 months ago by flexsus. Reason: solved

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

More
9 years 3 weeks ago #277265 by Jerome
Hello,

It's a side effect of some "recent" modifications in the HikaShop 3 checkout system.
The best is to edit the HikaMarket "checkoutmarket / terms" view and add the content at the end of the view :
Code:
<input type="hidden" value="1" name="hikamarket_checkout_terms_block"/>
Then, in the HikaMarket checkout class, you can replace the content
Code:
$app->setUserState(HIKASHOP_COMPONENT.'.checkout_terms', JRequest::getInt('hikashop_checkout_terms', 0)); $app->setUserState(HIKAMARKET_COMPONENT.'.checkout_terms', JRequest::getVar('hikamarket_checkout_terms', array(), '', 'array'));
By
Code:
$is_block = JRequest::getInt('hikamarket_checkout_terms_block', 0); if($is_block) { $app->setUserState(HIKASHOP_COMPONENT.'.checkout_terms', JRequest::getInt('hikashop_checkout_terms', 0)); $app->setUserState(HIKAMARKET_COMPONENT.'.checkout_terms', JRequest::getVar('hikamarket_checkout_terms', array(), '', 'array')); }
So the information in the session will just be updated when the block is submitted and not during other calls that the checkout system is not performing.

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.
The following user(s) said Thank You: flexsus

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

More
9 years 3 weeks ago #277275 by flexsus
Hi Jerome

Thank you! Works perfect!

Regards,
Henrik

.ninja { color: black; visibility: hidden; }
In case of fire:
1. git commit
2. git push
3. exit building

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

More
9 years 2 weeks ago - 8 years 9 months ago #278002 by flexsus
Hi
By the way, how do I/we make a topic as solved?
This one is :-)
Henrik

.ninja { color: black; visibility: hidden; }
In case of fire:
1. git commit
2. git push
3. exit building
Last edit: 8 years 9 months ago by flexsus.

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

More
9 years 2 weeks ago #278012 by Jerome
Hello,

By definition, there is nothing to you.
Afterwards, some people are editing the first message to change the topic subject and add a "[solved]".

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.

Moderators: Obsidev
Time to create page: 0.185 seconds
Powered by Kunena Forum