Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Vendor Default Logo Rate Topic   - - - - -

 
  • patroklos
  • Member
  • Members
  • Join Date: 13-Jun 19
  • 35 posts

Posted 26 August 2020 - 06:51 AM #1

Hi!

 

In 4.11.4 Multivendor the vendor default logo is the store logo.

Previously, it used the logo of the theme, thus it was possible to enter

a have a default logo for vendors different to the store logo.

 

"Multi-Vendor: Vendors: Logos: Now the logo of the marketplace will serve as the default logo for vendors, instead of the logo of the theme."

 

So, how can we have a default vendor logo different to the store logo???

 

Maybe somebody could post code on how to do this

in an update_company hook or something given an image file in a directory...

 

Also posted this here:

https://forum.cs-car...-4114-released/

https://forum.cs-car...t-vendors-logo/

 

Thanks! 



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12051 posts

Posted 26 August 2020 - 07:54 PM #2

You can use a php hook to alter 'company_data' and change the 'company_default_logo' to whatever you want.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • patroklos
  • Member
  • Members
  • Join Date: 13-Jun 19
  • 35 posts

Posted 27 August 2020 - 06:52 AM #3

Hi,

 

where is the company_data company_default_logo property?

I can't find it.

 

When a vendor is created, the system automatically assigns a logo (and mail logo) image to the vendor,

by making copies of the store logo and assigning them to these logo and mail logo of vendor.

This is the image I want to change. I don't want it to use the store logo, I want it to use

another image.

 

Thanks!



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12051 posts

Posted 27 August 2020 - 09:00 PM #4

Looks like all references are to the theme logo.  If you are using standard MVE, I don't think you can adjust the theme per vendor.  You get to purchase MVE Ultimate.  But since I don't have that version, I really can't say.  I must have been referencing an older version where default_company data was provided for each company/storefront.  But that doesn't seem to exist anymore and was probably moved to the ULTIMATE version of MVE.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • patroklos
  • Member
  • Members
  • Join Date: 13-Jun 19
  • 35 posts

Posted 28 August 2020 - 06:30 AM #5

Ooooohhhhhhh this should not be that hard.

 

Isn't there somebody who understands that code?

 

Yes, I have version Ultimate, but there is no need for 

"adjust the theme per vendor"

in what I am asking.

 

I just asking for a method (code) to use my default image when the vendor is created instead of the store logo.

 

It all happens on 

fn_create_theme_logos_by_layout_id()

called by fn_update_company()



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12051 posts

Posted 28 August 2020 - 08:14 PM #6

The correct place would be in the function fn_create_theme_logos_by_layout_id() in fn.common.php.  However this doesn't have any hooks within it.

 

The next level to go after would be in fn_get_logos() and utilize one of the hooks there.

 

And the next level would be to use update_company hook in fn_update_company() function in fn.companies.php

 

So as you can see, your request is not as simple as you might think.  Most likely you will have to do several DB queries to set your default image and to associate it with the company.  You will have to be careful that when you delete a company that your implementation does not delete your default thereby affecting other vendors.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.