[Skip to main content](#vessel-content)

#   Vendor's contact information in Checkout Finish step.

##

- **[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")**
- [![alikon1's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar17244.jpg)](/forum/user/17244-alikon1 "View alikon1's Profile") Topic Author
- [ Offline](/forum/user/17244-alikon1)

Less More

- Posts: 178
- Thank you received: 5
-
-
-
-

9 years 11 months ago [\#257938](#257938) by [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")  *[Vendor's contact information in Checkout Finish step.](/forum/19-hikamarket/887987-vendors-contact-information-in-checkout-finish-step#257938 "-- HikaShop version -- : Demo site -- HikaMarket version -- : Demo site -- Joomla version -- : Demo site  How to display for example vendor's phone number/address information in finish checkout page, where order was made.  I will have 30+ vendors and customer should know phone number of vendor, where he ordered.")* was created by *[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")*

-- HikaShop version -- : Demo site
-- HikaMarket version -- : Demo site
-- Joomla version -- : Demo site

[ ![finish.jpg](/forum/attachment/35266) ](/forum/attachment/35266 "finish.jpg")

How to display for example vendor's phone number/address information in finish checkout page, where order was made.

I will have 30+ vendors and customer should know phone number of vendor, where he ordered.

- [ ![finish.jpg](/forum/attachment/35266) ](/forum/attachment/35266 "finish.jpg") [ ](/forum/attachment/35266?download=1 "finish.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODg3OTg3LXZlbmRvcnMtY29udGFjdC1pbmZvcm1hdGlvbi1pbi1jaGVja291dC1maW5pc2gtc3RlcD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

9 years 11 months ago [\#257960](#257960) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Vendor's contact information in Checkout Finish step.](/forum/19-hikamarket/887987-vendors-contact-information-in-checkout-finish-step#257960 "-- HikaShop version -- : Demo site -- HikaMarket version -- : Demo site -- Joomla version -- : Demo site  How to display for example vendor's phone number/address information in finish checkout page, where order was made.  I will have 30+ vendors and customer should know phone number of vendor, where he ordered.")*

Hi,

Like for the addition of "commerce trackers", the customization of that view can be made by changing the "checkout / after_end" or by creating an override for the "end" of the specific payment method (depending which payment you're using).

Now, in that view you will have access to the order ID ; so you can add a little query in order to load the "sub order" and then display the details of the vendor(s).
It requires a small PHP code to put in the view but that is not something really big.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODg3OTg3LXZlbmRvcnMtY29udGFjdC1pbmZvcm1hdGlvbi1pbi1jaGVja291dC1maW5pc2gtc3RlcD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")**
- [![alikon1's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar17244.jpg)](/forum/user/17244-alikon1 "View alikon1's Profile") Topic Author
- [ Offline](/forum/user/17244-alikon1)

Less More

- Posts: 178
- Thank you received: 5
-
-
-
-

9 years 11 months ago [\#258246](#258246) by [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")  Replied by *[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")* on topic *[Vendor's contact information in Checkout Finish step.](/forum/19-hikamarket/887987-vendors-contact-information-in-checkout-finish-step#258246 "-- HikaShop version -- : Demo site -- HikaMarket version -- : Demo site -- Joomla version -- : Demo site  How to display for example vendor's phone number/address information in finish checkout page, where order was made.  I will have 30+ vendors and customer should know phone number of vendor, where he ordered.")*

Try to cnange checkout / after_end.php and checkout / end.php. Add echo to that files. On last step I see checkout / end.php. How can I get order number? I saw $this in checkout / end.php, but print_r didn't show order number. My PHP is very bad) Which variable contents order number?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODg3OTg3LXZlbmRvcnMtY29udGFjdC1pbmZvcm1hdGlvbi1pbi1jaGVja291dC1maW5pc2gtc3RlcD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

9 years 11 months ago [\#258250](#258250) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Vendor's contact information in Checkout Finish step.](/forum/19-hikamarket/887987-vendors-contact-information-in-checkout-finish-step#258250 "-- HikaShop version -- : Demo site -- HikaMarket version -- : Demo site -- Joomla version -- : Demo site  How to display for example vendor's phone number/address information in finish checkout page, where order was made.  I will have 30+ vendors and customer should know phone number of vendor, where he ordered.")*

Hi,

In the view "checkout / end" (or "after_end) you will have access to Code:

$this-&gt;order

which is the object of the HikaShop (full) order.
In that object you can already access to a lot of details (but not the vendors) Code:

$this-&gt;order-&gt;order_id

Afterwards, thanks to that order_id, you can load the vendors. Code:

$db = JFactory::getDBO(); $query = 'SELECT hmv.* '. ' FROM ' . hikashop_table('order'). ' AS hko '. ' INNER JOIN ' .'#__hikamarket_vendor'. ' AS hmv ON hmv.vendor_id = hko.order_vendor_id '. ' WHERE hko.order_type = \'subsale\' AND hko.order_parent_id = '. (int)$this-&gt;order-&gt;order_id . ' ORDER BY hko.order_id DESC'; $db-&gt;setQuery($query); $vendors = $db-&gt;loadObjectList('vendor_id');

Regards,

---

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

The following user(s) said Thank You: [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODg3OTg3LXZlbmRvcnMtY29udGFjdC1pbmZvcm1hdGlvbi1pbi1jaGVja291dC1maW5pc2gtc3RlcD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")**
- [![alikon1's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar17244.jpg)](/forum/user/17244-alikon1 "View alikon1's Profile") Topic Author
- [ Offline](/forum/user/17244-alikon1)

Less More

- Posts: 178
- Thank you received: 5
-
-
-
-

9 years 10 months ago [\#258271](#258271) by [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")  Replied by *[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")* on topic *[Vendor's contact information in Checkout Finish step.](/forum/19-hikamarket/887987-vendors-contact-information-in-checkout-finish-step#258271 "-- HikaShop version -- : Demo site -- HikaMarket version -- : Demo site -- Joomla version -- : Demo site  How to display for example vendor's phone number/address information in finish checkout page, where order was made.  I will have 30+ vendors and customer should know phone number of vendor, where he ordered.")*

Tried, but *$this-&gt;order* or *$this-&gt;order-&gt;order\_id* don't display anything.
I'm using "HikaShop collect on delivery payment plugin" and "HikaShop manual shipping plugin".

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODg3OTg3LXZlbmRvcnMtY29udGFjdC1pbmZvcm1hdGlvbi1pbi1jaGVja291dC1maW5pc2gtc3RlcD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")**
- [![alikon1's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar17244.jpg)](/forum/user/17244-alikon1 "View alikon1's Profile") Topic Author
- [ Offline](/forum/user/17244-alikon1)

Less More

- Posts: 178
- Thank you received: 5
-
-
-
-

9 years 10 months ago [\#258274](#258274) by [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")  Replied by *[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")* on topic *[Vendor's contact information in Checkout Finish step.](/forum/19-hikamarket/887987-vendors-contact-information-in-checkout-finish-step#258274 "-- HikaShop version -- : Demo site -- HikaMarket version -- : Demo site -- Joomla version -- : Demo site  How to display for example vendor's phone number/address information in finish checkout page, where order was made.  I will have 30+ vendors and customer should know phone number of vendor, where he ordered.")*

Order id shows only in $this-&gt;html as html formatted text.

Part of the message is hidden for the guests. Please log in or register to see it.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODg3OTg3LXZlbmRvcnMtY29udGFjdC1pbmZvcm1hdGlvbi1pbi1jaGVja291dC1maW5pc2gtc3RlcD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")**
- [![alikon1's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar17244.jpg)](/forum/user/17244-alikon1 "View alikon1's Profile") Topic Author
- [ Offline](/forum/user/17244-alikon1)

Less More

- Posts: 178
- Thank you received: 5
-
-
-
-

9 years 10 months ago -  9 years 10 months ago [\#258275](#258275) by [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")  Replied by *[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")* on topic *[Vendor's contact information in Checkout Finish step.](/forum/19-hikamarket/887987-vendors-contact-information-in-checkout-finish-step#258275 "-- HikaShop version -- : Demo site -- HikaMarket version -- : Demo site -- Joomla version -- : Demo site  How to display for example vendor's phone number/address information in finish checkout page, where order was made.  I will have 30+ vendors and customer should know phone number of vendor, where he ordered.")*

Disable in configuration "Advanced checkout workflow edition".
My Checkout workflow looks like: cart_status_shipping_payment_fields_confirm,end.
All customers are guests without registration.

Last edit: 9 years 10 months ago by [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODg3OTg3LXZlbmRvcnMtY29udGFjdC1pbmZvcm1hdGlvbi1pbi1jaGVja291dC1maW5pc2gtc3RlcD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

9 years 10 months ago [\#258272](#258272) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Vendor's contact information in Checkout Finish step.](/forum/19-hikamarket/887987-vendors-contact-information-in-checkout-finish-step#258272 "-- HikaShop version -- : Demo site -- HikaMarket version -- : Demo site -- Joomla version -- : Demo site  How to display for example vendor's phone number/address information in finish checkout page, where order was made.  I will have 30+ vendors and customer should know phone number of vendor, where he ordered.")*

Hi,

Okay, so you need to override the collect on delivery "end" view.
In that view there is no access to the order object ; but if you perform a little modification in the plugin (that I will add in HikaShop 3 too), you will gain that access.

In the plugin you need to replace : Code:

$this-&gt;order_number = $order-&gt;order_number; $this-&gt;showPage('end');

By Code:

$this-&gt;order_number = $order-&gt;order_number; $this-&gt;order = $order; $this-&gt;showPage('end');

And then, for the override of the view "collectondelivery_end.php", you have copy the plugin file into :
/templates/YOUR_TEMPLATE/hikashoppayment/collectondelivery_end.php

Regards,

---

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

The following user(s) said Thank You: [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODg3OTg3LXZlbmRvcnMtY29udGFjdC1pbmZvcm1hdGlvbi1pbi1jaGVja291dC1maW5pc2gtc3RlcD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.070 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
