Navigation

    Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. parasbhadauria63
    P
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    parasbhadauria63

    @parasbhadauria63

    0
    Reputation
    18
    Posts
    11
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    parasbhadauria63 Follow

    Posts made by parasbhadauria63

    • RE: How to set 'Buy now' button along with Add to card button?

      Hi @Vaishali-Agarwal
      Buy Now button is visible now in the velocity theme.
      But some of the file it could not locate (See the attached screenshot) during running the mentioned command
      error.png

      Due to this, I am not able to login with Google/Facebook, etc as can be seen in the other screenshot

      Login with google erroe.png

      posted in Knowledge Base
      P
      parasbhadauria63
    • RE: Broken Image & Logo in Bagisto with causes and solutions?

      Hi @Vaishali-Agarwal
      I got it.
      Thanks ☺

      posted in Bug Report
      P
      parasbhadauria63
    • RE: How to set 'Buy now' button along with Add to card button?

      Hi @Vaishali-Agarwal
      I have already made the changes as mentioned above.
      But still Buy Now is not visible in the Velocity theme.
      Please help me out.
      Thanks

      posted in Knowledge Base
      P
      parasbhadauria63
    • RE: How to set 'Buy now' button along with Add to card button?

      Hi @Vaishali-Agarwal
      I have made the changes as mentioned by you
      I have got the option from the backend as you can see in the screenshot.
      Buy Now Screenshot.png

      Buy Now button becomes visible only in the bliss theme.
      How to make it visible in the Velocity theme also???
      I am sharing some part of the product page source code below:

      <script type='text/javascript' src='https://unpkg.com/[email protected]/release/spritespin.js'></script>
      
      <script type="text/x-template" id="product-view-template">
          <form
              method="POST"
              id="product-form"
              @click="onSubmit($event)"
              action="http://localhost/bagisto-new/public/checkout/cart/add/1">
      
              <input type="hidden" name="is_buy_now" v-model="is_buy_now">
      
              <slot v-if="slot"></slot>
      
              <div v-else>
                  <div class="spritespin"></div>
              </div>
      
          </form>
      </script>
      
      <script>
          Vue.component('product-view', {
              inject: ['$validator'],
              template: '#product-view-template',
              data: function () {
                  return {
                      slot: true,
                      is_buy_now: 0,
                  }
              },
      
              mounted: function () {
                  let currentProductId = 'wall-painting';
                  let existingViewed = window.localStorage.getItem('recentlyViewed');
      
                  if (! existingViewed) {
                      existingViewed = [];
                  } else {
                      existingViewed = JSON.parse(existingViewed);
                  }
      
                  if (existingViewed.indexOf(currentProductId) == -1) {
                      existingViewed.push(currentProductId);
      
                      if (existingViewed.length > 3)
                          existingViewed = existingViewed.slice(Math.max(existingViewed.length - 4, 1));
      
                      window.localStorage.setItem('recentlyViewed', JSON.stringify(existingViewed));
                  } else {
                      var uniqueNames = [];
      
                      $.each(existingViewed, function(i, el){
                          if ($.inArray(el, uniqueNames) === -1) uniqueNames.push(el);
                      });
      
                      uniqueNames.push(currentProductId);
      
                      uniqueNames.splice(uniqueNames.indexOf(currentProductId), 1);
      
                      window.localStorage.setItem('recentlyViewed', JSON.stringify(uniqueNames));
                  }
              },
      
              methods: {
                  onSubmit: function(event) {
                      if (event.target.getAttribute('type') != 'submit')
                          return;
      
                      event.preventDefault();
      
                      this.$validator.validateAll().then(result => {
                          if (result) {
                              this.is_buy_now = event.target.classList.contains('buynow') ? 1 : 0;
      
                              setTimeout(function() {
                                  document.getElementById('product-form').submit();
                              }, 0);
                          }
                      });
                  },
              }
          });
      
          window.onload = function() {
              var thumbList = document.getElementsByClassName('thumb-list')[0];
              var thumbFrame = document.getElementsByClassName('thumb-frame');
              var productHeroImage = document.getElementsByClassName('product-hero-image')[0];
      
              if (thumbList && productHeroImage) {
                  for (let i=0; i < thumbFrame.length ; i++) {
                      thumbFrame[i].style.height = (productHeroImage.offsetHeight/4) + "px";
                      thumbFrame[i].style.width = (productHeroImage.offsetHeight/4)+ "px";
                  }
      
                  if (screen.width > 720) {
                      thumbList.style.width = (productHeroImage.offsetHeight/4) + "px";
                      thumbList.style.minWidth = (productHeroImage.offsetHeight/4) + "px";
                      thumbList.style.height = productHeroImage.offsetHeight + "px";
                  }
              }
      
              window.onresize = function() {
                  if (thumbList && productHeroImage) {
      
                      for(let i=0; i < thumbFrame.length; i++) {
                          thumbFrame[i].style.height = (productHeroImage.offsetHeight/4) + "px";
                          thumbFrame[i].style.width = (productHeroImage.offsetHeight/4)+ "px";
                      }
      
                      if (screen.width > 720) {
                          thumbList.style.width = (productHeroImage.offsetHeight/4) + "px";
                          thumbList.style.minWidth = (productHeroImage.offsetHeight/4) + "px";
                          thumbList.style.height = productHeroImage.offsetHeight + "px";
                      }
                  }
              }
          };
      </script>
      posted in Knowledge Base
      P
      parasbhadauria63
    • RE: Broken Image & Logo in Bagisto with causes and solutions?

      Hi @Vaishali-Agarwal @rahul @admin

      Front end fetching the file from an irrelevant location: bagisto-new/public/storage/category/3/QkG71HJwsYVFEmkM8IwBkovmQxIli9kIu2jl86DS.jpg

      Actual File Location after uploading: bagisto-new\storage\app\public\category\3\QkG71HJwsYVFEmkM8IwBkovmQxIli9kIu2jl86DS.jpg

      This is the reason resulting in Broken Image & Logo in Bagisto while creating the category.
      Please help me out how this can be corrected.
      Thanks

      posted in Bug Report
      P
      parasbhadauria63
    • RE: How to set 'Buy now' button along with Add to card button?

      @Vaishali-Agarwal
      The latest version 1.2.0 is installed
      But still, I did not get the option to enable the Buy Now Button

      posted in Knowledge Base
      P
      parasbhadauria63
    • RE: How to set 'Buy now' button along with Add to card button?

      @Vaishali-Agarwal
      Ok, How can I upgrade from 1.1.2 to 1.2.0 (latest version).
      Can I upgrade it in one-click as mentioned in https://bagisto.com/en/how-to-update-bagisto-with-one-click/

      posted in Knowledge Base
      P
      parasbhadauria63
    • RE: How to set 'Buy now' button along with Add to card button?

      @Vaishali-Agarwal
      It is "v1.1.2"

      posted in Knowledge Base
      P
      parasbhadauria63
    • RE: 'State' field should not mandatory when creating a new tax rate

      Hi @Jyoti @admin
      Currently, In many countries GST/VAT is not either state or Pincode-dependent. It is a category dependent.
      For example:
      Let's say we have two categories of "Electronic Product" and "Handicraft".

      • Electronic Product carries 28% GST/VAT for all states and pincodes.
      • Handicraft category carries 12% GST/VAT for all states and pincodes.

      So there could be two solutions:

      1. Pincode and state dependency of taxes must be removed.
      2. An extra functionality could be added for supporting both requirements.

      Thanks

      posted in Knowledge Base
      P
      parasbhadauria63