Show extra data on consume page after scanning QR

  • Posts: 359
  • Thank you received: 24
  • Hikaserial Standard Hikashop Business
3 years 11 months ago #326993

-- HikaShop version -- : 4.4.0
-- Joomla version -- : 3.9.23
-- PHP version -- : 7.4

Hi

Would it be possible to on the page I see after scanning a QR Code, to show some extra data, like the buyers name and order ID?
On the page where I get the Serial Activated ...

Kind regards
Thomas

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
3 years 11 months ago #327011

Hello,

You have an HikaSerial advanced setting to display more details when consuming a serial.

After that ; It is possible to override the view "serial / consumed_html" and add the content you want to display.
The view already give you pre-loaded data, such as

$this->serial->order
which is the database content of the HikaShop order.
But you also have the item (orderproduct) and the customer.

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: 359
  • Thank you received: 24
  • Hikaserial Standard Hikashop Business
3 years 11 months ago #327014

Thank you!

I have been looking for a way to get the buyers name, but where do I find that?

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
3 years 11 months ago #327086

Hello,

You don't have the what you want in the HikaShop customer object ?

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: 359
  • Thank you received: 24
  • Hikaserial Standard Hikashop Business
3 years 11 months ago #327101

Hi

I see the extra fields, but I would really like to see the name of the buyer, if possible?

Regards
Thomas

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
3 years 11 months ago #327162

Hello,

The Hikashop customer should contain all fields from the HikaShop table and the fields from the Joomla table.
If you're referring to the customer lastname which is stored in the HikaShop address ; it would require a modification in the HikaSerial core in order to load the order billing address too.

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: 359
  • Thank you received: 24
  • Hikaserial Standard Hikashop Business
3 years 11 months ago #327171

Hi

I don't see any tables called hikashop_customer ?

It would be a great help, just to be able to show the firstname of the buyer.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
3 years 11 months ago #327222

Hello,

The table in the database is "hikashop_user".
For the "firstname" ; it's the same that what I explained in my previous message regarding the lastname. Except if you want an information from the HikaShop table or the Joomla user... It requires a core modification.

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: 359
  • Thank you received: 24
  • Hikaserial Standard Hikashop Business
3 years 11 months ago #327227

Thank you, I'll look in to it.

Great support, as always!

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

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