Home Forums WoodMart support forum add the vendor name in h1

add the vendor name in h1

Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #415883

    loralora
    Participant

    Hello

    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.
    #416229

    Hello,

    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

    #416492

    loralora
    Participant

    Hello

    Unfortunately, I do not have the rights to give the site administrator data.
    Can you help me without this?

    Thanks

    #416791

    Hello,

    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

    #416807

    loralora
    Participant

    Yes, 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.
    #417022

    Hello,

    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

    #417129

    loralora
    Participant

    I understand

    Please try this

    #417138

    Hello,

    Could you indicate the server name, login, and password? I try different combinations and I cannot log in.

    Best Regards

    #417239

    loralora
    Participant

    Right 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.
    #417416

    Hello,

    I will submit the case to our developers for checking.

    We will get back to you soon.

    Best Regards

    #417697

    Hello,

    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

    #417966

    loralora
    Participant

    Here 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.

    #418198

    Hello,

    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

    #418225

    loralora
    Participant

    Thanks 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.

    #418558

    Hello,

    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

    #418714

    loralora
    Participant

    Thanks 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

    #418715

    loralora
    Participant

    See there the old parts of the code

    Attachments:
    You must be logged in to view attached files.
    #419397

    Hello,

    Our developers will consider that.

    If you have any questions please feel free to contact us.

    Best Regards

Viewing 18 posts - 1 through 18 (of 18 total)