- Posts: 158
- Thank you received: 8
Terms on vendor page
8 years 3 months ago #293478
by pprle
Terms on vendor page was created by pprle
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
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.
8 years 3 months ago #293479
by Jerome
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.
Replied by Jerome on topic Terms on vendor page
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.
You can also add some custom code to display or not the link if the vendor do not have any "vendor_terms" configured.
Regards,
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.
Code:
hikamarket::completeLink('vendor&task=terms&cid=' . $vendor_id, true)
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.
8 years 3 months ago - 8 years 3 months ago #293653
by pprle
Replied by pprle on topic Terms on vendor page
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?
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: 8 years 3 months ago by pprle.
Please Log in or Create an account to join the conversation.
8 years 3 months ago #293668
by Jerome
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.
Replied by Jerome on topic Terms on vendor page
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,
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.
6 years 5 months ago #317876
by webwerk
Replied by webwerk on topic Terms on vendor page
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
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.
6 years 5 months ago #317883
by Jerome
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.
Replied by Jerome on topic Terms on vendor page
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,
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.
6 years 5 months ago - 6 years 5 months ago #317942
by webwerk
Replied by webwerk on topic Terms on vendor page
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
With kind regards,
Rachel Walraven
Last edit: 6 years 5 months ago by webwerk.
Please Log in or Create an account to join the conversation.
6 years 5 months ago #317979
by Jerome
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.
Replied by Jerome on topic Terms on vendor page
Hello,
Then you can access to the vendor_id via :
Regards,
Then you can access to the vendor_id via :
Code:
$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.
6 years 5 months ago #318003
by webwerk
Replied by webwerk on topic Terms on vendor page
Thank you!
Works like a charm!
With kind regards,
Rachel Walraven
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.184 seconds