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

#   Same invoice on front-end as on backend

##

- **[comyoo](/forum/user/1145-comyoo "View comyoo's Profile")**
- [![comyoo's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1145.png)](/forum/user/1145-comyoo "View comyoo's Profile") Topic Author
- [ Offline](/forum/user/1145-comyoo)

Less More

- Posts: 97
- Thank you received: 0
-
-

13 years 4 months ago [\#112706](#112706) by [comyoo](/forum/user/1145-comyoo "View comyoo's Profile")  *[Same invoice on front-end as on backend](/forum/23-market-how-to/84774-same-invoice-on-front-end-as-on-backend#112706 "Hi,  We bought Hikamarket to let one of our volunteers do the order processing and shipping.  We want him to print our invoice of our hikashop as we do from the backend / administrator in frontend.  How can we set hikamarket to show the hikashop administrator invoice on front-end?  I tried to copy and past the invoice code from backend hikashop to backend invoice file of hikamarket, but I got an error because shipping adress template does not exist.  But We want someone to handle our orders in frontend, without being a new vendor.")* was created by *[comyoo](/forum/user/1145-comyoo "View comyoo's Profile")*

Hi,

We bought Hikamarket to let one of our volunteers do the order processing and shipping.

We want him to print our invoice of our hikashop as we do from the backend / administrator in frontend.

How can we set hikamarket to show the hikashop administrator invoice on front-end?

I tried to copy and past the invoice code from backend hikashop to backend invoice file of hikamarket, but I got an error because shipping adress template does not exist.

But We want someone to handle our orders in frontend, without being a new vendor.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODQ3NzQtc2FtZS1pbnZvaWNlLW9uLWZyb250LWVuZC1hcy1vbi1iYWNrZW5kP3RtcGw9bWFya2Rvd24=) 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)
-

13 years 4 months ago [\#112711](#112711) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Same invoice on front-end as on backend](/forum/23-market-how-to/84774-same-invoice-on-front-end-as-on-backend#112711 "Hi,  We bought Hikamarket to let one of our volunteers do the order processing and shipping.  We want him to print our invoice of our hikashop as we do from the backend / administrator in frontend.  How can we set hikamarket to show the hikashop administrator invoice on front-end?  I tried to copy and past the invoice code from backend hikashop to backend invoice file of hikamarket, but I got an error because shipping adress template does not exist.  But We want someone to handle our orders in frontend, without being a new vendor.")*

Hi,

By default HikaMarket let users (who have the right) to access to the order and display/print the invoices.
You can see in the demo website (using the "demo / demo" credentials) that you have two buttons to display the invoice and the shipping invoice:
[ demo.hikashop.com/index.php?option=com\_h...1&amp;Itemid=844&amp;lang=en](http://demo.hikashop.com/index.php?option=com_hikamarket&ctrl=order&task=show&cid=1&Itemid=844&lang=en)

The invoice in front-end of HikaMarket and in the backend of HikaShop is a little bit different.
If you use the same content than in the backend, it won't work because as you said, the view "address template" does not exists.
That's why HikaMarket load this view directly from HikaShop: Code:

&lt;?php $params = null; $js = null; $html = hikamarket::getLayout('shop.address', 'address_template', $params, $js); foreach($this-&gt;element-&gt;fields as $field) { $fieldname = $field-&gt;field_namekey; $html = str_replace('{'.$fieldname.'}', $this-&gt;fieldsClass-&gt;show($field, $this-&gt;element-&gt;billing_address-&gt;$fieldname), $html); } echo str_replace("\n","&lt;br/&gt;\n",trim(str_replace("\n\n","\n",preg_replace('#{(?:(?!}).)*}#i','',$html)),"\n")); ?&gt;

In the same way, the variable "$this-&gt;config" is the HikaMarket configuration object and the variable "$this-&gt;shopConfig" is the HikaShop config.

About your user, you just have to let him the access right to only access to the order, without editing rights (or maybe the order status).
He would be able to list, to show and to display the invoices.
The default invoice in HikaMarket is the same than in HikaShop backend. Because there are different components and there are running in a different context (front-end / back-end) the view can't be the exact same. But we tried to have something very similar.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODQ3NzQtc2FtZS1pbnZvaWNlLW9uLWZyb250LWVuZC1hcy1vbi1iYWNrZW5kP3RtcGw9bWFya2Rvd24=) 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.047 seconds

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