We’re currently experiencing a high volume of inquiries and our response time could be up to 2 days. We apologize for the delay, and thank you for your patience. Our available time: 2 AM - 1 PM (Monday - Friday) (UTC+0 Timezone).

Okay
  Public Ticket #2896094
Code Structure Customization
Closed

Comments

  •  4
    Mohiuddin Muhin started the conversation

    Hi
    I am a laravel developer. I have purchased your MartFury - Multivendor / Marketplace Laravel eCommerce System on behalf of my client ekShop.
    Now I want to add and customize some features from controller and view end. But I could not find the controller and view files. Where those files located and from where I can edit or customize them?

  •  3,635
    Support replied

    Hi,

    All our source code is located in folder /platform.

    Example:

    Controllers for ecommerce features: platform/plugins/ecommerce/src/Http/Controllers.

    Check this video: https://www.loom.com/share/135b31587eb64594a574e8d593bdbc8d

  •   Mohiuddin Muhin replied privately
  •  3,635
    Support replied

    Hi,

    MartfuryController is extended from Botble\Theme\Http\Controllers\PublicController.

    6869219598.png

    You can copy function getIndex() from platform/packages/theme/src/Http/Controllers/PublicController.php:63 to MartfuryController to override it.

    6025405036.png

  •  4
    Mohiuddin Muhin replied

    Thank you very much for your reply.

    Do you have any documentation based on code structure?

    Could you please provide me a documentation on your customized code structure so that I can understand it at a glance and don't need to generate so many tickets? It will be really so helpful.

  •  3,635
    Support replied

    Hi,

    There are some docs about coding from the CMS version here https://docs.botble.com/cms/5.22

    Keep in mind that not all features are available in Martfury script.

  •  4
    Mohiuddin Muhin replied

    Thank you very much.

  •   Mohiuddin Muhin replied privately
  •  3,635
    Support replied

    Hi,

    Route: platform/plugins/marketplace/routes/product.php

    Controller: platform/plugins/marketplace/src/Http/Controllers/ProductController.php

  •  4
    Mohiuddin Muhin replied

    Hello 

    Could you please tell me what is the file path of route, Controller and view while searching from front end home page top bar?

  •  3,635
    Support replied

    Hi,

    Route: platform/plugins/ecommerce/routes/base.php 

    4178650217.png

    Controller: platform/plugins/ecommerce/src/Http/Controllers/Fronts/PublicProductController.php

    2918785940.png
  • Kumar Yash replied

    Do martfury includes api for app building (Flutter) as i nned it for one of my customer....and he needs app also please verify as soon as possible.

  •  3,635
    Support replied

    Hi,

    Sorry, no APIs available in MartFury script.

    It doesn't have mobile apps too. We don't have mobile developers and we don't have right from designer to do mobile apps.

  •  4
    Mohiuddin Muhin replied

    Hello

    I need help regarding new session variable creation.

    I am trying to create a new session variable in Theme\Martfury\Http\Controllers\MartfuryController like below:

    session()->put('location_district', $request->district);

    But after creating the session when I reload/refresh the page then the 'location_district session variable disappeared.

    I am checking the session variable like: 

    session()->get('location_district');

    But it showing empty.

    Am I missing something? Or do I need some extra things to do for creating session in this project?

  •  3,635
    Support replied

    Hi,

    Docs for Laravel session here: https://laravel.com/docs/8.x/session#introduction

    5704363476.png

    Keep in mind that as support policy, we won't support customization, we just support our existing code https://codecanyon.net/page/item_support_policy

  •  4
    Mohiuddin Muhin replied

    Hello

    I am trying to enable language change feature.

    I have enabled translation plugin from admin panel. But still language selection option not visible in the front end. How can I enable and show the language changing dropdown in the front pages? 
    I have attached my header portion screenshot. Please check and help. 

  •  3,635
    Support replied

    Hi,

    You need to activate plugin Language and Language Advanced in Admin -> Plugins, add at least 2 languages in Admin -> Settings -> Languages then language switcher will be displayed on the header of site.

  •  4
    Mohiuddin Muhin replied

    Hello

    As your suggestion I was going to activate language plugin. But There is no Language and Language Advance plugin in plugin activation page. Why these are missing ? Do I need something to add these plugins in the admin plugin page?


  •  3,635
    Support replied

    Hi,

    What's your MartFury version?

    We just support multi-language since v1.14.

    Please download the latest version on https://codecanyon.net/downloads and follow our upgrade guide https://docs.botble.com/martfury/1.x/upgrade to upgrade to the latest version.


  •  4
    Mohiuddin Muhin replied

    Hello

    Please be informed that my Martfury CMS version is 5.21.
    But the language selection switch and plugin not found. What should I do now?

    Please see the attached file to check the version.

  •  3,635
    Support replied

    Hi,

    You are using an old version. 

    You can check theme version in Admin -> Appearance -> Themes.

    We have added multi-language support since MartFury 1.4 (using CMS v5.22).

    8985087027.png

    Check changelog https://codecanyon.net/item/martfury-multipurpose-laravel-ecommerce-system/29925223

  •  4
    Mohiuddin Muhin replied

    Thanks for your reply.

    Accordingto your instructions I have downloaded MartFury v 1.14 and do things like following:

    • For developers:
      • Override folder app, database, config, platform, public/themes, public/vendor and public/index.php from the latest version.
      • Update file composer.json and composer.lock from new source code.
      • Delete folder /vendor then run composer install to upgrade vendor packages.
      • Run php artisan cms:publish:assets.
      • Run command php artisan vendor:publish --tag=cms-lang --force to update translations.
      • Run php artisan migrate to update the database.
      • Run php artisan optimize:clear to clear cache.
    • For non-developers:
      • Override folder app, bootstrap, database, config, platform, vendor, public/themes, public/vendor and public/index.php from the latest version.
      • Delete all files in storage/framework/views and storage/framework/cache.
      • Go to Admin -> Plugins: deactivate plugin Ecommerce, Marketplace, Payment, Language Advanced then activate them again.
      • Go to Admin -> Translations -> Other translations then click on Import group to update translations.
    Go to Admin -> Plugins and activate plugin Language & Language Advanced if you need multi-language support. We have upgraded to the Bootstrap 5, it may have cache issue in browser, try to hard reload pages (Ctrl + F5 on Windows or CMD + Shift + R on MacOS).


    I have removed cache. Refreshed page but still not found the language changing switch at header.
    What should I do now?

  •  3,635
    Support replied

    Hi,

    You need to go to Admin -> Settings -> Languages and add at least 2 languages.

  •  4
    Mohiuddin Muhin replied

    Need help

    I have installed Martfury 1.3 and I have customize in some parts. It's working fine.

    But in version Martfury 1.4 language changing option added. Now I want to add the language change feature. 

    I have downloaded Martfury 1.4. According to version update documentation I see that I need to override the platform folder. 

    As I have customized in some part of platform pages I am unable to override the whole folder. 

    Is there any way to tell us the specific file folder update for enabling language plugin and feature from version 1.3 to 1.4  instead of overriding the whole platform folder?

  •  3,635
    Support replied

    Hi,

    We have modified many files to make it supports multi-language. 

    It's not easy to bring all changes for multi-language to v1.13. It will take many hours.

    The easiest way is that backup what you changes then bring them back after you finished upgrade to the latest version.

  •  4
    Mohiuddin Muhin replied

    Got it. Thank you for your coperation