Display CMD Username in Coupon

  • Posts: 5
  • Thank you received: 1
2 years 10 months ago #338630

-- HikaShop version -- : 4.4.5
-- HikaSerial version -- : 4.0.1
-- Joomla version -- : 3.10.4
-- PHP version -- : 7.4.27
-- Browser(s) name and version -- : chrome

Hi,

I'm trying to generate an image to attach to a serial via email. It works, except that I cannot display the name of the user that bought the ticket/product. We are not using any shipping/billing address since everything is virtual. We would like to be able to use the user.name field from the joomla database (hikashop_user -> cms_user_id -> name), but I don't know how to do that.
Is there a way to pull this information into the generator plugin?
Thanks,
Eli

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

  • Posts: 26162
  • Thank you received: 4029
  • MODERATOR
2 years 10 months ago #338682

Hello,

Attach Serial and PDF Serial plugins can display data from various database tables.
These tables are listed at the bottom of the configuration page of the plugin instance.

When you can find the HikaShop User table, the Joomla user table is not listed.
Which means that the current version of the plugin can't display information from that table.
If you want a "fast" solution, you can use an HIkaShop custom field which would contain the Joomla username value (using an HikaShop mass-action to perform the copy and keep the synchronization).
Otherwise, it would require some development in the HIkaSerial core for a future release.

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: 5
  • Thank you received: 1
2 years 10 months ago #338683

Thanks, I was able to get that to work.

The following user(s) said Thank You: Jerome

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

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