reference request – Dimension of cartesian products

Is there a notion of dimension such that for all Borel sets $A,Bsubseteqmathbb{R}^{n}$ we have
$$ dim(Atimes B)=dim(A)+dim(B)?$$ For topological, Minkowsky, packing and Hausdorff dimension this is not true. If the answer is no (which I suppose) I like to understand which problems appear, if we try to give such a defintion of dimension.

categories – WooCommerce products sorting by primary category first

I have a site with woocommerce and yoast seo plugin. I want to list the products on category archive page, by making the products of primary category (from yoast plugin) come first. Currently it does not do that. It is listing the products randomly or by menu order. The products have multiple categories assigned. For ex. the page of ‘Fashion’ category archive should list the products with primary category ‘Fashion’ to come first.
Thanks

mysql – How to remove bulk products by ID from woocomarce using SQL?

I have tried using this query that I found for deleting All products, have changed it a bit. But it deleted all attributes of existing products.

DELETE relations.*, taxes.*, terms.*
FROM wp_term_relationships AS relations
INNER JOIN wp_term_taxonomy AS taxes
ON relations.term_taxonomy_id=taxes.term_taxonomy_id
INNER JOIN wp_terms AS terms
ON taxes.term_id=terms.term_id
WHERE object_id IN (ID1, ID2 ... 500 more IDs);

DELETE FROM wp_postmeta WHERE post_id IN ( (ID1, ID2 ... 500 more IDs);
DELETE FROM wp_posts WHERE `ID` IN  (ID1, ID2 ... 500 more IDs);

mg.metric geometry – Equal products of triangle areas

Claim. Given hexagon circumscribed about an ellipse. Let $A_1,A_2,A_3,A_4,A_5,A_6$ be the vertices of the hexagon and let $B$ be the intersection point of its principal diagonals. Denote area of triangle $triangle A_1A_2B$ by $K_1$, area of triangle $triangle A_2A_3B$ by $K_2$,area of triangle $triangle A_3A_4B$ by $K_3$,area of triangle $triangle A_4A_5B$ by $K_4$,area of triangle $triangle A_5A_6B$ by $K_5$ and area of triangle $triangle A_1A_6B$ by $K_6$ .Then, $$K_1 cdot K_3 cdot K_5=K_2 cdot K_4 cdot K_6$$

php – Magento 2, programmatically create configurable products

Hello I have the necessity of creating both simpe and configurable products.

This is what (following online guidelines) I have right now:

$bootstrap = Bootstrap::create(BP, $params);
$objectManager = $bootstrap->getObjectManager();
$state = $objectManager->get('MagentoFrameworkAppState');
$state->setAreaCode('frontend');
$salt = rand(10, 999);

//REGARDING SIMPLE PRODUCTS
$simple_product = $objectManager->create('MagentoCatalogModelProduct');
$simple_product->setSku('test-simple' . $salt);
$simple_product->setName('test name simple' . $salt);
$simple_product->setAttributeSetId(9); //my own attribute set 

$simple_product->setData('157', '9'); // my custom attribute flavor and it's assigned value

$simple_product->setStatus(1);
$simple_product->setTypeId('simple');
$simple_product->setPrice(10);
$simple_product->setWebsiteIds(array(1));
$simple_product->setCategoryIds(array(14)); //it's category
$simple_product->setStockData(array(
    'use_config_manage_stock' => 0, //'Use config settings'?
    'manage_stock' => 1, //manage stock
    'min_sale_qty' => 1, //Minimum Qty Allowed in Shopping Cart
    'max_sale_qty' => 2, //Maximum Qty Allowed in Shopping Cart
    'is_in_stock' => 1, //Stock Availability
    'qty' => 100 //qty
    )
);
$simple_product->save();

$productRepository = $objectManager->get('MagentoCatalogApiProductRepositoryInterface');
$product = $productRepository->getById($simple_product->getId());
$product->setFlavor('BBBB');  //my custom attribute is called flavor and BBBB it's is value
$product->getResource()->saveAttribute($product, 'flavor');

$simple_product_id = $simple_product->getId(); //get ID
echo "simple product id: ".$simple_product_id."n";

This works just perfect, now I’d like to create a configurable product and assign this product to it:

//REGARDING CONFIGURABLE PRODUCTS
$configurable_product = $objectManager->create('MagentoCatalogModelProduct');
$configurable_product->setSku('test-configurable' . ++$salt);
$configurable_product->setName('test name configurable' . ++$salt);
$configurable_product->setAttributeSetId(9);
$configurable_product->setStatus(1);
$configurable_product->setTypeId('configurable');
$configurable_product->setPrice(11);
$configurable_product->setWebsiteIds(array(1));
$configurable_product->setCategoryIds(array(14));
$configurable_product->setStockData(array(
    'use_config_manage_stock' => 0, 
    'manage_stock' => 1, 
    'is_in_stock' => 1, 
    'qty' => 999
    )
);

$configurable_product->getTypeInstance()->setUsedProductAttributeIds(array(157),$configurable_product); //attribute ID of attribute flavor

$configurableAttributesData = $configurable_product->getTypeInstance()->getConfigurableAttributesAsArray($configurable_product);

$configurable_product->setCanSaveConfigurableAttributes(true);
$configurable_product->setConfigurableAttributesData($configurableAttributesData);

$configurableProductsData = array();
$configurableProductsData($simple_product_id) = array( //our simple product ID
    '0' => array(
        'label' => 'gusto', //attribute label
        'attribute_id' => '157', //attribute ID of attribute 'flavor' in my store
        'value_index' => '9', //value of 'BBBB' index of the attribute 
        'is_percent'    => 0,
        'pricing_value' => '10',
    )
);


$configurable_product->setConfigurableProductsData($configurableProductsData);

$configurable_product->save();

echo "configurable product id: ".$configurable_product->getId()."n";

I successifully create both products, but the simple is not associated with the configurable one.

Of course I do something wrong…. can you please guide me in the right direction?

I will promote your products or link in real USA for $5

I will promote your products or link in real USA

About This Gig

Welcome to my Facebook Marketing and Promotion Sirvice !

Hello, I’m a digital marketer specializing in social media marketing. I have completed a professional course in Digital Marketing from the Digital Outsourcing Institute of Bangladesh. I can promote your business, product or link in large active facebook groups in the USA. I have access to those groups of the USA which are used for buying, selling and trading. I have a good understanding of marketing language and customer psychology. I will help you promot or reach a large audience and boost your sales.

My Specialties:

Posting in Large 15 Groups with Real Active Members of USA country

Use Attractive Product Descriptions and eye catching Images

100 % Manual Posting on this grups

Spam Free Posts

Proof Submit of Work in Google Sheets

On-Time Delivery

What You Get:

Audience Reach Up To A large of Real Active Users

Rapid Audience Engagement and Growth

Real Customers

More Likes and Followings

More Profit and More Sales

.

magento2 – The product’s required option(s) weren’t entered. Make sure the options are entered and try again

I am getting the standard error when the product requires options to be selected before adding to the quote/cart. However, it seems the error is displaying multiple times to match the number of options there are. See screenshot below.

Any advice would be greatly appreciated.

enter image description here