magento module
Budget: $10 – $30 USD
I need a Magento 2 module with the following function
the module name is Redding_RedHot.
It should do this functionality.
Keep a running tally for how many times a RedHot product was added to cart.
Display the running tally on the product page.
Adjust the flat rate shipping rate for orders that contain a RedHot product.
To achieve this:
Create a new product attribute called red_hot. This is a yes/no attribute and should be added to the default product attribute set.
Update a selection of products to set this attribute to yes (this is not being assessed).
Add a new database table that contains 2 columns, SKU (primary key) and add_to_cart_count (int).
Intercept add to cart functionality so that any time a RedHot product is added to cart:
Increment the add_to_cart_count field in the new table if the SKU exists; or
Insert a row into the new table for the SKU if it doesn’t already exist.
Create a new block and insert this block into the product page layout so it appears above the add to cart button only for RedHot products. This block must display “x customers love this product!” where x is the counter from the new table.
Enable flatrate shipping and set the rate to $20 (this is not being assessed).
Intercept the flat rate shipping method and change the rate from $20 to $10 for any order that contains any RedHot product.
the module name is Redding_RedHot.
It should do this functionality.
Keep a running tally for how many times a RedHot product was added to cart.
Display the running tally on the product page.
Adjust the flat rate shipping rate for orders that contain a RedHot product.
To achieve this:
Create a new product attribute called red_hot. This is a yes/no attribute and should be added to the default product attribute set.
Update a selection of products to set this attribute to yes (this is not being assessed).
Add a new database table that contains 2 columns, SKU (primary key) and add_to_cart_count (int).
Intercept add to cart functionality so that any time a RedHot product is added to cart:
Increment the add_to_cart_count field in the new table if the SKU exists; or
Insert a row into the new table for the SKU if it doesn’t already exist.
Create a new block and insert this block into the product page layout so it appears above the add to cart button only for RedHot products. This block must display “x customers love this product!” where x is the counter from the new table.
Enable flatrate shipping and set the rate to $20 (this is not being assessed).
Intercept the flat rate shipping method and change the rate from $20 to $10 for any order that contains any RedHot product.
Related categories:
Magento 2