Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. Modules
    Log in to post
    • Newest to Oldest
    • Oldest to Newest
    • Most Posts
    • Most Votes
    • Most Views
    • admin

      Laravel AliExpress Module
      • admin

      6
      1
      Votes
      6
      Posts
      684
      Views

      P

      Hello azzymd,

      Now, the dropship module and extension has been updated. You may get it from the webkul store (link is provided below)

      https://store.webkul.com/bagisto-aliexpress-dropship.html

    • H

      getAttribute Model in custom extensions
      • hChamran

      2
      0
      Votes
      2
      Posts
      236
      Views

      R

      Hi @hChamran

      If you are implementing Accessors and Mutators then please go through with this link -

      https://bosnadev.com/2015/12/17/laravel-accessors-mutators/

      https://laravel.com/docs/5.7/eloquent-mutators

      If this is something else then you please explain more and attache your screenshot of code.

      Thanks

    • H

      How to create relation between my model and customer model??
      • hChamran

      2
      0
      Votes
      2
      Posts
      255
      Views

      R

      Hi @hChamran

      You can override core model.

      Please follow this link - https://devdocs.bagisto.com/override-core-model.html

      Thanks

    • R

      How to add toolbar & layered navigation in search result page?
      • RK REZA

      2
      0
      Votes
      2
      Posts
      843
      Views

      R

      Hi @RK-REZA

      First of all, override search result page, then add this as we do for category pages & call your repository or controller method for result and filter it according to search value.

      Thanks

    • R

      Fancy design module
      • rabol

      2
      0
      Votes
      2
      Posts
      310
      Views

      admin

      Hi Rabol,

      The extension is yet not available for https://fancyproductdesigner.com/ But If you need the module, you can create a ticket for the same at https://bagisto.uvdesk.com/en/customer/create-ticket/

    • R

      override product model ERROR !!!
      • RK REZA

      5
      0
      Votes
      5
      Posts
      425
      Views

      R

      Hi @RK-REZA

      If you have added any new type then you need to do this otherwise not.

      Thanks

    • R

      How can I remove shipping from checkout page?
      • RK REZA

      5
      0
      Votes
      5
      Posts
      876
      Views

      P

      Hello RK REZA,

      Clone the latest bagisto from github (https://github.com/bagisto/bagisto), the issue had been resolved. And, as stated in above link, the shipping methods is necessary for physical products. But, In future release, we will add new product type 'Virtual' for which shipping methods will be removed.

    • H

      Problem in bagisto_assets function!!
      • hChamran

      2
      0
      Votes
      2
      Posts
      232
      Views

      R

      Hi @hChamran

      Please follow this for solution - https://forums.bagisto.com/topic/333/problem-in-bagisto_assets-function

      Thanks

    • P

      Razorpay integration in Bagisto
      • Pankaj

      15
      0
      Votes
      15
      Posts
      1228
      Views

      Y

      @Pankaj how to include script and css and form in payment.blade.php

    • Y

      How can implement new payment method (stripe) and remove all exist method
      • yousuf

      6
      0
      Votes
      6
      Posts
      591
      Views

      R

      Hi @yousuf

      Kindly attach a screenshot of error.

      Thanks

    • Y

      views
      • ylliLatifi

      3
      0
      Votes
      3
      Posts
      237
      Views

      R

      Hi @ylliLatifi

      Shop package consist the view of front-end & Admin package consist view of backend.'
      You can find any views in this package's view folder.

      Thanks

    • Y

      How to include script and css file in payment.blade.php
      • yousuf

      29
      0
      Votes
      29
      Posts
      8289
      Views

      R

      Hi @yousuf

      Instead of Writing whole form, css and js in single page,. is giving error. So what we can do is that we can use them separately.

      We are already fired two different event 'bagisto.shop.layout.head' and 'bagisto.shop.layout.body.after' from our master file, so we will use this event to add our css and js file.

      As we told earlier how to do this, we will follow same procedure.

      For JS

      \Event::listen('bagisto.shop.layout.body.after', function($viewRenderEventManager) { $viewRenderEventManager->addTemplate('type-hint::folder1.folder2.file-name'); });

      Now put this code in your js file (This JS code is mentioned above), we did some small changes.

      <script> eventBus.$on('after-checkout-payment-section-added', function() { $(document).ready(function() { // Create a Stripe client. var stripe = Stripe('pk_test_TYooMQauvdEDq54NiTphI7jx'); // Create an instance of Elements. var elements = stripe.elements(); // Custom styling can be passed to options when creating an Element. // (Note that this demo uses a wider set of styles than the guide below.) var style = { base: { color: '#32325d', fontFamily: '"Helvetica Neue", Helvetica, sans-serif', fontSmoothing: 'antialiased', fontSize: '16px', '::placeholder': { color: '#aab7c4' } }, invalid: { color: '#fa755a', iconColor: '#fa755a' } }; // Create an instance of the card Element. var card = elements.create('card', {style: style}); // Add an instance of the card Element into the `card-element` <div>. card.mount('#card-element'); // Handle real-time validation errors from the card Element. card.addEventListener('change', function(event) { var displayError = document.getElementById('card-errors'); if (event.error) { displayError.textContent = event.error.message; } else { displayError.textContent = ''; } }); // Handle form submission. var form = document.getElementById('payment-form'); console.log() form.addEventListener('submit', function(event) { event.preventDefault(); stripe.createToken(card).then(function(result) { if (result.error) { // Inform the user if there was an error. var errorElement = document.getElementById('card-errors'); errorElement.textContent = result.error.message; } else { // Send the token to your server. stripeTokenHandler(result.token); } }); }); // Submit the form with the token ID. function stripeTokenHandler(token) { // Insert the token ID into the form so it gets submitted to the server var form = document.getElementById('payment-form'); var hiddenInput = document.createElement('input'); hiddenInput.setAttribute('type', 'hidden'); hiddenInput.setAttribute('name', 'stripeToken'); hiddenInput.setAttribute('value', token.id); form.appendChild(hiddenInput); // Submit the form form.submit(); } }) }) </script>

      For CSS

      We will again follow the same procedure.

      \Event::listen('bagisto.shop.layout.head', function($viewRenderEventManager) { $viewRenderEventManager->addTemplate('type-hint::folder1.folder2.file-name'); });

      Paste this one in your css file.

      <style> .StripeElement { box-sizing: border-box; height: 40px; padding: 10px 12px; border: 1px solid transparent; border-radius: 4px; background-color: white; box-shadow: 0 1px 3px 0 #e6ebf1; -webkit-transition: box-shadow 150ms ease; transition: box-shadow 150ms ease; } .StripeElement--focus { box-shadow: 0 1px 3px 0 #cfd7df; } .StripeElement--invalid { border-color: #fa755a; } .StripeElement--webkit-autofill { background-color: #fefde5 !important; } .form-row { background: red; } </style>

      We have already did following one with form so we don't need to do it here.
      Right now our stripe's form, css & js is loading using three different event,

      Try this solution and write to us if you found any difficulty to implement it.

      Thanks

    • Y

      Tax is still not being added.
      • yousuf

      4
      0
      Votes
      4
      Posts
      356
      Views

      R

      Hi @yousuf

      Tax is created for a specific zip range so when you submit your address, it applies on product.

      Thanks

    • E

      New attributes as filterable attributes
      • eliron

      2
      0
      Votes
      2
      Posts
      384
      Views

      ghermans

      Hi @eliron,

      The following article should help you getting started
      https://bagisto.com/en/how-to-create-product-attribute-in-bagisto/

    • Y

      Error on click on view seller page/view collection page
      • yousuf

      5
      0
      Votes
      5
      Posts
      301
      Views

      Y

      we copy this its work,thanks

    • Y

      Identify customer/seller in config menu.php file
      • yousuf

      2
      0
      Votes
      2
      Posts
      311
      Views

      R

      Hi @yousuf

      Customer Menu is creating through sidemenu.blade.php file ( path = customers->account->sidemenu.blade.php in shop package's view).

      You can add your condition here to hide side menu & get can customer using below code.

      auth()->guard('customer')->user()

      thanks

    • S

      how to change admin side designing part.
      • shreyasi

      2
      0
      Votes
      2
      Posts
      204
      Views

      R

      Hi @shreyasi

      Please follow below article -

      https://forums.bagisto.com/topic/111/how-to-override-the-admin-layout

      https://forums.bagisto.com/topic/221/how-to-override-view-file-in-bagisto

      Thanks

    • S

      How to create submenu?
      • Shohel

      4
      0
      Votes
      4
      Posts
      828
      Views

      S

      thanks @lwilliams-heli

    • R

      The proxy Itec\Sales\Models\InvoiceItemProxy has a non-existent contract class: `Itec\Sales\Contracts\InvoiceItem`
      • RK REZA

      3
      0
      Votes
      3
      Posts
      295
      Views

      R

      Solved thanks

    • Y

      remove confirmnation message on clicking on delete Action
      • yousuf

      2
      0
      Votes
      2
      Posts
      288
      Views

      R

      Hi @yousuf

      There is a view called table.blade.php inside datagrid folder of UI package's view, you need to override this view in your package.
      In this view file, you can find a function name called doAction. Replace this functions code with below code.

      doAction: function(e) { var element = e.currentTarget; axios.post(element.getAttribute('data-action'), { _token : element.getAttribute('data-token'), _method : element.getAttribute('data-method') }).then(function(response) { this.result = response; location.reload(); }).catch(function (error) { location.reload(); }); e.preventDefault(); },

      you can see this one for overriding view - https://forums.bagisto.com/topic/221/how-to-override-view-file-in-bagisto

      Thanks