Get product category - bigcommerce

I have a BigCommerce site, and I need to split up the products.featured products into their respective categories.
I have tried using this model, but it only gives me one category at a time.
Is there a way in Stencil to get the categories and their related products?

Related

Orocommerce : Products that should not be visible are

We are using Orocommerce version 3.
We have setup a number of differnent product categories and assigned products to these. We have also defined the permissions so that certain groups and cusotmers should not be able to see some of the products via the front end of the site.
When testing the site using two different cusotmers one which should and one which should not see the product when using the search and the product SKU both are able to view and potentially buy the product.
This only appears to be happening for certain products, which is odd.
We have reviewed the documentation here: Oro Docs and feel we have followed it correctly.
Has any one come acrooss this before, what options do we have solve this?

How to bundle product in shopify?

I tried to develop a Shopify application and I needed to bundle some products and sell those together with the special discount values.
There are some apps like product-bundle but I need bundling product in my app.
I tried to create one product similar to them and after the purchase completed I delete it but I think it's not a good solution because this product will be shown to shop and other customers can purchase that while I want to offer this product to a certain customer only.
In another way, I tried to use Shopify discount but can't satisfy my need or maybe I can't find true ways.
How can I do that?
There are multiple ways in which you can handle this.
1) Create a product itself:
Create a single product indicating a combination of your desired multiple products and combination of your price.
When the customer adds all the related products, detect it from cart webhook and update the cart of the customer by removing such products and adding the single product(i.e combination of all products).
2) Create a discount code: Create a discount code with your desired discount amount for each combo. Detect the products in the cart by cart webhook, if combo products found automatically apply the coupon to the cart.

Shopify Product images of an order items

I want to show the images of products in an order for the plugin I'm developing. But with the response returned for orders(from shopify admin API), in it line_items doesn't contain a product object or any other object that have the link for shopify cdn link of a product image, but the product id.
What I'm planning now is to call the admin api again with product id to get images which looks costly as I have to do it to all the items in an order and do that for all orders.
My question is whether any other way to derive the cdn link for product image given the product id or what could be the best approach for this?
Thanks in advance.
Let check the shopify Product API Docs. You can get a list of products by Product API, which is not costly.
Get a list of specific products
GET /admin/products.json?ids=632910392,921728736

Bigcommerce API Get All Skus

I'm trying to load all Skus from a Bigcommerce store. I first tried to use the API path /products/skus/count to get a count of the number of skus in the store as outlined in the BC documentation at https://developer.bigcommerce.com/api/stores/v2/products/skus However, the /products/skus/count endpoint is returning {"count":0}. I know for a fact that I have hundreds of products with a sku. Ultimately I'd like to get a list or array of just the skus in my store. Has anyone else been able to use this API or know a way to load all the skus in my store without loading all the product object graphs as that is too slow of a solution as I don't need all the additional information nor do I want to page through all my products since it's limited to 250 items at a time. All of my other API calls are working great so I'm questioning whether there is an issue with the specific API.
Are you try to get the "sku" property for all products or the SKU resource associated with a product?
The api call at the url that you've given https://developer.bigcommerce.com/api/stores/v2/products/skus
will return all the SKU resource/object associated with a product. You can either get skus for all products using the resource "products/skus/count" or a specific product using "products/{productid}/skus/count". Both calls works as documented.

How to Display Best Sellers in Prestashop?

I wanted to display the best selling products in the left column of the prestashop website. Installed best sellers modules and assigned it to the left column but still it dosent display the products in the left tab. Unable to figure out where the mistake is.
For showing Best Sales there is a Prestashop native module blockbestsellers, so this module looking data from ps_product_sale table in database, if this is empty, there is no results and this is why you cant see nothing.
Check ps_product_sale, and if its empty Execute this SQL this for test if you see some result so there is.
INSERT INTO ps_product_sale
(`id_product`, `quantity`, `sale_nbr`, `date_upd`)
VALUES 1, 1, 1, NOW());
Also check classes/ProductSale.php there is some methods to add and get Best Sales Products.
I hope it helps.
I believe Best selling products and Top selling products have different functions.
Best-selling products - by PrestaShop
Adds a list of the best-selling products to the Stats dashboard.
Top-sellers block - by PrestaShop
Adds a block displaying your store's top-selling products.
I have top selling and best selling products installed on my prestashop.
Top selling products is the one that is supposed to show the products on front end.
The best seller block will appear in the back office dashboard.
You can hook Top-sellers block to left column and it will show the best sellers on your site.