How to display the vendor name without the link

  • Posts: 22
  • Thank you received: 2
  • Hikaauction Standard Hikamarket Multivendor Hikashop Business
1 week 3 days ago #370193

-- HikaShop version -- : 6.2.0
-- HikaMarket version -- : 6
-- Joomla version -- : 6.0.2
-- PHP version -- : 8.4
-- Browser(s) name and version -- : chrome
-- Error-message(debug-mod must be tuned on) -- : none

Hi Team

is there a way to show the vendor name without link please?

Thank you

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

  • Posts: 26313
  • Thank you received: 4056
  • MODERATOR
1 week 3 days ago #370195

Hello,

Can you please precise where you want to display the vendor name?
Is it in a product listing? The product page? etc.

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.
The following user(s) said Thank You: lucad

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

  • Posts: 22
  • Thank you received: 2
  • Hikaauction Standard Hikamarket Multivendor Hikashop Business
1 week 2 days ago #370204

Hi Jerome, it appears on the auction page and category listing page (see attachment)
Thank you

Attachments:

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

  • Posts: 265
  • Thank you received: 35
  • Hikaserial Subscription Hikashop Business
1 week 2 days ago #370207

In Hikashop go to: Configuration >System > Advanced tab and set the Display view files:YES, Save and go to front-end.
Refresh the page and you will see something similar to my attachament. For you, in that section you will see the view name, you need to find that view in: Hikaauction > Views, filter by template you use in front-end. (you can also search the veiw by name).
Then you can edit the view and remove the <a href=... > around username.
After you finish, don't forget to set Display view files:NO

Attachments:
The following user(s) said Thank You: lucad

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

  • Posts: 22
  • Thank you received: 2
  • Hikaauction Standard Hikamarket Multivendor Hikashop Business
1 week 2 days ago #370208

Thank you Oxido
Unfortunately, it's the only one with any reference (see attachments)

Attachments:
Last edit: 1 week 2 days ago by lucad.

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

  • Posts: 265
  • Thank you received: 35
  • Hikaserial Subscription Hikashop Business
1 week 2 days ago #370209

Ok, so for the first screenshot, the view is product / show_auction.php, this is what you need to find in Auction > Views.
For the second one, it will be the first view name you see in that page.
You can identify where that view belongs by the doted lines, see attachaments

Attachments:
The following user(s) said Thank You: lucad

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

  • Posts: 22
  • Thank you received: 2
  • Hikaauction Standard Hikamarket Multivendor Hikashop Business
1 week 2 days ago #370210

Thank you

in HikaAuction - productauction / show_auction.php (see attchment)

I founf this code but can't find what to edit

Please do not publish full content of HikaShop/HikaMarket/HikaAuction files

Attachments:
Last edit: 1 week 2 days ago by Jerome. Reason: Removing full file content

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

  • Posts: 26313
  • Thank you received: 4056
  • MODERATOR
1 week 2 days ago #370211

Hello oxido,

Thank you for your help but HikaMarket integration is not working like that.

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.
The following user(s) said Thank You: lucad

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

  • Posts: 22
  • Thank you received: 2
  • Hikaauction Standard Hikamarket Multivendor Hikashop Business
1 week 2 days ago #370212

Thank you Jerome

Do you have any solution please?

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

  • Posts: 26313
  • Thank you received: 4056
  • MODERATOR
1 week 2 days ago #370214

Hello,

HikaMarket adds the tag with the vendor name via the HikaShop "slots" system.
The data is generated in the HikaMarket product class and there is, for the moment, no setting to change how it is done.

Instead of adding a setting, I think it might be better to continue using the translation system, which is already used for the translation entry "SOLD_BY_VENDOR".
The idea would be to use another entry "SOLD_BY_VENDOR_HTML" which will define only the creation of the link ; but if you do override the translation, you could display only the vendor name...

To do so, you need to edit the file : administrator/components/com_hikamarket/classes/product.php
There, you will find the line

$vendorLink = '<a href="'.hikamarket::completeLink('vendor&task=show&cid=' . $vendor->vendor_id . '&name=' . $vendor->alias . $url_itemid).'">' . $vendor->vendor_name . '</a>';
for the generation of the vendor link during the display of a product page.

And the line
$vendorLink = '<a href="'.hikamarket::completeLink('vendor&task=show&cid=' . $vendors[$id]->vendor_id .'&name=' . $vendors[$id]->alias . $url_itemid).'">' . $vendors[$id]->vendor_name . '</a>';
for the generation of the vendor link during the display of a product listings.

The idea behind the patch is to change that generation.
Here for the product page :
	$vendorLinkTpl = JText::_('SOLD_BY_VENDOR_HTML');
	if($vendorLinkTpl == 'SOLD_BY_VENDOR_HTML')
		$vendorLinkTpl = '<a href="%s">%s</a>';
	$vendorLink = sprintf($vendorLinkTpl, hikamarket::completeLink('vendor&task=show&cid=' . $vendor->vendor_id . '&name=' . $vendor->alias . $url_itemid), $vendors[$id]->vendor_name);

For the product listing, it's nearly the same patch but it's best to put the creation of the variable $vendorLinkTpl outside the foreach...
So the three first lines must be before the foreach and the line which will create the $vendorLink variable would be:
$vendorLink = sprintf($vendorLinkTpl, hikamarket::completeLink('vendor&task=show&cid=' . $vendors[$id]->vendor_id .'&name=' . $vendors[$id]->alias . $url_itemid), $vendors[$id]->vendor_name);

You can already apply the modification for the product page, create the translation, and give us your feedback.

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.
The following user(s) said Thank You: lucad

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

  • Posts: 22
  • Thank you received: 2
  • Hikaauction Standard Hikamarket Multivendor Hikashop Business
16 hours 3 minutes ago #370340

Thank you Jerome

this time it took me a while this time to do that

Unfortunately the result of those changes is that the seller's name is not displayed anymore

Is there a way for you to check please?

Thank you

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

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