Terms on vendor page

  • Posts: 158
  • Thank you received: 8
6 years 5 months ago #293478

Hello Jerome,

I guess the display of the vendor page is related to hikashop...
But I post this here first as I would like to have your point of view first.

I believe in most countries around the world it is compulsory for Vendors to display their Sale terms and condition and also return policy.
In a marketplace the best way to display these would be on the vendor page with the help of a button to open a Popup for example.

This button could be displayed under the vendor's contact details and next to the contact button.

Is this already integrated, then how to do it.
If not please help me do it in order to be compliant.

Can you answer here, do I have to post elsewhere (which forum category)?

Thank you

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
6 years 5 months ago #293479

Hello,

The vendor page is a view in HikaMarket ; so it is right related to the add-on and not to HikaShop itself (by default you do not have vendor pages in HikaShop).

You can customized the HikaMarket vendor page like you can customize any view.
To display the vendor terms into a popup ; you can use some code that you'll find in the view "checkoutmarket / terms".
The idea is to create a popup link (or button) and give a specific link which will display the vendor terms automatically.

hikamarket::completeLink('vendor&task=terms&cid=' . $vendor_id, true)
You can also add some custom code to display or not the link if the vendor do not have any "vendor_terms" configured.

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: 158
  • Thank you received: 8
6 years 5 months ago #293653

Hello,

I do not know php and I still don't get the basics...

I tried some lines, I duplicated the contact button without problem.
I have two buttons next to each other and that is the way I would like to display the buttons. So far so good.
Once I tried to modify the button text and link it became a nightmare, every time syntax error, unexpected this, unexpected that....
I did try but I am not able to do it. Can you please post the correct way to do it?

Last edit: 6 years 5 months ago by pprle.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
6 years 5 months ago #293668

Hello,

If you have duplicated the vendor contact button, there is just two things that you need to change :
1 - The content between the parentheses of hikamarket::completeLink. (cf my previous message).
2 - The content between the single quotes for the translation ( CONTACT_VENDOR => HIKASHOP_CHECKOUT_TERMS )

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: 42
  • Thank you received: 0
  • Hikashop Business
4 years 7 months ago #317876

Hello Jerome,
This code will not render the vendor-id in the link. Do I now need a different string?

With kind regards,
Rachel Walraven

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
4 years 7 months ago #317883

Hello,

The code is a generic code and require to retrieve the value for the vendor_id variable.
Depending the view where you want to put that code, the way to retrieve that information is different.

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: 42
  • Thank you received: 0
  • Hikashop Business
4 years 6 months ago #317942

I want to create a pop-up to the vendors terms on the vendor page. I put the code you gave in the view showcontainer_default

With kind regards,
Rachel Walraven

Last edit: 4 years 6 months ago by webwerk.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
4 years 6 months ago #317979

Hello,

Then you can access to the vendor_id via :

$this->vendor->vendor_id

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: 42
  • Thank you received: 0
  • Hikashop Business
4 years 6 months ago #318003

Thank you!
Works like a charm!

With kind regards,
Rachel Walraven

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

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