Jump to content

 

Dexterflamez

Member Since 08 Jan 2018
Offline Last Active Oct 08 2019 10:08 PM
-----

Posts I've Made

In Topic: How To Resize Invoice Logo Size

01 October 2019 - 10:54 AM

Great solution! Thanks


In Topic: Automatically Set Shipping For New Vendors?

17 September 2019 - 06:11 AM

Thanks for the elegant solution!


In Topic: Mobile To Desktop Issue

11 September 2019 - 02:57 AM

I am afraid, there is no easy way to do it. Additional custom development work is required

 

Can you help me with that custom code, I can pay up to $40 for it


In Topic: Mobile To Desktop Issue

10 September 2019 - 03:49 AM

Yeah it makes sense, thanks. How about the user with vendor accounts having to login twice can there be a mod to merge user and vendor accounts together? 


In Topic: Hide Url Of Vendors Without Store On The Product Page?

10 August 2019 - 05:56 AM

you need to create a custom addon or use an existing one.

 

In product controller add:

use Tygh\Models\Company;
....
....    

    $company = Company::model()->find($product['company_id']);
    if ($company->vendor_store) {
        Tygh::$app['view']->assign('vendor_store', true);
    }

then within file design/themes/responsive/templates/views/companies/components/product_company_data.tpl you need to override the hook: companies:product_company_data like this:

{if $vendor_store}
.........
{/if}

Hope this helps.

 

If however you have doubts do not hesitate to hire me to apply this mod

 

Where exactly should i add this $company = Company::model()->find($product['company_id']);

    if ($company->vendor_store) {
        Tygh::$app['view']->assign('vendor_store', true);

    } ? i mean the file path, i tried adding to app/controllers/frontend/product.php but it broke the site