I can't get product vendor id in django

I am working on an e-commerce project. But the product vendor id is not registered in the database. I’ve tried many ways. I would be glad if you help. seller_id always comes empty What are your suggestions? models.py class Product(models.Model): name = models.CharField(verbose_name="Məhsulun adı", max_length=150) description = models.TextField( verbose_name="Məhsul haqda məlumat", null=True) price = models.FloatField(verbose_name="Məhsulun… Read More I can't get product vendor id in django

Vue.js – Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'product')

I’m currently working on an eCommerce app using Django and Vue.js and I am currently trying to find out why my CartItem.vue component is not working. Its suppose to display the product, product price, the number of products selected, and the total price of the number of products selected. <template> <tr> <td> <router-link :to="item.product.get_absolute_url">{{ item.product.name… Read More Vue.js – Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'product')

What causes the "Argument expression expected" error in this Angular 13 app?

I am working on an e-commerce app who’s front-end is made in Angular 13. The below code is intended to sum the prices of the items in the cart: import { Component, OnInit } from ‘@angular/core’; @Component({ selector: ‘.app-top-cart’, templateUrl: ‘./top-cart.component.html’, styleUrls: [‘./top-cart.component.css’] }) export class TopCartComponent implements OnInit { cartItems: any = [ {… Read More What causes the "Argument expression expected" error in this Angular 13 app?

I have wrote two js scripts, both of them work but the problem is only the one placed second in the code will work

i am trying to develop an eCommerce website for the first time but in here i wrote two scripts As you can see in the pictures, it works well but only the one placed second will work on the website, first image the dropdown script works second one the scroll finction works //show dropdowns// function… Read More I have wrote two js scripts, both of them work but the problem is only the one placed second in the code will work

Is there a cleaner way to extract a substring from a string in PHP using RegEx?

I have a function that is getting a string of "lead time" in WooCommerce. An example would be:Available! Estimated Lead Time: 2-3 Weeks. I want to get the 2-3 Weeks. So far, I’ve been able to do it with the following function: function display_lead_time_notice_card() { global $product; //Get Stock Status $in_stock = $product->get_availability()[‘class’]; //If In… Read More Is there a cleaner way to extract a substring from a string in PHP using RegEx?