Home › Forums › WoodMart support forum › add the vendor name in h1
add the vendor name in h1
- This topic has 17 replies, 2 voices, and was last updated 2 years, 8 months ago by
Elise Noromit.
-
AuthorPosts
-
October 22, 2022 at 6:30 pm #415883
loraloraParticipantHello
As you helped me in the post:
https://xtemos.com/forums/topic/footer-problem-add-the-vendor-name-in-h1/#post-297537
I added to the file: woodmart-child/woocommerce/single-product/title.php
this is the code: <?php add_vendor_after_product_title(); ?>Everything worked fine, but now unfortunately it stopped working.
I first contacted the plugin support thinking it was an update, but they told me it was most likely a theme feature.
P,S, I saw that the title.php template was updated – I changed it in the child theme, added it to the title <?php add_vendor_after_product_title(); ?> – but that doesn’t work anymore.
Help me please – how to display the name of the vendor (Plugin WC Marktplace – now they are Multivendor X)
Attachments:
You must be logged in to view attached files.October 24, 2022 at 9:11 pm #416229
Elise NoromitMemberHello,
Please insert the site admin access into the Private content below the message area. We will take a closer look at the case.
Best Regards
October 25, 2022 at 5:36 pm #416492
loraloraParticipantHello
Unfortunately, I do not have the rights to give the site administrator data.
Can you help me without this?Thanks
October 26, 2022 at 8:44 pm #416791
Elise NoromitMemberHello,
The file woocommerce/single-product/title.php was not updated or modified.
Please insert the site admin access into the Private content below the message area. We will take a closer look at the case.
Best Regards
October 26, 2022 at 11:12 pm #416807
loraloraParticipantYes, you’re right, sorry, the file didn’t really change – I just pasted the code that you advised me earlier into my child theme. Here is a link to your advice.
But now this code is not working.
Could you help me again with this question please?https://xtemos.com/forums/topic/footer-problem-add-the-vendor-name-in-h1/#post-297537
Attachments:
You must be logged in to view attached files.October 28, 2022 at 12:14 am #417022
Elise NoromitMemberHello,
We need your site admin access so that our developers could check deeper.
If you do not want to provide access to the live site, you can clone and move your site to a testing domain.
Best Regards
October 28, 2022 at 1:55 pm #417129
loraloraParticipantI understand
Please try this
October 28, 2022 at 2:22 pm #417138
Elise NoromitMemberHello,
Could you indicate the server name, login, and password? I try different combinations and I cannot log in.
Best Regards
October 28, 2022 at 8:33 pm #417239
loraloraParticipantRight now I’m temporarily unable to log in to the test site either, sorry.
Since theme support told me that it was most likely a setting in your theme and the code <?php add_vendor_after_product_title(); ?> was outputting the name, could you please check from your side –
Perhaps the problem is that the multi-vendor plugin for which you didn’t press this code changed its variables?
All variables $WCMp they changed to $MVX
All lines of code where the hook letter set was “wcmp” became “mvx”.
For example: get_wcmp_vendor($store_id); is now get_mvx_vendor($store_id);.Please, can you check this from your side?
I also contacted the plugin developers and they said that you need to use part of the code (but unfortunately I don’t understand this, sorry)
Attachments:
You must be logged in to view attached files.October 30, 2022 at 1:26 am #417416
Elise NoromitMemberHello,
I will submit the case to our developers for checking.
We will get back to you soon.
Best Regards
October 31, 2022 at 6:25 pm #417697
Elise NoromitMemberHello,
The site is not workable now.
Please try to replace the line
add_vendor_after_product_title()
with the code you were given and you show on the screen.If it does not help, please provide site admin access as well as FTP access and a workable site.
Best Regards
November 1, 2022 at 7:55 pm #417966
loraloraParticipantHere are the permissions.
At the expense add the code that I indicated it but it does not work.
I can no longer give any rights.November 2, 2022 at 9:51 pm #418198
Elise NoromitMemberHello,
Please delete all the custom code you inserted earlier and copy this file into the child theme: woocommerce/single-product/title.php
Then insert this code into the file after line 24:
<?php global $post; $vendor = get_mvx_product_vendors($post->ID); if ( $vendor ) { echo $vendor->page_title; } ?>
If you have any questions please feel free to contact us.
Best Regards
November 3, 2022 at 12:18 am #418225
loraloraParticipantThanks this works.
But I did not specify – and this is my mistake.
Previously, the vendor name was added as a link to the page.I am very grateful for your help with the code, but could you tell me how to add not just a name, but also a link to the store brand.
November 4, 2022 at 4:22 am #418558
Elise NoromitMemberHello,
Please replace the code with this one:
<?php global $post; $vendor = get_mvx_product_vendors($post->ID); if ( $vendor ) { echo '<a href="' . $vendor->permalink . '">' . $vendor->page_title . '</a>'; } ?>
Best Regards
November 4, 2022 at 4:28 pm #418714
loraloraParticipantThanks the code works.
Can I still ask you to correct the code in Woodmart and Multivendor X integration?
../wp-content/themes/woodmart/inc/integrations/wcmp.php
Given that part of the code has changed, this file contains the old names of variables and parts of the code
(As I wrote above:All variables $WCMp they changed to $MVX
All lines of code where the hook letter set was “wcmp” became “mvx”.
For example: get_wcmp_vendor($store_id); is now get_mvx_vendor($store_id);.)
Thanks
November 4, 2022 at 4:29 pm #418715
loraloraParticipantSee there the old parts of the code
Attachments:
You must be logged in to view attached files.November 8, 2022 at 1:57 am #419397
Elise NoromitMemberHello,
Our developers will consider that.
If you have any questions please feel free to contact us.
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register